﻿html {
  scroll-behavior: smooth;
}

body {
  color: var(--cor-texto);
  background: linear-gradient(180deg, #f8fcfd 0%, var(--cor-fundo) 100%);
}

.hero-overlay {
  background: linear-gradient(165deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(14, 165, 183, 0.45) 100%);
}

.home-header-divider {
  height: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(165, 243, 252, 0.7);
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.3), rgba(236, 254, 255, 0.92), rgba(103, 232, 249, 0.3));
}

.home-hero {
  margin-top: -1px;
  min-height: calc(100vh - 96px);
}

.home-hero-content {
  min-height: inherit;
}

.titulo-secao {
  color: var(--cor-secundaria);
}

.btn-primario {
  background-color: var(--cor-primaria);
  color: white;
}

.btn-primario:hover {
  filter: brightness(0.95);
}

.btn-whatsapp-topo {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--cor-primaria) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-topo svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.whatsapp-numero-topo {
  display: inline-block;
  font-weight: 700;
  line-height: 1;
}

.btn-whatsapp-topo:hover {
  background-color: var(--cor-secundaria) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.btn-whatsapp-topo-mobile {
  width: 100%;
}

.btn-outline {
  border: 1px solid color-mix(in srgb, var(--cor-secundaria) 30%, #fff);
  color: var(--cor-secundaria);
}

.card-sombra {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  color: var(--cor-secundaria);
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.prose-content p,
.prose-content li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
}

.prose-content ul {
  list-style: disc;
  margin-left: 1.2rem;
}

.page-layout-base {
  background: #e6eaef;
}

.page-layout-panel {
  border: 1px solid #d8dce3;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.page-layout-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--cor-primaria);
  font-size: 1.25rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.page-layout-back-link:hover {
  opacity: 0.85;
}

.page-layout-metric {
  border: 1px solid #d8dce3;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1.1rem;
  text-align: center;
}

.page-title-main {
  font-size: var(--type-size-page-title) !important;
  line-height: 1.2 !important;
  font-weight: 800;
}

.blog-info-compact span {
  font-size: 12px !important;
}

.blog-meta-date {
  font-size: 14px !important;
  line-height: 1.4;
}

.blog-meta-summary {
  font-size: 16px !important;
  line-height: 1.55;
}

.blog-post-metrics .page-layout-metric {
  padding: 0.9rem;
}

.blog-metric-value {
  font-size: 22px !important;
  line-height: 1.2;
}

.blog-metric-label {
  font-size: 14px !important;
  line-height: 1.35;
}

.sidebar-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.9rem;
  background: #f3f4f6;
  color: #1e293b;
  padding: 0.85rem 1rem;
}

.sidebar-input:focus {
  outline: none;
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cor-primaria) 20%, #ffffff);
  background: #fff;
}

.blog-post-content p,
.blog-post-content li {
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 0.95rem;
  color: #334155;
}

.blog-post-content strong {
  color: #0f172a;
  font-weight: 700;
}

.page-layout-base .prose-content p,
.page-layout-base .prose-content li {
  font-size: 0.95rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .home-hero {
    min-height: calc(100vh - 84px);
  }

  .page-layout-back-link {
    font-size: 1rem;
  }

  .blog-post-content p,
  .blog-post-content li {
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .blog-meta-date {
    font-size: 13px !important;
  }

  .blog-meta-summary {
    font-size: 15px !important;
  }

  .blog-metric-value {
    font-size: 20px !important;
  }

  .blog-metric-label {
    font-size: 13px !important;
  }
}

/* Sistema tipografico global */
:root {
  --type-font-family: Poppins, sans-serif;
  --type-size-topo: 14px;
  --type-size-header: 16px;
  --type-size-body: 16px;
  --type-size-footer: 15px;
  --type-size-hero-h1: 40px;
  --type-size-page-title: 36px;
  --type-size-subtitle: 24px;
  --type-size-caption: 13px;
}

body {
  font-family: var(--type-font-family);
  font-size: var(--type-size-body);
  line-height: 1.6;
}

main {
  font-size: var(--type-size-body);
}

h1 {
  font-size: var(--type-size-page-title) !important;
  line-height: 1.2 !important;
}

.home-hero h1 {
  font-size: var(--type-size-hero-h1) !important;
  line-height: 1.15 !important;
}

.titulo-secao,
.page-title-main {
  font-size: var(--type-size-page-title) !important;
  line-height: 1.2 !important;
}

h2,
h3,
h4,
h5,
h6 {
  font-size: var(--type-size-subtitle) !important;
  line-height: 1.28 !important;
}

p,
ul,
ol,
li {
  font-size: var(--type-size-body);
  line-height: 1.7;
}

label,
input,
textarea,
select,
button {
  font-family: var(--type-font-family);
  font-size: var(--type-size-body);
}

small,
.text-xs,
.text-sm,
.tag,
.legend,
.legenda {
  font-size: var(--type-size-caption) !important;
  line-height: 1.4;
}

.site-header {
  font-size: var(--type-size-topo);
}

.site-header #menu-principal,
.site-header #mobile-menu nav {
  font-size: var(--type-size-header) !important;
  line-height: 1.4;
}

.site-header a,
.site-header button {
  font-size: inherit;
}

.site-breadcrumb {
  font-size: 13px !important;
  line-height: 1.35;
}

.site-breadcrumb a,
.site-breadcrumb span {
  font-size: 13px !important;
}

.site-footer {
  font-size: var(--type-size-footer);
  line-height: 1.6;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  font-size: var(--type-size-subtitle) !important;
  line-height: 1.35 !important;
}

.site-footer p,
.site-footer ul,
.site-footer li,
.site-footer a,
.site-footer span {
  font-size: var(--type-size-footer);
}

.lgpd-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  border-top: 1px solid #d5dbe5;
  background: #ffffff;
  box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.08);
}

.lgpd-consent-inner {
  max-width: 1620px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lgpd-consent-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lgpd-consent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f64e8;
  flex: 0 0 auto;
}

.lgpd-consent-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.lgpd-consent-texto {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.28;
  color: #5f6f86;
}

.lgpd-consent-link {
  color: #2f64e8;
  text-decoration: underline;
}

.lgpd-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lgpd-btn {
  border-radius: 12px;
  border: 1px solid #d2d9e3;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lgpd-btn-light {
  background: #f5f7fb;
  color: #111827;
}

.lgpd-btn-light:hover {
  background: #edf2f8;
}

.lgpd-btn-primary {
  background: #2f64e8;
  border-color: #2f64e8;
  color: #ffffff;
}

.lgpd-btn-primary:hover {
  background: #234ec0;
  border-color: #234ec0;
}

.lgpd-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.lgpd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
}

.lgpd-modal-dialog {
  position: relative;
  margin: 18px auto;
  width: min(560px, calc(100vw - 20px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #d5dbe5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  padding: 12px;
}

.lgpd-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lgpd-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lgpd-modal-title-wrap h2 {
  margin: 0;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
  font-weight: 700;
  color: #0f172a;
}

.lgpd-modal-close {
  border: 0;
  background: transparent;
  color: #5d6472;
  font-size: 22px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.lgpd-modal-subtitle {
  margin: 8px 0 10px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #5f6f86;
}

.lgpd-modal-body {
  display: grid;
  gap: 8px;
}

.lgpd-cookie-card {
  border: 1px solid #d5dbe5;
  border-radius: 12px;
  background: #f9fafc;
  padding: 10px 12px;
}

.lgpd-cookie-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lgpd-cookie-card h3 {
  margin: 0;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  color: #0f172a;
  font-weight: 600;
}

.lgpd-cookie-card p {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.32;
  color: #5f6f86;
}

.lgpd-badge {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dce8ff;
  color: #2f64e8;
  font-size: 0.62rem;
  font-weight: 600;
}

.lgpd-switch {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-flex;
}

.lgpd-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lgpd-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c6d0de;
  cursor: pointer;
  transition: 0.2s;
}

.lgpd-switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  background: #ffffff;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.lgpd-switch input:checked + .lgpd-switch-slider {
  background: #2f64e8;
}

.lgpd-switch input:checked + .lgpd-switch-slider::before {
  transform: translateX(20px);
}

.lgpd-switch input:disabled + .lgpd-switch-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.lgpd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.lgpd-banner-open .lgpd-whatsapp-floating {
  bottom: 92px;
}

@media (max-width: 1024px) {
  :root {
    --type-size-header: 15px;
    --type-size-footer: 14px;
    --type-size-hero-h1: 34px;
    --type-size-page-title: 30px;
    --type-size-subtitle: 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --type-size-topo: 13px;
    --type-size-header: 15px;
    --type-size-body: 15px;
    --type-size-footer: 14px;
    --type-size-hero-h1: 28px;
    --type-size-page-title: 24px;
    --type-size-subtitle: 18px;
    --type-size-caption: 12px;
  }

  .lgpd-consent-inner {
    padding: 10px 12px 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .lgpd-consent-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .lgpd-btn {
    font-size: 0.74rem;
    padding: 7px 10px;
    border-radius: 12px;
  }

  .lgpd-consent-title {
    font-size: 0.86rem;
  }

  .lgpd-consent-texto {
    font-size: 0.74rem;
  }

  .lgpd-modal-dialog {
    margin: 10px auto;
    width: calc(100vw - 14px);
    max-height: calc(100vh - 18px);
    padding: 10px;
  }

  .lgpd-modal-title-wrap h2 {
    font-size: 0.95rem !important;
  }

  .lgpd-modal-subtitle {
    font-size: 0.72rem;
  }

  .lgpd-cookie-card h3 {
    font-size: 0.8rem !important;
  }

  .lgpd-cookie-card p {
    font-size: 0.7rem;
  }

  .lgpd-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .lgpd-banner-open .lgpd-whatsapp-floating {
    bottom: 132px;
  }
}
