:root{
  --bg:#0b0f16;
  --bg2:#0f1520;

  --panel: rgba(255,255,255,.03);
  --panel2: rgba(255,255,255,.04);

  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);

  --gold:#c9a24a;
  --gold2:#e0c27a;

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow2: 0 12px 30px rgba(0,0,0,.45);

  --radius: 18px;
  --radius2: 22px;

  /* header NÃO cresce */
  --navH: 78px;

  /* logo pode ser maior que o header sem aumentar o header */
  --logoH: 110px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(201,162,74,.14), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg), #070a10 70%);
  overflow-x:hidden;
}

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

/* Subtle grid overlay */
.grid-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background:
    radial-gradient(transparent 58%, rgba(0,0,0,.65)),
    linear-gradient(transparent, transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(circle at 50% 0%, #000 0 55%, transparent 90%);
}

/* =========================
   NAV
========================= */
.navglass{
  z-index: 50;
  height: var(--navH);
  min-height: var(--navH);
  padding-top: 0 !important;
  padding-bottom: 0 !important;

  background: rgba(10,14,20,.55) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);

  /* permite a logo “sobrar” sem aumentar o header */
  overflow: visible;
}

/* container do bootstrap alinhado certinho */
.navbar .container.navgrid{
  height: var(--navH);
  align-items: center;
}

/* marca/logo vira “caixa” do tamanho do header */
.navbar .navbar-brand.brand{
  position: relative;
  height: var(--navH);
  padding: 0 !important;
  margin-right: 16px;

  display: flex;
  align-items: center;

  /* evita espaço extra embaixo de img inline */
  line-height: 0;

  /* largura mínima para o logo não esmagar */
  min-width: 260px;
}

/* logo grande sem empurrar o header */
.brand-logo{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  height: var(--logoH);
  width: auto;
  max-width: 520px;
  object-fit: contain;

  display:block;
}

/* menu à direita no desktop */
@media (min-width: 992px){
  .navlinks{
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
    gap: 18px;
  }
}

/* links */
.navlinks .nav-link{
  color: var(--muted2) !important;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  position: relative;
}
.navlinks .nav-link:hover{
  color: var(--text) !important;
  background: rgba(255,255,255,.04);
}
.navlinks .nav-link.active{
  color: var(--text) !important;
}
.navlinks .nav-link.active::after{
  content:"";
  position:absolute;
  left: 10px; right: 10px; bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(201,162,74,.95), transparent);
  opacity: .9;
}

.burger{
  width: 44px;
  height: 44px;
  padding:0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  box-shadow: none !important;
}

/* Mobile/tablet: diminui a logo e a largura do brand */
@media (max-width: 992px){
  :root{
    --logoH: 72px;
  }
  .navbar .navbar-brand.brand{
    min-width: 200px;
  }
}
@media (max-width: 780px){
  :root{
    --logoH: 56px;
  }
  .navbar .navbar-brand.brand{
    min-width: 170px;
  }
}

/* =========================
   Buttons
========================= */
.btn-gold{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201,162,74,.55);
  background: linear-gradient(180deg, rgba(201,162,74,1), rgba(201,162,74,.82));
  color: rgba(10,12,16,.95);
  box-shadow: 0 14px 35px rgba(201,162,74,.22);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.btn-gold:hover{
  background: linear-gradient(180deg, rgba(224,194,122,1), rgba(201,162,74,.86));
  color: rgba(10,12,16,.95);
}

.btn-outline-gold{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201,162,74,.45);
  background: transparent;
  color: var(--gold2);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.btn-outline-gold:hover{
  background: rgba(201,162,74,.10);
  border-color: rgba(201,162,74,.60);
  color: var(--gold2);
}

.gold{ color: var(--gold); }

/* =========================
   HERO
========================= */
.hero{
  position: relative;
  padding: 0;
  z-index: 1;
}
.hero-wrap{
  position: relative;
  min-height: calc(100vh - var(--navH));
  display:flex;
  align-items:center;
  padding: 50px 0 34px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.11), rgba(8,10,14,.10)),
    url("../assets/hero.png") center/cover no-repeat;
  filter: saturate(.9) contrast(1.05);
  transform: scale(1.03);
}
.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 55% at 50% 50%, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.342)),
    linear-gradient(180deg, rgba(10,14,20,.20), rgba(10,14,20,.78));
}

.hero-content{ position: relative; z-index: 1; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 800;
  font-size: 12.5px;
  box-shadow: var(--shadow2);
}
.pill .ico{
  width: 18px; height: 18px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(201,162,74,.14);
  border: 1px solid rgba(201,162,74,.26);
}
.pill svg{
  width: 12px; height: 12px;
  fill:none;
  stroke: var(--gold2);
  stroke-width: 2;
}

.hero-title{
  margin: 18px auto 10px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 900;
  max-width: 16ch;
  text-shadow: 0 18px 55px rgba(0,0,0,.55);
}

.hero-sub{
  margin: 0 auto;
  max-width: 78ch;
  color: rgba(255,255,255,.58);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.65;
}

.stats{
  margin-top: 46px;
  display:flex;
  justify-content:center;
  gap: 120px;
  flex-wrap: wrap;
}
.stat{ text-align:center; min-width: 160px; }
.stat .num{
  font-size: 32px;
  font-weight: 950;
  color: var(--gold);
  letter-spacing: -.2px;
}
.stat .lbl{
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-weight: 650;
  font-size: 12.5px;
}

.scroll-ind{
  display:flex;
  justify-content:center;
  opacity: .65;
}
.scroll-ind .chev{
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
}
.scroll-ind svg{
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,.7);
  stroke-width: 2;
  fill:none;
  animation: floaty 1.6s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform: translateY(-1px); }
  50%{ transform: translateY(4px); }
}

/* =========================
   MAIN + SECTIONS
========================= */
.mainwrap{
  position: relative;
  z-index: 1;
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(201,162,74,.10), transparent 60%),
    linear-gradient(180deg, rgba(10,14,20,.88), rgba(10,14,20,.96));
  border-top: 1px solid rgba(255,255,255,.08);
}

.sectionpad{
  padding: 86px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--gold);
  opacity: .9;
}

.h2{
  margin: 10px 0 12px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  font-weight: 950;
}

.p{
  margin: 0;
  color: rgba(255,255,255,.56);
  font-weight: 650;
  line-height: 1.75;
  font-size: 15.5px;
}

.panel{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
}

/* bloco “Sicurezza” (direita do Sobre) */
.about-right{
  position: relative;
  overflow:hidden;
}
.about-right::before{
  content:"";
  position:absolute;
  inset: -80px -60px;
  background:
    radial-gradient(220px 220px at 88% 18%, rgba(201,162,74,.18), transparent 60%),
    radial-gradient(240px 240px at 16% 90%, rgba(201,162,74,.14), transparent 60%),
    radial-gradient(360px 360px at 50% 50%, rgba(255,255,255,.05), transparent 60%);
  pointer-events:none;
}
.about-center{ position: relative; }

.big-ico{
  width: 92px; height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201,162,74,1), rgba(201,162,74,.82));
  box-shadow: 0 18px 45px rgba(201,162,74,.18);
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.10);
  margin: 0 auto 18px;
}
.big-ico svg{
  width: 34px; height: 34px;
  stroke: rgba(10,12,16,.88);
  fill:none;
  stroke-width: 2.4;
}
.about-center strong{
  font-weight: 950;
  font-size: 24px;
  letter-spacing: -0.2px;
}
.about-center span{
  color: rgba(255,255,255,.55);
  font-weight: 650;
  font-size: 14px;
}

/* =========================
   Cards
========================= */
.mini-card{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  display:flex;
  gap: 12px;
  align-items:flex-start;
  min-height: 104px;
}
.mini-ico{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(201,162,74,.16);
  border: 1px solid rgba(201,162,74,.24);
  display:grid; place-items:center;
  flex: 0 0 auto;
}
.mini-ico svg{
  width: 20px; height: 20px;
  stroke: rgba(10,12,16,.9);
  fill:none;
  stroke-width: 2.2;
  filter: drop-shadow(0 8px 18px rgba(201,162,74,.25));
}
.mini-card h4{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.2px;
  font-size: 15px;
}
.mini-card p{
  margin: 0;
  color: rgba(255,255,255,.55);
  font-weight: 650;
  line-height: 1.5;
  font-size: 13.2px;
}

.service-card{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 28px rgba(0,0,0,.34);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
  position: relative;
  overflow:hidden;
}
.service-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.14);
}
.service-card::before{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(201,162,74,.18), transparent 60%);
  opacity: .6;
  pointer-events:none;
}
.service-ico{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(201,162,74,1), rgba(201,162,74,.84));
  border: 1px solid rgba(255,255,255,.10);
  display:grid;
  place-items:center;
  margin-bottom: 14px;
  box-shadow: 0 14px 32px rgba(201,162,74,.12);
}
.service-ico svg{
  width: 24px; height: 24px;
  stroke: rgba(10,12,16,.9);
  fill:none;
  stroke-width: 2.2;
}
.service-card h3{
  margin: 0 0 10px;
  font-weight: 950;
  letter-spacing: -0.2px;
  font-size: 16px;
}
.service-card p{
  margin: 0;
  color: rgba(255,255,255,.55);
  font-weight: 650;
  line-height: 1.55;
  font-size: 13.6px;
}

/* =========================
   Contact
========================= */
.form-title{
  margin:0 0 18px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.field{
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 14px;
  color: var(--text);
  outline: none;
  font-weight: 700;
}
.field::placeholder{ color: rgba(255,255,255,.32); }
.field:focus{
  border-color: rgba(201,162,74,.42);
  box-shadow: 0 0 0 4px rgba(201,162,74,.10);
}
textarea.field{ min-height: 130px; resize: vertical; }

.send{
  margin-top: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201,162,74,.55);
  background: linear-gradient(180deg, rgba(201,162,74,1), rgba(201,162,74,.84));
  color: rgba(10,12,16,.92);
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .15s ease;
}
.send:hover{ transform: translateY(-1px); }
.send svg{
  width: 18px; height: 18px;
  stroke: rgba(10,12,16,.9);
  fill:none;
  stroke-width:2.2;
}

/* Msg do form */
.form-msg{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.90);
  font-weight: 750;
  line-height: 1.35;
  display: none;
}
.form-msg.show{ display: block; }

.form-msg.ok{
  border-color: rgba(46, 204, 113, .40);
  background: rgba(46, 204, 113, .14);
  color: rgba(235, 255, 243, .98);
}
.form-msg.err{
  border-color: rgba(231, 76, 60, .45);
  background: rgba(231, 76, 60, .14);
  color: rgba(255, 235, 235, .98);
}
.form-msg.warn{
  border-color: rgba(241, 196, 15, .45);
  background: rgba(241, 196, 15, .14);
  color: rgba(255, 250, 230, .98);
}

.side-title{
  margin:0 0 14px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.info-row{
  display:flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items:center;
}
.info-row:last-child{ border-bottom: 0; padding-bottom: 0; }

.info-ico{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(201,162,74,.16);
  border: 1px solid rgba(201,162,74,.22);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.info-ico svg{
  width: 20px; height: 20px;
  stroke: rgba(10,12,16,.9);
  fill:none;
  stroke-width: 2.2;
}

.info-txt{ display:flex; flex-direction: column; gap: 3px; }
.info-txt small{ color: rgba(255,255,255,.52); font-weight: 750; }
.info-txt strong{ font-weight: 900; }

/* Social */
.social{
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  transition: .2s ease;
}
.social:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
.social svg{
  width: 20px; height: 20px;
  stroke: rgba(255,255,255,.7);
  fill:none;
  stroke-width: 2;
}
.social-note{
  color: rgba(255,255,255,.50);
  font-weight: 650;
  font-size: 13.5px;
  line-height: 1.55;
}

/* =========================
   Footer
========================= */
.footerwrap{
  padding: 62px 0 26px;
  background: rgba(10,14,20,.95);
  position: relative;
  z-index: 1;
}
.footer-top{ border-bottom: 1px solid rgba(255,255,255,.08); }

.brand-badge.footer-badge{
  width:44px; height:44px;
  border-radius:12px;
  background: rgba(201,162,74,.12);
  border: 1px solid rgba(201,162,74,.28);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex: 0 0 auto;
}
.brand-badge.footer-badge img{
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(201,162,74,.35));
}

.footer-title{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.footer-desc{
  color: rgba(255,255,255,.55);
  font-weight: 650;
  margin-top: 8px;
  line-height:1.6;
  font-size: 14px;
  max-width: 42ch;
}
.footer-h{
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.footer-links{
  display:grid;
  gap: 10px;
  color: rgba(255,255,255,.60);
  font-weight: 650;
  font-size: 14px;
}
.footer-links a:hover{ color: rgba(255,255,255,.85); }

.footer-bottom{
  color: rgba(255,255,255,.48);
  font-weight: 650;
  font-size: 13.5px;
}

/* Reveal */
.reveal{ opacity: 0; transform: translateY(14px); transition: .55s ease; }
.reveal.show{ opacity: 1; transform: translateY(0); }

/* Anchor offset */
.anchor-offset{ scroll-margin-top: calc(var(--navH) + 18px); }

/* Responsive tuning */
@media (max-width: 1100px){
  .stats{ gap: 70px; }
}
@media (max-width: 780px){
  .stats{ gap: 28px; }
  .sectionpad{ padding: 66px 0; }
}

/* =========================
   Autofill (Chrome/Edge/Safari/Firefox)
========================= */
.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus,
textarea.field:-webkit-autofill,
textarea.field:-webkit-autofill:hover,
textarea.field:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
  box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.field:-moz-autofill,
textarea.field:-moz-autofill{
  box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
  -moz-text-fill-color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* =========================
   To Top Button
========================= */
.to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;

  width: 52px;
  height: 52px;
  border-radius: 16px;

  border: 1px solid rgba(201,162,74,.38);
  background: rgba(10,14,20,.72);
  backdrop-filter: blur(10px);

  color: rgba(255,255,255,.92);
  font-weight: 950;
  font-size: 18px;
  line-height: 1;

  display: grid;
  place-items: center;

  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  cursor: pointer;

  /* começa escondido */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity .18s ease, transform .18s ease, background .2s ease, border-color .2s ease;
}

.to-top:hover{
  background: rgba(201,162,74,.14);
  border-color: rgba(201,162,74,.60);
  transform: translateY(6px);
}

.to-top:active{
  transform: translateY(8px);
}

/* estado visível */
.to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* acessibilidade: foco */
.to-top:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(201,162,74,.16), 0 18px 55px rgba(0,0,0,.45);
}

/* mobile: um pouco menor */
@media (max-width: 780px){
  .to-top{
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
    border-radius: 14px;
  }
}

/* respeita usuários que não querem animação */
@media (prefers-reduced-motion: reduce){
  .to-top{ transition: none; }
}
