/* ── 1. HEADER: CONTAINER E GRID PRINCIPAL ────────────────── */

#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: auto !important; /* Altura flexível para acomodar as 2 linhas */
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(55,105,160,.92) 0%, rgba(40,82,130,.80) 100%) !important;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
  overflow: visible !important; /* Essencial para tooltips do WhatsApp não cortarem */
  z-index: 999;
}

#site-header.scrolled {
  padding: 6px 0;
  background: linear-gradient(180deg, rgba(55,105,160,.97) 0%, rgba(40,82,130,.92) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
}

/* GRID: 2 Linhas (Espaço Vazio Esq. | Logo Centro | Redes Dir. -> Menu na linha de baixo) */
.header-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    ". logo social"
    "menu menu menu";
  align-items: center;
  gap: 15px;
  height: 100% !important;
  position: relative;
}

/* ── 2. ELEMENTOS DO CABEÇALHO ────────────────────────────── */
/* LOGO */
.site-logo {
  grid-area: logo;
  justify-self: center;
}
.site-logo::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.14) 25%, rgba(255, 255, 255, 0.06) 45%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  transition: width .3s ease, height .3s ease, opacity .3s ease;
}
#site-header.scrolled .site-logo::before { width: 110px; height: 110px; opacity: .65; }

.site-logo .logo-full {
  height: 185px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
  transition: height .3s ease, filter .3s ease;
  display: block;
}
.site-logo .logo-mark { display: none; }
#site-header.scrolled .logo-full { height: 60px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }

/* REDES SOCIAIS — fixadas na extremidade direita do header */
.header-social {
  position: absolute;
  right: -30px;
  top: auto;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.header-social a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.header-social a .i { font-size: 0.9rem !important; width: 1.1em; height: 1.1em; }
.header-social a .i-facebook  { background-color: #1877F2; }
.header-social a .i-whatsapp  { background-color: #25D366; }
.header-social a .i-linkedin  { background-color: #0A66C2; }
.header-social a .i-instagram { background-color: transparent; background-image: linear-gradient(45deg, #f09433 0%, #e6683c 20%, #dc2743 45%, #cc2366 70%, #bc1888 100%); }

/* Tooltip WhatsApp */
.whatsapp-btn { position: relative; }
.whatsapp-btn .tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(8,18,23,0.95);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  white-space: nowrap;
  z-index: 9999;
}
.whatsapp-btn:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.whatsapp-btn .tooltip::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(8,18,23,0.95);
  transform: translateX(-50%) rotate(45deg);
}

/* MENU DE NAVEGAÇÃO */
.site-nav {
  grid-area: menu;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.site-nav a {
  font-size: 0.78rem !important;
  padding: 6px 10px;
  transition: font-size .25s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── 4. ESTILOS DE COMPONENTES E PÁGINAS GERAIS ───────────── */
/* Fundamentos e Serviços */
.fundamento-card .service-topics { list-style: none; padding: 0; margin: 12px 0 0; }
.fundamento-card .service-topics li { position: relative; padding: 6px 0 6px 22px; color: var(--c-text); font-size: .92rem; line-height: 1.55; border-bottom: 1px solid rgba(200,131,42,.15); }
.fundamento-card .service-topics li:last-child { border-bottom: none; }
.fundamento-card .service-topics li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; background: var(--c-gold, #c8832a); border-radius: 50%; }

.fundamento-card--full .rich-content { font-size: 0.85rem; }
.fundamento-card--full .rich-content p { margin: 0 0 0.85em; line-height: 1.85; color: var(--c-text); font-size: 1.1rem; }
.fundamento-card--full .rich-content p:last-child { margin-bottom: 0; }
.fundamento-card--full .rich-content strong { color: var(--c-navy, #1a3554); }
@media (max-width: 768px) { .fundamento-card--full .rich-content, .fundamento-card--full .rich-content p { font-size: 1rem; } }

.services-cta { text-align: center; background: var(--c-cream, #DBD9D3); border: 1px solid rgba(200,131,42,.25); border-radius: 12px; padding: 36px 24px; margin-top: 32px; }
.services-cta h3 { font-family: var(--f-serif, Georgia, serif); color: var(--c-navy, #1a3554); margin: 0 0 8px; font-size: 1rem; }
.services-cta p { color: var(--c-text); margin: 0 0 18px; font-size: .85rem; }

/* Hero Secundário / Split */
.hero--split .hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero--split .hero-content { text-align: left; max-width: none; }
.hero-logo { display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.hero-logo::before { content: ''; position: absolute; inset: -8%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0.08) 45%, transparent 70%); z-index: 0; pointer-events: none; filter: blur(12px); }
.hero-logo img { max-width: 100%; width: 100%; max-height: 380px; height: auto; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); opacity: 1; position: relative; z-index: 1; }

/* ── Footer logo: cores originais (sobrescreve style.css) ───────────── */
.footer-logo img {
  filter: none !important;
  opacity: 1 !important;
}

.hero h1 { font-family: var(--f-serif); font-weight: 800; line-height: 1.15; margin: 0 0 18px; font-size: clamp(1.6rem, 3.2vw, 2.6rem); color: var(--c-white); }
.hero h1 em { font-style: normal; display: block; font-size: .6em; color: var(--c-gold); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }

/* Faixas de Seção */
.section-bar { background: linear-gradient(180deg, var(--c-blue-cyan) 0%, var(--lgpd-blue) 100%); color: var(--c-white); padding: 14px 32px; margin: 0 0 6px; border-radius: 4px; position: relative; box-shadow: 0 2px 6px rgba(8,18,23,.15); }
.section-bar h2, .section-bar h3 { margin: 0; color: var(--c-white); font-family: var(--f-serif); font-weight: 800; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.section-bar + .section-bar-line { height: 4px; background: var(--c-gold); margin: 0 0 32px; border-radius: 2px; position: relative; }
.section-bar + .section-bar-line::before { content: ''; position: absolute; left: 0; top: -2px; width: 60px; height: 8px; background: var(--c-navy); border-radius: 2px; }

/* Equipe */
.team-layout { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
.team-row { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; background: var(--c-cream); border: 1px solid rgba(200,131,42,.2); border-radius: var(--radius-lg); padding: 28px; }
.team-row.reverse { grid-template-columns: 1fr 240px; }
.team-row.reverse .team-photo { order: 2; }
.team-row.reverse .team-info { order: 1; }
.team-row .team-photo { width: 240px; height: 280px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 2px solid var(--c-navy); display: flex; align-items: center; justify-content: center; }
.team-row .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-row .team-info h3 { font-family: var(--f-serif); color: var(--c-navy); font-size: 1.5rem; margin: 0 0 6px; }
.team-row .team-info .team-role { color: var(--c-gold); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.team-row .team-info .team-bio { color: var(--c-text); line-height: 1.85; font-size: .95rem; margin: 0; }
@media (max-width: 768px) {
  .team-row, .team-row.reverse { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .team-row .team-photo { width: 180px; height: 220px; margin: 0 auto; }
  .team-row.reverse .team-photo, .team-row.reverse .team-info { order: initial; }
}
.support-block { background: var(--c-cream); border: 1px solid rgba(200,131,42,.2); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 48px; }
.support-block .support-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .98rem; line-height: 1.85; color: var(--c-text); margin-bottom: 8px; }
.support-block strong { color: var(--c-navy); font-family: var(--f-serif); margin-right: 6px; }

/* Admin & Editor */
.content-sections { display: flex; flex-direction: column; gap: 14px; }
.content-section { background: #f8fafc; border: 1px solid #e5e9ef; border-radius: 8px; padding: 16px 18px; transition: border-color .2s, box-shadow .2s; }
.content-section:focus-within { border-color: #527095; box-shadow: 0 0 0 3px rgba(82,112,149,.1); background: #fff; }
.content-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.content-section-key { font-family: ui-monospace, monospace; font-size: .72rem; background: #1a3554; color: #fff; padding: 3px 8px; border-radius: 3px; letter-spacing: .04em; }
.content-section-tipo { font-size: .7rem; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; }
.content-section input.cs-titulo { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: .9rem; font-weight: 600; margin-bottom: 8px; font-family: inherit; color: #1a3554; }
.content-section textarea.cs-conteudo { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 4px; font-size: .88rem; font-family: inherit; resize: vertical; line-height: 1.6; }
.content-section input:focus, .content-section textarea:focus { outline: none; border-color: #527095; }

.lite-editor { border: 1px solid #d1d5db; border-radius: 6px; background: #fff; display: block; }
.le-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; border-radius: 6px 6px 0 0; }
.le-btn { padding: 5px 10px; background: #fff; border: 1px solid #d1d5db; border-radius: 4px; cursor: pointer; font-size: .82rem; color: #374151; font-family: inherit; line-height: 1.2; min-height: 28px; transition: all .15s; }
.le-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.le-btn:active, .le-btn.active { background: #1e40af; color: #fff; border-color: #1e40af; }
.le-sep { width: 1px; background: #d1d5db; margin: 4px 5px; align-self: stretch; }
.le-area { min-height: 320px; max-height: 70vh; padding: 16px 20px; outline: none; font-family: Georgia, 'Times New Roman', serif; line-height: 1.75; font-size: 1rem; color: #1c1c1c; overflow-y: auto; }
.le-area p { margin: 0 0 14px; }
.le-area h2 { font-size: 1.5rem; margin: 22px 0 10px; color: #1a3554; font-weight: 700; }
.le-area h3 { font-size: 1.2rem; margin: 18px 0 8px; color: #1a3554; font-weight: 700; }
.le-area ul, .le-area ol { margin: 0 0 14px 28px; padding: 0; }
.le-area a { color: #527095; text-decoration: underline; }
.le-area blockquote { margin: 14px 0; padding: 10px 18px; border-left: 3px solid #c8832a; background: #faf6f0; font-style: italic; color: #4b5563; }
.le-area hr { border: none; height: 1px; background: #d1d5db; margin: 18px 0; }
.le-area img { max-width: 100%; height: auto; margin: 8px 0; border-radius: 4px; }
.le-source { width: 100%; min-height: 320px; padding: 16px 20px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .82rem; color: #1f2937; background: #fafafa; border: none; resize: vertical; outline: none; line-height: 1.6; }

/* Mapas */
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #f3f4f6; min-height: 280px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-embed-html { width: 100%; }
.map-embed-html iframe { width: 100% !important; height: 320px !important; border: 0; display: block; }
.map-fallback { padding: 60px 30px; text-align: center; background: linear-gradient(135deg, #f0f4f9, #e5e9ef); }
.map-fallback a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--c-primary); color: #fff; border-radius: 6px; font-weight: 600; text-decoration: none; }
.map-fallback a:hover { background: var(--c-navy); }

/* Auxiliares */
.footer-logo img { filter: none !important; opacity: 1 !important; }
.cta-inner { flex-direction: column; text-align: center; justify-content: center; gap: 20px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-outline { color: #cbd5e1 !important; border-color: rgba(255,255,255,0.4) !important; }
.btn-outline:hover { color: #fff !important; border-color: #fff !important; background: rgba(255,255,255,0.08); }

@media (max-width: 920px) {
  /* 1. Reset do Grid: Removemos as 'areas' para evitar que o menu fique preso em linhas invisíveis */
  .header-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    grid-template-areas: none !important; /* Mata o grid do desktop */
  }

  /* 2. Redes sociais: volta ao fluxo do flex no mobile */
  .header-social {
    position: static;
    display: flex !important;
  }
  .site-logo .logo-full {
    display: none !important;
  }
  .site-logo .logo-mark {
    display: flex;
    height: 75px;
    align-items: center !important;
  }
  /* 3. Botão Hambúrguer: Ajuste de tamanho e visibilidade */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;              /* menor espaço */
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  
  .menu-toggle span {
    width: 20px;           /* menor largura */
    height: 2px;
    border-radius: 2px;
  }

  /* 4. Menu: O segredo para não ser horizontal e não sobrepor errado */
  .site-nav {
    display: none !important; /* Escondido por padrão */
    flex-direction: column !important; /* FORÇA A VERTICALIZAÇÃO */
    align-items: center !important;
    
    /* Posicionamento */
    position: absolute;
    top: 100%; /* Começa exatamente onde o header termina */
    left: 0;
    width: 100%;
    
    /* Estética */
    background: rgba(26, 53, 84, 0.98) !important;
    padding: 20px 0 !important;
    gap: 0 !important;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  }

  /* 5. Quando o menu está aberto */
  .site-nav.open {
    display: flex !important;
  }

  /* 6. Links: Forçando ocupação de 100% da largura para evitar o 'lado a lado' */
  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 15px 0 !important;
    font-size: 1.1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block !important; /* Garante que se comporte como bloco */
  }

  .site-nav a:last-child {
    border-bottom: none;
  }
}
@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
    flex-direction: column !important; /* 🔥 garante que vence qualquer conflito */

    background: var(--c-dark);
    padding: 24px;
    gap: 6px;
    overflow-y: auto;
    z-index: 999;
  }

  .site-nav.open {
    display: flex !important;
  }
}
/* Nav links — sempre legíveis; encolhem suavemente no scroll */
.site-nav a {
  transition: font-size .25s ease, color .2s ease;
  font-size: .92rem;
  align-items: center;
  justify-content: center;
}
#site-header.scrolled .site-nav a { font-size: .82rem; }

@media (max-width: 920px) {
    :root { --header-h: 70px; }
    .menu-toggle { display: flex; }
    .site-nav {
        display: none;
        position: fixed;
        inset: 0;
        top: var(--header-h);
        background: var(--c-dark);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        overflow-y: auto;
        z-index: 999;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 16px; font-size: .85rem; border-radius: var(--radius); }
    .nav-dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; background: transparent; }
    .nav-item:hover .nav-dropdown { display: none; }
    .nav-item.open .nav-dropdown { display: block; }
    .header-social { position: static; display: flex; }
    .hero { min-height: auto; padding: calc(var(--header-h) + 60px) 0 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .team-card { flex-direction: column; }
    .blocks-content .block-columns.cols-2,
    .blocks-content .block-columns.cols-3 { grid-template-columns: 1fr; }
    .principios-list { grid-template-columns: 1fr; }
    .support-team { flex-direction: column; gap: 24px; }
	.site-logo {
     position: absolute;
     left: 50%;
     transform: translateX(-50%);
    }   
}


@media (max-width: 920px) {
    :root { --header-h: 70px; }

    /* Botão hambúrguer */
    .menu-toggle {
        display: flex;
    }

    /* Cabeçalho – layout flexível */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: var(--header-h);
    }

    /* Logo – troca versão completa pela marca reduzida */
    .site-logo .logo-full {
        display: none;
    }
    .site-logo .logo-mark {
        display: block;
        height: 55px;
        width: auto;
    }

    /* Ícones sociais – volta ao fluxo normal no mobile */
    .header-social {
        position: static;              /* desfaz o absolute do desktop */
        display: flex !important;
        gap: 8px;
        order: -1;
    }
    .header-social a {
        width: 18px;
        height: 18px;
    }

    /* Menu – overlay fixo que cobre a tela abaixo do header */
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 18, 23, 0.98);
        flex-direction: column;
        padding: 24px 20px;
        gap: 8px;
        overflow-y: auto;
        z-index: 999;
        backdrop-filter: blur(4px);
    }
    .site-nav.open {
        display: flex !important;     /* corrigido: display column inválido → flex */
    }
    .site-nav a {
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        border-radius: var(--radius);
        color: rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .site-nav a:last-child {
        border-bottom: none;
    }

    /* Dropdown no mobile – expande sem submenu flutuante */
    .nav-dropdown {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
        margin-top: 4px;
    }
    .nav-item:hover .nav-dropdown {
        display: none;
    }
    .nav-item.open .nav-dropdown {
        display: block;
    }

    /* Ajustes gerais de espaçamento */
    .hero {
        padding-top: calc(var(--header-h) + 40px);
        min-height: auto;
    }
    .page-header {
        padding-top: calc(var(--header-h) + 30px);
    }

    /* Outros ajustes responsivos */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .team-card { flex-direction: column; text-align: center; }
    .team-photo { margin: 0 auto; }
    .principios-list { grid-template-columns: 1fr; }
    .support-team { flex-direction: column; gap: 24px; }
    .blocks-content .block-columns.cols-2,
    .blocks-content .block-columns.cols-3 {
        grid-template-columns: 1fr;
    }
	#site-header.scrolled {
        background: linear-gradient(180deg, rgba(55,105,160,.97) 0%, rgba(40,82,130,.92) 100%) !important;
        padding: 12px 0 !important;
        backdrop-filter: none !important;
        box-shadow: 0 4px 24px rgba(0,0,0,.28) !important;
    }
    #site-header.scrolled .logo-full,
    #site-header.scrolled .logo-mark {
        height: 60px !important;                  /* mesma altura do normal */
    }
}
body { padding-top: 0 !important; } 
.hero { padding-top: 240px !important; margin-top: 0 !important; }
.page-header { padding-top: 230px !important; padding-bottom: 60px; margin-top: 0 !important; }


/* Hero com mais respiro embaixo do header maior */
.hero { padding-top: 275px !important; }
@media (max-width: 920px) { .hero { padding-top: 130px !important; } }

/* Page-header (páginas internas) — breadcrumb não pode ficar atrás do header */
.page-header { padding-top: 275px !important; padding-bottom: 60px; }
@media (max-width: 920px) { .page-header { padding-top: 130px !important; padding-bottom: 40px; } }

/* ═══════════════════════════════════════════════════════════════════════
   LGPD — BANNER E PAINEL DE COOKIES
   ═══════════════════════════════════════════════════════════════════════ */

/* Variáveis locais */
:root {
  --lgpd-bg:       #0e2038;
  --lgpd-bg2:      #162b48;
  --lgpd-border:   rgba(255,255,255,.10);
  --lgpd-text:     #e2e8f0;
  --lgpd-muted:    #94a3b8;
  --lgpd-gold:     #c8832a;
  --lgpd-blue:     rgba(55,105,160,1);
  --lgpd-radius:   10px;
  --lgpd-shadow:   0 -4px 32px rgba(0,0,0,.35);
}

/* ── Banner (faixa inferior) ─────────────────────────────────────────── */
#lgpd-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: var(--lgpd-bg);
  border-top: 1px solid var(--lgpd-border);
  box-shadow: var(--lgpd-shadow);
  padding: 16px 0;
  animation: lgpd-slide-up .35s cubic-bezier(.4,0,.2,1);
}
#lgpd-banner[hidden] { display: none !important; }

@keyframes lgpd-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lgpd-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.lgpd-banner-text {
  flex: 1 1 320px;
}
.lgpd-banner-text p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--lgpd-text);
}
.lgpd-banner-text strong { color: #fff; }

.lgpd-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Botões LGPD ─────────────────────────────────────────────────────── */
.lgpd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
  font-family: var(--f-sans, sans-serif);
  line-height: 1;
}
.lgpd-btn:hover { transform: translateY(-1px); }
.lgpd-btn:active { transform: translateY(0); }

.lgpd-btn--primary {
  background: var(--lgpd-gold);
  color: #fff;
  border-color: var(--lgpd-gold);
}
.lgpd-btn--primary:hover { background: #b0721f; border-color: #b0721f; }

.lgpd-btn--secondary {
  background: transparent;
  color: var(--lgpd-text);
  border-color: rgba(255,255,255,.3);
}
.lgpd-btn--secondary:hover { border-color: #fff; color: #fff; }

.lgpd-btn--ghost {
  background: transparent;
  color: var(--lgpd-muted);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lgpd-btn--ghost:hover { color: #fff; }

/* ── Painel de Preferências (modal) ──────────────────────────────────── */
#lgpd-panel {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: lgpd-fade-in .2s ease;
}
#lgpd-panel[hidden] { display: none !important; }

@keyframes lgpd-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lgpd-panel-box {
  background: var(--lgpd-bg);
  border: 1px solid var(--lgpd-border);
  border-radius: var(--lgpd-radius);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: lgpd-box-in .25s cubic-bezier(.4,0,.2,1);
}
@keyframes lgpd-box-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lgpd-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--lgpd-border);
  flex-shrink: 0;
}
.lgpd-panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-family: var(--f-serif, Georgia, serif);
  font-weight: 800;
}
.lgpd-panel-close {
  background: none;
  border: none;
  color: var(--lgpd-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  line-height: 1;
}
.lgpd-panel-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.lgpd-panel-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.lgpd-panel-intro {
  font-size: .875rem;
  color: var(--lgpd-muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

/* ── Categorias ──────────────────────────────────────────────────────── */
.lgpd-category {
  border: 1px solid var(--lgpd-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--lgpd-bg2);
}
.lgpd-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.lgpd-category-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lgpd-category-info strong {
  color: #fff;
  font-size: .9rem;
}
.lgpd-category-desc {
  font-size: .8rem;
  color: var(--lgpd-muted);
  line-height: 1.65;
  margin: 0;
}

/* Badge */
.lgpd-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(255,255,255,.08);
  color: var(--lgpd-muted);
  text-transform: uppercase;
}
.lgpd-badge--always {
  background: rgba(16,185,129,.15);
  color: #34d399;
}

/* Toggle switch */
.lgpd-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.lgpd-toggle--disabled { cursor: not-allowed; opacity: .6; }
.lgpd-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.lgpd-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  border-radius: 24px;
  transition: background .2s;
}
.lgpd-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.lgpd-toggle input:checked + .lgpd-toggle-track {
  background: var(--lgpd-gold);
}
.lgpd-toggle input:checked + .lgpd-toggle-track::after {
  transform: translateX(20px);
}
.lgpd-toggle input:focus-visible + .lgpd-toggle-track {
  outline: 2px solid var(--lgpd-gold);
  outline-offset: 2px;
}

/* Direitos do titular */
.lgpd-rights {
  border-top: 1px solid var(--lgpd-border);
  margin-top: 16px;
  padding-top: 16px;
}
.lgpd-rights h3 {
  font-size: .85rem;
  color: #fff;
  margin: 0 0 8px;
  font-family: var(--f-sans, sans-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lgpd-rights p {
  font-size: .78rem;
  color: var(--lgpd-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Rodapé do painel ────────────────────────────────────────────────── */
.lgpd-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--lgpd-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.lgpd-panel-footer-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Link dentro dos textos LGPD ─────────────────────────────────────── */
.lgpd-link {
  color: var(--lgpd-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.lgpd-link:hover { color: #e8a050; }

/* ── Botão flutuante (reabrir) ───────────────────────────────────────── */
#lgpd-reopen-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9990;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lgpd-bg);
  border: 1px solid var(--lgpd-border);
  color: var(--lgpd-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: background .2s, color .2s, transform .2s;
}
#lgpd-reopen-btn:hover {
  background: var(--lgpd-bg2);
  color: #fff;
  transform: scale(1.08);
}

/* ── Responsivo ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .lgpd-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .lgpd-banner-actions {
    justify-content: stretch;
  }
  .lgpd-banner-actions .lgpd-btn {
    flex: 1;
    text-align: center;
  }
  .lgpd-panel-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .lgpd-panel-footer-right {
    flex-direction: column;
  }
  .lgpd-panel-footer .lgpd-btn {
    width: 100%;
    justify-content: center;
  }
}
