/* === OSTERIA NAVIGLI - Cinematic Italian Design === */

:root {
    --navy: #0c1a2e;
    --navy-mid: #152640;
    --navy-light: #1e3456;
    --gold: #c9a84c;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --cream: #f0ebe0;
    --cream-soft: #e8e2d4;
    --white: #faf8f4;
    --text-light: rgba(240, 235, 224, 0.7);
    --text-dim: rgba(240, 235, 224, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* GSAP safe: ensure hero content visible if animation fails */
.hero-content, .hero-top-line, .hero-logo-frame, .h-line, .hero-bottom,
.split-left, .split-right .split-content, .menu-intro, .menu-card,
.filo-card, .cine-content {
    will-change: opacity, transform;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--navy);
    color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

a, button { cursor: none; }

/* === CURSOR GLOW === */
.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    body { cursor: auto; }
    a, button { cursor: auto; }
    .cursor-glow { display: none; }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 28px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: normal;
}

.navbar.scrolled {
    background: rgba(12, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
}

.navbar.hide { transform: translateY(-100%); }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 6px;
}

.brand-accent {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 3px;
    margin-top: 2px;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px; height: 20px;
    position: relative;
    z-index: 101;
}

.nav-toggle span {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--cream);
    transition: all 0.3s;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

.nav-toggle.open span:first-child { top: 50%; transform: rotate(45deg); }
.nav-toggle.open span:last-child { bottom: 50%; transform: rotate(-45deg); }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--navy-mid) 0%, var(--navy) 60%);
}

.hero-film-grain {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 8s steps(4) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, -1%); }
    50% { transform: translate(1%, 2%); }
    75% { transform: translate(-1%, -2%); }
    100% { transform: translate(0, 0); }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 32px;
}

.hero-top-line {
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-logo-frame {
    width: 140px; height: 140px;
    margin: 0 auto 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-logo-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.06);
}

.hero-logo {
    width: 100px; height: 100px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.15;
}

.h-line {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--cream);
    letter-spacing: 2px;
}

.h-italic {
    font-style: italic;
    color: var(--gold);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.hero-bottom {
    position: absolute;
    bottom: 50px;
    left: 0; right: 0;
    text-align: center;
}

.hero-tagline {
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.7; transform: scaleY(1); }
}

/* === EYEBROW === */
.eyebrow {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.eyebrow.gold { color: var(--gold); }

/* === SPLIT SECTION === */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.split-left {
    background: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.split-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
}

.visual-frame {
    width: 300px; height: 300px;
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(201, 168, 76, 0.05);
    border-radius: 50%;
}

.visual-placeholder {
    text-align: center;
}

.split-right {
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 80px;
}

.split-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--cream);
}

.content-divider {
    margin-bottom: 28px;
}

.content-divider span {
    display: block;
    width: 40px; height: 1px;
    background: var(--gold);
}

.lead-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--cream);
    line-height: 1.9;
    margin-bottom: 16px;
}

.split-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 28px;
}

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

.cf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.cf-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* === CINEMATIC QUOTE === */
.cine-quote {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--navy-mid);
    overflow: hidden;
}

.cine-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(201, 168, 76, 0.03) 100%);
}

.cine-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 32px;
}

.cine-decoration {
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 32px;
}

.cine-content blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cine-content cite {
    font-size: 0.8rem;
    color: var(--gold);
    font-style: normal;
    letter-spacing: 2px;
}

/* === MENU === */
.menu-section {
    padding: 140px 0;
    background: var(--navy);
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.menu-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.menu-intro {
    position: sticky;
    top: 140px;
}

.menu-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--cream);
}

.menu-intro p {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.9;
}

.menu-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 4px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.02);
}

.card-header {
    margin-bottom: 28px;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 12px;
}

.card-line {
    width: 30px; height: 1px;
    background: var(--gold);
    opacity: 0.3;
}

.card-list {
    list-style: none;
}

.card-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 12px;
}

.card-list li:last-child { border-bottom: none; }

.dish-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--cream);
}

.dish-price {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--gold);
    text-align: right;
}

.dish-desc {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 300;
    margin-top: 4px;
    line-height: 1.5;
}

/* === PHILOSOPHY === */
.filosofia {
    padding: 140px 0;
    background: var(--navy-mid);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.filo-header {
    text-align: center;
    margin-bottom: 80px;
}

.filo-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--cream);
}

.filo-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.filo-card {
    padding: 48px 40px;
    text-align: center;
    border-right: 1px solid rgba(201, 168, 76, 0.06);
    transition: background 0.4s;
}

.filo-card:last-child { border-right: none; }

.filo-card:hover {
    background: rgba(201, 168, 76, 0.02);
}

.filo-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.25;
    margin-bottom: 20px;
}

.filo-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 16px;
}

.filo-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.9;
}

/* === FOOD STRIP === */
.food-strip {
    overflow: hidden;
    padding: 0;
    background: var(--navy-mid);
}

.strip-scroll {
    display: flex;
    gap: 4px;
    animation: stripScroll 30s linear infinite;
}

.strip-img {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.strip-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 26, 46, 0.7) 0%, transparent 50%);
}

.strip-img span {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1px;
}

@keyframes stripScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === FOOTER === */
.footer {
    padding: 80px 0 32px;
    background: var(--navy);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.fb-main {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 5px;
    color: var(--cream);
}

.fb-accent {
    font-family: 'Playfair Display', serif;
    font-size: 0.7rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 2px;
}

.footer-col p {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--cream);
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-bottom {
    padding-top: 28px;
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
}

.footer-legal a:hover { color: var(--gold); }
.footer-legal span { color: rgba(201, 168, 76, 0.15); font-size: 0.6rem; }

.footer-bottom p {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .menu-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .menu-intro { position: static; text-align: center; }
}

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

    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(12, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.open { transform: translateY(0); }
    .nav-menu a { font-size: 0.9rem; letter-spacing: 5px; }

    .split-section { grid-template-columns: 1fr; }
    .split-left { min-height: 50vh; }
    .split-right { padding: 60px 32px; }
    .split-content h2 { font-size: 1.8rem; }

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

    .filo-track { grid-template-columns: 1fr; }
    .filo-card { border-right: none; border-bottom: 1px solid rgba(201, 168, 76, 0.06); }

    .footer-grid { flex-direction: column; gap: 40px; }
}

@media (max-width: 480px) {
    .h-line { font-size: 2rem !important; }
    .h-italic { font-size: 2.2rem !important; }
    .nav-inner { padding: 0 20px; }
}
