:root {
    /* Premium Italian Palette */
    --bg-main: #F4EBD0; /* Warm Parchment */
    --bg-texture: image-set(
        url('img/bg_paper.avif') type('image/avif'),
        url('img/bg_paper.webp') type('image/webp'),
        url('img/bg_paper.jpg') type('image/jpeg')
    );
    --bg-hero-image: image-set(
        url('img/bg_hero.avif') type('image/avif'),
        url('img/bg_hero.webp') type('image/webp'),
        url('img/bg_hero.jpg') type('image/jpeg')
    );
    --bg-dark: #1A0F0A; /* Espresso Dark */
    --bg-card: #FFFBF2;
    --bg-warm: var(--bg-card);
    --gradient-warm: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(196, 30, 58, 0.10) 100%);
    
    --text-dark: #2A1810;
    --text-body: #4A3B32;
    --text-light: #8C7A6B;
    --text-white: #EFEFEF;
    
    --primary: #C41E3A; /* Italian Red */
    --secondary: #D4AF37; /* Gold */
    --secondary-light: #F4C430;
    --accent-green: #008C45; /* Italian Green */
    --text-muted: #8e8e8e;
    
    --shadow-soft: 0 10px 30px -10px rgba(42, 24, 16, 0.15);
    --shadow-card: 0 15px 35px rgba(0,0,0,0.1);
    --shadow-image: 0 20px 40px rgba(0,0,0,0.2);
    
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-bounce: cubic-bezier(0.2, 0.9, 0.2, 1.25);
    
    --gradient-cta: linear-gradient(135deg, var(--primary) 0%, #a01830 100%);
    --header-offset: 96px;
}

/* Base reset (a11y-safe) */
html, body {
    margin: 0;
    padding: 0;
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Floating Garnish */
.floating-garnish {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    animation: floatRotate 10s ease-in-out infinite;
}

@keyframes floatRotate {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 30px) rotate(5deg); }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Keep anchor jumps visible below the fixed header (JS keeps this in sync). */
    scroll-padding-top: var(--header-offset);
}

section[id] {
    scroll-margin-top: var(--header-offset);
}

body {
    overflow-x: hidden; /* Prevent horizontal scroll from 3D elements */
    background-color: var(--bg-main);
    background-image: var(--bg-texture);
    background-blend-mode: multiply;
    background-size: 500px;
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.8;
    position: relative;
    /* Remove contrast issues from global blend modes */
}

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

/* Vignette Overlay - Moved to background only */
/* Vignette Removed - Clean Background */
body::before {
    display: none;
}

/* ============================================
   HEADER - Premium Floating Navigation
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s var(--ease-out);
}

header.scrolled {
    background: rgba(253, 248, 243, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 2rem;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; /* Cleaner initial state */
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out);
}

header.scrolled nav {
    background: transparent;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 48px;
    transition: transform 0.3s var(--ease-out);
}

.logo:hover {
    transform: scale(1.05) rotate(-3deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(212, 68, 47, 0.08);
}

.nav-links a.btn-order {
    background: var(--gradient-cta);
    color: var(--text-white);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(212, 68, 47, 0.35);
    border: none;
    cursor: pointer;
}

.nav-links a.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 68, 47, 0.45);
    background: var(--gradient-cta);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION - Cinematic Full Experience
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem 4rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(232, 165, 75, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, rgba(212, 68, 47, 0.1) 0%, rgba(232, 165, 75, 0.1) 100%);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 68, 47, 0.15);
    animation: fadeSlideUp 0.8s var(--ease-out) both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.1s both;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
    opacity: 0.35;
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-3deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #991b2c 100%);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 4px; /* More classic */
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    transition: all 0.4s var(--ease-out);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--secondary);
    transition: all 0.4s var(--ease-out);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--text-dark);
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeSlideUp 1s var(--ease-out) 0.4s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid var(--secondary);
    z-index: -1;
    transform: rotate(3deg);
    border-radius: var(--radius-xl);
    opacity: 0.5;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-image);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.hero-image:hover img {
    transform: scale(1.03);
}

.hero-badge-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-card);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floatBadge 3s ease-in-out infinite;
}

.hero-badge-float .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #5A9C3C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-badge-float .text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.hero-badge-float .text span {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   FEATURES STRIP
   ============================================ */
.features-strip {
    background: var(--bg-dark);
    padding: 2.5rem 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.features-strip-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
    padding: 7rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto;
    color: var(--secondary);
    opacity: 0.85;
    font-size: 1.4rem;
    user-select: none;
}

.separator--tight {
    margin: 1.5rem auto;
}

/* ============================================
   ABOUT SECTION - Parallax
   ============================================ */
.about-section {
    background: var(--bg-dark);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-hero-image) center/cover no-repeat fixed; /* Parallax fixed */
    opacity: 0.3;
    filter: sepia(30%) contrast(110%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-white);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--secondary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
    padding: 7rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.location-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 68, 47, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item .text h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.info-item .text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    height: 400px;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 2rem;
    background: var(--gradient-warm);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-logo {
    height: 50px;
}

footer {
    background: var(--bg-dark);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--secondary);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(28, 20, 16, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s var(--ease-bounce);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    appearance: none;
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(44, 24, 16, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-main);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 68, 47, 0.1);
}

.order-embed-note {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--text-body);
    font-size: 0.95rem;
}

.order-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-tertiary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(42, 24, 16, 0.25);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
}

.btn-tertiary:hover {
    background: rgba(42, 24, 16, 0.06);
    border-color: rgba(42, 24, 16, 0.35);
}

.order-status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 7rem 2rem 4rem;
        gap: 3rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-badge-float {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .features-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 84px;
    }

    header {
        padding: 0.75rem 1rem;
    }
    
    nav {
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        gap: 0.25rem;
        padding: 0.75rem;
        background: rgba(255, 251, 242, 0.98);
        border: 1px solid rgba(42, 24, 16, 0.12);
        border-radius: var(--radius-lg);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
        z-index: 999;
    }

    .nav-links.open a {
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .features-strip-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-garnish {
        width: 140px;
        top: -26px;
        right: -18px;
        filter: drop-shadow(0 8px 14px rgba(0,0,0,0.28));
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 1rem auto 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .floating-garnish {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .about-section::before {
        background-attachment: scroll;
    }
}

/* --- VISUAL MENU ITEMS (Inside Page Content) --- */
.visual-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-menu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.visual-menu-item:last-child {
    border-bottom: none;
}

.menu-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.visual-menu-item:hover .menu-thumb {
    transform: scale(1.1) rotate(5deg);
}

.menu-details {
    flex: 1;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
    border-bottom: none; /* Reset old styles */
}

.menu-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.price {
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
}

.menu-details p {
    font-size: 0.85rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.4;
}

.compact .visual-menu-item {
    gap: 1rem;
}
.compact .menu-thumb {
    width: 60px;
    height: 60px;
}

/* ============================================
   HARDCOVER BOOK ENGINE v2.0
   ============================================ */
.book-scene {
    width: 100%;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 3500px;
}

/* THE BOOK CONTAINER - Acts as the Back Cover / Base */
.book {
    position: relative;
    width: 540px; 
    height: 760px;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    --book-x: 0px;
    --book-rotate-x: 5deg;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --tilt-z: 0deg;
    transform: translateX(var(--book-x)) rotateX(calc(var(--book-rotate-x) + var(--tilt-x))) rotateY(var(--tilt-y))
        rotateZ(var(--tilt-z));
    will-change: transform;
}

.book.is-tilting {
    transition: transform 120ms ease-out;
}

/* OPEN STATE: 
   To center the open book (spread of ~1080px), the Spine (at x=0 local) 
   needs to be in the center of the viewport.
   Since .book width is 540px (Back Cover), its center is at 270px.
   If .book is centered in viewport, the Back Cover center aligns with viewport center.
   So Spine (at 0px) is at ViewportCenter - 270px.
   To move Spine to ViewportCenter, we must translate .book RIGHT by 270px. 
*/
.book.state-open {
    --book-x: 270px;
    --book-rotate-x: 0deg;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --tilt-z: 0deg;
}

/* BUTTONS / CONTROLS - REFINED */
.book-controls {
    position: static;
    transform: none;
    z-index: 50;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.control-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nav-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(42, 24, 16, 0.18);
    color: var(--text-dark);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(196, 30, 58, 0.35);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* --- SPINE (The Backbone) --- */
.spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px; /* Thicker spine for "Deep 3D" */
    height: 100%;
    background: #5d4037;
    transform: rotateY(-90deg) translateX(-30px); /* Center spine on axis */
    transform-origin: left;
    background-image: var(--bg-hero-image);
    background-blend-mode: multiply;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

/* --- BACK COVER (Base) --- */
.hardcover-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5d4037;
    transform: translateZ(-30px); /* Behind spine center */
    border-radius: 0 12px 12px 0;
    box-shadow: 30px 30px 80px rgba(0,0,0,0.4); 
}

/* --- FRONT COVER (The Actor) --- */
.hardcover-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 100;
    transform: translateZ(30px); /* In front of spine center */
}

.book.state-open .hardcover-front {
    transform: translateZ(30px) rotateY(-180deg);
}

/* Front Face (Outside) & Back Face (Inside) */
.face-front, .face-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0 12px 12px 0;
    transform-style: preserve-3d;
}

.face-front {
    background-color: #3e2723;
    background-image: var(--bg-hero-image);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #3e2723;
    box-shadow: inset 5px 0 25px rgba(0,0,0,0.7);
    /* Thickness Pseudo */
}
.face-front::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #2a1810;
    transform: rotateY(90deg) translateX(2px);
    transform-origin: right;
}

.face-back {
    background: #F4EBD0;
    transform: rotateY(180deg);
    z-index: 1;
    box-shadow: inset -15px 0 40px rgba(0,0,0,0.15); /* Stronger inner shadow */
    overflow: hidden;
}

.book-skin {
    position: absolute;
    top: 20px; bottom: 20px; left: 20px; right: 20px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

.book-logo {
    width: 140px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.6));
}

.front-content {
    text-align: center;
    border: 3px double #d4af37;
    padding: 4rem 5rem;
    background: rgba(0,0,0,0.25);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
}

.cover-title {
    font-family: var(--font-display);
    color: #d4af37;
    margin: 0;
    letter-spacing: 0.08em;
}

.cover-est {
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 0.12em;
}

/* --- PAGES (The Content Stack) --- */
.paper-stack {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 4px;
    width: 98%;
    transform-style: preserve-3d;
    z-index: 80; 
}

.paper-sheet {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.paper-sheet.flipped {
    transform: rotateY(-180deg);
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F1E0; /* Slightly lighter parchment */
    background-image: var(--bg-texture);
    background-blend-mode: multiply;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0 8px 8px 0;
}

.page.front-side {
    transform: rotateY(0deg);
    z-index: 2;
    border-left: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(to right, rgba(0,0,0,0.12) 0%, transparent 8%, transparent 95%, rgba(0,0,0,0.05) 100%), #F8F1E0;
}

.page.back-side {
    transform: rotateY(180deg);
    z-index: 1;
    border-right: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(to left, rgba(0,0,0,0.12) 0%, transparent 8%, transparent 95%, rgba(0,0,0,0.05) 100%), #F8F1E0;
}

/* Click Zones (Dog Ears) */
.corner-hitbox {
    appearance: none;
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 120px;
    z-index: 100;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    /* Debug: background: rgba(0, 255, 0, 0.2); */
}

/* Right page click zone (Bottom Right) */
.page.front-side .corner-hitbox {
    right: 0;
}
/* Hover effect for curl hint */
.page.front-side .corner-hitbox:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 45%, rgba(0,0,0,0.1) 50%, #fff 55%);
    box-shadow: -5px -5px 15px rgba(0,0,0,0.1);
    border-radius: 8px 0 0 0;
}

/* Left page click zone (Bottom Left of BACK SIDE) - Logic handled by Prev Button or Left Click? 
   User wants corner clicks. Left page is 'back-side'.
*/
.page.back-side .corner-hitbox {
    left: 0;
}
.page.back-side .corner-hitbox:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(-135deg, transparent 45%, rgba(0,0,0,0.1) 50%, #fff 55%);
    box-shadow: 5px -5px 15px rgba(0,0,0,0.1);
    border-radius: 0 8px 0 0;
}

.page-content {
    padding: 3rem 3rem 5rem 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* --- TYPOGRAPHY & CONTENT DETAILS --- */
.center-content {
    justify-content: center;
}

.page-logo {
    width: 100px;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.page-tagline {
    font-style: italic;
    margin-bottom: 1rem;
}

.page-thanks {
    font-family: var(--font-display);
    color: var(--primary);
}

.page-social {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-number {
    position: absolute;
    bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-light); /* Muted gold */
    letter-spacing: 2px;
    border-top: 1px solid rgba(0,0,0,0.1); /* Small accent line */
    padding-top: 0.5rem;
    width: 30px;
    text-align: center;
}
.front-side .page-number { right: 3rem; }
.back-side .page-number { left: 3rem; }

.menu-category-title {
    font-family: var(--font-display);
    font-size: 2.2rem; /* Larger impact */
    font-weight: 700;
    color: #8B0000; /* Dark Red Italian */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 0 rgba(255,255,255,0.5);
    position: relative;
    display: inline-block;
}

.menu-category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.ornament-divider {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-weight: 300;
}

.section-desc {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 85%;
    border-bottom: 1px double rgba(212, 175, 55, 0.3);
    padding-bottom: 1rem;
}

/* ============================================
   MOBILE FALLBACK (STACKED PAGES)
   ============================================ */
@media (max-width: 950px) {
    .book-scene {
        min-height: auto;
        display: block;
        perspective: none;
        padding: 0 0 3rem;
    }

    #book {
        width: 100%;
        max-width: 560px;
        height: auto;
        margin: 0 auto;
        transform: none;
        transition: none;
    }

    .spine,
    .hardcover-back,
    .hardcover-front,
    .book-controls {
        display: none;
    }

    .paper-stack {
        position: static;
        width: 100%;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .paper-sheet,
    .paper-sheet.flipped {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        transition: none;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .page,
    .page.front-side,
    .page.back-side {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        backface-visibility: visible;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .page.front-side,
    .page.back-side {
        background: #F4EBD0;
        background-image: var(--bg-texture);
        background-blend-mode: multiply;
    }

    .page-content {
        padding: 2rem 1.25rem 3rem;
    }

    .page-number {
        position: static;
        width: auto;
        margin-top: 1.25rem;
    }

    .corner-hitbox {
        display: none;
    }

    .menu-header {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
        text-align: center;
    }

    .visual-menu-item {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding-bottom: 2rem;
    }

    .menu-thumb {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .about-section::before {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .floating-garnish {
        animation: none;
    }

    .hero-badge,
    .hero h1,
    .hero-subtitle,
    .hero-cta,
    .hero-image {
        animation: none;
    }

    .book,
    .paper-sheet,
    .hardcover-front,
    .modal,
    .modal-content {
        transition: none;
    }

    .modal-content,
    .modal.show .modal-content {
        transform: none;
    }

    .about-section::before {
        background-attachment: scroll;
    }
}

