:root {
    --sidebar-width: 320px;
    --primary-color: #1a1a1a;
    --secondary-color: #f4f4f4;
    --accent-color: #c5a059;
    /* Muted Gold */
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 24px;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-header .logo {
    display: block;
    margin-bottom: 5px;
}

.sidebar-logo {
    height: 100px;
    width: auto;
    display: block;
}

.tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    border-right: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    border-right-color: var(--accent-color);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

/* Language Switcher - standalone block */
.sidebar-lang {
    padding: 28px 0 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-lang a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-lang a:hover,
.sidebar-lang a.active {
    color: var(--white);
}

/* Sidebar Associations - very subtle gray */
.sidebar-associations {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.sidebar-associations a {
    color: rgba(255, 255, 255, 0.18);
    text-decoration: none;
    font-size: 0.6rem;
    letter-spacing: 0.6px;
    transition: var(--transition);
}

.sidebar-associations a:hover {
    color: rgba(255, 255, 255, 0.4);
}

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-lang a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-lang a:hover,
.mobile-lang a.active {
    color: var(--white);
}

.flag-icon {
    vertical-align: middle;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    filter: grayscale(100%) saturate(0.1);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sidebar-lang a:hover .flag-icon,
.mobile-lang a:hover .flag-icon,
.sidebar-lang a.active .flag-icon,
.mobile-lang a.active .flag-icon {
    filter: grayscale(0%) saturate(1);
    opacity: 1;
}

.contact-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.4rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* ========== Sidebar Responsive: Height-Based ========== */

/* Moderate height screens */
@media (max-height: 800px) {
    .sidebar {
        padding: 24px 20px;
    }
    .sidebar-logo {
        height: 70px;
    }
    .sidebar-nav li {
        margin-bottom: 3px;
    }
    .sidebar-nav a {
        padding: 8px 0;
    }
    .sidebar-lang {
        padding: 18px 0 12px;
    }
    .sidebar-footer {
        padding-top: 16px;
    }
    .sidebar-associations {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }
    .contact-info p {
        font-size: 0.75rem;
    }
    .social-links {
        margin-top: 12px;
    }
}

/* Short height screens */
@media (max-height: 650px) {
    .sidebar {
        padding: 18px 16px;
    }
    .sidebar-logo {
        height: 55px;
    }
    .sidebar-nav li {
        margin-bottom: 2px;
    }
    .sidebar-nav a {
        padding: 6px 0;
        font-size: 0.85rem;
    }
    .sidebar-nav i {
        font-size: 1rem;
    }
    .sidebar-lang {
        padding: 12px 0 8px;
    }
    .sidebar-lang a {
        font-size: 0.6rem;
    }
    .sidebar-footer {
        padding-top: 12px;
    }
    .sidebar-associations {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .sidebar-associations a {
        font-size: 0.55rem;
    }
    .contact-info p {
        font-size: 0.65rem;
        margin-bottom: 3px;
    }
    .social-links {
        margin-top: 8px;
    }
    .social-links a {
        font-size: 1.2rem;
    }
}

/* Very short height screens */
@media (max-height: 550px) {
    .sidebar {
        padding: 12px 12px;
    }
    .sidebar-logo {
        height: 40px;
    }
    .sidebar-nav a {
        padding: 4px 0;
        font-size: 0.8rem;
    }
    .sidebar-nav i {
        font-size: 0.85rem;
        width: 16px;
    }
    .sidebar-lang {
        padding: 8px 0 4px;
    }
    .sidebar-footer {
        padding-top: 8px;
    }
    .sidebar-associations {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    .sidebar-associations a {
        font-size: 0.5rem;
    }
    .contact-info p {
        font-size: 0.6rem;
        margin-bottom: 2px;
    }
    .social-links {
        margin-top: 6px;
        gap: 10px;
    }
    .social-links a {
        font-size: 1rem;
    }
}

/* Medium-width screens: reduce sidebar width before mobile breakpoint */
@media (min-width: 1025px) and (max-width: 1300px) {
    :root {
        --sidebar-width: 280px;
    }
    .sidebar {
        padding: 24px 20px;
    }
    .sidebar-logo {
        height: 80px;
    }
    .sidebar-nav a {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    .sidebar-lang a {
        font-size: 0.6rem;
    }
    .sidebar-lang {
        padding: 22px 0 14px;
    }
}

/* ========== Institutional Page (Consolidated - ToC + Sections) ========== */

/* Hero */
.institucional-hero {
    padding: 140px 0 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a3a 100%);
    text-align: center;
}

.institucional-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.institucional-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.institucional-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.institucional-hero-content .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout: ToC Sidebar + Content */
.institucional-layout {
    display: flex;
    gap: 0;
    position: relative;
}

/* ToC Sidebar (sticky) — flush to main-content left edge */
.institucional-toc {
    flex: 0 0 260px;
    position: relative;
}

.institucional-toc-inner {
    position: sticky;
    top: 40px;
    padding: 28px 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.toc-title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.toc-title i {
    margin-right: 8px;
    color: var(--accent-color);
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 4px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-link i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #bbb;
    transition: color 0.2s ease;
}

.toc-link:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
}

.toc-link:hover i {
    color: var(--accent-color);
}

.toc-link.active {
    color: var(--primary-color);
    background: rgba(197, 160, 89, 0.08);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.toc-link.active i {
    color: var(--accent-color);
}

.toc-back {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.toc-back a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-back a:hover {
    color: var(--accent-color);
}

/* Main Content Area */
.institucional-content {
    flex: 1;
    min-width: 0;
    padding: 50px 8% 80px 40px;
}

/* Sections */
.institucional-section {
    position: relative;
    padding: 40px 0;
    scroll-margin-top: 30px;
    padding-left: 20px;
    border-left: 2px solid var(--accent-color);
}

.institucional-section + .institucional-section {
    border-top: 1px solid #eee;
    margin-top: 20px;
}


.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.section-subtitle-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.section-update {
    display: block;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 32px 0 16px;
    line-height: 1.3;
}

.institucional-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.institucional-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 28px 0 12px;
}

.institucional-section strong {
    color: var(--primary-color);
}

/* Valores Grid (Carreiras) */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.valor-card {
    padding: 28px 24px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.valor-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.valor-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Carreiras CTA Card */
.carreiras-cta-card {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a3a 100%);
    border-radius: 10px;
    text-align: center;
}

.carreiras-cta-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 16px;
}

.carreiras-cta-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carreiras-cta-card .btn-primary {
    display: inline-block;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .institucional-layout {
        flex-direction: column;
        gap: 0;
    }

    .institucional-toc {
        flex: none;
        width: 100%;
        padding: 0 20px;
    }

    .institucional-toc-inner {
        position: relative;
        top: 0;
        margin: 0 0 30px;
        border-radius: 10px;
        border-left: 1px solid #eee;
    }

    .institucional-content {
        padding: 20px 20px 60px;
    }

    .institucional-section {
        padding-left: 0;
        border-left: none;
    }

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

    .valores-grid {
        grid-template-columns: 1fr;
    }
}
/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--primary-color);
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.mobile-header .logo {
    display: flex;
    align-items: center;
}

.mobile-logo {
    height: 40px;
    width: auto;
    display: block;
}

.hamburger {
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background-color: var(--white);
}

.main-content p {
    text-align: justify;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    font-weight: 300;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-text {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-text:hover {
    gap: 15px;
    color: var(--accent-color);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.hero-scroll-indicator .line {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    background-color: var(--primary-color);
    color: var(--white);
}

.stat-box {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box .number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

/* General Section Styles */
.section-padding {
    padding: 100px 0;
}

.content-container {
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

/* Grid Areas */
.grid-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.area-item {
    background-color: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.area-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.area-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.icon-box {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.area-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.area-item p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.link-arrow {
    position: absolute;
    bottom: 40px;
    right: 40px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.area-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.highlight-item {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.highlight-item h3 {
    color: var(--white);
}

.highlight-item p {
    color: rgba(255, 255, 255, 0.7);
}

.btn-outline-dark {
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: auto;
}

.btn-outline-dark:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Insights List — uniform horizontal cards */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.insight-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-left: 3px solid var(--accent-color);
}

.insight-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.insight-card-img {
    width: 160px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.insight-card-body {
    flex: 1;
    min-width: 0;
}

.insight-card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.insight-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px;
    line-height: 1.3;
}

.insight-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 12px;
}

.insight-card-date {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.insight-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.insight-card-link:hover {
    gap: 10px;
}

/* Pre-Footer CTA */
.pre-footer-cta {
    background-color: #111;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.pre-footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    text-align: justify;
    text-align-last: center;
}

.pre-footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-align: justify;
    text-align-last: center;
}

/* Footer */
.main-footer {
    background-color: #0a0a0a;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

/* ===== Footer Link Cards ===== */
.footer-links li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 16px;
    border-radius: 4px;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accent bar — hidden by default, animates in from center on hover */
.footer-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 55%;
    background: var(--accent-color);
    border-radius: 2px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links li:hover::before {
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
}

/* Subtle gold gradient background on hover */
.footer-links li:hover {
    background: linear-gradient(90deg,
        rgba(197, 160, 89, 0.08) 0%,
        rgba(197, 160, 89, 0.02) 60%,
        transparent 100%);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.45;
    stroke: currentColor;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover .footer-link-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Coluna de Áreas no Footer */
.footer-links .col {
    min-width: 150px;
}

.footer-links .col-atuacao {
    min-width: 0;
    flex: 1;
    max-width: 550px;
}

.footer-links .col-atuacao h4 {
    text-align: left;
}

.two-columns {
    display: flex;
    gap: 40px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.two-columns ul {
    flex: 1;
    min-width: 0;
}

.two-columns li {
    white-space: normal;
    word-break: break-word;
}

.two-columns a {
    white-space: normal;
    word-break: break-word;
}

.areas-list li {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.areas-list a {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.area-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ==================================================================
   REDUCED DESKTOP (≥1025px, sidebar visible, content area squeezed)
   Fixes overflow by reducing padding, gaps, and min-width constraints
   ================================================================== */
@media (max-width: 1400px) {
    /* Reduce content-container padding so content has more room */
    .content-container {
        padding: 0 5%;
    }

    .hero-container {
        padding: 0 5%;
    }

    /* Reduce sidebar horizontal padding */
    .sidebar {
        padding: 40px 20px;
    }

    /* Reduce section padding slightly */
    .section-padding {
        padding: 80px 0;
    }

    /* ===== Footer: reduce gaps so columns fit side by side ===== */
    .footer-links {
        gap: 30px;
    }

    .two-columns {
        gap: 20px;
    }

    /* Allow text to wrap instead of forcing overflow */
    .two-columns li,
    .two-columns a,
    .footer-links a {
        white-space: normal;
        word-break: break-word;
    }

    /* ===== Grid areas: reduce min card width at reduced desktop ===== */
    .grid-areas {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    /* ===== Institutional: reduce ToC sidebar ===== */
    .institucional-toc {
        flex: 0 0 220px;
    }

    .institucional-content {
        padding: 40px 5% 60px 30px;
    }

    /* ===== Service pages: reduce hero padding ===== */
    .service-hero {
        padding: 120px 0 80px;
    }

    .service-hero-content .lead {
        font-size: 1.1rem;
    }

    /* ===== Process timeline: prevent overflow ===== */
    .process-timeline {
        padding: 0 5%;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }

    /* Force footer to stack vertically */
    .footer-content {
        flex-direction: column;
    }

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

    /* Reset min-width constraints that force overflow */
    .footer-links .col,
    .footer-links .col-atuacao {
        min-width: 0;
        width: 100%;
    }

    .two-columns {
        flex-direction: column;
        gap: 0;
    }

    .two-columns ul {
        min-width: 0;
    }

    .two-columns li,
    .two-columns a,
    .footer-links a {
        white-space: normal;
        word-break: break-word;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .insight-card {
        flex-direction: column;
    }

    .insight-card-img {
        width: 100%;
        height: 180px;
    }

    /* Fix institutional hero padding */
    .institucional-hero {
        padding: 100px 0 50px;
    }

    .institucional-hero-content h1 {
        font-size: 2rem;
    }

    /* Fix institutional content padding for tablets */
    .institucional-content {
        padding: 30px 24px 60px;
    }

    /* Service area hero padding reduction */
    .service-hero {
        padding: 100px 0 70px;
    }

    /* Reduce section padding on mobile */
    .section-padding {
        padding: 60px 0;
    }

    .pre-footer-cta {
        padding: 50px 0;
    }

    .pre-footer-cta h2 {
        font-size: 1.6rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .institucional-content {
        padding: 20px 20px 60px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 20px;
    }

    .content-container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-strip {
        flex-wrap: wrap;
    }

    .stat-box {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Institutional responsive refinements */
    .institucional-hero-content h1 {
        font-size: 1.8rem;
    }

    .institucional-section {
        padding-left: 14px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .carreiras-cta-card {
        padding: 30px 20px;
    }

    .footer-links .col h4 {
        font-size: 0.85rem;
    }

    /* Stack institutional layout on tablet */
    .institucional-layout {
        flex-direction: column;
    }

    .institucional-toc {
        flex: none;
        width: 100%;
    }

    .institucional-toc-inner {
        position: static;
        border-radius: 10px;
        border: 1px solid #eee;
    }

    .institucional-content {
        padding: 30px 20px 60px;
    }
}

@media (max-width: 480px) {
    .institucional-hero {
        padding: 80px 0 40px;
    }

    .institucional-hero-content h1 {
        font-size: 1.5rem;
    }

    .institucional-content {
        padding: 16px 12px 50px;
    }

    .institucional-section {
        padding: 24px 0;
        padding-left: 10px;
    }

    .institucional-toc-inner {
        padding: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .carreiras-cta-card {
        padding: 24px 16px;
    }

    .carreiras-cta-card h4 {
        font-size: 1.1rem;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -4px;
    top: 6px;
    width: 9px;
    height: 9px;
    background-color: var(--white);
    border: 1px solid var(--text-main);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.highlight .timeline-marker {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.timeline-year {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 1rem;
    }

    .timeline-line {
        left: 0;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -4px;
    }
}

/* About Section Core - unified container */
.about-content {
    max-width: 780px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.35rem;
    color: #777;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Reduce top padding when following another bg-white section */
#quem-somos.bg-white {
    padding-top: 40px;
}

/* História Texto (Nossa História) */
.historia-texto {
    max-width: 100%;
    margin: 0 auto;
}

.historia-texto p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.historia-texto p strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Associações */
.associacoes {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.associacoes h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.logos-associacoes {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.associacao-item {
    text-align: center;
    padding: 40px 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    min-width: 280px;
    max-width: 320px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.associacao-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.logo-wrapper {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    position: relative;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background-color: var(--accent-color);
}

.logo-associacao {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: var(--transition);
}

.associacao-item:hover .logo-associacao {
    filter: grayscale(0%);
    opacity: 1;
}

.associacao-nome {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 6px;
    margin-top: 20px;
    opacity: 0.7;
}

.associacao-descricao {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    opacity: 0.6;
}

/* Footer Associações - Faixa Full Width */
.footer-associacoes {
    margin: 60px calc(-50vw + 50%) 0 calc(-50vw + 50%);
    padding: 50px calc(50vw - 50%);
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-associacoes-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    font-weight: 600;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: var(--transition);
    object-fit: contain;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer Badge Links */
.footer-badge-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Footer Badges (Texto) */
.footer-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    min-width: 200px;
    transition: var(--transition);
}

.footer-badge:hover {
    border-color: rgba(197, 160, 89, 0.5);
    background-color: rgba(197, 160, 89, 0.05);
    transform: translateY(-3px);
}

.badge-sigla {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.badge-nome {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    max-width: 180px;
}

.footer-badge:hover .badge-nome {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .historia-texto p {
        text-align: justify;
        font-size: 1rem;
    }

    .logos-associacoes {
        flex-direction: column;
        gap: 40px;
    }

    .associacao-item {
        min-width: 100%;
        max-width: 100%;
    }

    .footer-logos {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo {
        max-width: 120px;
    }
}

/* Print Styles */
@media print {

    /* Page Setup */
    @page {
        margin: 0.5cm;
        size: auto;
        /* Use browser default or A4 */
    }

    /* Page Breaks for Menu Sections */
    #atuacao,
    #quem-somos,
    #insights,
    #contato {
        page-break-before: always;
        break-before: page;
        padding-top: 40px;
    }

    /* Force Background Colors */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: #fff !important;
    }

    /* Sidebar Visibility & Positioning */
    .sidebar {
        display: block !important;
        position: fixed !important;
        /* Repeats on every page in modern browsers */
        left: 0;
        top: 0;
        bottom: 0;
        height: 100%;
        width: 260px !important;
        background-color: #1a1a1a !important;
        color: #fff !important;
        z-index: 9999;
        padding-top: 20px;
    }

    /* Ensure Sidebar Text is Visible */
    .sidebar a,
    .sidebar p,
    .sidebar .logo {
        color: #fff !important;
        text-shadow: none !important;
    }

    .sidebar-nav ul li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hide Mobile Header */
    .mobile-header {
        display: none !important;
    }

    /* Main Content Layout */
    .main-content {
        margin-left: 320px !important;
        /* Clear the sidebar */
        width: calc(100% - 320px) !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Typography & Colors */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000 !important;
        page-break-after: avoid;
    }

    p,
    span,
    div {
        color: #000;
    }

    /* Exception for white text on dark backgrounds (like Hero) */
    .hero h1,
    .hero p,
    .hero-subtitle,
    .btn-primary,
    .btn-text {
        color: #fff !important;
        /* Keep hero text white if background prints */
    }

    .hero p {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Hero Section */
    .hero {
        height: auto !important;
        min-height: 400px;
        page-break-inside: avoid;
        background-size: cover !important;
    }

    /* Timeline */
    .timeline-line {
        background-color: #ccc !important;
        -webkit-print-color-adjust: exact;
    }

    .timeline-marker {
        border: 2px solid #000 !important;
    }

    /* Grid Layouts - Force Desktop View */
    .grid-areas {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        /* Force 3 columns */
        gap: 20px !important;
    }

    .insight-card {
        page-break-inside: avoid;
    }

    .stats-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Prevent wrapping */
    }

    .stat-box {
        flex: 1 !important;
        border-bottom: none !important;
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .area-item,
    .stat-box {
        page-break-inside: avoid;
    }

    /* Hide Scroll Indicators & Interactive fluff */
    .hero-scroll-indicator {
        display: none !important;
    }

    /* Links */
    a {
        text-decoration: none !important;
    }

    /* Ensure images print */
    img {
        max-width: 100% !important;
    }
}

/* ===========================================================
   SERVICE / PRACTICE AREA PAGES
   Styles for area.php template (service hero, benefits, CTA)
   =========================================================== */

.service-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(181,153,91,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.service-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.service-hero .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.service-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #c9a857);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(181, 153, 91, 0.1), transparent);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: justify;
    text-align-last: center;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }

    .service-stats {
        gap: 30px;
    }

    .process-step {
        flex-direction: column;
        gap: 20px;
    }

    .process-step::after {
        left: 30px;
        top: 60px;
    }
}

/* ===== Process Timeline (Metodologia) ===== */
.process-timeline {
    position: relative;
    margin-top: 60px;
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #c9a857);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -50px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), rgba(181, 153, 91, 0.2));
}

.process-step:last-child::after {
    display: none;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Expertise List (O Que Fazemos) ===== */
.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.expertise-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.expertise-item strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 5px;
}

.expertise-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== CTA Content Wrapper ===== */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Article Listing (Card Grid) ========== */
.article-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 35px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-color);
}

.article-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.article-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.article-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px;
    line-height: 1.3;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: var(--accent-color);
}

.article-card-meta {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 16px;
}

.article-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0 0 20px;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.article-card-link:hover {
    gap: 12px;
}

/* Article Content: APA Reference Styling */
.artigo-content .referencia {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light);
    padding-left: 2em;
    text-indent: -2em;
    margin-bottom: 12px;
}

.artigo-content .institucional-section p {
    margin-bottom: 16px;
}

/* Article responsive */
@media (max-width: 768px) {
    .article-card {
        padding: 24px 20px;
    }
    .article-card-title {
        font-size: 1.2rem;
    }
}

/* ========== Article Floating Toolbar ========== */
.article-toolbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
    position: relative;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

.article-toolbar.toolbar-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
    z-index: 100;
}

.article-toolbar-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Each group container ── */
.toolbar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 2px 14px;
}

.toolbar-group:first-child {
    padding-left: 0;
}

.toolbar-group:last-child {
    padding-right: 0;
}

/* Group label (above the buttons) */
.toolbar-group-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    line-height: 1;
}

/* Inner row for each group's buttons */
.toolbar-lang-btns,
.toolbar-access-btns,
.toolbar-export-btns,
.toolbar-share-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Divider between groups ── */
.toolbar-divider {
    width: 1px;
    align-self: stretch;
    background: #e8e8e8;
    margin: 0 2px;
    flex-shrink: 0;
}

/* ── Language buttons ── */
.toolbar-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #aaa;
    text-decoration: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.toolbar-lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(197, 160, 89, 0.04);
}

.toolbar-lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* ── Generic toolbar button ── */
.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.toolbar-btn:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: var(--accent-color);
}

/* Icon-only buttons (accessibility & share) */
.toolbar-btn-icon {
    padding: 4px 6px;
    min-width: 28px;
    justify-content: center;
}

/* Action buttons with text label (PDF, Subscribe) */
.toolbar-btn-action {
    padding: 5px 14px;
    font-size: 0.78rem;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.toolbar-btn-action:hover {
    background: #fff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.toolbar-btn i {
    font-size: 0.85rem;
}

/* A+ and A- icon styling */
.a-icon {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
}

.a-icon sub,
.a-icon sup {
    font-family: inherit;
    font-size: 0.6rem;
}

/* ========== Article Subscribe Panel ========== */
.article-subscribe {
    background: #f9f8f4;
    border-top: 2px solid var(--accent-color);
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    position: relative;
}

.article-subscribe-inner {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.article-subscribe-inner .subscribe-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.article-subscribe-inner h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 0 8px;
}

.article-subscribe-inner p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 20px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--accent-color);
}

.subscribe-form .btn-primary {
    padding: 12px 24px;
    white-space: nowrap;
}

.subscribe-note {
    font-size: 0.75rem !important;
    color: #aaa !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.subscribe-close {
    position: absolute;
    top: -5px;
    right: -5px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.subscribe-close:hover {
    color: #666;
}

.subscribe-success {
    padding: 20px 0;
}

.subscribe-success h4 {
    margin-top: 12px;
}

/* ========== Article High Contrast Mode ========== */
body.article-high-contrast {
    --primary-color: #000 !important;
    --text-main: #000 !important;
    --text-light: #222 !important;
    --accent-color: #8b6914 !important;
    --bg-light: #fff !important;
    --bg-white: #fff !important;
}

body.article-high-contrast .artigo-content,
body.article-high-contrast .institucional-hero {
    background: #fff !important;
    color: #000 !important;
}

body.article-high-contrast .institucional-hero {
    background: #1a1a2e !important;
}

body.article-high-contrast .artigo-content p,
body.article-high-contrast .artigo-content li {
    color: #000 !important;
}

body.article-high-contrast .article-card {
    border-color: #000 !important;
    background: #fff !important;
}

/* ========== Article Font Size Classes ========== */
.artigo-content {
    --article-font-size: 0.95rem;
    --article-heading-size: 1.4rem;
}

.artigo-content p,
.artigo-content li {
    font-size: var(--article-font-size);
    line-height: 1.8;
}

.artigo-content .section-title {
    font-size: var(--article-heading-size);
}

/* Toolbar responsive */
@media (max-width: 900px) {
    .toolbar-group {
        padding: 2px 10px;
    }
}

@media (max-width: 768px) {
    .article-toolbar {
        padding: 10px 0;
    }

    .article-toolbar-inner {
        gap: 0;
    }

    .toolbar-divider {
        display: none;
    }

    .toolbar-group {
        padding: 4px 8px;
    }

    .toolbar-group-label {
        display: none;
    }

    .toolbar-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .toolbar-btn-icon {
        min-width: 24px;
        padding: 3px 4px;
    }

    .toolbar-btn-action {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .toolbar-lang-btn {
        width: 26px;
        height: 22px;
        font-size: 0.6rem;
    }

    .toolbar-lang-btns,
    .toolbar-access-btns,
    .toolbar-export-btns,
    .toolbar-share-btns {
        gap: 3px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .article-subscribe-inner h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .article-toolbar-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .article-toolbar-inner::-webkit-scrollbar {
        display: none;
    }

    .toolbar-group {
        flex-shrink: 0;
        padding: 4px 6px;
    }
}

/* ========== PDF Export Print Styles ========== */
/* Hidden by default, only visible when printing with .exporting-pdf class */
.pdf-header {
    display: none;
}

/* Print-specific layout */
@media print {
    body.exporting-pdf .sidebar,
    body.exporting-pdf .mobile-header,
    body.exporting-pdf .main-footer,
    body.exporting-pdf .pre-footer-cta,
    body.exporting-pdf .institucional-toc,
    body.exporting-pdf .article-toolbar,
    body.exporting-pdf .article-subscribe,
    body.exporting-pdf .institucional-hero {
        display: none !important;
    }

    body.exporting-pdf .institucional-layout {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.exporting-pdf .artigo-content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.exporting-pdf .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* PDF Header — editorial document header */
    body.exporting-pdf .pdf-header {
        display: flex !important;
        flex-direction: column;
        padding: 20px 0 16px;
        border-bottom: 2px solid #c5a059;
        margin-bottom: 32px;
        page-break-after: avoid;
    }

    body.exporting-pdf .pdf-header-logomarca {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    body.exporting-pdf .pdf-logo {
        width: 28px;
        height: 28px;
    }

    body.exporting-pdf .pdf-header-firm {
        display: flex;
        flex-direction: column;
    }

    body.exporting-pdf .pdf-header-firm strong {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1rem;
        color: #1a1a2e;
        line-height: 1.2;
    }

    body.exporting-pdf .pdf-header-firm span {
        font-size: 0.7rem;
        color: #888;
        line-height: 1.2;
    }

    body.exporting-pdf .pdf-header-meta {
        display: flex;
        justify-content: space-between;
        font-size: 0.65rem;
        color: #999;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }

    /* Article content print formatting */
    body.exporting-pdf .artigo-content {
        font-size: 11pt !important;
        line-height: 1.7 !important;
        color: #000 !important;
    }

    body.exporting-pdf .artigo-content .section-title {
        font-size: 14pt !important;
        color: #1a1a2e !important;
        page-break-after: avoid;
    }

    body.exporting-pdf .artigo-content p,
    body.exporting-pdf .artigo-content li {
        font-size: 11pt !important;
        line-height: 1.7 !important;
        color: #000 !important;
    }

    body.exporting-pdf .artigo-content .referencia {
        font-size: 9pt !important;
        line-height: 1.5 !important;
        padding-left: 20px !important;
        margin-bottom: 4px !important;
    }

    body.exporting-pdf .artigo-content section {
        page-break-inside: avoid;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }

    /* Page setup */
    body.exporting-pdf {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    @page {
        margin: 1.5cm 2cm;
        size: A4;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color, #c5a059);
    color: var(--primary-color, #1a1a1a);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: whatsappFloatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background: #b8924a;
}

.whatsapp-float:active {
    transform: translateY(0) scale(0.95);
}

.whatsapp-float-icon {
    width: 28px;
    height: 28px;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color, #1a1a1a);
    color: var(--white, #fff);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--primary-color, #1a1a1a);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}

@keyframes whatsappFloatIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile: slightly smaller, no tooltip to avoid overlap */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float-icon {
        width: 24px;
        height: 24px;
    }
    .whatsapp-float-tooltip {
        display: none;
    }
}

/* ===========================================================
   FIX: régua visual única das seções principais
   =========================================================== */

.content-container {
    width: min(1000px, calc(100% - 80px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.section-header,
.historia-texto,
.about-content,
.associacoes,
.insights-list {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.about-content {
    max-width: 100%;
}

p.about-lead {
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 28px;
    color: var(--text-light);
}

.historia-texto {
    max-width: 100%;
}

.historia-texto p {
    font-size: 1rem;
    line-height: 1.85;
}

.associacoes {
    width: 100%;
    margin-top: 70px;
    padding-top: 70px;
}

.logos-associacoes {
    gap: 50px;
}

.insights-list {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.insight-card {
    width: 100%;
}

.flex-header {
    width: 100%;
}

@media (max-width: 768px) {
    .content-container {
        width: calc(100% - 40px);
    }

    .about-content {
        max-width: 100%;
    }

    .about-lead {
        text-align: left;
        font-size: 1rem;
    }

    .logos-associacoes {
        gap: 30px;
    }
}