/* ============================================================
   ANFAVEA THEME – DESIGN SYSTEM
   Fonte: Poppins (Google Fonts)
   Framework: Bootstrap 5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* --- Cor Primária --- */
  --color-primary:        #1C72DB;   /* Azul Principal */
  --color-primary-future: #003FDB;   /* Azul Futuro */
  --color-primary-clear:  #E8EEFF;   /* Azul Claro */

  /* --- Cor Secundária --- */
  --color-secondary:      #4638ED;   /* Turquesa Principal */
  --color-secondary-future:#00B889;  /* Turquesa Futuro */
  --color-secondary-clear: #E7FFFD;  /* Turquesa Claro */

  /* --- Azuis --- */
  --blue-100: #D0E4FF;
  --blue-200: #A0C8FF;
  --blue-300: #5A9CFF;
  --blue-400: #1A6EFF;
  --blue-500: #003FDB;   /* referência "Azul 500" */
  --blue-600: #0030B8;
  --blue-700: #002190;
  --blue-800: #001570;
  --blue-900: #000A40;

  /* --- Turquesa --- */
  --teal-100: #CCFFF0;
  --teal-200: #99FFE3;
  --teal-300: #33FFD0;
  --teal-400: #06D6A0;
  --teal-500: #00C48E;
  --teal-600: #00A077;
  --teal-700: #007A5C;
  --teal-800: #005742;
  --teal-900: #00352A;

  /* --- Orange / Laranja (para conteúdos/estatísticas) --- */
  --color-orange:   #FF8D28;
  --color-orange-light: #FFE5D9;

  /* --- Neutros --- */
  --color-black:    #0A0A0A;
  --color-dark:     #0D0D1A;
  --color-dark-bg:  #10101E;
  --color-dark-card:#181826;
  --color-dark-nav: #0D0D1A;
  --color-mid:      #4A4A6A;
  --color-muted:    #8A8AAA;
  --color-border:   #E0E0F0;
  --color-light:    #F5F5FB;
  --color-white:    #FFFFFF;

  /* --- Tipografia --- */
  --font-family:    'Poppins', sans-serif;
  --fw-extra-light: 200;
  --fw-light:       300;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semi-bold:   600;
  --fw-bold:        700;
  --fw-extra-bold:  800;
  --fw-black:       900;

  /* --- Heading Sizes --- */
  --h1: 2.5rem;    /* 40px */
  --h2: 2rem;      /* 32px */
  --h3: 1.75rem;   /* 28px */
  --h4: 1.5rem;    /* 24px */
  --h5: 1.25rem;   /* 20px */
  --h6: 1rem;      /* 16px */

  /* --- Spacing --- */
  --spacing-xs:   0.5rem;
  --spacing-sm:   1rem;
  --spacing-md:   1.5rem;
  --spacing-lg:   2rem;
  --spacing-xl:   3rem;
  --spacing-2xl:  4rem;
  --spacing-3xl:  6rem;

  /* --- Border Radius --- */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-xxl:  64px;
  --radius-pill:9999px;

  /* --- Shadows --- */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);

  /* --- Transitions --- */
  --transition: 0.25s ease;

  /* --- Light Mode (default) --- */
  --bg-body:       var(--color-white);
  --bg-card:       var(--color-white);
  --bg-section:    var(--color-light);
  --text-primary:  var(--color-black);
  --text-secondary:var(--color-mid);
  --text-muted:    var(--color-muted);
  --border-color:  var(--color-border);
  --nav-bg:        var(--color-white);
  --nav-text:      var(--color-black);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg-body:       var(--color-dark-bg);
  --bg-card:       var(--color-dark-card);
  --bg-section:    #13132A;
  --text-primary:  var(--color-white);
  --text-secondary:#B0B0CC;
  --text-muted:    #7070A0;
  --border-color:  #2A2A4A;
  --nav-bg:        var(--color-dark-nav);
  --nav-text:      var(--color-white);
}

/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--fw-semi-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p { color: var(--color-dark); }

[data-theme="dark"] p { color: var(--color-white); }

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

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

/* ============================================================
   3. BOOTSTRAP OVERRIDES
   ============================================================ */
.container, .container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* ============================================================
   4. HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  transition: background-color var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.main-nav .nav-link, .offcanvas .nav-link {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  color: var(--nav-text) !important;
  padding: 1.3rem 1rem !important;
  border-radius: var(--radius-xxl);
  transition: background-color var(--transition), color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active, .offcanvas .nav-link:hover, .offcanvas .nav-link.active {
  color: var(--color-white) !important;
  background-color: var(--color-dark);
}
.main-nav .current_page_item .nav-link, .main-nav .current-page-ancestor .nav-link {
  background-color: var(--color-dark);
  color: var(--color-white) !important;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem;
}

/* Sub-nav (institucional subpages) */
.sub-nav {
  background-color: var(--bg-body);
  transition: background-color var(--transition);
}
.sub-nav .nav-link {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--text-primary) !important;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sub-nav .nav-link.active,
.sub-nav .nav-link:hover {
  color: var(--text-primary) !important;
}
.sub-nav .nav-link.active {
  font-weight: var(--fw-bold);
}

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.theme-toggle .toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.theme-toggle .toggle-icon.active {
  background: var(--color-dark);
  color: var(--color-white);
}
[data-theme="dark"] .theme-toggle .toggle-icon.active {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ============================================================
   5. HERO / BANNER COMPONENTS
   ============================================================ */
.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.hero-main .hero-content {
  padding: 3rem 0;
}
.hero-main .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: var(--fw-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.hero-main h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.2;
}

/* Hero sidebar highlights */
.hero-highlight-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-highlight-item:last-child { border-bottom: none; }
.hero-highlight-label, .imprensa-grid .hero-highlight-label, .press-card-body .hero-highlight-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
  border: 1px solid;
  background: var(--text-primary);
  color: var(--color-white);
}
    .hero-main .hero-grid {
        display: grid;
        gap: 1.25rem;
        grid-template-columns: 1fr;
        margin: 0 20px;
    }

    @media (min-width: 992px) {
        .hero-main .hero-grid:not(.hero-grid--full) {
            grid-template-columns: 38% 1fr;  /* sidebar | destaque */
            grid-template-areas: "sidebar featured";
            align-items: stretch;
        }
        .hero-main .hero-sidebar   { grid-area: sidebar; }
        .hero-main .hero-principal { grid-area: featured; }
        .hero-main .hero-grid { margin: 0; }
    }

    /* ---- Destaque principal (direita) ---- */
    .hero-main .hero-principal {
        position: relative;
        display: block;
        min-height: clamp(360px, 42vw, 520px);
        height: 100%;
        border-radius: var(--radius-xl, 1rem);
        overflow: hidden;
        isolation: isolate;
    }

    .hero-principal-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        transition: transform 0.5s ease;
        z-index: -2;
    }
    .hero-principal:hover .hero-principal-bg { transform: scale(1.05); }

    .hero-principal-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.85) 100%);
        z-index: -1;
    }

    .hero-principal-content {
        position: absolute;
        inset: auto 0 0 0;
        padding: clamp(1.25rem, 3vw, 2.25rem);
        color: #fff;
    }

    .hero-principal-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }
    .hero-principal-date {
        color: rgba(255,255,255,0.85);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .hero-principal-title {
        color: #fff;
        font-weight: 700;
        font-size: clamp(1.4rem, 2.4vw, 2.1rem);
        line-height: 1.2;
        margin: 0;
    }

    .hero-principal-excerpt {
        color: rgba(255,255,255,0.9);
        margin: 0.75rem 0 0;
        font-size: 1rem;
        line-height: 1.5;
        max-width: 46ch;
    }

    .hero-principal-arrow {
        display: inline-flex;
        margin-top: 1.1rem;
        transition: transform 0.25s ease;
    }
    .hero-principal:hover .hero-principal-arrow { transform: translateX(6px); }

    /* ---- Sidebar de notícias (esquerda) ---- */
    .hero-main .hero-sidebar {
        display: flex;
        flex-direction: column;
        background: var(--nav-bg, #ffffff);
        overflow: hidden;
    }

    .hero-main .hero-chamada {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2vw, 1.5rem);
        text-decoration: none;
        transition: background-color 0.2s ease;
    }
    .hero-main .hero-chamada + .hero-chamada {
        border-top: 1px solid var(--border-color, #e4e8f0);
    }
    .hero-main .hero-chamada:hover {
        background: rgba(30, 91, 255, 0.06); /* fallback */
        background: color-mix(in srgb, var(--color-secondary-future, #1e5bff) 7%, transparent);
    }

    .hero-chamada-meta {
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }
    .hero-chamada-date {
        color: var(--text-muted, #7070a0);
        font-size: 0.85rem;
        font-weight: 500;
    }

    .hero-chamada-title {
        color: var(--text-primary, #1a1a2e);
        font-weight: 600;
        font-size: clamp(1rem, 1.3vw, 1.15rem);
        line-height: 1.35;
        transition: color 0.2s ease;
    }
    .hero-main .hero-chamada:hover .hero-chamada-title {
        color: var(--color-primary);
    }

    @media (prefers-reduced-motion: reduce) {
        .hero-principal-bg,
        .hero-principal-arrow { transition: none; }
        .hero-principal:hover .hero-principal-bg { transform: none; }
        .hero-principal:hover .hero-principal-arrow { transform: none; }
    }

[data-theme="dark"] .hero-highlight-label { color: var(--color-black); border: none; }

[data-theme="dark"] .hero-main .hero-highlight-label, .imprensa-grid .hero-highlight-label, .press-card-body .hero-highlight-label { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }
[data-theme="light"] .hero-main .hero-highlight-label { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }

/*
.label-especial { background: rgba(26,26,230,0.25); color: #8888FF; border-color: #8888FF; }
.label-coletiva { background: rgba(6,214,160,0.2); color: var(--color-secondary); border-color: var(--color-secondary); }
.label-comunicado { background: rgba(100,200,100,0.2); color: #4CAF50; border-color: #4CAF50; }
.label-noticia  { background: rgba(255,200,50,0.2); color: #FFC832; border-color: #FFC832; }
.label-video    { background: rgba(255,50,50,0.2); color: #FF5050; border-color: #FF5050; }
.label-apresentacao { background: rgba(180,50,255,0.2); color: #CC50FF; border-color: #CC50FF; }
.label-carta    { background: rgba(255,150,0,0.2); color: #FF9600; border-color: #FF9600; }
.label-evento   { background: rgba(255,107,53,0.2); color: #FF6B35; border-color: #FF6B35; }
.label-anfavea-apoia { background: rgba(6,214,160,0.2); color: var(--color-secondary); border-color: var(--color-secondary); }
.label-destaque { background: rgba(255,107,53,0.2); color: #FF6B35; border-color: #FF6B35; }
*/

#imprensaFilterBar .label-release, .news-list-item .label-release, .single-header .label-release { background: #00CCB8; border-color: transparent; color: var(--text-primary-color); }
#imprensaFilterBar .label-coletiva, .news-list-item .label-coletiva, .single-header .label-coletiva { border-color: transparent; background: linear-gradient(90deg, #1C72DB, #00CCB8); color: var(--text-primary-color); }
#imprensaFilterBar .label-videos, .news-list-item .label-videos, .single-header .label-videos { border-color: transparent; background: #A6E9D5; color: var(--text-primary-color); }
#imprensaFilterBar .label-noticia, .news-list-item .label-noticia, .single-header .label-noticia { border-color: transparent; background: #9EC5FE; color: var(--text-primary-color); }


/* Countdown timer */
.countdown-bar .contador-bg{
  background: linear-gradient(90deg, #1C72DB, #00CCB8);
  color: var(--color-white);
  padding: 4rem 2rem;
  margin: var(--spacing-sm) auto var(--spacing-lg) auto;
  border-radius: var(--radius-xl);
  width: 100%;
}
.countdown-bar .countdown-text {
  font-size: 2.5rem;
}
.countdown-bar .countdown-number {
    font-size: 2.25rem;
    font-weight: var(--fw-extra-bold);
    min-width: 3ch;
    display: inline-block;
    text-align: center;
}
.countdown-bar .countdown-unit {
  font-size: 1.25rem;
  font-weight: var(--fw-regular);
  opacity: 1;
}

/* ============================================================
   6. SECTION TITLES
   ============================================================ */
.section-title {
  font-size: clamp(2.3rem, 2.5vw, var(--h2));
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

/* ============================================================
   7. CARDS
   ============================================================ */

/* Press / News card */
.press-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  cursor: pointer;
}
.press-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.press-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.press-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.press-card:hover .press-card-image img { transform: scale(1.05); }
.press-card-body {
  padding: 1.25rem;
}
.press-card-title, .main-card h3 {
  font-size: 1.7rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0;
}

.main-card {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Dark-themed press card */
.press-card-dark {
  background: #0748AA;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items: flex-start;
}
.press-card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,26,230,0.3);
}
.press-card-dark .press-card-title {
  color: var(--color-white);
}

/* Event card */
.event-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.event-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
#publicacoesList .hero-highlight-label {
  color: #00C0E8;
  background: var(--color-white);
}
#publicacoesList .event-card-image {
  aspect-ratio: 5/3;
}
#eventosList .event-card-image {
  aspect-ratio: 6 / 3.4;
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.event-card-body {
  padding: 1rem;
  background: #00020C;
  color: var(--color-white);
}
#publicacoesList .event-card-body {
  background: #00C0E8;
  padding: 3rem;
}
.event-card-title {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.15;
}
.event-card-date {
  font-size: 1rem;
  font-weight: var(--fw-semi-bold);
  color: var(--color-black);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  padding: .25rem .5rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Person card */
.person-card {
  text-align: center;
  padding: 1rem;
}
.person-card-avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-border);
  margin: 0 auto 0.75rem;
  display: block;
}
.person-card-name {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}
.person-card-role {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .person-card-link svg path {
  fill: #fff !important;
}
.person-card-link {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.person-card-link {
  color: var(--text-primary) !important;
  -webkit-appearance: none !important;
  border: none;
  background: none;
}

.modal-linkedin {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: #0A66C2;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background: #004182;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

.btn-linkedin svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .btn-linkedin {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .btn-linkedin svg {
        width: 20px;
        height: 20px;
    }
}

.modal-vice .thumbnail img {
  border-radius: 50%;
}

.modal-vice .modal-footer {
  justify-content: center;
}

.modal-vice .modal-title {
  line-height: 1.1;
}

.modal-vice .modal-title, .modal-vice .modal-content-text p, .modal-vice .modal-cargo, .modal-vice .modal-content p,  .modal-vice .modal-content li, .modal-vice .modal-content h6, .modal-vice .modal-content h5, .modal-vice .modal-content th, .modal-vice .modal-content td {
  color: #1C72DB;
}

.modal-vice .modal-body .btn-close {
  margin: 0 auto;
    text-align: center;
    display: block;
    font-size: 15px;
    margin-top: 30px;
}

.modal-body {
  padding: 50px 20px;
}

/* Presidência ANFAVEA */

.presidencia-anfavea {
  position:relative;
  min-height:100vh;
  background:#1a1a2e;
  overflow:hidden;
}

.presidencia-anfavea .hero-presidencia {
  height: 100vh;
}

.presidencia-anfavea .person-card-link {
  color: var(--color-white) !important;
  -webkit-appearance: none !important;
  border: none;
  background: none;
  padding: 0 !important;
}

.presidencia-anfavea h2 {
  font-size: 4rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
}

.presidencia-anfavea h3 {
  font-size: 2rem;
  color: var(--color-white); 
}

.presidencia-anfavea .presidente-box a, .presidencia-anfavea .presidente-box h5 {
  color: var(--color-white);
} 

/* Sobre a Anfavea – big banner */
.about-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex
}
.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.about-banner-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  max-width: 52%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: baseline;
}
.about-banner-content h2 {
  color: var(--color-white);
  font-weight: var(--fw-bold);
}
.sobre-hero{
    position:relative;
    height: calc(100vh + 60px);
    overflow:hidden;
    margin-top: -100px;
}

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

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

.sobre-hero .hero-content{
    position:relative;
    z-index:2;
    height: 100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.sobre-hero .hero-content h1{
    font-size:64px;
    font-weight:700;
    margin-bottom:30px;
    text-shadow: 1px 1px 30px var(--color-black);
}

.sobre-hero .hero-content p {
  color: var(--text-primary);
  font-size: 1.315rem;
  text-shadow: 1px 1px 30px var(--color-black);
}

[data-theme="light"] .sobre-hero .hero-content h1{
    text-shadow: 1px 1px 30px var(--color-white);
}

[data-theme="light"] .sobre-hero .hero-content p {
  text-shadow: 1px 1px 30px var(--color-white);
}

.card-sobre {
  min-height:440px;
}

.card-sobre.anfavea-hoje {
  min-height: 250px;
}

.box-quem-somos {
  background: #ffffff66;
  border-radius: 10px;
  padding: 30px;
}

[data-theme="dark"] .box-quem-somos {
  background: #00000091;
}

/* ============================================================
   Onde estamos – mapa das unidades industriais
   ========================================================== */
.mapa-unidades{
  /* Full-bleed: quebra o container de 1140px e ocupa a largura da tela.
     Se o bloco precisar ficar dentro do container, apague as 3 linhas abaixo. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  --mapa-azul: #0B63F6;
  --mapa-azul-escuro: #0A4FC4;
  --mapa-verde: #00E5A0;
  --mapa-texto: #FFFFFF;
  --mapa-pin-size: 42px;

  margin-bottom: 4rem;
  overflow: hidden;
}

.mapa-unidades__grid{
  display: grid;
  grid-template-columns: minmax(340px, 57%) 1fr;
  min-height: 560px;
}

/* ---------- Painel ---------- */
.mapa-unidades__painel{
  background: var(--mapa-azul);
  color: var(--mapa-texto);
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: flex-start;
}
.mapa-unidades__painel-inner{
  position: sticky;
  top: 2rem;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}
.mapa-unidades__titulo{
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 0 0 1.25rem;
  color: var(--mapa-texto);
}
.mapa-unidades__texto{
  font-size: .9375rem;
  line-height: 1.7;
  opacity: .9;
  margin: 0 0 2rem;
  color: var(--nav-bg);
}

/* ---------- Lista de empresas ---------- */
.mapa-unidades__lista{
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 1.5rem;
}
.mapa-unidades__lista li{ break-inside: avoid; }

.mapa-unidades__empresa{
  appearance: none;
  background: none;
  border: 0;
  padding: .35rem 0;
  width: 100%;
  text-align: left;
  color: var(--mapa-texto);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.4;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}
.mapa-unidades__empresa:hover{ opacity: .75; }
.mapa-unidades__empresa:focus-visible{
  outline: 2px solid var(--mapa-verde);
  outline-offset: 2px;
  border-radius: 3px;
}
.mapa-unidades__empresa.is-active{ color: var(--mapa-verde); }
.mapa-unidades__empresa.is-empty{ opacity: .4; }

/* ---------- Toggle (mobile) ---------- */
.mapa-unidades__toggle{
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--mapa-azul-escuro);
  border: 0;
  border-radius: 8px;
  color: var(--mapa-texto);
  font-weight: 600;
  font-size: 1rem;
  padding: .875rem 1.125rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.mapa-unidades__toggle-icon{ transition: transform .25s ease; flex: 0 0 auto; }
.mapa-unidades__toggle[aria-expanded="true"] .mapa-unidades__toggle-icon{ transform: rotate(180deg); }

/* ---------- Mapa ---------- */
.mapa-unidades__mapa-wrap{ position: relative; }
.mapa-unidades__mapa{
  height: 100%;
  min-height: 560px;
  width: 100%;
  background: #E8F6F8;
  z-index: 1;
}

/* ---------- Pins ---------- */
.mapa-pin{
  background: none !important;
  border: 0 !important;
}
.mapa-pin__inner{
  width: var(--mapa-pin-size);
  height: var(--mapa-pin-size);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--mapa-azul);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  padding: 9px;
}
.mapa-pin__inner img{
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.mapa-pin__inner span{
  font-weight: 700;
  font-size: .8125rem;
  color: var(--mapa-azul);
  letter-spacing: -.02em;
}
.mapa-pin:hover .mapa-pin__inner,
.mapa-pin.is-selected .mapa-pin__inner{
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* ---------- Popup ---------- */
.leaflet-popup-content-wrapper{ border-radius: 12px; padding: 0; }
.leaflet-popup-content{ margin: 0; width: 268px !important; }
.mapa-popup{ padding: 1.125rem; font-size: .875rem; line-height: 1.5; }
.mapa-popup__logo{
  max-width: 110px;
  max-height: 44px;
  object-fit: contain;
  display: block;
  margin-bottom: .75rem;
}
.mapa-popup__empresa{
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 .125rem;
  color: #111;
}
.mapa-popup__local{
  font-size: .8125rem;
  color: #6B7280;
  margin: 0 0 .625rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mapa-popup__unidade{ font-weight: 600; margin: 0 0 .25rem; color: #111; }
.mapa-popup__endereco{ margin: 0 0 1rem; color: #4B5563; }
.mapa-popup__btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--mapa-azul, #0B63F6);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .8125rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  transition: background .2s ease;
}
.mapa-popup__btn:hover{ background: #0A4FC4; }

/* ---------- Dark mode do tema ---------- */
[data-theme="dark"] .mapa-unidades__mapa{ background: #16202B; }
[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip{ background: #1E2A38; }
[data-theme="dark"] .mapa-popup__empresa,
[data-theme="dark"] .mapa-popup__unidade{ color: #F1F4FF; }
[data-theme="dark"] .mapa-popup__endereco{ color: #C3CBD8; }

/* ---------- Tablet: painel em cima, mapa embaixo ---------- */
@media (max-width: 991.98px){
  .mapa-unidades__grid{ grid-template-columns: 1fr; min-height: 0; }
  .mapa-unidades__painel{ padding: 2.5rem 1.5rem; }
  .mapa-unidades__painel-inner{ position: static; max-width: none; margin: 0; }
  .mapa-unidades__lista{ columns: 2; }
  .mapa-unidades__mapa,
  .mapa-unidades__mapa-wrap{ min-height: 480px; height: 480px; }
}

/* ---------- Mobile: lista vira drawer, mapa domina a tela ---------- */
@media (max-width: 767.98px){
  .mapa-unidades__painel{ padding: 2rem 1.25rem 1.25rem; }
  .mapa-unidades__texto{ margin-bottom: 1.25rem; }
  .mapa-unidades__toggle{ display: flex; }

  .mapa-unidades__lista{
    columns: auto;
    max-height: 0;
    overflow: auto;
    transition: max-height .3s ease;
  }
  .mapa-unidades__lista.is-open{
    max-height: 30vh;
    overflow-y: auto;
    padding-bottom: .5rem;
  }
  .mapa-unidades__empresa{ padding: .625rem 0; font-size: 1rem; }

  .mapa-unidades__mapa,
  .mapa-unidades__mapa-wrap{ min-height: 75vh; height: 75vh; }
}

/* ============================================================
   8. ESTATÍSTICAS SECTION
   ============================================================ */
[data-theme="light"] .stats-section { background: #00CCB8; }
.stats-section { background-color: var(--bg-section); margin-top: -110px; padding-top: 110px !important; }
.stats-section .btn-anfavea-secondary:hover { background: #2EEBD9 !important; }
.stats-filter .btn-filter {
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-black);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  padding: 1.275rem 1.5rem;
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-transform: uppercase;
}
.stats-filter .btn-filter.active,
.stats-filter .btn-filter:hover {
  background: #2EEBD9;
  color: var(--color-black);
  border-color: #2EEBD9;
}

.stat-card {
  background: var(--color-secondary-clear);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-title {
  font-size: 1.125rem;
  font-weight: var(--fw-semi-bold);
  color: var(--color-black);
  margin-bottom: 0.75rem;
}
.stat-card-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}
.stat-card-value {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-black);
}

/* ============================================================
   9. SPONSORSHIP BANNER
   ============================================================ */
.sponsorship-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}
.sponsorship-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 70%);
}
.sponsorship-content { position: relative; z-index: 1; }
.sponsorship-label {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.4rem;
}
.sponsorship-title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin: 0;
}

/* ============================================================
   10. NEWSLETTER SECTION
   ============================================================ */

.newsletter-section {
  padding-bottom: 0px !important;
}
.newsletter-section .section-title {
    font-size: clamp(2.5rem, 3.1vw, 4rem);
    max-width: 400px;
}
.newsletter-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  background-color: var(--bg-body);
  color: var(--text-primary);
  transition: border-color var(--transition);
  max-width: 300px;
}
.newsletter-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,26,230,0.15);
  outline: none;
}
.newsletter-form .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  background-color: var(--bg-body);
  color: var(--text-primary);
  max-width: 300px;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer .rodape-bg {
    background: linear-gradient(180deg, #00665C 0%, #00CCB8 100%);
    border-radius: var(--radius-xl);
    color: var(--color-white);
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin: 0 auto var(--spacing-lg) auto;
}
.site-footer .footer-logo img { height: 36px; }
.site-footer .footer-address {
  font-size: .75rem;
  line-height: 1.7;
  color: var(--color-white);
}
.site-footer .footer-address a {
  color: var(--color-white);
}
.site-footer .footer-address strong { color: var(--color-white); font-weight: var(--fw-bold); }
.site-footer .footer-nav-title {
  font-size: .75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.site-footer .footer-nav-link {
  display: block;
  font-size: .75rem;
  color: var(--color-white);
  padding: 0.15rem 0;
  transition: color var(--transition);
  text-decoration: underline;
}
.site-footer .footer-nav-link:hover { opacity: .7; }

/* ============================================================
   12. BUTTONS
   ============================================================ */
.btn-anfavea-primary {
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semi-bold);
  font-size: 0.875rem;
  padding: 0.6rem 1.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-anfavea-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}
.stats-section .btn-anfavea-secondary {
  background: transparent;
  color: var(--text-primary);
}
.btn-anfavea-secondary {
  background: var(--color-secondary);
  color: var(--color-light);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semi-bold);
  font-size: 0.875rem;
  padding: 0.6rem 1.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-anfavea-secondary:hover, .single-actions .btn-anfavea-outline:hover {
  background: linear-gradient(180deg, #1C72DB, #00CCB8) !important;
  transform: translateY(-1px);
  transition: all .5s;
}
.single-actions .btn-anfavea-secondary, :root :where(.wp-element-button, .wp-block-button__link) {
    background: linear-gradient(90deg, #1C72DB, #00CCB8);
    padding: 0.6rem 3.5rem;
    color: var(--color-white);
}
.single-actions i {
  font-size: 1.6rem;
  margin-left: 5px;
}
.btn-anfavea-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-anfavea-outline:hover, .single-actions .btn-anfavea-outline:hover {
  background: var(--teal-500);
  color: var(--color-white) !important;
}
.single-actions .btn-anfavea-outline {
    background: #FF9400;
    border: none;
    padding: 1.2rem 3.1rem;
    color: var(--color-white) !important;
    border-radius: var(--radius-pill);
}
.btn-anfavea-dark {
  background: var(--color-dark);
  color: var(--color-white) !important;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semi-bold);
  font-size: 0.875rem;
  padding: 0.6rem 1.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
  cursor: pointer;
}
.btn-anfavea-dark:hover { background: #1a1a3e; }

/* ============================================================
   13. FILTER BAR (Imprensa, Eventos)
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
}
.filter-bar-label {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-right: 0.5rem;
  white-space: nowrap;
}
.filter-btn {
  border: 1.5px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  padding: 1.3rem 2rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: transparent;
  background: linear-gradient(90deg, #1C72DB, #00CCB8);
  color: var(--color-white);
}
.filter-search {
  margin-left: auto;
  position: relative;
}

.filter-search input, .page-search-bar input, .search input[type="text"]  {
    border: 1.5px solid #E7FFFD;
    border-radius: var(--radius-pill);
    padding: 1.3rem 1rem 1.3rem 2.5rem;
    font-size: 0.8125rem;
    background: #E7FFFD;
    color: var(--color-black);
    width: 220px;
    transition: border-color var(--transition);
}
.filter-search input:focus, .page-search-bar input:focus {
  border-color: var(--color-primary);
  outline: none;
}
.filter-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-black);
  font-size: 0.875rem;
}

/* ============================================================
   14. NEWS LIST (Imprensa)
   ============================================================ */
.news-list-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  cursor: pointer;
  transition: background var(--transition);
}
.news-list-item:hover { background: var(--bg-section); padding-left: 0.75rem; }
.news-list-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.news-list-date {
  font-size: 1rem;
  font-weight: var(--fw-semi-bold);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  background: var(--color-black);
  padding: 4px 12px;
}
.news-list-title {
  font-size: 1.5rem;
  font-weight: var(--fw-semi-bold);
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.news-list-item .hero-highlight-label {
  margin-bottom: 0 !important;
}

/* ============================================================
   15. PAGINATION
   ============================================================ */
.pagination-anfavea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.5rem 0;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.page-btn.arrow { border-radius: 50%; }

/* ============================================================
   16. CONTACT SECTION
   ============================================================ */
.contact-section {
  background: #1C72DB;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: var(--color-white);
  font-size: var(--h5);
}
.contact-section h2 {
    color: var(--color-white);
    font-size: var(--h1);
}
.contact-section p {
  color: var(--color-white);
}
.contact-section p a, .contact-section a {
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-decoration: underline;
}
.contact-person-name {
  font-weight: var(--fw-bold);
}
.contact-person-role {
}
.contact-person-phone {
  color: var(--color-white);
}

/* ============================================================
   17. PAGE HEADER (subpages inner hero)
   ============================================================ */
.page-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 2.5rem;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,30,180,0.85) 0%, rgba(0,100,180,0.7) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero-subtitle {
  font-size: var(--h2);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.85);
  display: block;
}
.page-hero-title {
  font-size: var(--h1);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  display: block;
}
.page-hero.orange { }
.page-hero.orange .page-hero-overlay {
  background: linear-gradient(135deg, rgba(255,107,53,0.9) 0%, rgba(255,80,0,0.75) 100%);
}
.page-hero.green .page-hero-overlay {
  background: linear-gradient(135deg, rgba(0,100,60,0.85) 0%, rgba(0,160,100,0.75) 100%);
}

/* ============================================================
   18. SINGLE ARTICLE (Single Notícia)
   ============================================================ */
.single-header { padding: 2rem 0; }
.single-header .single-category {
  margin-bottom: 0.75rem;
}
.wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}
.single-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.single-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}
.single-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  margin-bottom: 1.5rem;
}
.single-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.single-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.single-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.single-content p { margin-bottom: 1.25rem; }
.single-content h2, .single-content h3 {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.single-actions {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    justify-content: center;
}
.related-posts-title {
  font-size: var(--h3);
  font-weight: var(--fw-semi-bold);
  margin-bottom: 1.5rem;
}

/* ============================================================
   19. SINGLE EVENTO
   ============================================================ */
.event-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.event-hero-media img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.event-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.event-action-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.event-action-card:hover {
  border-color: var(--color-primary);
  background: rgba(26,26,230,0.06);
}
[data-theme="dark"] .event-action-card {
  background: var(--bg-card);
  border-color: #2a2a4a;
}
[data-theme="dark"] .event-action-card:hover {
  border-color: var(--color-primary);
  background: rgba(26,26,230,0.15);
}
.event-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(26,26,230,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.event-action-label {
  font-size: 0.875rem;
  font-weight: var(--fw-semi-bold);
  color: var(--text-primary);
  line-height: 1.3;
}
.videos-section-title {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  font-size: var(--h4);
  margin-bottom: 1rem;
}
.video-item { margin-bottom: 1.5rem; }
.video-item-label {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.video-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.video-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============================================================
   20. BREADCRUMB
   ============================================================ */
.anfavea-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.anfavea-breadcrumb a { color: var(--color-primary); }
.anfavea-breadcrumb a:hover { color: var(--color-primary); }
.anfavea-breadcrumb .separator { color: var(--color-border); }
.anfavea-breadcrumb .current { color: var(--text-primary); opacity: .5; }
.page-search-bar {
  margin-left: auto;
  position: relative;
}
.page-search-bar .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-result-meta {
  font-style: italic;
  font-weight: var(--fw-medium);
  font-size: .85rem;
}

/* ============================================================
   21. TIMELINE (Linha do Tempo)
   ============================================================ */
.timeline-layout {
  display: flex;
  gap: 2rem;
}
.timeline-sidebar {
  width: 160px;
  flex-shrink: 0;
}
.timeline-period-btn {
  display: inline-block;
  width: 100%;
  max-width: 180px;
  text-align: center;
  border: 2px solid rgba(255,255,255,1);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  padding: 0.45rem 1rem;
  background: transparent;
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: all var(--transition);
}
.timeline-period-btn:hover,
.timeline-period-btn.active {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}
.timeline-main {
  flex: 1;
  position: relative;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-white);
  transform: translateX(-50%);
}
.timeline-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 20px;
  position: relative;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  width: 11px;
  height: 11px;
  background: var(--color-orange);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.timeline-entry.right {
  flex-direction: row-reverse;
  margin-bottom: -50px;
}
.timeline-year-badge {
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: var(--fw-extra-bold);
  font-size: 1.75rem;
  padding: 0.15rem 1.2rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  z-index: 1;
  position: relative;
}
.timeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  flex: 1;
  max-width: 280px;
}
.timeline-card-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.timeline-card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.timeline-card-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.nav-linha-do-tempo {
  position: sticky;
  top: 180px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.nav-linha-do-tempo h1 {
  font-weight: var(--fw-bold);
  color: var(--color-white);
  font-size:clamp(2rem,4vw,4rem);
  line-height:1.1;
}

.nav-linha-do-tempo p {
  color: var(--color-white);
  font-size: 1.25rem;
  line-height:1.6;
}

/* Timeline wrapper (blue background page) */
.page-timeline {
  min-height: 100vh;
  padding: 2rem 0;
  margin-bottom: 40px;
}
.page-timeline .section-title { color: var(--color-white); }

[data-theme="light"] .page-timeline {
    background: linear-gradient(180deg, #0033AA 0%, #0F3D75 100%);
}

body.page-template-page-linha-do-tempo {
  background: #0F3D75;
}

/* ============================================================
   22. CONTEÚDOS – Technical Content Pages
   ============================================================ */
.content-hero {
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.content-hero.blue {
  background: #1C72DB;
}
.content-hero.teal {
  background: #6155F5;
}
.content-hero.green {
  background: #34C759;
}
.content-hero.orange {
  background: #FF8D28;
}
.content-hero.verde-linear {
  background: linear-gradient(135deg, #00665C 0%, #34C759 100%);;
}
.content-hero.azul-claro {
  background: #00C0E8;
}
.content-hero.lilas {
  background: #CB30E0;
}
.content-hero h1 {
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: clamp(1.5rem, 3.1vw, 3.25rem);
}
.content-hero h2 {
  color: var(--color-white);
  font-size: clamp(1.25rem, 3.1vw, 3.25rem);
  font-weight: var(--fw-regular);
}

.content-body h2, .content-body h3 {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-body h2 { font-size: var(--h3); }
.content-body h3 { font-size: var(--h4); }
.content-body p  { color: var(--text-secondary); line-height: 1.75; }
.content-body ul { color: var(--text-secondary); padding-left: 1.5rem; line-height: 1.8; }
.content-body figure {
  margin: 2rem 0;
  text-align: center;
}
.content-body figure img {
  max-width: 100%;
  border-radius: var(--radius-md);
  /* border: 1px solid var(--border-color); */
}
.content-body figcaption {
  font-size: 0.8125rem;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.content-body .wp-block-image figure img {
  border-radius: 0;
  border: none;
}

.page-template-page-conteudos .explore-other-contents h4 {
  font-size: 3.25rem;
}

nav ul, #menu-conteudos-tecnicos {
  padding: 0;
}

/* Explore outros conteúdos */
[data-theme="light"].page-template-page-conteudo-single .category-label, [data-theme="light"].page-template-page-conteudo-single .explore-other-contents h4, [data-theme="light"].page-template-page-publicacoes-anfavea .explore-other-contents h4, [data-theme="light"].page-template-page-carta-anfavea .explore-other-contents h4 {
  color: var(--text-primary);
}

.explore-other-contents h4 {
  color: var(--color-white);
}
.explore-other-contents .category-label {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-right: 0.5rem;
}
.explore-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  padding: .75rem 1rem;
  cursor: pointer;
  transition: opacity var(--transition);
  text-decoration: none;
}
.explore-tag:hover { opacity: 0.85; }
.explore-tag.blue   { background: var(--color-primary);   color: var(--color-light); }
.explore-tag.teal   { background: var(--color-secondary); color: var(--color-light); }
.explore-tag.green  { background: #22B146; color: var(--color-light); }
.explore-tag.orange { background: var(--color-orange); color: var(--color-white); }
.explore-tag.azul-claro { background: #00C0E8; color: var(--color-white); }
.explore-tag.lilas { background: #CB30E0; color: var(--color-white); }
.explore-tag.dark   { background: var(--color-dark); color: var(--color-white); }
.explore-tag.outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.parent-pageid-16 .explore-other-contents .category-label.blue, .page-template-page-conteudo-single .explore-other-contents .category-label.blue, .page-template-page-conteudo-sustentabilidade .explore-other-contents .category-label.blue { color: var(--color-primary); }
.parent-pageid-16 .explore-other-contents .category-label.teal, .page-template-page-conteudo-single .explore-other-contents .category-label.teal, .page-template-page-conteudo-sustentabilidade .explore-other-contents .category-label.teal { color: var(--color-secondary); }
.parent-pageid-16 .explore-other-contents .category-label.green, .page-template-page-conteudo-single .explore-other-contents .category-label.green, .page-template-page-conteudo-sustentabilidade .explore-other-contents .category-label.green { color: #22B146; }
.parent-pageid-16 .explore-other-contents .category-label.orange, .page-template-page-conteudo-single .explore-other-contents .category-label.orange, .page-template-page-conteudo-sustentabilidade .explore-other-contents .category-label.orange { color: var(--color-orange); }
.parent-pageid-16 .explore-other-contents .category-label.azul-claro, .page-template-page-conteudo-single .explore-other-contents .category-label.azul-claro, .page-template-page-conteudo-sustentabilidade .explore-other-contents .category-label.azul-claro { color: #00C0E8; }
.parent-pageid-16 .explore-other-contents .category-label.lilas, .page-template-page-conteudo-single .explore-other-contents .category-label.lilas, .page-template-page-conteudo-sustentabilidade .explore-other-contents .category-label.lilas { color: #CB30E0; }

/* =========================
   BOX CARTA ANFAVEA
========================= */

.carta-anfavea-box{
    position:relative;
    overflow:hidden;
    border-radius:40px;

    padding:60px;

    background-image:url('../images/bg-carta-anfavea.png');
    background-size:cover;
    background-position:center center;
}

/* overlay azul */

.carta-anfavea-box::before{
    content:'';

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(0,86,190,.88) 0%,
            rgba(68,146,255,.55) 100%
        );

    z-index:1;
}

.carta-anfavea-box > *{
    position:relative;
    z-index:2;
}

/* =========================
   TEXTO INTRO
========================= */

.carta-anfavea-box .intro{
    max-width:900px;

    margin:0 auto 50px;

    text-align:center;

    color:#fff;

    font-size:clamp(1rem,1.2vw,1.3rem);

    line-height:1.8;

    font-weight:300;
}

/* =========================
   TÍTULOS
========================= */

.carta-anfavea-box h2{
    color:#fff;

    font-size:clamp(1.8rem,2vw,2.8rem);

    font-weight:800;

    margin-bottom:24px;
}

/* =========================
   BOTÃO DOWNLOAD
========================= */

.btn-carta-download{
    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:16px;

    min-width:250px;

    height:64px;

    padding:0 30px;

    background:#ff9726;

    color:#fff;

    text-decoration:none;

    font-size:1.15rem;
    font-weight:700;

    border-radius:999px;

    transition:.3s;
}

.btn-carta-download:hover{
    background:#ff8610;
    color:#fff;

    transform:translateY(-2px);
}

.btn-carta-download i{
    font-size:1.35rem;
}

/* =========================
   SELECTS
========================= */

.carta-anfavea-box .form-select{

    height:68px;

    border-radius:999px;

    border:2px solid #2f7fd5;

    background:#fff;

    color:#2f69b1;

    font-size:1.1rem;

    padding-left:24px;

    box-shadow:none;
}

.carta-anfavea-box .form-select:focus{

    border-color:#0a8dff;

    box-shadow:0 0 0 .25rem rgba(10,141,255,.15);
}

/* =========================
   BOTÃO GERADO PELO SELECT
========================= */

#cartaDownloadContainer{
    margin-top:25px;
}

#cartaDownload{
    min-width:250px;
}

/* =========================
   ESPAÇAMENTOS
========================= */

.carta-ultima-edicao{
    display:flex;
    flex-direction:column;
}

.carta-edicoes-passadas{
    display:flex;
    flex-direction:column;
}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:991px){

    .carta-anfavea-box{
        padding:40px 25px;
    }

    .carta-anfavea-box h2{
        margin-top:25px;
    }

    .btn-carta-download{
        width:100%;
    }
}

/* ============================================================
   23. CENTRAL DE DADOS
   ============================================================ */
.central-dados-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 72px);
}
.central-dados-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #FF9632 0%, #06D6A0 100%);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  padding: 2.5rem;
}
.central-dados-sidebar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-extra-bold);
  color: var(--color-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.central-dados-sidebar p {
  font-size: 0.875rem;
  color: rgba(0,30,20,0.75);
  line-height: 1.6;
}
.central-dados-sidebar .sidebar-subtitle {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,30,20,0.6);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.central-dados-form-area {
  flex: 1;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  margin: 0 2.5rem;
}
.form-section-label {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
#dashboardGroup .toggle-btn {
  text-transform: inherit;
  border-color: #2EEBD9;
}
#dashboardGroup .toggle-btn:hover, #dashboardGroup .toggle-btn.active {
  background: #2EEBD9;
  border-color: #2EEBD9;
  color: var(--text-primary-color);
}
.central-dados-layout .form-section-label {
  font-size: 1rem;
  color: var(--text-primary-color);
}
.toggle-button-group, .toggle-button-group-multiselect {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.dashboard-select-first .toggle-button-group {
  flex-wrap: inherit;
}
.toggle-btn {
  border: 2px solid var(--color-orange);
  background: transparent;
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: var(--fw-semi-bold);
  padding: 0.4rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dashboard-borda .toggle-btn {
  color: #FF8D28;
}
.dashboard-borda .toggle-btn:hover, .dashboard-borda .toggle-btn.active {
  color: var(--text-primary-color);
}
.dashboard-borda {
  border: 2px solid transparent;
      background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, #2EEBD9 0%, #FF8D28 100%) border-box;
}
[data-theme="dark"] .dashboard-borda {
  background: linear-gradient(#000, #000) padding-box,
        linear-gradient(90deg, #2EEBD9 0%, #FF8D28 100%) border-box
}
.toggle-btn:hover,
.toggle-btn.active {
  background: var(--color-orange);
  color: var(--color-white);
}
.dropdown-select-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dropdown-select {
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-primary);
  padding: 0.4rem 2rem 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-semi-bold);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF6B35' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.dropdown-select option {
  color: #000 !important;
}
.central-dados-cta {
  margin-top: 2rem;
  text-align: right;
}
.btn-gerar-tabela {
  background: var(--color-orange);
  color: var(--text-primary-color);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: var(--fw-semi-bold);
  padding: 0.75rem 2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition);
}
.btn-gerar-tabela:hover { background: #96BC80; }

[data-theme="dark"] #resultadoContainer caption {
	color: #fff !important;
}

/* ============================================================
   24. SUSTENTABILIDADE
   ============================================================ */
.sustentabilidade-hero {
  background: linear-gradient(135deg, #003322 0%, #006644 40%, #00AA66 100%);
  min-height: 480px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 3rem;
}
.sustentabilidade-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-bold);
}
.sustentabilidade-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.pillar-icon.green  { background: rgba(0,200,100,0.15); color: #00C864; }
.pillar-icon.blue   { background: rgba(26,26,230,0.1);  color: var(--color-primary); }
.pillar-icon.teal   { background: rgba(6,214,160,0.15); color: var(--color-secondary); }
.pillar-icon.orange { background: rgba(255,107,53,0.15);color: var(--color-orange); }

/* ============================================================
   ANUÁRIOS ANFAVEA
   ============================================================ */

.anuario-year-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.page-template-page-anuario-anfavea .anuario-year-jump-label {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: #0a6cff;
  margin: 0;
}

.anuario-year-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 220px;
  padding: 1.25rem 2.5rem 1.25rem 1.25rem;
  border: 1px solid #1C72DB;
  border-radius: var(--radius-pill, 999px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a6cff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1C72DB;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.anuario-year-select:hover,
.anuario-year-select:focus {
  border-color: var(--color-primary, #0a6cff);
  outline: none;
}

/* --- Grid de cards --- */
.anuario-grid {
  margin: 0;
}

.anuario-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  background: #0a3da8;
  box-shadow: 0 2px 10px rgba(10, 30, 80, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.anuario-card:hover,
.anuario-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 30, 80, 0.22);
}

.anuario-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a3da8;
}

.anuario-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anuario-card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a3da8 0%, #062a78 100%);
}

.anuario-card-year {
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: #fff;
  background: #1C72DB;
  letter-spacing: 0.01em;
}

/* --- Estado vazio --- */
.anuario-empty {
  text-align: center;
  color: var(--text-primary, #1a1a1a);
  opacity: 0.6;
  padding: 3rem 0;
  margin: 0;
}

/* --- Responsivo --- */
@media (max-width: 991.98px) {
  .anuario-card-year {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .anuario-year-jump {
    flex-direction: column;
    align-items: flex-start;
  }

  .anuario-year-select {
    width: 100%;
  }

  .anuario-card-year {
    font-size: 2rem;
  }
}

/* ============================================================
   COMÉRCIO EXTERIOR
   ============================================================ */

.acordos-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px 40px;
    margin:30px 0;
}

.acordo-pill{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;

    padding:14px 22px;

    background:#0066b3;
    color:#fff !important;

    border-radius:999px;

    text-decoration:none !important;

    font-size:16px;
    font-weight:600;

    transition:.25s ease;
}

.acordo-pill:hover{
    background:#004f8b;
    color:#fff !important;
    transform:translateY(-2px);
}

.acordo-pill .icone{
    flex-shrink:0;
    font-size:18px;
    font-weight:700;
}

@media (max-width:768px){

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

}

[data-theme="dark"] .projecao-icone svg {
  filter: invert(1);
}

[data-theme="dark"] .descarbonizacao-item h2, [data-theme="dark"] .descarbonizacao-texto p {
  color: #fff;
}

.descarbonizacao-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

.descarbonizacao-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    margin-bottom: 100px;
}

.descarbonizacao-texto {
    flex: 1;
}

.descarbonizacao-item h2 {
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111;
    margin-bottom: 40px;
}

.descarbonizacao-texto p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #222;
    margin: 0;
}

.descarbonizacao-card {
    width: 470px;
    flex-shrink: 0;
    border-radius: 40px;
    overflow: hidden;
    background: #34c759;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.descarbonizacao-card img {
    width: 100%;
    display: block;
}

.descarbonizacao-card-conteudo {
    padding: 40px;
}

.descarbonizacao-tag {
    display: inline-block;
    background: #fff;
    color: #34c759;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 25px;
}

.descarbonizacao-card h3 {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 30px;
    font-weight: 800;
}

.descarbonizacao-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding-bottom: 3px;
}

@media (max-width: 991px) {

    .descarbonizacao-item {
        flex-direction: column;
        gap: 40px;
    }

    .descarbonizacao-card {
        width: 100%;
    }

    .descarbonizacao-texto h2 {
        font-size: 2.2rem;
    }

    .descarbonizacao-texto p {
        font-size: 1.1rem;
    }

    .descarbonizacao-card h3 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   25. RESPONSIVENESS
   ============================================================ */
@media (max-width: 991.98px) {
  .about-banner-content { max-width: 80%; }
  .central-dados-layout { flex-direction: column; }
  .central-dados-sidebar {
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .timeline-layout { flex-direction: column; }
  .timeline-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem; }
}

@media (max-width: 767.98px) {
  :root {
    --h1: 2rem;
    --h2: 1.625rem;
    --h3: 1.375rem;
  }
  .navbar-brand img { height: 32px; }
  .site-footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .event-action-grid { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-left: 0; padding-top: 1.5rem; }
  .page-hero { padding: 1.5rem; min-height: 160px; }
  .central-dados-sidebar { padding: 1.5rem; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { width: 100%; }
}

@media (max-width: 575.98px) {
  .event-card-image { aspect-ratio: 3/2; }
  .person-card-avatar { width: 130px; height: 130px; }
}

/* ============================================================
   26. UTILITIES
   ============================================================ */
.text-primary-color  { color: var(--color-primary) !important; }
.text-secondary-color{ color: var(--color-secondary) !important; }
.text-orange         { color: var(--color-orange) !important; }
.bg-primary-anfavea  { background-color: var(--color-primary); }
.bg-secondary-anfavea{ background-color: var(--color-secondary); }
.bg-dark-anfavea     { background-color: var(--color-dark); }
.bg-card             { background-color: var(--bg-card); }
.rounded-anfavea     { border-radius: var(--radius-lg); }
.rounded-xl          { border-radius: var(--radius-xl); }
.border-card         { border: 1px solid var(--border-color); }
.section-pad         { padding: var(--spacing-2xl) 0; }
.section-pad-sm      { padding: var(--spacing-xl) 0; }

/* Scroll loading indicator */
.loading-indicator {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.loading-indicator .spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Imprensa grid layout */
.imprensa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.imprensa-grid .main-card {
  grid-row: 1 / 3;
}
@media (max-width: 767.98px) {
  .imprensa-grid { grid-template-columns: 1fr; }
  .imprensa-grid .main-card { grid-row: auto; }
}

/* Banco de imagens dark banner */
.banco-imagens-banner {
  background: var(--color-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 650px;
}
.banco-imagens-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}
.banco-imagens-content {
  position: relative;
  z-index: 1;
  text-align: right;
}
.banco-imagens-content h2 { color: var(--color-white); }
.banco-imagens-content p  { color: rgba(255,255,255,0.75); }
.banco-imagens-content .arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  transition: all var(--transition);
}

/* Estilos do Banco de Imagens */
.image-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.image-card-img {
    background: #fff;
    padding: 2rem;
    text-align: center;
}

.image-card-img img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.image-card-body {
    padding: 1.5rem 2rem;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-card-description {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

/* Grid de imagens */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}

.image-grid-item {
    position: relative;
    aspect-ratio: 1 / 1.5;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-grid-item:hover .image-grid-overlay {
    opacity: 1;
}

.image-grid-overlay i {
    color: #fff;
    font-size: 2rem;
    opacity: 0.8;
}

/* Tabela de imagens */
.image-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.image-table thead th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 2px solid #dee2e6;
}

.image-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.image-table tbody tr:hover {
    background: #f8f9fa;
}

.image-table td:first-child {
    width: 100px;
    padding: 6px 12px;
}

.image-table td:first-child img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.image-table td:first-child img:hover {
    border-color: #1a1ae6;
}

.image-table td:last-child {
    text-align: center;
    width: 50px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1ae6;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #2a2af6;
    color: #fff;
    transform: scale(1.1);
}

.btn-download i {
    font-size: 14px;
}

.text-muted {
    color: #6c757d;
}

[data-theme="dark"] .text-muted {
	color: #fff !important;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .image-card-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .image-card-img {
        padding: 1rem;
    }

    .image-table {
        font-size: 0.8rem;
    }

    .image-table thead th,
    .image-table tbody td {
        padding: 8px 10px;
    }

    .image-table td:first-child {
        width: 60px;
        padding: 4px 8px;
    }

    .image-table td:first-child img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }

    .image-table td:first-child {
        width: 50px;
    }

    .image-table td:first-child img {
        width: 38px;
        height: 38px;
    }
}

/* Carta da Anfavea download */
.carta-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: var(--fw-semi-bold);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.carta-download-btn:hover { background: #e05a25; }

/* Comércio Exterior – accordion buttons */
.acordo-btn {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-semi-bold);
  cursor: pointer;
  text-align: center;
  transition: background var(--transition);
  margin-bottom: 0.5rem;
}
.acordo-btn:hover { background: var(--blue-600); }

/* Dark section override for hero/timeline */
.section-dark {
  background: var(--color-dark-bg);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 {
  color: var(--color-white);
}
.section-dark p { color: rgba(255,255,255,0.75); }

.gt_float_switcher .gt-lang-code, .gt_float_switcher .gt_float_switcher-arrow, .gt_float_switcher .gt_options a span, .gt_float_switcher .gt_options a { font-size: 0px; }

.gt_float_switcher img { margin: 0 !important; }

.gt_float_switcher .gt-selected .gt-current-lang, .gt_float_switcher .gt_options a { padding: 4px 3px !important; }

.gt_float_switcher .gt_options { position: absolute !important; }

.gt_float_switcher { box-shadow: none !important; }

.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow { width: 10px !important; height: 10px !important; }

.gt_float_switcher, .gt_float_switcher .gt-selected { background: none !important; }

/* ============================================
   OFF-CANVAS MENU - MOBILE
   ============================================ */

/* Overlay escuro */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Offcanvas container - 80% da tela, vindo da esquerda */
.offcanvas-start {
    max-width: 300px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: var(--nav-bg);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.offcanvas-start.show {
    transform: translateX(0);
}

/* Header do offcanvas */
.offcanvas-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.offcanvas-logo img {
    height: 29px;
    width: auto;
}

/* Botão fechar (X) */
.offcanvas-header .btn-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: var(--text-primary, #333);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.offcanvas-header .btn-close::before {
    content: '✕';
    font-size: 16px;
    font-weight: 300;
}

/* Corpo do offcanvas */
.offcanvas-body {
    padding: 20px 20px 20px 80px;
    overflow-y: auto;
    flex: 1;
}

/* Menu no offcanvas */
.offcanvas-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-nav .nav-item {
    margin: 0;
}

/* Submenu no offcanvas */
.offcanvas-nav .sub-menu {
    list-style: none;
    padding: 4px 0 4px 20px;
    margin: 0;
}

.lang-switcher {
  position: relative;
  top: 5px;
}

.offcanvas-nav .sub-menu .nav-link {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
}

/* Controles no offcanvas */
.offcanvas-controls {
    margin-top: auto;
    padding-top: 16px;
}

.offcanvas-controls .lang-switcher {
    display: inline-block;
}

.offcanvas-controls .lang-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.offcanvas-controls .theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.offcanvas-controls .theme-toggle:hover {
    opacity: 1;
}

.filter-mobile-toggle{
    display:none;
}

/* Esconder o botão de toggle no desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .offcanvas-start {
        display: none !important;
    }
}

/* Ajustes mobile */
@media (max-width: 991.98px) {
    /* Mostrar o toggle apenas no mobile */
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        padding: 8px;
        color: var(--text-primary, #1a1a2e);
        font-size: 24px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Esconder o menu desktop no mobile */
    #mainNavbar {
        display: none !important;
    }
    
    .offcanvas-start {
        display: flex !important;
        flex-direction: column;
    }
}

/* Estilos para o accordion mobile */
.card-content-mobile {
    display: none; /* Escondido por padrão no mobile */
}

.card-content-mobile-image {
    display: none; /* Escondido por padrão no mobile */
}

.card-content-desktop {
    display: block; /* Visível no desktop */
}

.imagem-historia-desktop {
    display: block; /* Visível no desktop */
}

.sticky-inst {
	position: sticky;
    top: 90px;
    height: 100%;
}

/* No mobile */
@media (max-width: 767.98px) {
    .card-content-desktop {
        display: none !important; /* Esconde o conteúdo do desktop */
    }
    
    .imagem-historia-desktop {
        display: none !important; /* Esconde a imagem do desktop */
    }
    
    .card-content-mobile,
    .card-content-mobile-image {
        display: none !important; /* Todos começam escondidos */
    }
    
    .card-content-mobile.active {
        display: block !important; /* Mostra o conteúdo ativo */
    }
    
    .card-content-mobile-image.active {
        display: block !important; /* Mostra a imagem ativa */
    }
    
    /* Estiliza o card como botão */
    .card-sobre {
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .card-sobre:hover {
        opacity: 0.9;
    }
    
    .card-sobre-inner {
        position: relative;
        padding-right: 60px !important;
    }
    
    /* Seta animada */
    .seta-mobile {
        position: absolute;
        right: 20px;
        top: 20px;
        color: #fff;
        font-size: 24px;
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .card-sobre.active .seta-mobile {
        transform: rotate(180deg);
    }
    
    /* Animação suave */
    .card-content-mobile,
    .card-content-mobile-image {
        animation: fadeSlideDown 0.3s ease;
    }

    .card-wrapper .content, .card-wrapper .imagem-historia {
      margin-top: 20px;
    }
    
    @keyframes fadeSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Desktop */
@media (min-width: 768px) {
    .card-content-mobile,
    .card-content-mobile-image {
        display: none !important;
    }
    
    .card-content-desktop {
        display: block !important;
    }
    
    .imagem-historia-desktop {
        display: block !important;
    }
    
    .seta-mobile {
        display: none !important;
    }
    
    .card-sobre {
        cursor: default;
    }
}

/* ============================================================
   HERO SECTION — Destaque principal + 3 chamadas menores
   Colar no main.css do tema.
   ============================================================ */

/* ── Wrapper geral ───────────────────────────────────────── */
.hero-main {
  width: 100%;
}

/* ── DESTAQUE PRINCIPAL ──────────────────────────────────── */
.hero-principal {
  position: relative;
  display: block;
  width: 100%;
  min-height: 520px;
  border-radius: 32px 32px 0px 0px;
  overflow: hidden;
  color: #fff;
border: 1px solid var(--color-white);
}

/* Imagem de fundo */
.hero-principal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}
.hero-principal:hover .hero-principal-bg {
  transform: scale(1.03);
}

/* Gradiente escurecedor */
.hero-principal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.30) 55%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

/* Conteúdo posicionado sobre a imagem */
.hero-principal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 2rem 2.25rem;
}

/* Linha de meta: label + data */
.hero-principal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.hero-principal-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.02em;
}

/* Título */
.hero-principal-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.75rem;
  max-width: 680px;
}

/* Excerpt */
.hero-principal-excerpt {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 580px;
}

/* Seta */
.hero-principal-arrow {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-principal:hover .hero-principal-arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* ── CHAMADAS MENORES ────────────────────────────────────── */
.hero-chamadas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 0 0 var(--radius-xl, 16px) var(--radius-xl, 16px);
  overflow: hidden;
  /* Une visualmente com o destaque principal */
  margin-top: 1px;
}

.hero-chamada {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.hero-chamada:hover {
  background-color: var(--color-bg-subtle, #f5f7fa);
}

/* Linha de meta: label + data */
.hero-chamada-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-chamada-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  letter-spacing: 0.02em;
}

/* Título da chamada */
.hero-chamada-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary, #1a1a1a);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-chamada:hover .hero-chamada-title {
  color: var(--color-primary, #0a6cff);
}

/* ============================================
   BOTÃO DE BUSCA
   ============================================ */
.search-toggle {
    background: none;
    border: none;
    padding: 4px 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    opacity: 0.7;
}

.search-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* PAGE CKD SKD */


.ckd {
  /* Divi body default */
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  line-height: 1.7em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.ckd *,
.ckd *::before,
.ckd *::after { box-sizing: border-box; }

.ckd p { padding-bottom: 1em; margin: 0; }
.ckd p:last-of-type { padding-bottom: 0; }
.ckd strong { font-weight: 700; }

.ckd h1, .ckd h2, .ckd h3, .ckd h4, .ckd h5, .ckd h6 {
  color: var(--text-primary);
  padding-bottom: 10px;
  line-height: 1em;
  font-weight: 500;
  margin: 0;
}

.ckd img { max-width: 100%; height: auto; }

/* --- section: .et_pb_section --- */
.ckd__section {
  position: relative;
  background-color: var(--nav-bg);
  background-position: 50%;
  background-size: cover;
  padding: 4% 0;
}

/* --- row: .et_pb_row (width:80%; max-width:1080px) --- */
.ckd__row {
  width: 80%;
  max-width: 1080px;
  margin: auto;
  position: relative;
  padding: 2% 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* --- column: gutters3 (margin-right:5.5%) --- */
.ckd__col { position: relative; z-index: 2; min-height: 1px; background-size: cover; background-position: 50%; }
.ckd__row > .ckd__col { margin-right: 5.5%; }
.ckd__row > .ckd__col:last-child { margin-right: 0 !important; }

.ckd__col--4_4 { width: 100%; }
.ckd__col--3_5 { width: 57.8%; }
.ckd__col--2_5 { width: 36.7%; }
.ckd__col--2_3 { width: 64.833%; }
.ckd__col--1_3 { width: 29.6667%; }
.ckd__col--1_2 { width: 47.25%; }

/* --- gutters1 (sem gutter): usado na row do Manifesto --- */
.ckd__row--gutters1 > .ckd__col { margin-right: 0; }
.ckd__row--gutters1 > .ckd__col--3_5 { width: 60%; }
.ckd__row--gutters1 > .ckd__col--2_5 { width: 40%; }

/* --- linhas de colunas iguais --- */
.ckd__row--equal { align-items: stretch; }
.ckd__row--equal > .ckd__col { display: flex; flex-direction: column; }

@media (min-width: 1350px) {
  .ckd__section { padding: 54px 0; }
  .ckd__row { padding: 27px 0; }
}

@media (max-width: 980px) {
  .ckd__section { padding: 50px 0; }
  .ckd__row { padding: 30px 0; max-width: 1080px; }
  .ckd__row > .ckd__col,
  .ckd__row--gutters1 > .ckd__col { width: 100% !important; margin-right: 0; margin-bottom: 30px; }
  .ckd__row > .ckd__col:last-child { margin-bottom: 0; }
}

/* -------------------------------------------------------------------------
   2. SEÇÃO 0 — Hero  (.et_pb_section_0)
   ------------------------------------------------------------------------- */
.ckd__hero { overflow: hidden; }

/* .et_pb_column_0 */
.ckd__hero-col {
  padding-top: 14%;
  z-index: 10 !important;
  position: relative;
}

/* .et_pb_text_0 */
.ckd__hero-title { margin-right: -20%; }
.ckd__hero-title h1 {
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  font-size: 79px;
  letter-spacing: -0.04em;
}

/* .et_pb_text_1 */
.ckd__hero-sub {
  margin-bottom: 17px;
}
.ckd__hero-sub h4 {
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  color: #787F84;
  letter-spacing: 0em;
  line-height: 1.5em;
}

/* .et_pb_divider_0 */
.ckd__hero-divider {
  height: 10px;
  max-width: 100px;
  transform: skewX(-20deg) skewY(0deg);
  margin: 0 0 30px;
  position: relative;
}
.ckd__hero-divider::before {
  content: "";
  width: 100%;
  height: 1px;
  border-top: 10px double #053b87;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}

/* .et_pb_image_0 */
.ckd__hero-img {
  margin-top: -30%;
  margin-right: -15vw;
  margin-left: -60%;
  text-align: left;
  line-height: 0;
  display: block;
}

@media (max-width: 980px) {
  .ckd__hero-col { padding-top: 0; }
  .ckd__hero-title h1 { font-size: 6vw; }
  .ckd__hero-title { margin-right: 0; }
  .ckd__hero-sub h4 { font-size: 13px; }
  .ckd__hero-img { margin-top: 0; margin-right: -10vw; margin-left: -10vw; }
  .ckd__hero-img img { width: auto; }
}

@media (max-width: 767px) {
  .ckd__hero-title h1 { font-size: 10vw; }
  .ckd__hero-title { margin-top: -43px; margin-right: 0; }
  .ckd__hero-sub h4 { font-size: 16px; }
  .ckd__hero-img { margin-top: -15%; margin-right: -7vw; margin-left: -7vw; }
  .ckd__hero-img img { width: auto; }
}

/* -------------------------------------------------------------------------
   3. SEÇÃO 1 — Manifesto  (.et_pb_section_1)
   ------------------------------------------------------------------------- */
.ckd__manifesto {
  overflow: hidden;
  padding-bottom: 0;
  margin-top: -162px;
}

/* .et_pb_row_1 */
.ckd__manifesto-row {
  width: 100%;
  max-width: none;
  padding-bottom: 0 !important;
  margin-top: 8vw !important;
}

/* .et_pb_column_2 — coluna azul do manifesto */
.ckd__manifesto-col {
  background-position: left bottom 0px;
  background-image:
    linear-gradient(190deg, #0c71c3 22%, #0c75d1 77%, rgba(255, 255, 255, 0) 100%),
    var(--ckd-pattern, none);
  background-color: #0863a0;
  padding: 0 4% 10%;
  box-shadow: inset 0px 16vw 0px 0px #FFFFFF;
  z-index: 10 !important;
  position: relative;
}

/* .et_pb_column_3 — coluna azul-escura do selo + vídeo */
.ckd__video-col { background-color: #001e4f; }

/* .et_pb_divider_1 — forma decorativa (gradiente pêssego/lilás) */
.ckd__blob {
  background-image: linear-gradient(240deg, #f8cbad 20%, #bdb7ea 75%);
  border-radius: 300px 300px 0 300px;
  overflow: hidden;
  height: 135px;
  width: 135px;
  box-shadow: 0px 60px 80px 0px rgba(218, 193, 205, 0.3);
  position: absolute !important;
  top: 0;
  bottom: auto;
  left: 0;
  right: auto;
  transform: translateX(24vw) translateY(-4vw);
  z-index: -1;
}

/* .et_pb_image_1 — abre_.png (tablet/fábrica) */
.ckd__manifesto-img {
  margin-top: -8vw;
  margin-right: -30vw;
  margin-left: -8vw;
  text-align: left;
  line-height: 0;
  display: block;
}

/* .et_pb_text_2 — título "Manifesto" */
.ckd__manifesto-title { margin-bottom: 10px; }
.ckd__manifesto-title h2 {
  font-family: 'Khand', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.2em;
  color: #ffffff;
  text-align: left;
}

/* .et_pb_text_3 — corpo do manifesto */
.ckd__manifesto-text {
  color: #FFFFFF !important;
  font-size: 17px;
  margin-top: 5px;
  margin-bottom: 14px;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
  text-align: left;
}
.ckd__manifesto-text p { color: #FFFFFF; }

/* .et_pb_image_2 — saas-19.png (selo, 50% de opacidade) */
.ckd__selo {
  filter: opacity(50%);
  backface-visibility: hidden;
  padding-bottom: 432px;
  margin-bottom: 8vw;
  text-align: left;
  margin-left: 0;
  line-height: 0;
  display: block;
}

/* .et_pb_code_0 — vídeo sobreposto ao selo */
.ckd__video {
  margin-top: -407px;
  margin-bottom: 94px;
  max-width: 100%;
  width: 82%;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative;
}
.ckd__video video { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
  .ckd__manifesto { margin-top: -162px; }
  .ckd__blob { height: 12vw; width: 12vw; }
  .ckd__manifesto-img { margin-top: -8vw; margin-right: -30vw; margin-left: -8vw; }
  .ckd__manifesto-img img,
  .ckd__selo img { width: auto; }
  .ckd__manifesto-title h2 { font-size: 32px; }
  .ckd__manifesto-text { margin-top: 5px; margin-bottom: 14px; max-width: 100%; }
  .ckd__selo { padding-bottom: 432px; margin-bottom: -8vw; width: 80%; }
  .ckd__video { padding: 1px 0 0; margin-top: -135px; width: 100%; margin-left: 0 !important; margin-right: auto !important; }
  .ckd__manifesto-col { padding: 0 4% 10%; }
  .ckd__video-col { padding-left: 120px; }
}

@media (max-width: 767px) {
  .ckd__manifesto { margin-top: -186px; }
  .ckd__blob { height: 12vw; }
  .ckd__manifesto-img { margin-left: -2vw; width: 100%; }
  .ckd__manifesto-title h2 { font-size: 20px; }
  .ckd__manifesto-title { margin-top: 3px; margin-bottom: -85px; }
  .ckd__manifesto-text { font-size: 15px; margin-top: 102px; }
  .ckd__selo { padding-bottom: 432px; margin-top: -208px; margin-bottom: -109vw; }
  .ckd__video { padding: 8px 58px 0 0; margin-top: -31px; margin-left: auto !important; margin-right: auto !important; }
  .ckd__video-col { padding-left: 60px; }
}

/* -------------------------------------------------------------------------
   4. SEÇÃO 2 — Título "Glossário"  (.et_pb_section_2)
   ------------------------------------------------------------------------- */
/* .et_pb_row_2 */
.ckd__glossario-head-row { margin-bottom: -116px !important; }

/* .et_pb_text_4 */
.ckd__glossario-title { margin-bottom: 10px; text-align: center; }
.ckd__glossario-title h2 {
  font-family: 'Khand', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.2em;
}

@media (max-width: 980px) {
  .ckd__glossario-title h2 { font-size: 32px; }
  .ckd__glossario-title { margin-bottom: 10px; }
}
@media (max-width: 767px) {
  .ckd__glossario-title h2 { font-size: 20px; }
  .ckd__glossario-title { margin-top: -26px; margin-bottom: -2px; }
}

/* -------------------------------------------------------------------------
   5. SEÇÃO 3 — Cards do Glossário  (.et_pb_section_3)
   ------------------------------------------------------------------------- */
/* .et_pb_column_5 ... .et_pb_column_21 */
.ckd__card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--text-primary);
  padding: 30px;
}

/* .et_pb_text_5 h5 (etc.) */
.ckd__card-title { margin: 0 0 0; }
.ckd__card-title h5 {
  font-family: 'Khand', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 500;
  font-size: 29px;
  letter-spacing: -0.01em;
  line-height: 1.2em;
  text-align: left;
}

/* .et_pb_text_6 (etc.) — corpo do card, tipografia default do Divi */
.ckd__card-text { margin-top: 10px; }

/* .et_pb_image_3 */
.ckd__fabrica { text-align: left; margin-left: 0; line-height: 0; display: block; }

@media (max-width: 980px) {
  .ckd__card { padding: 30px; }
  .ckd__card-title h5 { font-size: 15px; }
  .ckd__fabrica img { width: auto; }
}
@media (max-width: 767px) {
  .ckd__card { padding: 20px; }
  .ckd__card-title h5 { font-size: 26px; }
  .ckd__fabrica { width: 100%; }
}

/* -------------------------------------------------------------------------
   6. SEÇÃO 4 — Documentos e Cartas  (.et_pb_section_4)
   ------------------------------------------------------------------------- */
.ckd__docs {
  padding-left: 10vw;
  margin-bottom: 10vw;
  background-color: #000000 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 90%;
}

/* .et_pb_row_9 — sangra o preto para a esquerda da viewport */
.ckd__docs-row {
  background-color: #000000;
  box-shadow: -30vw 0px 0px 0px #000000;
}

/* .et_pb_image_4 — cel.png */
.ckd__docs-img {
  margin-bottom: -10vw;
  margin-left: -15%;
  text-align: center;
  line-height: 0;
  display: block;
}
.ckd__docs-img img { max-height: none; }

/* .et_pb_column_23 */
.ckd__docs-col { padding-top: 20%; }

/* .et_pb_text_37 */
.ckd__docs-title { margin-bottom: 10px; }
.ckd__docs-title h2 {
  font-family: 'Khand', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.2em;
  text-align: left;
}

/* .et_pb_text_38 */
.ckd__docs-desc {
  color: #FFFFFF !important;
  line-height: 1.8em;
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* .dsm_button_0 — botões */
.ckd__btns {
  padding-bottom: 1px;
  margin-top: -14px;
  margin-bottom: 17px;
  text-align: left;
}
.ckd__btn {
  display: inline-block;
  position: relative;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700 !important;
  padding: .3em 1em;
  line-height: 1.7em !important;
  background-color: transparent;
  text-decoration: none;
  transition-duration: .2s;
  transition-property: all !important;
}
.ckd__btn:last-child {
  padding-left: 17px;
  margin-top: 13px;
  margin-left: 9px;
}
.ckd__btn::after {
  content: "\35"; /* seta ETmodules; ver nota no PHP */
  font-family: 'ETmodules', sans-serif;
  font-weight: 400 !important;
  font-size: inherit !important;
  line-height: inherit;
  color: #000000;
  position: absolute;
  opacity: 0;
  margin-left: -1em;
  left: auto;
  transition: all .2s;
}
.ckd__btn:hover {
  color: #000000 !important;
  background-color: #FFFFFF;
  border-radius: 0;
  border-color: #FFFFFF;
  padding-right: 2em;
  padding-left: 0.7em;
}
.ckd__btn:hover::after { opacity: 1; margin-left: .3em; left: auto; }

@media (max-width: 980px) {
  .ckd__docs { padding-left: 0; width: 100%; }
  .ckd__docs-img { margin-bottom: 0; margin-left: 0; }
  .ckd__docs-img img { max-height: 600px; width: auto; }
  .ckd__docs-title h2 { font-size: 32px; }
  .ckd__docs-desc { font-size: 15px; }
  .ckd__docs-col { padding-top: 0; padding-bottom: 0; }
}
@media (max-width: 767px) {
  .ckd__docs { padding-bottom: 0; }
  .ckd__docs-title h2 { font-size: 20px; }
  .ckd__docs-desc { font-size: 14px; }
  .ckd__btns { margin-top: -3px; margin-bottom: 52px; }
  .ckd__btn:last-child { margin-bottom: 6px; margin-left: 2px; }
}

/* -------------------------------------------------------------------------
   7. SEÇÃO 5 — FAQ (toggles)  (.et_pb_section_5)
   ------------------------------------------------------------------------- */
.ckd__faq {
  overflow: hidden;
  padding-top: 4vw;
}

/* .et_pb_row_10 */
.ckd__faq-row { margin-top: -91px !important; }

/* .et_pb_column_24 */
.ckd__faq-col { padding-top: 14%; }

/* .et_pb_text_39 */
.ckd__faq-title {
  margin-top: -137px;
  margin-bottom: 37px;
  text-align: center;
}
.ckd__faq-title h2 {
  font-family: 'Khand', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.02em;
  line-height: 1.2em;
}

/* .et_pb_toggle_0 ... _8 */
.ckd__toggle {
  position: relative;
  font-size: 17px;
  line-height: 1.4em;
  background-color: var(--nav-bg);
  padding: 20px 30px;
  margin-top: -6px;
  margin-bottom: 26px;
  border-radius: 10px;
  overflow: hidden;
  border-width: 0 0 0 10px;
  border-style: solid;
  border-color: #0c71c3;
  box-shadow: 0px 2px 70px 0px rgba(110, 130, 208, 0.18) !important;
  transition: background-color 300ms ease 0ms;
}
.ckd__toggle:hover { background-color: #0fefff; }
 [data-theme="dark"] .ckd__toggle:hover { background-color: var(--blue-800); }
.ckd__toggle.is-open:hover { background-color: var(--nav-bg); }

.ckd__toggle-title {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1.7em;
  text-align: center;
  cursor: pointer;
  position: relative;
  padding: 0 30px 0 0;
  margin: 0;
  user-select: none;
}

.ckd__toggle-content {
  display: none;
  padding-top: 10px;
}
.ckd__toggle.is-open .ckd__toggle-content { display: block; }
.ckd__toggle-content p { line-height: 1.4em; }

/* ---- Toggle: +/− desenhados em CSS ---- */
.ckd__toggle-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #0c71c3;
  transform: translateY(-50%);
}
.ckd__toggle-title::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 2px;
  height: 16px;
  background: #0c71c3;
  transform: translateY(-50%);
  transition: opacity .2s;
}
.ckd__toggle.is-open .ckd__toggle-title::after { opacity: 0; }

/* ---- Botão: seta em SVG inline ---- */
.ckd__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .7em;
  width: 1em;
  height: 1em;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
  margin-left: 0;
  transition: opacity .2s;
}
.ckd__btn:hover::after { opacity: 1; }

@media (max-width: 980px) {
  .ckd__faq-row { margin-top: 87px !important; }
  .ckd__faq-title { margin-top: -137px; margin-bottom: 10px; }
  .ckd__faq-title h2 { font-size: 32px; }
  .ckd__faq-col { padding-top: 0; padding-right: 30px; }
  .ckd__toggle { font-size: 17px; border-left-width: 10px; }
}
@media (max-width: 767px) {
  .ckd__faq-row { margin-top: -30px !important; }
  .ckd__faq-title { margin-top: -11px; }
  .ckd__faq-title h2 { font-size: 20px; }
  .ckd__toggle { font-size: 14px; border-left-width: 10px; }
  .ckd__toggle-title { font-size: 16px; line-height: 1.3em; }
}

/* ============================================
   MODAL DE BUSCA
   ============================================ */
#searchModal .modal-content {
    background: var(--nav-bg);
    color: var(--nav-text);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#searchModal .modal-header {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

#searchModal .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

#searchModal .modal-body {
    padding: 1.5rem;
}

#searchModal .form-control {
    border-radius: 12px 0 0 12px;
    border: 2px solid var(--nav-text);
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    background: var(--nav-bg);
    color: var(--nav-text);
}

#searchModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--nav-text), 0.15);
}

#searchModal .btn-primary {
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    background: var(--nav-bg);
    border-color: var(---nav-text);
    color: var(---text-primary);
}

#searchModal .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

 [data-theme="dark"] #searchModal .btn-close {
    filter: invert(1);
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-principal {
    min-height: 420px;
  }
  .hero-principal-content {
    min-height: 420px;
    padding: 1.5rem 1.5rem;
  }
  .hero-chamadas {
    grid-template-columns: 1fr;
    border-radius: 0 0 var(--radius-xl, 16px) var(--radius-xl, 16px);
  }
  .hero-chamada {
    border-bottom: 1px solid var(--border-color, #e0e4ed);
  }
  .hero-chamada:last-child {
    border-bottom: none;
  }
}

@media (max-width: 575.98px) {
  .hero-principal {
    min-height: 340px;
    border-radius: var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0;
  }
  .hero-principal-content {
    min-height: 340px;
    padding: 1.25rem;
  }
  .hero-principal-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
    .custom-logo-link img {
      max-width: 180px;
    }
    .navbar-toggler .bi.bi-list {
      font-size: 40px;
    }
    .page-template-page-conteudos .explore-other-contents h4 {
      font-size: 32px;
    }
    .site-footer .rodape-bg {
      padding: 20px 5px;
    }
    .relacionadas {
      overflow-x: auto;
    }
    #menu-submenu-institucional, .stats-section .stats-filter, .relacionadas .box-rolagem-lateral, .dashboard-select-first #dashboardGroup {
      width: max-content;
      min-width: 100%;
      padding: 0 0 10px 0;
      margin: 0;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }
    .relacionadas .box-rolagem-lateral .col-4 {
      max-width: 320px;
    }
    .sub-nav > .container, .stats-section .box-filtro-home, .relacionadas, .dashboard-select-first {
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 0 15px;
    }
    .stats-section .box-filtro-home {
      padding: 0;
    }
    .sobre-hero .hero-content h1 {
      font-size: 40px;
    }
    .sobre-hero .hero-content p {
      font-size: 1.2rem;
    }
    .card-sobre {
      min-height:auto;
    }
    .person-card {
      padding: 0;
      align-items: center;
      text-align: left;
      gap: 1.5rem;
    }
    .person-card-avatar {
      margin: 0;
    }
    .person-card-link {
      padding: 0;
    }
    .presidencia-anfavea {
      min-height: 50vh;
    }
    .presidencia-anfavea > img {
      object-position: 38% !important;
    }
    .presidencia-anfavea .hero-presidencia {
      height: 60vh;
    }
    .presidencia-anfavea h2 {
      font-size: 1.75rem;
    }
    .nav-linha-do-tempo {
      position: inherit;
      margin-bottom: 40px;
    }
    .timeline-period-btn {
      display: inline-block;
      width: 45%;
      margin: .5rem .2rem;
    }
    .timeline-entry::before {
      display: none;
    }
    .timeline-card {
      padding: 10px;
    }
    .timeline-entry {
      gap: .5rem;
    }
    .timeline-year-badge {
      font-size: 1.5rem;
    }
    .timeline-entry.right {
      margin-bottom: 0;
    }
    .countdown-bar .countdown-text {
        font-size: 1.75rem;
        text-align: center;
        line-height: 1.4;
    }
    .filter-bar-label {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    .filter-bar{

        display:block;

    }

    .filter-mobile-toggle{

      background: none;

        display:flex;
        align-items:center;
        justify-content:space-between;

        padding:14px 18px 14px 0px;

        border:none;

        font-size: 1rem;
        font-weight: var(--fw-bold);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-primary);
        margin-right: 0.5rem;
        white-space: nowrap;


    }

    .filter-mobile-toggle i{

        transition:.25s;

    }

    .filter-mobile-toggle[aria-expanded="true"] i{

        transform:rotate(180deg);

    }

    #imprensaFiltersCollapse{

        margin-top:15px;

        flex-direction:column;
        align-items:stretch !important;

        gap:12px;

    }

    .filter-bar-label{

        display:none;

    }

    .filter-btn{
      padding: 1rem;
        margin: 5px 2px;

    }

    .filter-search{

        width:100%;
        margin-left:0;
        margin-top: 10px;

    }
    .page-search-bar input {
      margin-top: 10px;
    }
    .page-search-bar, .page-search-bar input {
      width: 100%;
    }
    .content-hero {
      min-height: 100px;
      padding: 1.5rem;
      margin-bottom: 0;
    }
    .descarbonizacao-wrapper {
      padding: 0 !important;
    }
    .descarbonizacao-item h2 {
      font-size: 1.5rem !important;
      margin-bottom: 20px !important;
    }
    .descarbonizacao-box {
      display: block !important;
    }
    .descarbonizacao-card {
      margin-top: 30px;
    }
    .projecao-icone svg {
      max-width: 60px;
    }
    .section-pad {
        padding: var(--spacing-sm) 0;
    }
    .carta-anfavea-box h2 {
      text-align: center;
    }
    .carta-anfavea-box .intro {
      margin-bottom: 20px;
    }
    .central-dados-form-area {
      padding: 20px 0;
      margin: 0;
    }
    #heroStage {
      margin: 0 15px 25px 15px;
    }
    .hero-sidebar-selector {
      background: transparent !important;
    }
    .hero-slide-meta, .hero-slide-excerpt {
      display: none;
    }
    .toggle-btn {
      font-size: .8rem;
    }
    .dashboard-select-first .toggle-button-group, .dashboard-select-first .toggle-button-group-multiselect {
      margin-bottom: 10px;
      gap: .75rem;
    }
    .dashboard-select-first {
      padding: 0;
    }
    .press-card-title, .main-card h3 {
      font-size: 1.3rem;
    }
    .toggle-button-group, .toggle-button-group-multiselect {
      gap: 0.5rem;
    }
}

@media (max-width: 1200px) {
  .main-nav .nav-link {
    font-size: 0.7rem;
    padding: .4rem !important;
  }
  .custom-logo-link img {
    max-width: 140px;
  }
  .gt_float_switcher img {
    width: 20px !important;
  }
  .theme-toggle .toggle-icon {
    width: 22px;
    height: 22px;
  }
  .theme-toggle {
    gap: 0.1em;
    padding: 0.1rem;
  }
}

/* CF7 */

/* ========================================
   CONTACT FORM 7 - ESTILOS PERSONALIZADOS
   ======================================== */

/* ----- Reset e estrutura base ----- */
.wpcf7 {
    max-width: 100%;
}

.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
    word-break: normal !important;
}

.wpcf7 .hidden-fields-container {
    display: none;
}

/* ----- Estilos dos campos ----- */
.wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    margin-bottom: 0;
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-clip: padding-box;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file):hover {
    border-color: #b0b0b0;
    background-color: #fafafa;
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file):focus {
    border-color: #026559;
    outline: none;
    box-shadow: 0 0 0 4px rgba(2, 101, 89, 0.12);
    background-color: #fff;
    transform: translateY(-1px);
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file)::placeholder {
    color: #999;
    opacity: 1;
    font-weight: 300;
}

/* ----- Select personalizado ----- */
.wpcf7-form .wpcf7-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.wpcf7-form .wpcf7-select:hover {
    border-color: #b0b0b0;
    background-color: #fafafa;
}

.wpcf7-form .wpcf7-select:focus {
    border-color: #026559;
    outline: none;
    box-shadow: 0 0 0 4px rgba(2, 101, 89, 0.12);
}

.wpcf7-form .wpcf7-select option {
    padding: 8px;
    color: #333;
}

.wpcf7-form .wpcf7-select option:disabled {
    color: #999;
}

/* ----- Campos com erro ----- */
.wpcf7-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

.wpcf7-form .wpcf7-not-valid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-top: 6px;
    padding-left: 2px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Botão de envio ----- */

.wpcf7-form .wpcf7-submit::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.wpcf7-form .wpcf7-submit:hover {
    background: #014d43;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 101, 89, 0.35);
}

.wpcf7-form .wpcf7-submit:hover::after {
    transform: translateX(5px);
}

.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ----- Spinner/Loading ----- */
.wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #026559;
    opacity: 0.8;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 0 0 15px;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

form.submitting .wpcf7-spinner {
    visibility: visible;
}

.wpcf7-spinner::before {
    content: '';
    position: absolute;
    background-color: #fff;
    top: 5px;
    left: 5px;
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 100%;
    transform-origin: 9px 9px;
    animation-name: spin;
    animation-duration: 800ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    from {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpcf7-spinner::before {
        animation-name: blink;
        animation-duration: 2000ms;
    }
}

/* ----- Mensagens de resposta ----- */
.wpcf7 form .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 16px 22px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    background: #f8f9fa;
    color: #333;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
    display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
    display: block;
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

.wpcf7 form.sent .wpcf7-response-output::before {
    content: '✓ ';
    font-weight: 700;
    font-size: 18px;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
}

.wpcf7 form.failed .wpcf7-response-output::before {
    content: '✕ ';
    font-weight: 700;
    font-size: 18px;
}

.wpcf7 form.spam .wpcf7-response-output {
    display: block;
    background: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    display: block;
    background: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

/* ----- Checkbox e Radio ----- */
.wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 0 16px 8px 0;
    gap: 8px;
}

.wpcf7-list-item-label {
    cursor: pointer;
    font-size: 15px;
    color: #333;
    user-select: none;
}

.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #026559;
    cursor: pointer;
    flex-shrink: 0;
}

.wpcf7-list-item input[type="checkbox"]:focus,
.wpcf7-list-item input[type="radio"]:focus {
    outline: 2px solid rgba(2, 101, 89, 0.3);
    outline-offset: 2px;
}

/* ----- File Input ----- */
.wpcf7 input[type="file"] {
    cursor: pointer;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    width: 100%;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.wpcf7 input[type="file"]:hover {
    border-color: #026559;
    background: #f0f9f8;
}

.wpcf7 input[type="file"]:disabled {
    cursor: default;
    opacity: 0.5;
}

.wpcf7 input[type="file"]::file-selector-button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: #026559;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
    background: #014d43;
}

/* ----- Textarea ----- */
.wpcf7-form .wpcf7-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease-in-out;
}

.wpcf7-form .wpcf7-textarea:focus {
    border-color: #026559;
    outline: none;
    box-shadow: 0 0 0 4px rgba(2, 101, 89, 0.12);
}

.wpcf7-form .wpcf7-textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* ----- Layout responsivo ----- */
@media (max-width: 768px) {
    .wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .wpcf7-form .wpcf7-select {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
        background-position: right 15px center;
    }
    
    .wpcf7-form .wpcf7-submit {
        padding: 14px 30px;
        font-size: 15px;
        min-width: 150px;
        width: 100%;
        justify-content: center;
    }
    
    .wpcf7-form .wpcf7-submit::after {
        content: ' →';
    }
    
    .wpcf7 form .wpcf7-response-output {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .wpcf7-not-valid-tip {
        font-size: 12px;
    }
    
    .wpcf7-list-item {
        margin: 0 12px 6px 0;
        font-size: 14px;
    }
    
    .wpcf7-spinner {
        width: 24px;
        height: 24px;
        margin: 0 0 0 12px;
    }
    
    .wpcf7-spinner::before {
        top: 4px;
        left: 4px;
        width: 6px;
        height: 6px;
        transform-origin: 8px 8px;
    }
}

@media (max-width: 480px) {
    .wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file) {
        padding: 10px 13px;
        font-size: 14px;
    }
    
    .wpcf7-form .wpcf7-select {
        padding: 10px 13px;
        font-size: 14px;
    }
    
    .wpcf7-form .wpcf7-submit {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .wpcf7-form .wpcf7-textarea {
        min-height: 100px;
        padding: 12px 15px;
    }
    
    .wpcf7 form .wpcf7-response-output {
        padding: 12px 15px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* ----- Acessibilidade ----- */
.wpcf7 [inert] {
    opacity: 0.5;
    pointer-events: none;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    direction: ltr;
}

/* ----- Reflection (para campos condicionais) ----- */
.wpcf7-reflection > output {
    display: list-item;
    list-style: none;
}

.wpcf7-reflection > output[hidden] {
    display: none;
}

/* ----- Utilidades adicionais ----- */
.wpcf7-form .wpcf7-form-control-wrap {
    margin-bottom: 4px;
}

.wpcf7-form .wpcf7-form-control-wrap:last-child {
    margin-bottom: 0;
}

/* Remover setas do input number */
.wpcf7-form input[type="number"]::-webkit-inner-spin-button,
.wpcf7-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wpcf7-form input[type="number"] {
    -moz-appearance: textfield;
}

/* ----- Campos com ícones (opcional) ----- */
.wpcf7-form .wpcf7-form-control-wrap.has-icon {
    position: relative;
}

.wpcf7-form .wpcf7-form-control-wrap.has-icon .wpcf7-form-control {
    padding-left: 45px !important;
}

.wpcf7-form .wpcf7-form-control-wrap.has-icon .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
}

/* ----- Estilo para "Assuntos de interesse" no select ----- */
.wpcf7-form .wpcf7-select option:first-child {
    color: #999;
}

.wpcf7-form .wpcf7-select:invalid {
    color: #999;
}

/* ----- Efeito de foco nos campos (opcional) ----- */
.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-file):focus-within {
    border-color: #026559;
    box-shadow: 0 0 0 4px rgba(2, 101, 89, 0.12);
}

/* SUSTENTABILIDADE */

.descarbonizacao-download:hover {
  color: #fff;
  text-decoration: underline;
}

/* ASSOCIADAS */
.associadas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px;
}

.associada-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
text-align: center;
}

.associada-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.associada-card .associada-logo {
background: #fff;
    height: 206px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.associada-card .associada-logo img {
    max-height: 160px;
    margin: auto;
    display: block;
    padding: 20px;
}

.associada-imagem {
    width: 100%;
    background: #e9ecef;
}

.associada-imagem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.associada-info {
    padding: 20px;
    flex: 1;
}

.associada-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a2e;
    line-height: 1.3;
}

.associada-info p {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
    line-height: 1.6;
}

.associada-info a {
    color: #0066cc;
    text-decoration: none;
}

.associada-info a:hover {
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
    .associadas-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .associada-imagem img {
        height: 160px;
    }
}

    .anfavea-404 {
        /* Herda os tokens do tema quando existem; senão usa o marinho ANFAVEA */
        --a404-navy:        var(--color-primary, #001a50);
        --a404-navy-deep:   #0a0a1a;
        --a404-accent:      var(--color-secondary-future, #1e5bff);
        --a404-white:       var(--color-white, #ffffff);
        --a404-text:        var(--text-primary, #1a1a2e);
        --a404-muted:       #5b6478;
        --a404-border:      #e4e8f0;
        --a404-pill:        var(--radius-pill, 50rem);

        font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background:
            linear-gradient(#f6f8fc 0%, #fff 100%),
            #f6f8fc;
        color: var(--a404-text);
    }

    [data-theme="dark"] .anfavea-404 {
      background: var(--color-black);
    }

    .anfavea-404__wrap {
        min-height: 70vh;
        display: flex;
        align-items: center;
        padding: clamp(3rem, 8vw, 7rem) 0;
    }

    /* Bloco do número 404 */
    .anfavea-404__hero {
        position: relative;
        display: inline-block;
        line-height: 1;
        margin-bottom: 1.5rem;
    }

    .anfavea-404__code {
        display: block;
        font-size: clamp(6rem, 22vw, 13rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        background: linear-gradient(135deg, var(--a404-navy-deep) 0%, var(--a404-navy) 55%, var(--a404-accent) 130%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .anfavea-404__cone {
        position: absolute;
        top: -0.35em;
        right: -0.05em;
        font-size: clamp(2rem, 7vw, 4rem);
        color: var(--a404-accent);
        transform: rotate(8deg);
        animation: anfavea404Float 3.2s ease-in-out infinite;
    }

    @keyframes anfavea404Float {
        0%, 100% { transform: rotate(8deg) translateY(0); }
        50%      { transform: rotate(8deg) translateY(-10px); }
    }

    .anfavea-404__title {
        font-size: clamp(1.6rem, 3.5vw, 2.6rem);
        font-weight: 700;
        color: var(--a404-navy);
        margin: 0 0 0.75rem;
    }

    .anfavea-404__text {
        font-size: clamp(1rem, 1.4vw, 1.15rem);
        color: var(--a404-muted);
        max-width: 40rem;
        margin: 0 auto 2.25rem;
        line-height: 1.6;
    }

    /* Busca */
    .anfavea-404__search {
        max-width: 34rem;
        margin: 0 auto 1.75rem;
    }

    .anfavea-404__search .input-group {
        border-radius: var(--a404-pill);
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0, 26, 80, 0.12);
        background: var(--a404-white);
    }

    .anfavea-404__search-icon {
        background: var(--a404-white);
        border: none;
        color: var(--a404-navy);
        padding-left: 1.25rem;
    }

    .anfavea-404__search-input {
        border: none;
        box-shadow: none !important;
        font-size: 1rem;
        padding: 0.9rem 0.5rem;
    }

    .anfavea-404__search-input:focus {
        outline: none;
    }

    .anfavea-404__search-btn {
        background: var(--a404-navy);
        color: var(--a404-white);
        font-weight: 600;
        border: none;
        padding-inline: clamp(1.1rem, 3vw, 1.9rem);
        transition: background-color 0.2s ease;
    }

    .anfavea-404__search-btn:hover,
    .anfavea-404__search-btn:focus {
        background: var(--a404-accent);
        color: var(--a404-white);
    }

    /* Ação principal */
    .anfavea-404__actions {
        margin-bottom: 3rem;
    }

    .anfavea-404__home-btn {
        display: inline-flex;
        align-items: center;
        background: transparent;
        color: var(--a404-navy);
        border: 2px solid var(--a404-navy);
        border-radius: var(--a404-pill);
        font-weight: 600;
        padding: 0.7rem 1.75rem;
        transition: all 0.2s ease;
    }

    .anfavea-404__home-btn:hover,
    .anfavea-404__home-btn:focus {
        background: var(--a404-navy);
        color: var(--a404-white);
    }

    /* Links rápidos */
    .anfavea-404__links-label {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--a404-muted);
        margin-bottom: 1rem;
    }

    .anfavea-404__links-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .anfavea-404__links-list a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: var(--a404-white);
        border: 1px solid var(--a404-border);
        border-radius: var(--a404-pill);
        padding: 0.55rem 1.15rem;
        color: var(--a404-navy);
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .anfavea-404__links-list a:hover,
    .anfavea-404__links-list a:focus {
        border-color: var(--a404-accent);
        color: var(--a404-accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0, 26, 80, 0.10);
    }

    .anfavea-404__links-list i {
        font-size: 1.05rem;
    }

    @media (prefers-reduced-motion: reduce) {
        .anfavea-404__cone { animation: none; }
        .anfavea-404__links-list a:hover { transform: none; }
    }

    @media (max-width: 767.98px) {
        .anfavea-404__search-input {
            font-size: .65rem !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }