/* ============================================
   EDI'S RISTORANTE & PIZZERIA â€” THEME CSS
   Color palette inspired by the PDF menu:
   - Cream background: #FBF5E6
   - Dark text: #2C2C2C
   - Red accent (logo): #C23B22
   - Brown accent: #6B3A2A
   - Dark bg (logo box): #1A1A1A
   ============================================ */

:root {
    --cream: #FBF5E6;
    --cream-dark: #F0E8D0;
    --red: #C23B22;
    --red-dark: #A52F1F;
    --brown: #6B3A2A;
    --dark: #1A1A1A;
    --text: #2C2C2C;
    --text-light: #666;
    --gold: #B8860B;
    --white: #FFFFFF;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--red-dark);
}

/* ---- ITALIAN FLAG LINE ---- */
.italian-flag-line {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 16px auto;
    width: 60px;
}

.italian-flag-line::before,
.italian-flag-line::after {
    content: '';
    display: block;
    height: 4px;
    width: 20px;
    border-radius: 2px;
}

.italian-flag-line::before {
    background: #009246;
    box-shadow: 20px 0 0 var(--white);
}

.italian-flag-line::after {
    background: #CE2B37;
    margin-left: 20px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    font-style: italic;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.hero-logo-box {
    display: inline-block;
    background: var(--dark);
    border-radius: 20px;
    padding: 40px 50px;
    margin-bottom: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-logo-img {
    max-width: 280px;
    height: auto;
}

.hero-tagline {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(194, 59, 34, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream);
}

.btn-outline:hover {
    background: var(--cream);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 0;
}

.section-ornament {
    width: 16px;
    height: 16px;
    margin: 0 auto 16px;
    background: var(--cream-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: relative;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.section-ornament::before { left: -10px; }
.section-ornament::after { right: -10px; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    margin-bottom: 8px;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* ---- ABOUT ---- */
.about-content {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

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

/* ---- SPEISEKARTE ---- */
.speisekarte {
    background: var(--white);
}

.menu-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.menu-tab {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.menu-tab:hover {
    background: var(--cream-dark);
}

.menu-tab.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.menu-section {
    display: none;
}

.menu-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.menu-category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

.menu-category-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.menu-subcategory {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: center;
    color: var(--brown);
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    padding: 16px 0;
    border-bottom: 1px dotted var(--cream-dark);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.menu-item-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.menu-price {
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    font-size: 1rem;
}

.menu-desc {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-top: 4px;
    line-height: 1.5;
}

.spicy {
    color: var(--red);
    font-weight: 600;
}

.menu-note,
.menu-wine-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--cream-dark);
}

/* ---- DRINK LISTS ---- */
.menu-list {
    max-width: 600px;
    margin: 0 auto 16px;
}

.menu-list-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dotted var(--cream-dark);
    align-items: center;
}

.menu-list-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-list-name small {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.82rem;
}

.menu-list-size {
    color: var(--text-light);
    font-size: 0.85rem;
}

.drinks-two-sizes .menu-list-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    padding: 4px 0 8px;
    border-bottom: 2px solid var(--cream-dark);
}

.drinks-two-sizes .size-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.drinks-two-sizes .menu-list-item {
    grid-template-columns: 1fr auto auto;
}

.drinks-two-sizes .menu-price {
    min-width: 60px;
    text-align: right;
}

/* ---- RESERVIERUNG ---- */
.reservierung {
    background: var(--cream);
}

.reservation-embed {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reservation-embed iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .reservation-embed iframe {
        min-height: 900px;
    }
}

.reservation-fallback {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cream-dark);
}

/* ---- KONTAKT ---- */
.kontakt {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-card {
    margin-bottom: 24px;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 6px 0;
    font-size: 0.92rem;
    border-bottom: 1px dotted var(--cream-dark);
}

.hours-table td:first-child {
    font-weight: 600;
    width: 140px;
}

.hours-table .closed {
    color: var(--red);
    font-style: italic;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: var(--cream);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-subtitle {
    color: var(--cream);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--cream);
    opacity: 0.6;
    font-size: 0.85rem;
    margin-top: 12px;
}

.footer .italian-flag-line {
    margin: 12px 0;
    justify-content: flex-start;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 4px;
}

.footer a {
    color: var(--cream);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
    color: var(--cream);
}

.footer-closed {
    color: var(--red) !important;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(251, 245, 230, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-logo-box {
        padding: 28px 36px;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

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

    .about-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .reservation-embed {
        padding: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer .italian-flag-line {
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .menu-nav {
        gap: 6px;
    }

    .menu-tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section {
        padding: 60px 0;
    }

    .drinks-two-sizes .menu-list-item {
        font-size: 0.85rem;
    }

    .drinks-two-sizes .size-label {
        min-width: 50px;
    }

    .drinks-two-sizes .menu-price {
        min-width: 50px;
        font-size: 0.88rem;
    }
}