:root {
    --primary: #1b5e20;
    --primary-dark: #0d3c13;
    --primary-light: #4caf50;
    --secondary: #388e3c;
    --accent: #66bb6a;
    --sidebar: #2e7d32;
    --sidebar-hover: #1b5e20;
    --content-bg: #f1f8e9;
    --card-bg: #ffffff;
    --text: #1b5e20;
    --text-light: #4caf50;
    --text-muted: #689f38;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(30, 60, 30, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--content-bg);
    display: flex;
    min-height: 100vh;
}

ul {
    list-style: none;
}

.imagem-redonda {
  width: 150px; /* Largura */
  height: 150px; /* Altura */
  border-radius: 50%; /* Torna a imagem redonda */
  object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--sidebar);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    border-right: 3px solid var(--primary-dark);
}

.sidebar-header {
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--primary-dark);
}

.sidebar-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.sidebar-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.sidebar-menu {
    padding: 2rem 0;
}

.menu-item {
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    border-left: 4px solid transparent;
    font-weight: 500;
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    background: var(--sidebar-hover);
    color: var(--white);
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.menu-item i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.menu-text {
    flex: 1;
    font-size: 1rem;
}

.menu-badge {
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    min-height: 100vh;
    background: var(--content-bg);
}

/* Top Header */
.top-header {
    background: var(--white);
    padding: 1.8rem 2.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-light);
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--content-bg);
}

/* Content Area */
.content-area {
    padding: 2.5rem;
}

/* Seções de Conteúdo */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Memorial Section */
.memorial-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.memorial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.memorial-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.memorial-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
}

/* Linha do Tempo Integrada */
.timeline-integrated {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.timeline-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.timeline-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Timeline Compact Style */
.timeline-compact {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-compact::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.timeline-item-compact {
    position: relative;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.timeline-item-compact:hover .timeline-card {
    transform: translateX(5px);
    border-left-color: var(--accent);
}

.timeline-item-compact.active .timeline-card {
    border-left-color: var(--primary);
    background: rgba(255, 255, 255, 0.98);
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--white);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item-compact.active .timeline-marker {
    transform: scale(1.2);
}

.marker-military {
    background: #5D4037;
}

.marker-education {
    background: #1976D2;
}

.marker-corporate {
    background: #F57C00;
}

.marker-academic {
    background: #7B1FA2;
}

.marker-award {
    background: #D32F2F;
}

.marker-teaching {
    background: var(--primary);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.9);
    margin-left: 60px;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.timeline-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-year {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
}

.timeline-role-compact {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.timeline-company-compact {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-toggle {
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-toggle i {
    transition: var(--transition);
}

.timeline-item-compact.active .timeline-toggle i {
    transform: rotate(180deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--content-bg);
    margin-top: 0.5rem;
    border-radius: 8px;
}

.timeline-item-compact.active .timeline-details {
    max-height: 300px;
}

.details-content {
    padding: 1rem;
}

.details-description {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.details-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.highlight-item {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.highlight-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.highlight-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Cards do Memorial */
.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.memorial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(76, 175, 80, 0.2);
    position: relative;
}

.memorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 60, 30, 0.15);
    border-color: var(--accent);
}

.memorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 5px 0 0 5px;
}

.foto-redonda {
  width: 150px;       /* tamanho da imagem */
  height: 150px;
  border-radius: 50%; /* deixa redondo */
  object-fit: cover;  /* corta o excesso e mantém proporção */
  border: 3px solid #ccc; /* opcional */
}



/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 1.5rem;
    }

    .memorial-section {
        padding: 2.5rem 1.5rem;
    }

    .memorial-title {
        font-size: 2.2rem;
    }

    .memorial-grid {
        grid-template-columns: 1fr;
    }

    .timeline-compact::before {
        left: 20px;
    }

    .timeline-marker {
        left: 10px;
    }

    .timeline-card {
        margin-left: 40px;
        padding: 1rem;
    }
}