  :root{
    --bg:#F5F3EE;
    --bg-2:#FFFFFF;
    --bg-3:#ECE7DC;
    --line:#DBD5C6;
    --white:#1C1B15;
    --muted:#5C5A4C;
    --muted-2:#7C7A6A;
    --ember:#0E7A8C;
    --ember-dark:#0A5C6A;
    --navy:#3E5C82;
    --paper:#F5F3EE;
    --ink:#17160F;
    --ink-dim:#5A5748;
    --header-bg:rgba(255,255,255,0.93);
    --on-accent:#FFFFFF; /* texto sobre fundo colorido (botões ember) — nunca muda com o tema */
  }
  html[data-theme="dark"]{
    --bg:#0E1B27;
    --bg-2:#152332;
    --bg-3:#1C2E3F;
    --line:#28394A;
    --white:#F5F7F7;
    --muted:#9BAAB6;
    --muted-2:#71828E;
    --ember:#1791A6;
    --ember-dark:#116E80;
    --navy:#3E5C82;
    --header-bg:rgba(19,19,21,0.97);
  }
  html{ transition:background-color .25s ease; }
  body{ transition:background-color .25s ease, color .25s ease; }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Inter', sans-serif;
    background:var(--bg); color:var(--white);
    line-height:1.6; -webkit-font-smoothing:antialiased;
  }
  a{color:inherit;}
  img{max-width:100%; display:block;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
  h1,h2,h3,h4{font-weight:800; line-height:1.08; letter-spacing:-0.01em;}

  /* ---------- header ---------- */
  header{
    position:sticky; top:0; z-index:50;
    background:var(--header-bg);
    border-bottom:1px solid var(--line);
  }
  header .wrap{max-width:1400px;}
  .header-row{display:flex; align-items:center; height:78px; gap:24px;}
  .brand{display:flex; align-items:center; text-decoration:none; flex:none;
    background:var(--paper); padding:8px 14px; border-radius:4px; border:1px solid var(--line);}
  .brand-logo{height:32px; width:auto; display:block;}

  nav.mainnav{display:flex; align-items:center; justify-content:center; gap:16px; flex:1;}
  nav.mainnav a{color:var(--white); text-decoration:none; font-size:13.5px; font-weight:500; opacity:0.82; white-space:nowrap;}
  nav.mainnav a:hover{opacity:1;}
  .nav-cta{
    background:var(--ember); color:var(--on-accent)!important; padding:11px 18px;
    border-radius:3px; font-weight:700!important; font-size:13px!important; opacity:1!important; white-space:nowrap;
  }
  .nav-cta:hover{background:var(--ember-dark);}
  .hamburger{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;}
  .hamburger span{width:22px; height:2px; background:var(--white); display:block;}

  /* ---------- alternador de tema claro/escuro ---------- */
  .theme-toggle{
    display:flex; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:50%; flex:none; position:relative;
    background:var(--bg-2); border:1px solid var(--line); color:var(--white);
    cursor:pointer; transition:background-color .2s ease, border-color .2s ease;
  }
  .theme-toggle:hover{border-color:var(--ember);}
  .theme-toggle svg{width:18px; height:18px; display:block;}
  .theme-toggle .icon-sun{display:none;}
  html[data-theme="dark"] .theme-toggle .icon-sun{display:block;}
  html[data-theme="dark"] .theme-toggle .icon-moon{display:none;}
  .theme-toggle::after{
    content:attr(data-tooltip); position:absolute; top:calc(100% + 10px); right:0;
    background:var(--bg-3); color:var(--white); font-size:11.5px; font-weight:600;
    padding:7px 11px; border-radius:6px; white-space:nowrap; border:1px solid var(--line);
    opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease; transform:translateY(-4px);
  }
  .theme-toggle:hover::after{opacity:1; transform:translateY(0);}
  .theme-toast{
    position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(16px);
    background:var(--ember); color:var(--on-accent); padding:13px 24px; border-radius:999px;
    font-family:'Inter',sans-serif; font-size:13.5px; font-weight:700; display:flex; align-items:center; gap:8px;
    box-shadow:0 10px 30px rgba(0,0,0,0.3); opacity:0; pointer-events:none;
    transition:opacity .25s ease, transform .25s ease; z-index:300;
  }
  .theme-toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

  /* ---------- hero ---------- */
  .hero{padding:88px 0 0; position:relative; overflow:hidden;}
  .hero-inner{max-width:680px; padding-bottom:56px;}
  .eyebrow{
    display:flex; align-items:center; gap:9px;
    font-size:12.5px; font-weight:700; letter-spacing:0.03em; color:var(--ember);
    margin-bottom:22px;
  }
  .eyebrow::before{content:""; width:20px; height:2px; background:var(--ember); display:block;}
  .hero h1{font-size:clamp(36px,4.6vw,54px); margin-bottom:20px;}
  .hero h1 .accent{color:var(--ember);}
  .hero p.lead{color:var(--muted); font-size:17px; max-width:52ch; margin-bottom:32px;}
  .btn-row{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:40px;}
  .btn{
    font-weight:700; font-size:14.5px; padding:15px 26px; border-radius:3px;
    text-decoration:none; display:inline-flex; align-items:center; gap:8px;
    border:1.5px solid transparent; background:transparent; cursor:pointer; font-family:'Inter',sans-serif;
  }
  .btn-primary{background:var(--ember); color:var(--on-accent);}
  .btn-primary:hover{background:var(--ember-dark);}
  .btn-outline{border-color:var(--line); color:var(--white); background:transparent;}
  .btn-outline:hover{border-color:var(--muted);}

  .stat-strip{border-top:1px solid var(--line); background:var(--bg-2);}
  .stat-strip .wrap{
    display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  }
  .stat{padding:26px 24px; border-right:1px solid var(--line);}
  .stat:last-child{border-right:none;}
  .stat h4{font-size:14.5px; font-weight:700; margin-bottom:5px;}
  .stat p{font-size:12.5px; color:var(--muted-2);}

  /* ---------- sections ---------- */
  section{padding:96px 0;}
  .section-dark{background:var(--bg);}
  .section-dark-2{background:var(--bg-2);}
  .section-paper{background:var(--paper); color:var(--ink);}
  .eyebrow-alt{font-size:12.5px; font-weight:700; letter-spacing:0.03em; color:var(--ember); margin-bottom:14px; display:block;}
  h2.section-title{font-size:clamp(28px,3.4vw,40px); max-width:18ch; margin-bottom:16px;}
  p.section-sub{color:var(--muted); max-width:60ch; font-size:16px;}
  .section-paper p.section-sub{color:var(--ink-dim);}

  /* ---------- situation cards ---------- */
  .situ-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:48px;}
  .situ-card{background:var(--bg); padding:32px 28px; display:flex; flex-direction:column;}
  .situ-num{font-size:13px; color:var(--muted-2); font-weight:700; margin-bottom:18px;}
  .situ-card h3{font-size:19px; margin-bottom:10px;}
  .situ-card p{color:var(--muted); font-size:14px; margin-bottom:20px; flex:1;}
  .situ-card a{color:var(--ember); font-size:13.5px; font-weight:700; text-decoration:none;}
  .situ-card a:hover{text-decoration:underline;}

  /* ---------- process ---------- */
  .process-list{margin-top:0;}
  .process-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:48px; align-items:start; margin-top:44px;}
  .scope-card{
    background:var(--bg-3); border:1px solid var(--line); border-radius:10px;
    padding:32px 30px; position:sticky; top:100px;
  }
  .scope-card h3{font-size:22px; margin-bottom:12px;}
  .scope-card > p{color:var(--muted); font-size:14.5px; margin-bottom:22px;}
  .scope-list{list-style:none; margin-bottom:26px;}
  .scope-list li{
    display:flex; align-items:flex-start; gap:12px; font-size:14.5px; color:#D8D8D3;
    padding:10px 0; border-bottom:1px solid var(--line);
  }
  .scope-list li:last-child{border-bottom:none;}
  .scope-list li::before{
    content:"✓"; flex:none; width:22px; height:22px; border-radius:50%;
    background:rgba(23,145,166,0.15); color:var(--ember);
    display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800;
  }
  .scope-card .btn{width:100%; justify-content:center;}
  .process-row{
    display:grid; grid-template-columns:70px 1fr; gap:24px;
    padding:26px 0; border-bottom:1px solid var(--line);
  }
  .process-row:first-child{border-top:1px solid var(--line);}
  .process-index{font-size:26px; font-weight:800; color:var(--ember);}
  .process-row h4{font-size:17px; margin-bottom:6px;}
  .process-row p{color:var(--muted); font-size:14.5px; max-width:60ch;}

  /* ---------- about / checklist ---------- */
  .about-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; margin-top:20px;}
  .check-list{list-style:none;}
  .check-list li{
    display:flex; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); font-size:14.5px; color:#D8D8D3;
  }
  .check-list li::before{content:"✓"; color:var(--ember); font-weight:800; flex:none;}

  /* ---------- segments ---------- */
  .seg-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:44px;}
  .seg-item{
    background:var(--bg-3); border:1px solid var(--line); padding:22px 20px; border-radius:3px;
    font-size:14.5px; font-weight:600; display:flex; align-items:center; gap:10px;
  }
  .seg-item::before{
    content:""; width:7px; height:7px; border-radius:50%; background:var(--ember); flex:none;
  }

  /* ---------- testimonial ---------- */
  .testi{max-width:720px; margin-top:20px;}
  .testi p{font-size:23px; font-weight:600; line-height:1.35; margin-bottom:18px;}
  .testi cite{font-style:normal; font-size:13px; color:var(--ink-dim);}
  .testi-bar{width:36px; height:3px; background:var(--ember); margin-bottom:22px;}

  /* ---------- publications ---------- */
  .pub-log{margin-top:44px; border-top:1px solid var(--line);}
  details.pub-item{border-bottom:1px solid var(--line);}
  details.pub-item summary{list-style:none; cursor:pointer;}
  details.pub-item summary::-webkit-details-marker{display:none;}
  .pub-head{
    display:grid; grid-template-columns:110px 1fr 26px; gap:20px; align-items:center; padding:22px 0;
  }
  .pub-date{font-size:12.5px; color:var(--muted-2); font-weight:600;}
  .pub-title{font-weight:600; font-size:16px;}
  .pub-plus{font-size:20px; color:var(--ember); text-align:right; font-weight:300; transition:transform .15s ease;}
  details[open] > .pub-head .pub-plus{transform:rotate(45deg);}
  .pub-body{padding:0 0 30px; max-width:70ch; color:var(--muted); font-size:15px;}
  .pub-body h5{color:var(--white); font-size:15px; font-weight:700; margin:16px 0 8px;}
  .pub-body p{margin-bottom:12px;}
  .pub-body ul{margin:0 0 12px 18px;}
  .pub-body li{margin-bottom:6px;}

  /* ---------- FAQ ---------- */
  .faq-list{margin-top:44px; max-width:820px;}
  details.faq-item{border-bottom:1px solid var(--line);}
  details.faq-item summary{
    list-style:none; cursor:pointer; padding:22px 0; font-weight:700; font-size:16px;
    display:flex; justify-content:space-between; align-items:center; gap:20px;
  }
  details.faq-item summary::-webkit-details-marker{display:none;}
  details.faq-item summary::after{content:"+"; font-size:22px; color:var(--ember); font-weight:300;}
  details.faq-item[open] summary::after{content:"–";}
  details.faq-item .faq-a{padding:0 0 24px; color:var(--muted); max-width:66ch; font-size:15px;}

  /* ---------- contact ---------- */
  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; margin-top:20px;}
  .contact-info dl{margin-top:6px;}
  .contact-row{display:grid; grid-template-columns:120px 1fr; gap:16px; padding:16px 0; border-bottom:1px solid var(--line);}
  .contact-row dt{font-size:12px; color:var(--muted-2); text-transform:uppercase; letter-spacing:0.04em; font-weight:600;}
  .contact-row dd{font-size:15px; font-weight:500;}
  form.cform{display:flex; flex-direction:column; gap:16px;}
  form.cform .row2{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
  form.cform label{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; display:block; margin-bottom:7px; font-weight:600;}
  form.cform input, form.cform textarea{
    width:100%; border:1.5px solid var(--line); background:var(--bg-2);
    padding:13px 14px; font-family:'Inter',sans-serif; font-size:14.5px; color:var(--white); border-radius:3px;
  }
  form.cform input:focus, form.cform textarea:focus{outline:none; border-color:var(--ember);}
  form.cform textarea{min-height:110px; resize:vertical;}
  form.cform button{
    margin-top:4px; align-self:flex-start; background:var(--ember); color:var(--on-accent); border:none;
    font-weight:700; font-size:14.5px; padding:15px 28px; border-radius:3px; cursor:pointer;
  }
  form.cform button:hover{background:var(--ember-dark);}
  .form-note{font-size:12.5px; color:var(--muted-2); margin-top:2px;}

  /* ---------- final CTA ---------- */
  .final-cta{text-align:left; padding:96px 0;}
  .final-cta h2{font-size:clamp(28px,3.6vw,42px); max-width:16ch; margin-bottom:26px;}

  /* ---------- footer ---------- */
  footer{background:var(--bg-2); border-top:1px solid var(--line); padding:56px 0 26px;}
  .foot-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; margin-bottom:40px;}
  footer h5{font-size:12px; letter-spacing:0.04em; color:var(--muted-2); text-transform:uppercase; margin-bottom:16px; font-weight:700;}
  footer a{text-decoration:none; color:#CFCFC9; font-size:14px;}
  footer a:hover{color:var(--white);}
  .foot-brand{display:flex; align-items:center; margin-bottom:14px;
    background:var(--paper); padding:8px 14px; border-radius:4px; width:fit-content;}
  .foot-logo{height:28px; width:auto; display:block;}
  .foot-bottom{
    border-top:1px solid var(--line); padding-top:22px; display:flex; justify-content:space-between;
    flex-wrap:wrap; gap:12px; font-size:12.5px; color:var(--muted-2);
  }

  @media (max-width:920px){
    nav.mainnav{
      position:fixed; top:78px; left:0; right:0; bottom:0; background:var(--bg);
      flex-direction:column; align-items:flex-start; justify-content:flex-start; flex:none;
      padding:34px 28px; gap:22px;
      transform:translateX(100%); transition:transform .25s ease; overflow-y:auto;
      z-index:55;
    }
    nav.mainnav.open{transform:translateX(0);}
    nav.mainnav a{font-size:19px;}
    .hamburger{display:flex;}
    .stat-strip .wrap{grid-template-columns:1fr 1fr;}
    .stat{border-bottom:1px solid var(--line);}
    .situ-grid{grid-template-columns:1fr;}
    .about-grid{grid-template-columns:1fr; gap:36px;}
    .seg-grid{grid-template-columns:1fr 1fr;}
    .contact-grid{grid-template-columns:1fr; gap:40px;}
    .foot-grid{grid-template-columns:1fr; gap:28px;}
    form.cform .row2{grid-template-columns:1fr;}
    .process-row{grid-template-columns:1fr;}
    .process-grid{grid-template-columns:1fr;}
    .scope-card{position:static;}
  }

  /* ---------- post cover thumbnails ---------- */
  .pub-head{grid-template-columns:64px 110px 1fr 26px;}
  .pub-cover{width:56px; height:56px; border-radius:4px; overflow:hidden; background:var(--bg-3); flex:none;}
  .pub-cover img{width:100%; height:100%; object-fit:cover;}
  .pub-cover.empty{display:flex; align-items:center; justify-content:center; color:var(--muted-2); font-size:10px;}
  .pub-body img.cover-large{width:100%; max-width:520px; border-radius:6px; margin-bottom:18px;}

  /* ---------- loading / empty states ---------- */
  #loading-note{
    display:none; position:fixed; bottom:20px; left:20px; z-index:99;
    background:var(--bg-3); border:1px solid var(--line); color:var(--muted);
    font-size:12.5px; padding:10px 16px; border-radius:4px;
  }

  /* ---------- blog cards ---------- */
  .blog-card-grid{display:grid; grid-template-columns:1fr; gap:16px; margin-top:44px;}

  /* ---------- pagination ---------- */
  .blog-pagination{
    display:flex; align-items:center; justify-content:center; gap:8px; margin-top:40px; flex-wrap:wrap;
  }
  .page-btn{
    min-width:38px; height:38px; padding:0 10px; border-radius:7px; border:1px solid var(--line);
    background:var(--bg-2); color:var(--white); font-family:'Inter',sans-serif; font-size:14px; font-weight:600;
    cursor:pointer;
  }
  .page-btn:hover:not(:disabled){border-color:var(--ember);}
  .page-btn.active{background:var(--ember); border-color:var(--ember); color:var(--on-accent);}
  .page-btn:disabled{opacity:0.35; cursor:not-allowed;}
  .page-arrow{font-size:17px;}
  .page-ellipsis{color:var(--muted-2); padding:0 4px; font-size:14px;}

  /* ---------- breadcrumb (usado em blog.html, post.html, diagnostico.html) ---------- */
  .breadcrumb{font-size:13px; color:var(--muted-2); margin-bottom:18px;}
  .breadcrumb a{color:var(--muted); text-decoration:none;}
  .breadcrumb a:hover{color:var(--white);}
  .blog-card{
    background:var(--bg-2); border:1px solid var(--line); border-radius:10px; padding:28px 30px;
  }
  .blog-card.has-cover{display:flex; gap:24px; align-items:flex-start;}
  .bc-cover{
    width:140px; height:140px; object-fit:cover; border-radius:10px; flex:none;
  }
  .bc-content{flex:1; min-width:0;}
  .bc-title{font-size:20px; font-weight:800; margin-bottom:10px; line-height:1.25;}
  .bc-date{
    display:flex; align-items:center; gap:7px; color:var(--muted-2); font-size:12.5px;
    font-weight:500; margin-bottom:14px;
  }
  .bc-excerpt{color:var(--muted); font-size:14.5px; line-height:1.6; margin-bottom:20px;}
  .bc-tags{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px;}
  .tag-pill{
    font-size:11.5px; font-weight:600; color:var(--white); background:rgba(23,145,166,0.12);
    border:1px solid rgba(23,145,166,0.35); padding:5px 12px; border-radius:999px; text-decoration:none;
  }
  .tag-pill:hover{background:rgba(23,145,166,0.22); color:var(--white);}
  .tag-pill.active{background:var(--ember); border-color:var(--ember); color:var(--on-accent);}
  .bc-btn{
    display:inline-flex; align-items:center; gap:8px; background:var(--ember); color:var(--on-accent);
    text-decoration:none; font-weight:700; font-size:13.5px; padding:11px 22px; border-radius:999px;
  }
  .bc-btn:hover{background:var(--ember-dark);}

  @media (max-width:640px){
    .blog-card.has-cover{flex-direction:column;}
    .bc-cover{width:100%; height:180px;}
  }

  /* ---------- projetos desenvolvidos (portfólio) ---------- */
  .sketchfab-embed-wrap{
    position:relative; width:100%; padding-top:66.66%; /* proporção 3:2 do embed do Sketchfab */
    border-radius:10px; overflow:hidden; background:var(--bg-2); border:1px solid var(--line); margin-bottom:24px;
  }
  .sketchfab-embed-wrap iframe{
    position:absolute; top:0; left:0; width:100%; height:100%; border:none;
  }
  .proj-3d-badge{
    display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700;
    color:var(--on-accent); background:var(--ember); padding:4px 10px; border-radius:999px; margin-bottom:12px;
  }
  .proj-gallery{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:10px; margin:24px 0;
  }
  .proj-gallery img{
    width:100%; height:140px; object-fit:cover; border-radius:8px; border:1px solid var(--line);
    cursor:zoom-in; transition:opacity .15s ease;
  }
  .proj-gallery img:hover{opacity:0.85;}
  .proj-lightbox{
    position:fixed; inset:0; background:rgba(0,0,0,0.88); z-index:400; display:none;
    align-items:center; justify-content:center; padding:32px; cursor:zoom-out;
  }
  .proj-lightbox.open{display:flex;}
  .proj-lightbox img{max-width:100%; max-height:100%; border-radius:8px; display:block;}

  .proj-grid{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:44px;
  }
  .proj-card{
    background:var(--bg-2); border:1px solid var(--line); border-radius:10px; overflow:hidden;
    transition:border-color .15s ease, transform .15s ease;
  }
  .proj-card:hover{border-color:var(--ember); transform:translateY(-2px);}
  .proj-card-linkarea{display:block; text-decoration:none; color:inherit;}
  .proj-card-visual{
    position:relative; width:100%; padding-top:100%; /* deixa o quadro quadrado */
    background:var(--bg-3); overflow:hidden;
  }
  .proj-card-visual iframe.proj-card-embed{
    position:absolute; top:0; left:0; width:100%; height:100%; border:none;
  }
  .proj-card-visual img{
    position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover;
  }
  .proj-card-placeholder{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    color:var(--muted-2); font-size:13px; font-weight:600; text-align:center; padding:20px;
  }
  .proj-card-badge{
    position:absolute; top:10px; left:10px; margin:0; pointer-events:none; z-index:2;
  }
  .proj-card-body{padding:16px 18px 18px;}
  .proj-card-title{font-size:16px; font-weight:800; margin-bottom:8px; line-height:1.3;}
  .proj-card-body .bc-date{margin-bottom:0;}
  .proj-card-tags-row{padding:0 18px 18px;}
  .proj-card-tags-row .bc-tags{margin-bottom:0;}

  @media (max-width:920px){
    .proj-grid{grid-template-columns:repeat(2, 1fr);}
  }
  @media (max-width:640px){
    .proj-grid{grid-template-columns:1fr;}
  }

  /* ---------- single post page ---------- */
  .post-article{max-width:760px; padding:56px 0 80px;}
  .post-date{display:flex; align-items:center; gap:7px; color:var(--muted-2); font-size:13px; margin-bottom:14px;}
  .post-title{font-size:clamp(28px,3.6vw,40px); margin-bottom:24px; max-width:22ch;}
  .post-cover{width:100%; border-radius:8px; margin-bottom:30px;}
  .post-content{font-size:16px; color:#D8D8D3; line-height:1.75;}
  .post-content h2{font-size:22px; font-weight:800; color:var(--white); margin:28px 0 12px;}
  .post-content h3{font-size:18px; font-weight:700; color:var(--white); margin:22px 0 10px;}
  .post-content p{margin-bottom:14px;}
  .post-content ul, .post-content ol{margin:0 0 14px 22px;}
  .post-content li{margin-bottom:8px;}
  .post-content strong{color:var(--white);}
  .post-content a{color:var(--ember); text-decoration:underline;}
  .post-tags{margin-top:28px; padding-top:24px; border-top:1px solid var(--line);}
  .post-tags .bc-tags{margin-bottom:0;}
  .post-nav{
    display:flex; justify-content:space-between; gap:20px; margin-top:44px; padding-top:24px;
    border-top:1px solid var(--line); flex-wrap:wrap;
  }
  .post-nav-link{color:var(--muted); text-decoration:none; font-size:13.5px; font-weight:600; max-width:32ch;}
  .post-nav-link:hover{color:var(--white);}
  .post-nav-link.next{text-align:right; margin-left:auto;}
  .post-cta{
    margin-top:40px; background:var(--bg-2); border:1px solid var(--line); border-radius:10px;
    padding:32px; text-align:center;
  }
  .post-cta h3{font-size:19px; margin-bottom:8px;}
  .post-cta p{color:var(--muted); font-size:14.5px; margin-bottom:20px;}

  @media (max-width:640px){
    .post-nav{flex-direction:column;}
    .post-nav-link.next{text-align:left; margin-left:0;}
  }

  /* ---------- widget flutuante do WhatsApp ---------- */
  .wa-widget{ position:fixed; bottom:26px; right:26px; z-index:90; font-family:'Inter',sans-serif; }

  .whatsapp-float{
    width:58px; height:58px; border-radius:50%; background:#25D366; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 18px rgba(0,0,0,0.4);
    transition:transform .18s ease, box-shadow .18s ease;
    animation:waButtonPulse 2.6s ease-in-out infinite;
  }
  .whatsapp-float:hover{ transform:scale(1.08); box-shadow:0 8px 22px rgba(0,0,0,0.5); }
  .whatsapp-float svg{ width:30px; height:30px; }
  .wa-widget.open .whatsapp-float{ display:none; }

  @keyframes waButtonPulse{
    0%, 100%{ box-shadow:0 6px 18px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.55); }
    50%{ box-shadow:0 6px 18px rgba(0,0,0,0.4), 0 0 0 10px rgba(37,211,102,0); }
  }

  /* balão "Posso ajudar?" */
  .wa-tooltip{
    position:absolute; right:70px; bottom:15px; white-space:nowrap;
    background:#fff; color:#1E1C16; font-size:14px; font-weight:600;
    padding:10px 16px; border-radius:20px; box-shadow:0 4px 14px rgba(0,0,0,0.25);
    opacity:0; transform:translateX(8px) scale(0.92); pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
    cursor:pointer;
  }
  .wa-tooltip::after{
    content:""; position:absolute; right:-6px; bottom:16px;
    width:12px; height:12px; background:#fff; transform:rotate(45deg);
  }
  .wa-tooltip.show{ opacity:1; transform:translateX(0) scale(1); pointer-events:auto; }
  .wa-widget.open .wa-tooltip{ display:none; }

  /* painel de chat expandido */
  .wa-panel{
    position:absolute; bottom:0; right:0; width:320px;
    background:#fff; border-radius:16px; overflow:hidden;
    box-shadow:0 14px 40px rgba(0,0,0,0.35);
    opacity:0; transform:scale(0.9) translateY(10px); transform-origin:bottom right;
    pointer-events:none; transition:opacity .22s ease, transform .22s ease;
  }
  .wa-widget.open .wa-panel{ opacity:1; transform:scale(1) translateY(0); pointer-events:auto; }

  .wa-panel-header{
    background:#25D366; color:#fff; padding:18px 18px 22px;
    display:flex; align-items:center; justify-content:space-between;
  }
  .wa-panel-title{ display:flex; align-items:center; gap:10px; font-size:17px; font-weight:700; }
  .wa-panel-title svg{ width:22px; height:22px; }
  .wa-panel-close{
    background:rgba(0,0,0,0.15); border:none; color:#fff; width:24px; height:24px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:13px; line-height:1;
  }
  .wa-panel-close:hover{ background:rgba(0,0,0,0.28); }

  .wa-panel-body{ padding:20px 18px 18px; margin-top:-14px; }
  .wa-bubble{
    background:#fff; border-radius:4px 14px 14px 14px; box-shadow:0 2px 10px rgba(0,0,0,0.12);
    padding:14px 16px; font-size:13.5px; color:#333; line-height:1.55; margin-bottom:16px; position:relative;
  }
  .wa-panel-btn{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    background:#25D366; color:#fff; text-decoration:none; font-weight:700; font-size:14.5px;
    padding:13px 20px; border-radius:30px; transition:background .15s ease;
  }
  .wa-panel-btn:hover{ background:#1EBE5A; }
  .wa-panel-btn svg{ width:20px; height:20px; flex:none; }

  @media (max-width:640px){
    .wa-widget{ bottom:18px; right:18px; }
    .whatsapp-float{ width:52px; height:52px; }
    .whatsapp-float svg{ width:27px; height:27px; }
    .wa-panel{ width:calc(100vw - 36px); max-width:320px; }
    .wa-tooltip{ right:62px; font-size:13px; padding:9px 14px; }
  }
