/* ==========================================================================
   PIZZARIA BAMBINOS — DESIGN SYSTEM COMPLETO
   Paleta: Bordô · Madeira · Carvão · Creme · Dourado Envelhecido
   ========================================================================== */

/* ==========================================================================
   1. CSS RESET & VARIABLES
   ========================================================================== */
:root {
    /* Core Palette */
    --bordeaux: #5A1A2A;
    --bordeaux-dark: #3D0F1B;
    --bordeaux-light: #7A2E3F;
    --wood: #6B4226;
    --wood-light: #8B6240;
    --wood-dark: #4A2E18;
    --charcoal: #1A1412;
    --charcoal-mid: #2A2220;
    --charcoal-light: #352D2A;
    --cream: #F5ECD7;
    --cream-dark: #D4C9A8;
    --cream-muted: #C8BD9F;
    --aged-gold: #B8973A;
    --aged-gold-light: #D4AF5A;
    --aged-gold-dark: #8A6F28;
    --ember: #E8621A;
    --ember-glow: rgba(232,98,26,0.12);
    --ember-soft: rgba(255,140,40,0.08);
    --stone: #3A3530;
    --stone-light: #4A4540;

    /* Italian */
    --ita-green: #009246;
    --ita-white: #FFFFFF;
    --ita-red: #CE2B37;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-serif-sc: 'Playfair Display SC', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

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

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

body {
    background-color: var(--charcoal);
    color: var(--cream);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. GLOBAL TEXTURES & ATMOSPHERE
   ========================================================================== */

/* Paper grain texture */
.global-texture {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}

/* Cinematic vignette */
.global-vignette {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10,8,6,0.4) 100%);
}

/* Section textures */
.section-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.04;
    z-index: 0;
}

.wood-texture {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 40px,
        rgba(107,66,38,0.08) 40px,
        rgba(107,66,38,0.08) 41px
    ),
    repeating-linear-gradient(
        0deg,
        transparent,
        transparent 80px,
        rgba(107,66,38,0.04) 80px,
        rgba(107,66,38,0.04) 81px
    );
}

.wood-texture.dark { opacity: 0.06; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--cream);
    line-height: 1.15;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Section labels */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--aged-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}
.section-label.light { color: var(--aged-gold-light); }

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--cream-muted);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* Accent line */
.accent-line {
    width: 60px;
    height: 2px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.accent-line span {
    display: block;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--aged-gold), var(--aged-gold-dark));
}
.accent-line.center { margin: 1.5rem auto; }
.accent-line.light span {
    background: linear-gradient(90deg, var(--aged-gold-light), var(--aged-gold));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Italian ribbon */
.italian-ribbon {
    display: flex;
    gap: 0;
    height: 2px;
    width: 40px;
    margin-top: 2rem;
}
.italian-ribbon.center-ribbon {
    margin: 3rem auto 0 auto;
}
.ir-green, .ir-white, .ir-red {
    flex: 1;
    display: block;
}
.ir-green { background: var(--ita-green); }
.ir-white { background: var(--ita-white); opacity: 0.7; }
.ir-red { background: var(--ita-red); }

/* ==========================================================================
   4. MICRO INTERACTIONS — REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--aged-gold), var(--aged-gold-dark));
    color: var(--charcoal);
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    border: 1px solid var(--aged-gold);
    border-radius: 2px;
    transition: all var(--transition-medium);
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
}
.btn-glow {
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover .btn-glow {
    left: 100%;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--aged-gold-light), var(--aged-gold));
    box-shadow: 0 4px 25px rgba(184,151,58,0.25),
                0 0 40px rgba(184,151,58,0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--cream);
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    border: 1px solid rgba(245,236,215,0.2);
    border-radius: 2px;
    transition: all var(--transition-medium);
    text-transform: uppercase;
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: var(--aged-gold);
    color: var(--aged-gold-light);
    background-color: rgba(184,151,58,0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184,151,58,0.1);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   6. CINEMATIC INTRO — PRESERVED
   ========================================================================== */
.intro-cinematic {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1200px;
}
.intro-cinematic.finishing { pointer-events: none; }
.intro-cinematic.hidden { display: none; }

.intro-skip {
    position: absolute;
    bottom: 2.5rem; right: 2.5rem;
    z-index: 10010;
    background: transparent;
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
}
.intro-skip:hover {
    color: var(--aged-gold-light);
    border-color: rgba(184,151,58,0.4);
}

.intro-scene {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: introCameraMove 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
@keyframes introCameraMove {
    0%   { transform: scale(0.92) translateY(15px); }
    25%  { transform: scale(0.97) translateY(5px); }
    50%  { transform: scale(1.0) translateY(0px); }
    75%  { transform: scale(1.03) translateY(-5px); }
    100% { transform: scale(1.08) translateY(-10px); }
}

.intro-ambient-light {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}
.intro-ambient-top {
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 60vw; height: 40vh;
    background: radial-gradient(ellipse, rgba(255,220,160,0.08) 0%, transparent 70%);
    opacity: 0;
    animation: ambientFadeIn 1.5s 0.3s ease forwards;
}
.intro-ambient-left {
    top: 30%; left: -10%;
    width: 30vw; height: 30vh;
    background: radial-gradient(ellipse, rgba(184,151,58,0.04) 0%, transparent 70%);
    opacity: 0;
    animation: ambientFadeIn 2s 0.5s ease forwards;
}
.intro-ambient-right {
    top: 30%; right: -10%;
    width: 30vw; height: 30vh;
    background: radial-gradient(ellipse, rgba(184,151,58,0.04) 0%, transparent 70%);
    opacity: 0;
    animation: ambientFadeIn 2s 0.5s ease forwards;
}
@keyframes ambientFadeIn { from { opacity: 0; } to { opacity: 1; } }

.intro-box-assembly {
    position: relative;
    width: min(55vw, 500px); height: min(55vw, 500px);
    transform-style: preserve-3d;
    z-index: 5;
}
.intro-pizza-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; transform: scale(0.85); z-index: 1;
    animation: pizzaReveal 1.2s 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.intro-pizza-img {
    width: 100%; height: 100%;
    object-fit: contain; border-radius: 50%;
    filter: brightness(0.9) saturate(1.1);
}
.intro-pizza-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(255,160,50,0.3) 0%, rgba(255,100,20,0.1) 40%, transparent 70%);
    opacity: 0; border-radius: 50%;
    animation: pizzaGlowPulse 2s 1.8s ease forwards;
    pointer-events: none; z-index: 2;
}
@keyframes pizzaReveal {
    0%   { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(0.88); }
}
@keyframes pizzaGlowPulse {
    0%   { opacity: 0; }
    40%  { opacity: 0.8; }
    100% { opacity: 1; }
}

.intro-box-lid {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    transform-origin: center top;
    transform-style: preserve-3d;
    opacity: 0;
    animation:
        boxAppear 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
        boxLidOpen 1.8s 1.2s cubic-bezier(0.42, 0, 0.28, 1) forwards;
}
.intro-box-img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: brightness(0.85) contrast(1.05);
}
.intro-box-rim {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; opacity: 0;
    animation: rimLightAppear 1.5s 0.5s ease forwards;
    background:
        linear-gradient(135deg, rgba(184,151,58,0.1) 0%, transparent 30%),
        linear-gradient(-135deg, rgba(184,151,58,0.06) 0%, transparent 30%);
}
@keyframes boxAppear {
    0%   { opacity: 0; filter: brightness(0.2); }
    60%  { opacity: 1; filter: brightness(0.6); }
    100% { opacity: 1; filter: brightness(1); }
}
@keyframes boxLidOpen {
    0%   { transform: perspective(1200px) rotateX(0deg) translateY(0) translateZ(0); opacity: 1; }
    40%  { transform: perspective(1200px) rotateX(-35deg) translateY(-15%) translateZ(30px); opacity: 1; }
    70%  { transform: perspective(1200px) rotateX(-60deg) translateY(-30%) translateZ(50px); opacity: 0.85; }
    100% { transform: perspective(1200px) rotateX(-80deg) translateY(-45%) translateZ(60px); opacity: 0; }
}
@keyframes rimLightAppear {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

.intro-vapor {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(55vw, 500px); height: min(55vw, 500px);
    pointer-events: none; z-index: 8;
}
.vapor-strand {
    position: absolute; bottom: 35%;
    width: 2px; height: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.15), rgba(255,255,255,0.02), transparent);
    border-radius: 50%; opacity: 0; filter: blur(3px);
}
.vapor-strand.v1 { left: 35%; animation: vaporRise 2.5s 2.0s ease-out forwards; }
.vapor-strand.v2 { left: 50%; animation: vaporRise 2.8s 2.2s ease-out forwards; }
.vapor-strand.v3 { left: 65%; animation: vaporRise 2.3s 2.1s ease-out forwards; }
.vapor-strand.v4 { left: 42%; animation: vaporRise 2.6s 2.3s ease-out forwards; }
.vapor-strand.v5 { left: 58%; animation: vaporRise 2.4s 2.15s ease-out forwards; }
@keyframes vaporRise {
    0%   { height: 0; opacity: 0; transform: translateX(0) scaleX(1); }
    20%  { height: 40px; opacity: 0.5; }
    50%  { height: 80px; opacity: 0.35; transform: translateX(5px) scaleX(1.5); }
    80%  { height: 120px; opacity: 0.15; transform: translateX(-3px) scaleX(2); }
    100% { height: 160px; opacity: 0; transform: translateX(8px) scaleX(2.5); }
}

.intro-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 7;
}
.intro-particle {
    position: absolute;
    width: 3px; height: 3px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,180,60,0.9), rgba(255,120,20,0.4));
    opacity: 0; pointer-events: none;
    animation: particleFloat var(--p-duration, 2s) var(--p-delay, 2s) ease-out forwards;
}
@keyframes particleFloat {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
    20%  { opacity: 0.8; transform: translate(var(--p-x1, 10px), var(--p-y1, -20px)) scale(1); }
    60%  { opacity: 0.4; transform: translate(var(--p-x2, 20px), var(--p-y2, -60px)) scale(0.7); }
    100% { opacity: 0; transform: translate(var(--p-x3, 30px), var(--p-y3, -120px)) scale(0.3); }
}

.intro-warm-expansion {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 300vmax; height: 300vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,40,0.25) 0%, rgba(180,80,20,0.15) 20%, rgba(80,20,5,0.1) 40%, transparent 60%);
    pointer-events: none; z-index: 15; opacity: 0;
    animation: warmExpand 1.8s 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes warmExpand {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30%  { opacity: 0.8; }
    60%  { opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.intro-site-transition {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000000; opacity: 0; z-index: 20;
    pointer-events: none;
    animation: siteTransitionFade 1s 3.2s ease forwards;
}
@keyframes siteTransitionFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
.intro-cinematic.fade-out {
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
@media (prefers-reduced-motion: reduce) {
    .intro-cinematic { display: none; }
}

/* ==========================================================================
   7. NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9000;
    padding: 1.5rem 0;
    transition: all var(--transition-medium);
}
.navbar.scrolled {
    background-color: rgba(26, 20, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(184,151,58,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
}

.nav-logo img {
    height: 65px;
    opacity: 0.9;
    transition: var(--transition-fast);
}
.nav-logo:hover img { opacity: 1; }

.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(245,236,215,0.6);
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition-fast);
    font-weight: 400;
}
.nav-links a:hover { color: var(--aged-gold-light); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--aged-gold), transparent);
    transition: var(--transition-medium);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta-btn {
    color: var(--charcoal);
    background: linear-gradient(135deg, var(--aged-gold), var(--aged-gold-dark));
    padding: 0.6rem 1.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all var(--transition-medium);
    border: 1px solid var(--aged-gold);
}
.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--aged-gold-light), var(--aged-gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(184,151,58,0.2);
}

/* Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px; height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9002;
}
.hamburger-menu span {
    width: 100%; height: 1px;
    background-color: var(--cream);
    transition: var(--transition-medium);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--bordeaux-dark) 100%);
    z-index: 9001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(30px);
    transition: transform 0.5s ease;
}
.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}
.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--cream);
    transition: var(--transition-fast);
}
.mobile-menu a:hover { color: var(--aged-gold-light); }
.mobile-cta-btn {
    margin-top: 1rem;
    font-family: var(--font-sans) !important;
    font-size: 0.9rem !important;
    letter-spacing: 3px;
    color: var(--aged-gold-light) !important;
    border: 1px solid var(--aged-gold);
    padding: 1rem 3rem;
}

/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--charcoal);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2s ease-in-out;
    /* Warm photo treatment */
    filter: sepia(0.15) saturate(0.85) brightness(0.7);
}
.slide.active {
    opacity: 1;
    animation: kenburns 15s linear infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, 1%); }
}

/* Multi-layer overlay */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(26,20,18,0.3) 0%, rgba(26,20,18,0.85) 100%),
        linear-gradient(to bottom, rgba(26,20,18,0.5) 0%, rgba(26,20,18,0.95) 100%);
    z-index: 2;
}
.hero-vignette {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10,8,6,0.6) 100%);
    z-index: 3;
}

/* Warm side glows (forno effect) */
.hero-warm-glow {
    position: absolute;
    width: 30vw; height: 60vh;
    z-index: 3;
    pointer-events: none;
    animation: glowPulse 6s infinite alternate ease-in-out;
}
.hero-glow-left {
    left: -5%; top: 30%;
    background: radial-gradient(ellipse at center, var(--ember-soft) 0%, transparent 70%);
}
.hero-glow-right {
    right: -5%; top: 25%;
    background: radial-gradient(ellipse at center, rgba(184,151,58,0.06) 0%, transparent 70%);
    animation-delay: 3s;
}
@keyframes glowPulse {
    0%   { opacity: 0.4; }
    50%  { opacity: 0.8; }
    100% { opacity: 0.5; }
}

/* Ember particles container */
.hero-embers {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 4; pointer-events: none; overflow: hidden;
}
.ember-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,160,40,0.8), rgba(232,98,26,0.3));
    pointer-events: none;
    opacity: 0;
    animation: emberFloat var(--e-dur, 8s) var(--e-delay, 0s) infinite ease-in-out;
}
@keyframes emberFloat {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
    10%  { opacity: var(--e-opacity, 0.6); }
    50%  { transform: translate(var(--e-x, 30px), var(--e-y, -200px)) scale(0.8); opacity: var(--e-opacity, 0.4); }
    80%  { opacity: 0.1; }
    100% { transform: translate(var(--e-x2, -20px), var(--e-y2, -400px)) scale(0.2); opacity: 0; }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.hero-italian-line {
    display: flex;
    gap: 0;
    height: 2px;
    width: 50px;
    margin-bottom: 2rem;
}
.il-green, .il-white, .il-red { flex: 1; display: block; }
.il-green { background: var(--ita-green); }
.il-white { background: var(--ita-white); opacity: 0.7; }
.il-red { background: var(--ita-red); }

.hero-since {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: var(--aged-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 9vw, 6.5rem);
    letter-spacing: 6px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    line-height: 1.05;
    color: var(--cream);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--aged-gold-light);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245,236,215,0.7);
    max-width: 550px;
    margin: 0 auto 3rem auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-line {
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, var(--aged-gold) 0%, transparent 100%);
    animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    50.1%{ transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   9. TRADITION SECTION
   ========================================================================== */
.tradition-section {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-mid) 50%, var(--charcoal) 100%);
    position: relative;
    overflow: hidden;
}

.tradition-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.tradition-content {
    flex: 1;
    position: relative;
}

.tradition-year {
    font-family: var(--font-serif);
    font-size: clamp(6rem, 12vw, 10rem);
    color: rgba(184,151,58,0.04);
    position: absolute;
    top: -40px; left: -20px;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    font-weight: 700;
}

.tradition-content .section-label,
.tradition-content .section-title,
.tradition-content .accent-line,
.tradition-content .tradition-quote,
.tradition-content .tradition-text {
    position: relative;
    z-index: 1;
}

.tradition-quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--aged-gold-light);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.tradition-text {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245,236,215,0.65);
    line-height: 1.8;
}

.tradition-images-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.tradition-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 6px solid var(--charcoal);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tradition-image.img-primary {
    width: 75%;
    align-self: flex-start;
    z-index: 2;
}
.tradition-image.img-secondary {
    width: 75%;
    align-self: flex-end;
    margin-top: -15%;
    z-index: 3;
    box-shadow: -10px 20px 50px rgba(0,0,0,0.6);
}
.tradition-image:hover {
    z-index: 10;
    transform: translateY(-5px) scale(1.02);
    border-color: var(--charcoal-light);
}
.tradition-image img {
    width: 100%; height: auto;
    display: block;
    filter: sepia(0.1) brightness(0.85) saturate(0.9);
    transition: all 0.8s ease;
}
.tradition-image:hover img {
    filter: sepia(0) brightness(1) saturate(1.1);
}

/* ==========================================================================
   10. FORNO A LENHA SECTION
   ========================================================================== */
.forno-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0;
}

.forno-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    z-index: 0;
    background-color: var(--charcoal);
}
.forno-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.25;
    filter: saturate(1.2);
}

.forno-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(to bottom, var(--charcoal) 0%, transparent 30%, transparent 70%, var(--charcoal) 100%),
        radial-gradient(ellipse at center, rgba(26,20,18,0.5) 0%, transparent 60%);
    z-index: 1;
}

.forno-brick-texture {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(200,160,120,0.1) 30px, rgba(200,160,120,0.1) 31px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(200,160,120,0.06) 60px, rgba(200,160,120,0.06) 61px);
}

.forno-glow {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80vw; height: 40vh;
    background: radial-gradient(ellipse at center bottom, rgba(232,98,26,0.12) 0%, rgba(255,140,40,0.06) 30%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: fornoGlowPulse 5s infinite alternate ease-in-out;
}
@keyframes fornoGlowPulse {
    0%   { opacity: 0.5; }
    100% { opacity: 0.9; }
}

.forno-embers {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none; overflow: hidden;
}

.forno-content {
    z-index: 3;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.forno-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    color: var(--cream);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.forno-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(245,236,215,0.7);
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto;
}

/* ==========================================================================
   11. CARDÁPIO SECTION
   ========================================================================== */
.cardapio-section {
    background: linear-gradient(180deg, var(--charcoal-mid) 0%, var(--charcoal) 100%);
    position: relative;
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pizza-card {
    background: linear-gradient(145deg, var(--charcoal-light) 0%, var(--charcoal-mid) 100%);
    border: 1px solid rgba(184,151,58,0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
}
.pizza-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184,151,58,0.2);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.4),
        0 0 30px var(--ember-glow);
}

.pizza-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.pizza-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: all 0.6s ease;
}
.pizza-card:hover .pizza-card-image img {
    filter: brightness(1) saturate(1.1);
    transform: scale(1.06);
}

.pizza-card-glow {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, var(--charcoal-light), transparent);
    z-index: 2;
    pointer-events: none;
}

.pizza-card-info {
    padding: 1.5rem 1.8rem 2rem;
}

.pizza-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--aged-gold);
    border: 1px solid rgba(184,151,58,0.25);
    padding: 0.25rem 0.8rem;
    border-radius: 2px;
    margin-bottom: 0.8rem;
}

.pizza-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.pizza-desc {
    font-size: 0.9rem;
    color: rgba(245,236,215,0.55);
    font-weight: 300;
    line-height: 1.6;
}

.cardapio-cta {
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================================
   12. EXPERIENCE SECTION
   ========================================================================== */
.experience-section {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-mid) 50%, var(--charcoal) 100%);
    position: relative;
    overflow: hidden;
}

.experience-modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.exp-module {
    padding: 2.5rem 1.8rem;
    background: linear-gradient(180deg, rgba(42,34,32,0.6) 0%, rgba(26,20,18,0) 100%);
    border-top: 2px solid rgba(184,151,58,0.1);
    transition: all var(--transition-medium);
    text-align: center;
    position: relative;
}
.exp-module:hover {
    transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(58,53,48,0.8) 0%, rgba(26,20,18,0) 100%);
    border-top-color: var(--aged-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.module-icon {
    margin-bottom: 1rem;
    color: var(--aged-gold);
    transition: color var(--transition-medium);
}
.exp-module:hover .module-icon {
    color: var(--aged-gold-light);
}

.module-line {
    width: 30px; height: 1px;
    background: rgba(184,151,58,0.2);
    margin: 0 auto 1.5rem;
    transition: var(--transition-medium);
}
.exp-module:hover .module-line {
    width: 50px;
    background: var(--aged-gold);
}

.exp-module h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--cream);
}
.exp-module p {
    font-size: 0.9rem;
    color: rgba(245,236,215,0.5);
    font-weight: 300;
    line-height: 1.6;
}

/* ==========================================================================
   13. GALLERY SECTION
   ========================================================================== */
.gallery-section {
    background: var(--charcoal-mid);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 380px 280px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.55) saturate(0.75) sepia(0.1);
}
.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.8) saturate(1) sepia(0);
}

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26,20,18,0.9), transparent);
    opacity: 0;
    transform: translateY(15px);
    transition: all var(--transition-medium);
}
.gallery-overlay h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--cream);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-main { grid-column: 1 / 3; grid-row: 1 / 2; }
.item-side-top { grid-column: 3 / 4; grid-row: 1 / 2; }
.item-side-bottom { grid-column: 1 / 2; grid-row: 2 / 3; }
.item-wide { grid-column: 2 / 4; grid-row: 2 / 3; }

/* ==========================================================================
   14. REVIEWS SECTION
   ========================================================================== */
.reviews-section {
    padding: 8rem 0;
    background: radial-gradient(ellipse at center, var(--bordeaux-dark) 0%, var(--charcoal) 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 1.5rem;
}
.reviews-score {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.reviews-score span {
    font-size: 2rem;
    color: rgba(245,236,215,0.3);
}
.reviews-count {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--aged-gold);
    margin-bottom: 2rem;
}

.reviews-divider {
    width: 40px; height: 1px;
    background: rgba(184,151,58,0.3);
    margin: 0 auto 2rem;
}

.reviews-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: rgba(245,236,215,0.75);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ==========================================================================
   15. CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    display: flex;
    gap: 5rem;
}
.contact-info { flex: 1; }

.contact-details p {
    font-size: 1.05rem;
    color: rgba(245,236,215,0.75);
    margin-bottom: 0.4rem;
}
.contact-name {
    font-family: var(--font-serif);
    font-size: 1.7rem !important;
    color: var(--cream) !important;
    margin-bottom: 1rem !important;
}
.contact-phone {
    color: var(--aged-gold-light) !important;
    margin-top: 0.8rem;
}

.contact-hours {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(184,151,58,0.08);
    border-bottom: 1px solid rgba(184,151,58,0.08);
}
.contact-hours p {
    color: rgba(245,236,215,0.55);
    margin-bottom: 0.4rem;
}
.contact-hours strong { color: var(--cream); }

.contact-actions {
    display: flex;
    gap: 1rem;
}

.contact-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(145deg, var(--charcoal-light), var(--charcoal));
    border: 1px solid rgba(184,151,58,0.12);
    padding: 3.5rem 3rem;
    text-align: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-medium);
}
.cta-box:hover {
    border-color: rgba(184,151,58,0.25);
}

.cta-ember-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ember-glow), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.cta-box:hover .cta-ember-glow { opacity: 1; }

.cta-box h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--cream);
}
.cta-box p {
    color: rgba(245,236,215,0.6);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.footer {
    padding: 3rem 0 2rem 0;
    background: var(--charcoal);
    position: relative;
}

.footer-accent-line {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,151,58,0.15), transparent);
    margin-bottom: 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.footer-logo:hover { opacity: 1; }

.footer-slogan {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--aged-gold);
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}
.footer-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245,236,215,0.45);
    transition: color var(--transition-fast);
}
.footer-nav a:hover { color: var(--aged-gold-light); }

.footer-location {
    text-align: right;
}
.footer-location p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245,236,215,0.35);
}
.footer-rs {
    font-size: 0.7rem !important;
    letter-spacing: 3px !important;
    margin-top: 0.3rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    text-align: center;
}
.footer-ribbon {
    margin: 0 auto;
    width: 30px;
    opacity: 0.5;
}

/* ==========================================================================
   17. SECTIONS PADDING
   ========================================================================== */
.section {
    padding: 8rem 0;
    position: relative;
}

/* ==========================================================================
   18. RESPONSIVE — MOBILE FIRST
   ========================================================================== */
@media (max-width: 1024px) {
    .experience-modules {
        grid-template-columns: repeat(2, 1fr);
    }
    .tradition-container, .contact-wrapper {
        gap: 3rem;
    }
    .gallery-grid {
        grid-template-rows: 300px 250px;
    }
}

@media (max-width: 768px) {
    .section { padding: 5rem 0; }

    /* Navbar */
    .nav-links, .nav-cta-btn { display: none; }
    .hamburger-menu { display: flex; }
    .nav-container { padding: 0 1.5rem; }

    /* Hero */
    .hero-title { letter-spacing: 3px; }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .hero-actions a { width: 100%; text-align: center; }

    /* Tradition */
    .tradition-container { flex-direction: column; }
    .tradition-images-wrapper { width: 100%; margin-top: 2rem; }
    .tradition-image.img-primary { width: 85%; }
    .tradition-image.img-secondary { width: 85%; margin-top: -10%; }

    /* Forno */
    .forno-section { min-height: 60vh; }

    /* Cardápio */
    .pizza-grid { grid-template-columns: 1fr; }

    /* Experience */
    .experience-modules { grid-template-columns: 1fr 1fr; }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 260px);
    }
    .item-main, .item-side-top, .item-side-bottom, .item-wide {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* Contact */
    .contact-wrapper { flex-direction: column; }
    .contact-actions { flex-direction: column; }
    .contact-actions a { width: 100%; text-align: center; }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav { flex-direction: column; gap: 1rem; }
    .footer-location { text-align: center; }

    /* Intro mobile */
    .intro-box-assembly {
        width: min(80vw, 360px);
        height: min(80vw, 360px);
    }
    .intro-vapor {
        width: min(80vw, 360px);
        height: min(80vw, 360px);
    }
    .intro-skip {
        bottom: 1.5rem; right: 1.5rem;
        padding: 0.4rem 1.2rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .section { padding: 4rem 0; }
    .container { padding: 0 1.2rem; }
    .hero-content { padding: 0 1rem; }

    .experience-modules { grid-template-columns: 1fr; }

    .cta-box { padding: 2.5rem 1.5rem; }

    .intro-box-assembly {
        width: min(88vw, 300px);
        height: min(88vw, 300px);
    }
    .intro-vapor {
        width: min(88vw, 300px);
        height: min(88vw, 300px);
    }
}
