:root {
    --bg-color: #1a2e26; /* Deep Hunter Green */
    --text-color: #fdf0d5; /* Warm Cream */
    --primary-color: #e63946; /* Tomato Red */
    --primary-hover: #c1121f;
    --secondary-bg: #223a30;
    --card-bg: #1e362c;
    --border-color: rgba(253, 240, 213, 0.15);
    --glass-bg: rgba(26, 46, 38, 0.8);
    
    --font-display: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img, video { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.italic { font-style: italic; }
.text-primary { color: var(--primary-color); }
.text-white { color: #fff; }

/* Grain Texture */
.grain::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* Header */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0;
    transition: var(--transition);
}
#main-header.scrolled {
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color); padding: 12px 0;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; }
.desktop-nav { display: flex; gap: 32px; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.desktop-nav a:hover { color: var(--primary-color); opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 100px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-color); }
.btn-outline:hover { background: rgba(253, 240, 213, 0.05); }
.btn-cream { background: #fdf0d5; color: #1a2e26; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
.mobile-toggle i { width: 32px; height: 32px; }

/* Hero */
#hero { position: relative; padding: 120px 0 100px; min-height: 90vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; margin-bottom: 24px; }
.hero-text h1 { font-size: clamp(3rem, 7vw, 4.5rem); margin-bottom: 32px; text-wrap: balance; }
.hero-desc { font-size: 1.15rem; opacity: 0.7; max-width: 480px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; }

.hero-visual { position: relative; }
.video-card { aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: var(--secondary-bg); box-shadow: 0 40px 80px rgba(0,0,0,0.4); }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.float-img { position: absolute; border-radius: 16px; overflow: hidden; border: 4px solid var(--bg-color); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.pattern-float { width: 150px; bottom: -30px; left: -40px; transform: rotate(-6deg); }
.caprese-float { width: 120px; top: -30px; right: -20px; border-radius: 50%; }

/* Marquee */
#marquee { background: rgba(34, 58, 48, 0.4); padding: 24px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; }
.marquee-inner { white-space: nowrap; animation: marquee 30s linear infinite; display: inline-block; }
.marquee-inner span { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; margin-right: 40px; opacity: 0.7; }
.dot { color: var(--primary-color); margin: 0 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Promo */
#promo { position: relative; background: var(--primary-color); padding: 100px 0; overflow: hidden; }
.promo-bg-pattern { position: absolute; inset: 0; background: url('assets/buona-pattern.jpg'); background-size: 260px; opacity: 0.08; mix-blend-mode: overlay; pointer-events: none; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 10; }
.promo-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 24px; }
.promo-text h2 { font-size: 3.5rem; color: #fff; margin-bottom: 16px; }
.promo-price { font-family: var(--font-display); font-size: 7rem; line-height: 1; color: #fff; margin-bottom: 24px; }
.promo-price .cents { font-size: 3rem; vertical-align: top; margin-top: 15px; display: inline-block; }
.promo-text p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 440px; }

.promo-card-wrapper { position: relative; }
.promo-flavors-card { background: #fdf0d5; color: #1a2e26; padding: 40px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.2); }
.card-subtitle { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; font-weight: 700; color: var(--primary-color); margin-bottom: 24px; }
.flavors-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flavors-list li { font-family: var(--font-display); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(26, 46, 38, 0.1); padding-bottom: 6px; }
.flavors-list li::before { content: ""; width: 6px; height: 6px; background: var(--primary-color); border-radius: 50%; }
.day-badge { position: absolute; top: -20px; right: -20px; background: #fff; color: #1a2e26; padding: 10px 20px; border-radius: 12px; font-family: var(--font-display); font-size: 0.9rem; transform: rotate(6deg); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Calzone */
#calzone { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.calzone-video-bg { position: absolute; inset: 0; z-index: -1; }
.calzone-video-bg video { width: 100%; height: 100%; object-fit: cover; }
.calzone-video-bg .overlay { position: absolute; inset: 0; background: rgba(26, 46, 38, 0.85); }
.calzone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.img-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.new-tag { position: absolute; bottom: 30px; left: -10px; background: var(--primary-color); padding: 8px 24px; border-radius: 12px; font-family: var(--font-display); transform: rotate(-4deg); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(253,240,213,0.2); padding: 6px 16px; border-radius: 100px; font-size: 0.7rem; color: rgba(253,240,213,0.7); text-transform: uppercase; margin-bottom: 24px; }
.calzone-text h2 { font-size: 4rem; margin-bottom: 24px; }
.check-list { list-style: none; margin: 32px 0; color: rgba(253,240,213,0.8); }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.check-list span { color: var(--primary-color); font-weight: 900; }

/* Sections */
.section { padding: 120px 0; }
.bg-alt { background: #223a30; }
.section-tag { color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.7rem; margin-bottom: 16px; }
.section-title { font-size: 3rem; max-width: 600px; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--card-bg); padding: 40px; border-radius: 24px; border: 1px solid var(--border-color); transition: var(--transition); }
.feature-card:hover { border-color: rgba(230, 57, 70, 0.4); transform: translateY(-8px); }
.feature-card i { color: var(--primary-color); margin-bottom: 24px; width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-card p { opacity: 0.6; font-size: 0.95rem; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.story-visual { position: relative; }
.story-img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; }
.years-badge { position: absolute; bottom: -30px; right: -30px; background: #fdf0d5; color: #1a2e26; padding: 32px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); max-width: 220px; text-align: center; }
.years-badge .num { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.years-badge .sub { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; opacity: 0.8; }

/* Visite */
.visite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.visite-item i { color: var(--primary-color); width: 28px; height: 28px; margin-bottom: 20px; }
.visite-item h3 { font-size: 1.5rem; margin-bottom: 12px; }
.visite-item p { opacity: 0.6; line-height: 1.6; }
.link-primary { color: var(--primary-color); font-weight: 600; display: inline-block; margin-top: 12px; }
.map-wrapper { border-radius: 24px; overflow: hidden; border: 1px solid var(--border-color); filter: grayscale(0.5) contrast(1.2); }

/* Footer */
footer {
    padding: 100px 0 0;
    background: #111e19;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    width: 80px;
    margin-bottom: 24px;
}

.footer-desc {
    opacity: 0.6;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(253, 240, 213, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-4px);
}

.social-links a svg,
.social-links a i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-col h4 {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary-color);
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.footer-nav,
.footer-contact {
    list-style: none;
}

.footer-nav li,
.footer-contact li {
    margin-bottom: 16px;
    font-size: 0.95rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-nav a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 4px;
}

.footer-contact i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Menu Redesign */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 46, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 32px 8%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(253, 240, 213, 0.1);
}

.mobile-menu-header .logo-img {
    height: 40px;
}

.mobile-menu-header button {
    background: rgba(253, 240, 213, 0.05);
    border: 1px solid rgba(253, 240, 213, 0.1);
    color: var(--text-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-header button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for links */
.mobile-menu.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-links a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-nav-links .btn { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

.mobile-nav-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.mobile-nav-links .btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    padding: 18px;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid rgba(253, 240, 213, 0.1);
}

.mobile-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.mobile-socials a {
    font-size: 1.5rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .desktop-nav, .nav-cta { display: none; }
    .mobile-toggle { display: block; }
    .section { padding: 80px 0; }
    .hero-grid, .promo-grid, .calzone-grid, .story-grid, .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .visite-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .visite-item {
        background: var(--secondary-bg);
        padding: 40px 24px;
        border-radius: 32px;
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: var(--transition);
    }
    .visite-item:hover {
        transform: translateY(-5px);
        border-color: rgba(230, 57, 70, 0.3);
    }
    .visite-item i {
        background: rgba(230, 57, 70, 0.1);
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        margin-bottom: 24px;
        color: var(--primary-color);
    }
    .visite-item i svg {
        width: 32px;
        height: 32px;
    }
    .visite-item h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        font-family: var(--font-display);
    }
    .map-wrapper {
        height: 300px;
    }
    .map-wrapper iframe {
        height: 100% !important;
    }
    .hero-text { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .promo-text { text-align: center; }
    .promo-text p { margin-left: auto; margin-right: auto; }
    .promo-flavors-card { padding: 24px; }
    .calzone-text { text-align: center; order: 1; }
    .calzone-visual { order: 2; }
    .check-list { display: inline-block; text-align: left; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
        margin-bottom: 60px;
    }
    .footer-col-brand,
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        background: rgba(253, 240, 213, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        margin-bottom: 20px;
    }
    .footer-grid .footer-col:last-child {
        margin-bottom: 0;
    }
    .footer-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
    }
    .social-links {
        justify-content: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: -12px;
        width: 32px;
    }
    .footer-nav li {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }
    .footer-contact i {
        margin-bottom: 8px;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
