/*
Theme Name: Além do Autismo - Premium Event
Theme URI: https://alemdoautismo.com.br/
Author: Além do Autismo
Description: Um tema premium, minimalista e altamente performático desenhado para o movimento Além do Autismo. Focado em acessibilidade, animações fluidas e integração total com o editor Gutenberg.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alemdoautismo
Tags: accessibility-ready, blog, custom-menu, featured-images, responsive-layout
*/

/* ===================================================
   ALÉM DO AUTISMO — Design System & Styles
   Colors: Navy Blue, White, Golden Amber accent
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary */
    --blue-900: #0b1d3a;
    --blue-800: #0f2847;
    --blue-700: #143566;
    --blue-600: #1a4480;
    --blue-500: #2563a8;
    --blue-400: #3b82d6;
    --blue-300: #7aaeeb;
    --blue-200: #b4d0f5;
    --blue-100: #dce9fa;
    --blue-50:  #eef4fd;

    /* Accent — warm amber/gold */
    --amber-500: #e8a020;
    --amber-400: #f0b840;
    --amber-300: #f5cf70;
    --amber-200: #fae3a8;

    /* Neutrals */
    --white:    #ffffff;
    --gray-50:  #f8f9fb;
    --gray-100: #f0f2f5;
    --gray-200: #e2e5ea;
    --gray-300: #c8cdd5;
    --gray-400: #9aa1ae;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11,29,58,.06), 0 1px 2px rgba(11,29,58,.04);
    --shadow-md: 0 4px 12px rgba(11,29,58,.08);
    --shadow-lg: 0 10px 30px rgba(11,29,58,.12);
    --shadow-xl: 0 20px 50px rgba(11,29,58,.16);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Transition */
    --ease: cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--amber-400), var(--amber-500));
    z-index: 2000;
}

/* --- Selection Color --- */
::selection {
    background: var(--blue-700);
    color: var(--white);
}

/* Screen Reader Only (Accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0; /* Fade-in preparation */
    transition: opacity 0.8s ease;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .3s var(--ease);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hide-desktop {
    display: none !important;
}

.hide-mobile {
    display: block;
}


/* =====================
   HEADER
======================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

#main-header.scrolled {
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height 0.3s ease;
}

#main-header.scrolled .header-inner {
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    text-decoration: none !important;
}

.logo-img {
    height: auto !important;
    max-height: 45px !important; /* Trava absoluta */
    width: auto !important;
    max-width: 250px !important;
    display: block !important;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--blue-900);
    white-space: nowrap;
}

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link,
.nav-links li a {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .925rem;
    color: var(--gray-600);
    transition: all .3s var(--ease);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.nav-link::after,
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--amber-500);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-links li a:hover::after,
.nav-links li.current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active,
.nav-links li a:hover,
.nav-links li.current-menu-item > a {
    color: var(--blue-900);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s var(--ease);
    padding: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu .nav-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-800);
    border-radius: 2px;
    transition: all .3s var(--ease);
}

#main-nav.open + .mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#main-nav.open + .mobile-toggle span:nth-child(2) {
    opacity: 0;
}

#main-nav.open + .mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =====================
   HERO
======================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-small {
    min-height: 55vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11,29,58,.82) 0%,
        rgba(20,53,102,.72) 50%,
        rgba(37,99,168,.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--amber-300);
    font-weight: 600;
    font-size: .85rem;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: .5px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-badge .logo-img {
    height: 18px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-logo-main {
    max-width: min(520px, 95%);
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

.hero-header-logo {
    margin-bottom: 15px;
}

.highlight {
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    color: rgba(255,255,255,.8);
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}


/* =====================
   BUTTONS
======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: all .35s var(--ease);
    letter-spacing: .3px;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--blue-900);
    box-shadow: 0 4px 16px rgba(232,160,32,.3);
}

.btn-primary:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,160,32,.4);
}

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-300);
}

.btn-outline:hover {
    background: var(--blue-600);
    color: var(--white);
    border-color: var(--blue-600);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--blue-800);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* =====================
   SECTIONS
======================== */
.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--amber-500);
    margin-bottom: 10px;
}

.section-label.center {
    display: block;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--blue-900);
    text-align: center;
    margin-bottom: 50px;
}


/* =====================
   ABOUT SECTION
======================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--blue-900);
    margin-bottom: 18px;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.about-text .btn {
    margin-top: 10px;
}


/* =====================
   TIMELINE (Home Pilares)
======================== */
.section-timeline {
    background: var(--gray-50);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

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

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.timeline-step {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--blue-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--blue-600);
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.timeline-line {
    flex-grow: 1;
    width: 2px;
    background: var(--blue-100);
    margin: 10px 0;
}

.timeline-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    transition: all .4s var(--ease);
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}

.timeline-card-accent {
    background: linear-gradient(to right, var(--white) 0%, var(--blue-50) 100%);
    border-left: 4px solid var(--blue-500);
}

.timeline-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--blue-900);
    margin-bottom: 8px;
}

.timeline-card-body p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-card-action {
    flex-shrink: 0;
    font-weight: 700;
    font-size: .9rem;
    color: var(--blue-600);
    transition: all .3s var(--ease);
    letter-spacing: .5px;
    white-space: nowrap;
}

.timeline-card-action:hover {
    color: var(--amber-500);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .timeline-item {
        gap: 20px;
    }
    
    .timeline-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 28px;
        gap: 15px;
    }
    
    .timeline-step {
        width: 36px;
        height: 36px;
        font-size: .9rem;
    }
}


/* =====================
   CTA BANNER
======================== */
.section-cta {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--blue-900) 0%,
        var(--blue-700) 50%,
        var(--blue-500) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255,255,255,.78);
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}


/* =====================
   STORY / TIMELINE
======================== */
.story-container {
    max-width: 840px;
    margin: 0 auto;
}

.story-block {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--gray-200);
}

.story-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.story-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--blue-900);
    margin-bottom: 16px;
}

.story-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--blue-800);
    margin-bottom: 14px;
}

.story-block p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.story-block .text-muted {
    color: var(--gray-400);
    font-size: .95rem;
    font-style: italic;
}

.story-highlight {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-lg);
    padding: 40px !important;
    border-bottom: none !important;
}

.story-next {
    text-align: center;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white) !important;
    border-radius: var(--radius-lg);
    padding: 50px 40px !important;
    border-bottom: none !important;
}

.story-next .section-label {
    color: var(--amber-300);
}

.story-next h2 {
    color: var(--white);
}

.story-next p {
    color: rgba(255,255,255,.8);
}

.next-date {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--amber-400) !important;
    margin-bottom: 8px !important;
}

.story-img img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.story-image-side.grid-2 {
    gap: 40px;
}

blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--blue-700);
    border-left: 4px solid var(--amber-500);
    padding-left: 24px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
}


/* =====================
   SPLIT LAYOUT (Conhecimento)
======================== */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    min-height: 400px;
}

.split-row-reverse {
    direction: rtl;
}

.split-row-reverse > * {
    direction: ltr;
}

.split-media {
    position: relative;
    overflow: hidden;
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .6s var(--ease);
}

.split-row:hover .split-media img {
    transform: scale(1.04);
}

.split-text {
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--blue-900);
    margin-bottom: 16px;
    line-height: 1.25;
}

.split-text p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Accent block — full width */
.split-accent {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    box-shadow: var(--shadow-lg);
}

.split-accent-inner {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
}

.split-accent .section-label {
    color: var(--amber-300);
}

.split-accent h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--white);
    margin-bottom: 16px;
}

.split-accent p {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 640px;
}


/* =====================
   FOOTER
======================== */
#main-footer {
    background: var(--blue-900);
    color: rgba(255,255,255,.7);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
    margin-bottom: 14px;
    height: auto;
    display: flex;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-desc {
    font-size: .9rem;
    line-height: 1.65;
    max-width: 260px;
}

.footer-col h4 {
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: color .3s var(--ease);
}

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

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    transition: all .3s var(--ease);
}

.social-icon:hover {
    background: var(--amber-500);
    color: var(--blue-900);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}


/* =====================
   CLASSES UTILITÁRIAS & EFEITOS PREMIUM (GUTENBERG)
======================== */

/* 1. Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--blue-50);
}
::-webkit-scrollbar-thumb {
    background: var(--blue-300);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-500);
}

/* 2. Glassmorphism (Efeito Vidro) */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(11, 29, 58, 0.08);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

/* 3. Hover Avançado de Imagem (Zoom) */
.img-zoom {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}
.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* 4. Efeito Botão Shine (Brilho dinâmico) */
.btn-primary.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-primary.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,0.3);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}
.btn-primary.btn-shine:hover::after {
    left: 120%;
}

/* 5. Card Hover Lift & Shadow */
.timeline-card,
.split-accent-inner,
.story-block,
.card-lift {
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.timeline-card:hover,
.split-accent-inner:hover,
.story-block:hover,
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 29, 58, 0.12);
}

/* =====================
   COLUMNIST & BLOG STYLES
======================== */
.section-profile {
    padding-bottom: 60px;
}

.columnist-card {
    padding: 60px;
    margin-top: -80px; /* Sobrepõe levemente o hero */
    z-index: 5;
    position: relative;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
}

.profile-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.profile-photo img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.profile-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--blue-900);
    margin-bottom: 20px;
}

.bioText {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
}

.profile-social .social-link-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue-600);
    font-size: .9rem;
    padding: 10px 20px;
    background: var(--blue-50);
    border-radius: 50px;
    transition: all .3s var(--ease);
}

.profile-social .social-link-small:hover {
    background: var(--blue-100);
    transform: translateY(-2px);
}

/* Articles Grid */
.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all .4s var(--ease);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-100);
}

.article-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.article-card:hover .article-img img {
    transform: scale(1.1);
}

.article-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blue-900);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.article-body {
    padding: 30px;
}

.article-date {
    display: block;
    font-size: .8rem;
    color: var(--gray-450);
    font-weight: 600;
    margin-bottom: 12px;
}

.article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--blue-900);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-body p {
    color: var(--gray-500);
    font-size: .95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-text {
    font-weight: 700;
    color: var(--amber-500);
    font-size: .9rem;
    transition: gap .3s var(--ease);
}

.btn-text:hover {
    color: var(--amber-400);
}

/* =====================
   REVEAL ANIMATIONS (IntersectionObserver)
======================== */
.animar-scroll,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all .8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animar-scroll,
.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.animar-scroll.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* Staggered Delay Utilities */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }


/* =====================
   WORDPRESS COMPATIBILITY (Gutenberg)
======================== */
.wp-block-group {
    padding: 20px 0;
    margin: 0 auto;
}

/* Força o container em grupos */
.wp-block-group.alignwide,
.wp-block-group.alignfull > .wp-block-group__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.alignwide {
    max-width: 1200px;
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: none;
}

/* Novo Container Mestre para WP */
#primary.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

/* Colunas do WordPress = Nossa Grid-2 */
.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
    margin: 40px 0;
}

@media (max-width: 900px) {
    .wp-block-columns {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    /* Correção para o bloco "Mídia e Texto" do WordPress no mobile */
    .wp-block-media-text {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .wp-block-media-text__media,
    .wp-block-media-text__content {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 20px !important;
    }
}

/* Botões do WordPress = Nossos Botões Premium */
.wp-block-button__link {
    background: var(--amber-500) !important;
    color: var(--blue-900) !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: .95rem !important;
    transition: all .35s var(--ease) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(232,160,32,.3);
}

.wp-block-button__link:hover {
    background: var(--amber-400) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,160,32,.4);
}

/* Garante que imagens adicionadas via WP não quebrem o layout */
.wp-block-image {
    margin: 0;
}

.wp-block-image img {
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Tipografia dentro do editor */
.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--blue-900);
    margin-bottom: 24px;
}

.entry-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Hero via WP (usando bloco de Cobertura/Cover) */
.wp-block-cover.hero {
    min-height: 92vh;
    padding: 100px 0;
}

.wp-block-cover.hero .wp-block-cover__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =====================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .columnist-card {
        padding: 40px 24px;
        margin-top: -40px;
    }

    .profile-photo {
        max-width: 240px;
        margin: 0 auto;
    }

    .profile-social {
        justify-content: center;
        display: flex;
    }

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

    .header-inner {
        padding: 0 10px;
    }

    .mobile-toggle {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
        transition: right .4s var(--ease);
        display: flex;
        flex-direction: column;
        padding: 100px 40px;
    }

    #main-nav.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 10px 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .split-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-row-reverse {
        direction: ltr;
    }

    .split-media {
        position: relative;
        height: 280px;
    }

    .split-text {
        padding: 36px 28px;
    }

    .split-accent-inner {
        padding: 36px 28px;
    }

    .content-page {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-image-side.grid-2 {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    #main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        padding: 20px 24px;
        transform: translateY(-110%);
        transition: transform .4s var(--ease);
        z-index: 999;
    }

    #main-nav.open {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: 75vh;
    }

    .hero-small {
        min-height: 45vh;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .section {
        padding: 60px 0;
    }

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

    .story-highlight,
    .story-next {
        padding: 28px !important;
    }

    .hide-desktop {
        display: block !important;
    }

    .hide-mobile {
        display: none !important;
    }
}
