:root {
  --blue: #0b1b3b;
  --deep: #08132a;
  --gold: #caa86a;
  --white: #fff;
  --ink: #0b1220;

  /* será atualizado via JS para a altura real do header */
  --header-height: 170px;
  --header-extra-offset: 24px; /* folga do degradê/transparência */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #f9fafb;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 .5rem;
}

a { text-decoration: none; color: inherit; }

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

/* ===========================================================
   HEADER — transparente com degradê azul (sempre)
=========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(8, 19, 42, 0.9) 0%,
    rgba(8, 19, 42, 0.75) 50%,
    rgba(8, 19, 42, 0.4) 100%
  );
  border-bottom: none !important;
  color: #fff;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(8, 19, 42, 0.9) 0%,
    rgba(8, 19, 42, 0.75) 50%,
    rgba(8, 19, 42, 0.4) 100%
  );
  box-shadow: none;
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.header .logo img {
  height: 100px;
  transition: height .3s ease;
}
.header.scrolled .logo img { height: 70px; }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a {
  color: #e5edff; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: background .3s, opacity .3s;
}
.nav a:hover { background: rgba(255,255,255,.1); opacity: .85; }
.nav a.active { background: rgba(255,255,255,.16); }

@media (max-width: 768px) {
  .nav { overflow-x: auto; white-space: nowrap; gap: 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
}

/* ===========================================================
   BOTÕES
=========================================================== */
.btn { display:inline-block; padding:12px 18px; border-radius:999px; border:1px solid transparent; transition:.2s; font-weight:600; }
.btn-gold { background: var(--gold); color:#111; }
.btn-gold:hover { filter: brightness(.95); }
.btn-outline { border-color:#cfe1ff; color:#cfe1ff; }

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative; min-height:95vh; background:#000; color:#fff;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.hero img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.8; }
.hero .overlay {
  position:relative; z-index:2; width:100%;
  padding: 22vh 0 18vh; display:flex; flex-direction:column; align-items:center; text-align:center;
}
.hero .wm { position:absolute; bottom:8%; right:6%; width:560px; opacity:.18; pointer-events:none; filter:grayscale(100%); }
.hero h1 { font-size:40px; max-width:900px; margin:0 18px 12px; }
.hero p.sub { font-size:18px; color:#dbeafe; max-width:900px; margin:0 18px 20px; }
.hero .ctas { display:flex; gap:12px; margin:0 18px; flex-wrap:wrap; justify-content:center; }

/* ===========================================================
   SEÇÕES GERAIS
=========================================================== */
.section { padding: 70px 0; }
.section-blue { background: linear-gradient(180deg, var(--blue), var(--deep)); color:#fff; }
.grid-2 { display:grid; grid-template-columns:1fr; gap:24px; }
.portrait { border-radius:18px; border:2px solid var(--gold); width:100%; height:auto; }
.portrait.small { max-width:280px; }

.sym-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.sym-card { background:#fff; border-radius:14px; padding:16px; border:1px solid #e5e7eb; box-shadow:0 10px 24px rgba(0,0,0,.05); }
.sym-card h3 { font-size:16px; margin-bottom:6px; }
.sym-card p { font-size:14px; color:#475569; }

.gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.gallery img { width:100%; border-radius:12px; box-shadow:0 8px 20px rgba(0,0,0,.06); }

blockquote { margin:0; padding:16px; border-left:4px solid var(--gold); background:#fff; border-radius:12px; color:#334155; box-shadow:0 10px 20px rgba(0,0,0,.04); }
blockquote em { color:#0b1b3b; font-style:normal; font-weight:600; }

.press { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:16px; }
.press a { display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:12px; box-shadow:0 8px 20px rgba(0,0,0,.04); }
.press img { height:36px; }

.map { width:100%; height:320px; border:0; border-radius:14px; box-shadow:0 12px 30px rgba(0,0,0,.08); }

.footer { background:var(--deep); color:#cfe1ff; padding:30px 0; margin-top:40px; }
.footer .grid { display:grid; grid-template-columns:1fr; gap:16px; }
.footer img.logo { height:24px; }
.links a { color:#cfe1ff; margin-right:12px; }

.fab {
  position:fixed; right:16px; bottom:16px; width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 16px 40px rgba(0,0,0,.35); z-index:60;
}

.cookie {
  position:fixed; left:12px; right:12px; bottom:12px; background:#0f172a; color:#e5e7eb;
  padding:12px 14px; border-radius:14px; display:none; gap:12px; align-items:center; z-index:70; justify-content:space-between;
}
.cookie .btn { padding:10px 14px; }

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media(min-width:768px){
  .grid-2 { grid-template-columns:1.2fr .8fr; }
  .sym-grid { grid-template-columns:repeat(3,1fr); }
  .gallery { grid-template-columns:repeat(3,1fr); }
  .press { grid-template-columns:repeat(4,1fr); }
  .hero h1 { font-size:56px; }
  .hero p.sub { font-size:20px; }
  .hero .wm { width:560px; }
}
@media(max-width:767px){
  .hero .wm { width:260px; bottom:6%; right:5%; }
}

/* ===========================================================
   OVERRIDES
=========================================================== */
.header .logo img { height:150px !important; }
.press img { max-height:55px; width:auto; object-fit:contain; filter:none; }

/* ===========================================================
   ⚑ OFFSETS CORRETOS PARA TODAS AS ANCORAS
=========================================================== */
section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--header-extra-offset));
}
:target::before {
  content: "";
  display: block;
  height: calc(var(--header-height) + var(--header-extra-offset));
  margin-top: calc((var(--header-height) + var(--header-extra-offset)) * -1);
}

/* ===========================================================
   BLOG — começar abaixo do header em /blog
=========================================================== */
body.blog { position: relative; }
body.blog::before{
  content:"";
  display:block;
  height: calc(var(--header-height) + var(--header-extra-offset));
}
body.blog .header{
  background: linear-gradient(180deg, rgba(8,19,42,.95) 0%, rgba(8,19,42,.85) 60%, rgba(8,19,42,.65) 100%);
  border-bottom: none !important;
  box-shadow: none;
  transition: background .6s ease, box-shadow .6s ease;
}
body.blog .header.scrolled{
  background: linear-gradient(180deg, rgba(8,19,42,.95) 0%, rgba(8,19,42,.85) 60%, rgba(8,19,42,.65) 100%);
  box-shadow: none;
}

/* ===========================================================
   ⚑ CORREÇÃO — PÁGINAS INSTITUCIONAIS
=========================================================== */
body.politica,
body.cancelamento,
body.termos {
  position: relative;
}
body.politica::before,
body.cancelamento::before,
body.termos::before {
  content: "";
  display: block;
  height: calc(var(--header-height) + var(--header-extra-offset));
}
body.politica h1:first-of-type,
body.cancelamento h1:first-of-type,
body.termos h1:first-of-type,
body.politica h2:first-of-type,
body.cancelamento h2:first-of-type,
body.termos h2:first-of-type {
  margin-top: 0;
  padding-top: 20px;
}
body.politica .header,
body.cancelamento .header,
body.termos .header {
  background: linear-gradient(
    180deg,
    rgba(8, 19, 42, 0.95) 0%,
    rgba(8, 19, 42, 0.85) 60%,
    rgba(8, 19, 42, 0.65) 100%
  );
  box-shadow: none;
  border-bottom: none !important;
}

/* ===========================================================
   ⚜️ PREMIUM REFINEMENTS — BLOG ARTIGOS
=========================================================== */
.autor-bloco img {
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .3s ease;
  animation: fadeIn 1.2s ease-out;
}
.autor-bloco img:hover { transform: scale(1.05); }

.leia-link .sym-card {
  transition: all .3s ease;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  animation: fadeInUp .8s ease both;
}
.leia-link .sym-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212,175,55,0.15);
  transform: translateY(-3px);
}
.leia-link:hover h3 { color: var(--gold); }

.assinatura-ouro hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #f1e7b5, var(--gold));
  width: 100px;
  margin: 0 auto 30px;
  border-radius: 3px;
  animation: fadeIn .8s ease-out;
}
.assinatura-ouro a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity .3s ease;
}
.assinatura-ouro a:hover { opacity: 0.8; }

.artigo p {
  line-height: 1.7;
  font-size: 17px;
  color: #1e293b;
  margin-bottom: 16px;
  animation: fadeIn .8s ease;
}
.artigo h2 {
  margin-top: 40px;
  font-size: 24px;
  color: var(--blue);
}
.artigo ul {
  margin: 10px 0 20px 20px;
  color: #334155;
}
.artigo li { margin-bottom: 6px; }

/* ✨ Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade específica */
@media (max-width:768px) {
  .autor-bloco { flex-direction: column; text-align: center; }
  .leia-link .sym-card { padding: 16px; }
}

/* ===========================================================
   DEPOIMENTOS — vídeos lado a lado
=========================================================== */
.depo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 26px;
}

@media (max-width: 880px) {
  .depo-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   INSTAGRAM — ícone no footer
=========================================================== */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  transition: transform .2s ease, opacity .2s ease;
}
.social-links a:hover {
  transform: scale(1.1);
  opacity: .9;
}
.social-links a svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}