/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    /* Colors - Italian Restaurant Theme */
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --secondary-color: #ffa000;
    --secondary-dark: #f57c00;
    --secondary-light: #ffc947;

    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;

    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;

    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --gap-small: 16px;
    --gap-medium: 24px;
    --gap-large: 40px;

    /* Effects */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Breakpoints */
    --mobile-max: 767px;
    --tablet-min: 768px;
    --desktop-min: 1024px;
    --wide-min: 1440px;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   LAYOUT COMPONENTS
   =========================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-small);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-medium);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar__logo {
    font-size: 2rem;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar__menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar__link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__link--cta {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 50px;
}

.navbar__link--cta::after {
    display: none;
}

.navbar__link--cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.8) 0%, rgba(26, 26, 26, 0.7) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero__title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 32px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 24px;
    color: #ccc;
}

.star.filled {
    color: #ffa000;
}

.star.partial {
    background: linear-gradient(90deg, #ffa000 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 1.125rem;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

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

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

.hero__info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 20px;
}

.badge-text {
    font-weight: 500;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 500;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    background: var(--bg-light);
}

.about__content {
    display: grid;
    gap: 60px;
}

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

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card__text {
    color: var(--text-light);
}

.about__highlights {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
}

.highlights__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-light);
}

.highlight-icon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.highlight-text {
    color: var(--text-dark);
    font-weight: 500;
}

.about__offerings {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
}

.offerings__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.offerings__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.offering-badge {
    background: var(--primary-light);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.offerings__meals {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meal-badge {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--border-color);
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery__filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 500;
    border: 2px solid transparent;
}

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

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    transition: var(--transition);
}

.gallery__item.hidden {
    display: none;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

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

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__zoom {
    font-size: 2rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.gallery__zoom:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* ===========================
   REVIEWS SECTION
   =========================== */
.reviews {
    background: var(--bg-light);
}

.reviews__summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
}

.summary__rating {
    text-align: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.rating-count {
    color: var(--text-light);
    margin-top: 16px;
}

.summary__distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.distribution-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 40px;
    font-weight: 600;
    color: var(--text-dark);
}

.bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 4px;
    transition: width 1s ease;
}

.bar-count {
    width: 40px;
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
}

.reviews__carousel {
    position: relative;
    padding: 0 60px;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
}

.carousel__btn:hover {
    background: var(--primary-dark);
}

.carousel__btn--prev {
    left: 0;
}

.carousel__btn--next {
    right: 0;
}

.reviews__track {
    position: relative;
    overflow: hidden;
}

.review-card {
    display: none;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    animation: fadeIn 0.5s ease;
}

.review-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-rating {
    display: flex;
    gap: 4px;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-card__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.detail-stars {
    color: var(--secondary-color);
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.reviews__source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    color: var(--text-light);
}

.source-icon {
    background: #4285f4;
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===========================
   ORDER SECTION
   =========================== */
.order__platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.platform-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.platform-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.platform-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.platform-card__text {
    color: var(--text-light);
    margin-bottom: 24px;
}

.platform-card__btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.platform-card:hover .platform-card__btn {
    background: var(--primary-dark);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    background: var(--bg-light);
}

.contact__content {
    display: grid;
    gap: 40px;
}

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

.info-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    text-align: center;
}

.info-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.info-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.info-card__text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-card__text a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-card__text a:hover {
    text-decoration: underline;
}

.info-card__link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-card__link:hover {
    text-decoration: underline;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hours-day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-time {
    color: var(--text-light);
}

.hours-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.contact__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__logo-icon {
    font-size: 2rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--text-white);
    padding-left: 8px;
}

.footer__platforms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-link {
    background: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.platform-link:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    color: var(--text-white);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

/* ===========================
   MEDIA QUERIES
   =========================== */

/* Tablet */
@media (max-width: 1023px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 3rem;
    }

    .reviews__summary {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .navbar__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

    .reviews__carousel {
        padding: 0;
    }

    .carousel__btn {
        display: none;
    }

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

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

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