:root {
    /* Nova Paleta - igual ao projeto principal */
    --primary: #C7FFE1;
    --primary-light: #D9FFEB;
    --primary-dark: #9FE8C3;
    --accent: #7BE0AE;
    --accent-light: #E8FFF3;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --error: #EF4444;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Header - igual ao projeto principal */
.header {
    background: #FFFFFF;
    border-bottom: 3px solid #C7FFE1;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: #7BE0AE;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: inline-block;
    transition: none;
}

.logo:hover {
    background-color: transparent !important;
    filter: none;
    transform: none;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-text span {
    color: #7BE0AE;
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav a:hover {
    color: #059669;
    background: #E8FFF3;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    width: 0;
    height: 2px;
    background: #7BE0AE;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: calc(100% - 1.5rem);
}

/* ============ MENU HAMBURGUER ============ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #374151;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Overlay do menu mobile */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: #E8FFF3;
    color: #059669;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero da página de história */
.page-hero {
    background: linear-gradient(135deg, #059669 0%, #7BE0AE 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn-voltar {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: #059669;
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    border: 2px solid #059669;
}

.btn-voltar:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Container da história */
.historia-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
    border-left: 3px solid #7BE0AE;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.year {
    background: #059669;
    color: white;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.year.destaque {
    background: #7BE0AE;
    color: var(--gray-900);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.timeline-text {
    color: var(--gray-700);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.timeline-text strong {
    color: #059669;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.timeline-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

.mensagem-final {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.mensagem-final p {
    margin: 0.25rem 0;
}

.mensagem-final p:first-child {
    color: #059669;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer p:first-child {
    margin-bottom: 0.5rem;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #059669;
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #047857;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* ============ RESPONSIVO ============ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }
    
    .page-hero {
        padding: 3rem 1.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}