:root {
  --p: #009640;
  --p-dark: #007533;
  --p-deep: #005c27;
  --gold: #e30613;
  --gold-2: #ff8a90;
  --ink: #111111;
  --muted: #5a635e;
  --paper: #f4f7f5;
  --line: #dce8e0;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 92, 39, .10);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
html { scroll-behavior: smooth; }
body.pub {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
.brand-serif { font-family: var(--serif); }
a { color: var(--p); }
.topbar {
  background: var(--p-deep);
  color: #d7efe0;
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar .container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  gap: .5rem 1rem;
}
.topbar a { color: #ffb3b8; text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1050;
  transition: box-shadow .35s ease, padding .35s ease, background .35s ease;
}
.site-nav.scrolled {
  box-shadow: 0 10px 30px rgba(6,46,40,.12);
  background: rgba(255,255,255,.98);
}
.site-nav .navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--p-dark); }
.site-nav .navbar-brand img {
  height: 52px; width: auto; max-width: min(260px, 70vw);
  object-fit: contain; display: block;
}
.site-nav .navbar-brand:hover img { transform: none; }
.site-nav .brand-text { display: none; }
.site-nav .nav-link {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .7rem !important;
  position: relative;
  transition: color .25s ease;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--p-dark); }
.site-nav .brand-text { line-height: 1.15; }
.site-nav .brand-text strong { font-family: var(--serif); font-size: 1.05rem; display: block; }
.site-nav .brand-text small { color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.site-nav .nav-link {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .7rem !important;
}
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--p) !important; }
.site-nav .navbar-nav {
  align-items: center;
  gap: .15rem;
}
.site-nav .nav-item {
  display: flex;
  align-items: center;
}
.site-nav .nav-link {
  display: flex;
  align-items: center;
  line-height: 1.2;
  height: 40px;
}
.site-nav .nav-cta { margin-left: .55rem; }
.site-nav .nav-cta .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.15rem;
  font-size: .85rem;
  line-height: 1;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: #fff; border: 0; font-weight: 700;
  border-radius: 999px; padding: .7rem 1.25rem;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.btn-gold:hover { filter: brightness(1.05); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(227,6,19,.35); }
.btn-teal {
  background: var(--p); color: #fff; border: 0; font-weight: 600;
  border-radius: 999px; padding: .7rem 1.25rem;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn-teal:hover { background: var(--p-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,150,64,.28); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 999px;
  padding: .7rem 1.25rem; font-weight: 600;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn-ghost:hover { background: #fff; color: var(--p-dark); transform: translateY(-2px); }
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  padding: 4.8rem 0 5.2rem;
  background-color: var(--p-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center right;
  animation: kenburns 22s ease-out forwards;
}
.hero-overlay, .page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(0, 70, 28, .94) 0%,
      rgba(0, 92, 39, .82) 36%,
      rgba(0, 80, 34, .55) 62%,
      rgba(18, 36, 26, .40) 100%);
}
.hero .container { position: relative; z-index: 2; max-width: 1140px; }
.hero .kicker { animation: fadeUp .8s ease both; }
.hero h1 { animation: fadeUp .9s .12s ease both; }
.hero .lead { animation: fadeUp .9s .24s ease both; }
.hero .d-flex.gap-2 { animation: fadeUp .9s .36s ease both; }
.hero-meta { animation: fadeUp .9s .48s ease both; }
.page-hero .container { animation: fadeUp .8s ease both; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(transparent, var(--paper));
  z-index: 1;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; font-weight: 700;
  color: var(--gold-2);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); animation: lineGrow .8s ease both; }
@keyframes lineGrow { from { width: 0; } to { width: 28px; } }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12; font-weight: 700; max-width: 18ch;
  text-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.hero .lead { max-width: 38rem; color: #e6f6ec; font-size: 1.12rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .7rem 1.4rem;
  color: #d7efe0; font-size: .92rem;
  margin-top: .4rem;
}
.hero-meta span {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .4rem .85rem;
}
.stats {
  margin-top: -48px; position: relative; z-index: 2;
}
.stats .panel {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.stats .item { padding: 1.4rem 1.2rem; text-align: center; border-right: 1px solid var(--line); }
.stats .item:last-child { border-right: 0; }
.stats .n { font-family: var(--serif); font-size: 1.85rem; color: var(--p); line-height: 1; }
.stats .l { font-size: .78rem; color: var(--muted); margin-top: .35rem; font-weight: 600; }
.section { padding: 5rem 0; }
.section-h { max-width: 640px; margin-bottom: 2.4rem; }
.section-h h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--p-dark); }
.card-pro {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,92,39,.05); height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card-pro:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #c9e0d9; }
.ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: #e6f6ec; color: var(--p);
  font-size: 1.35rem;
  transition: transform .4s ease, background .35s ease, color .35s ease;
}
.card-pro:hover .ico { transform: scale(1.08) rotate(-6deg); background: var(--p); color: #fff; }
.pill {
  background: #e6f6ec; color: var(--p-dark); border-radius: 999px;
  padding: .45rem .9rem; font-size: .85rem; font-weight: 600;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.pill:hover { background: var(--p); color: #fff; transform: translateY(-2px); }
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.about-photo {
  border-radius: 28px; min-height: 420px;
  background-color: var(--p);
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.about-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: #fff; border-radius: 16px; padding: 1rem 1.15rem; box-shadow: var(--shadow);
  animation: fadeUp .8s .3s ease both;
}
.page-hero {
  position: relative; color: #fff; padding: 4.2rem 0 3.2rem;
  background-color: var(--p-deep); background-size: cover; background-position: center;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.8rem); }
.breadcrumb { background: none; padding: 0; margin: 0 0 .6rem; }
.breadcrumb-item, .breadcrumb-item a { color: #d7efe0; }
.breadcrumb-item.active { color: var(--gold-2); }
.form-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid var(--line);
}
.form-control, .form-select {
  border-radius: 12px; border-color: #cddfd9; padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--p); box-shadow: 0 0 0 .2rem rgba(0,150,64,.18);
}
.side-info {
  background: var(--p-deep); color: #d7efe0; border-radius: 22px; padding: 1.8rem;
}
.side-info h3 { color: #fff; font-family: var(--serif); }
.cta-band {
  background: linear-gradient(100deg, #007533, #009640 55%, #e30613);
  background-size: 160% 160%;
  color: #fff; border-radius: 28px; padding: 2.4rem;
  animation: ctaShift 10s ease-in-out infinite alternate;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.in, .reveal-right.in { transform: none; }
.stats .item { transition: transform .35s ease; }
.stats .item:hover { transform: translateY(-4px); }
.form-card { animation: fadeUp .7s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
@keyframes ctaShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .hero .kicker, .hero h1, .hero .lead, .hero-meta, .form-card { opacity: 1; transform: none; }
}
.site-footer { background: var(--p-deep); color: #c5d9d0; padding: 3.4rem 0 1.4rem; margin-top: 0; }
.site-footer a { color: #ffb3b8; text-decoration: none; transition: color .25s ease, padding-left .25s ease; }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.site-footer h6 { color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-bottom: 1rem; }
.footer-logo {
  height: 58px; width: auto; max-width: 240px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 6px 10px;
}
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.ok-box { background: #e8f6ee; border: 1px solid #b7e0c6; color: #146c43; border-radius: 16px; padding: 1.2rem 1.4rem; animation: fadeUp .5s ease both; }
.alert-pro { border: 0; border-radius: 14px; }
.map-embed { border: 0; border-radius: 22px; width: 100%; height: 280px; }
@media (max-width: 991px) {
  .stats .panel { grid-template-columns: 1fr 1fr; }
  .stats .item:nth-child(2) { border-right: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; padding: 4.5rem 0 5rem; }
}
@media (max-width: 576px) {
  .stats .panel { grid-template-columns: 1fr; }
  .stats .item { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Responsividade */
html { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
body.pub { padding-bottom: env(safe-area-inset-bottom); }
.topbar { padding-top: calc(.45rem + env(safe-area-inset-top)); }
.site-nav .navbar-brand img { max-width: min(240px, 62vw); }
.hero .d-flex.gap-2 { position: relative; z-index: 2; }
.cta-band { display: flex; flex-wrap: wrap; gap: 1rem; }
.ai-widget { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1085; font-family: var(--font); }
.ai-toggle {
  width: 64px; height: 64px; border: 2px solid #009640; border-radius: 50%; cursor: pointer;
  background: #fff; padding: 7px;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,150,64,.32); position: relative;
  transition: transform .25s ease;
}
.ai-toggle img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.ai-toggle:hover { transform: scale(1.08); }
.ai-badge {
  display: none;
}
.ai-panel {
  display: none; position: absolute; right: 0; bottom: 68px;
  width: min(380px, calc(100vw - 28px));
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,70,28,.28); border: 1px solid var(--line);
  flex-direction: column; max-height: min(560px, 72vh);
}
.ai-widget.open .ai-panel { display: flex; animation: fadeUp .35s ease both; }
.ai-head {
  background: linear-gradient(100deg, #007533, #009640);
  color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem;
}
.ai-head small { display: block; opacity: .85; font-size: .72rem; }
.ai-head strong { display: block; font-size: .84rem; line-height: 1.25; max-width: 230px; }
.ai-avatar {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0; padding: 4px;
}
.ai-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ai-close {
  margin-left: auto; background: transparent; border: 0; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .85;
}
.ai-log { padding: .85rem; overflow-y: auto; flex: 1; min-height: 220px; background: #f4f7f5; }
.ai-msg { margin-bottom: .65rem; display: flex; flex-direction: column; gap: .3rem; }
.ai-user { align-items: flex-end; }
.ai-bot { align-items: flex-start; }
.ai-bubble {
  max-width: 92%; padding: .65rem .8rem; border-radius: 16px;
  font-size: .88rem; line-height: 1.45; white-space: pre-wrap;
}
.ai-bot .ai-bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-top-left-radius: 6px; }
.ai-user .ai-bubble { background: var(--p); color: #fff; border-top-right-radius: 6px; }
.ai-link {
  display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700;
  color: var(--p-dark); background: #e6f6ec; border-radius: 999px; padding: .28rem .7rem;
  text-decoration: none; margin-right: .25rem;
}
.ai-link:hover { background: var(--p); color: #fff; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .35rem .85rem .15rem; background: #fff; }
.ai-chip {
  border: 1px solid var(--line); background: #fff; color: var(--p-dark);
  border-radius: 999px; padding: .28rem .7rem; font-size: .76rem; font-weight: 600; cursor: pointer;
}
.ai-chip:hover { border-color: var(--p); background: #e6f6ec; }
.ai-form { display: flex; gap: .4rem; padding: .65rem .75rem; background: #fff; border-top: 1px solid var(--line); }
.ai-input {
  flex: 1; border: 1px solid #cddfd9; border-radius: 999px; padding: .55rem .9rem; font-size: 16px;
}
.ai-input:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 .15rem rgba(0,150,64,.15); }
.ai-send {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--gold); color: #fff; cursor: pointer;
}
.ai-note { font-size: .68rem; color: var(--muted); text-align: center; padding: 0 .75rem .55rem; background: #fff; }
.ai-typing .ai-bubble { display: flex; gap: .25rem; align-items: center; min-height: 28px; }
.ai-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--p); opacity: .35;
  animation: aiDot 1s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .3; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.site-footer { padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
.table-responsive { -webkit-overflow-scrolling: touch; }

@media (max-width: 991.98px) {
  .section { padding: 3.2rem 0; }
  .page-hero { padding: 2.6rem 0 2.1rem; }
  .about-photo { min-height: 280px; border-radius: 18px; }
  .cta-band { padding: 1.5rem; border-radius: 18px; }
  .form-card, .side-info { padding: 1.25rem; }
  .site-nav .navbar-collapse { padding: .5rem 0 1rem; }
  .site-nav .navbar-nav { align-items: stretch; }
  .site-nav .nav-item { display: block; }
  .site-nav .nav-link { padding: .7rem .2rem !important; height: auto; }
  .site-nav .nav-cta { margin-left: 0; margin-top: .5rem; }
  .site-nav .nav-cta .btn-gold { width: 100%; height: 44px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.6rem); max-width: none; }
  .hero .lead { font-size: 1rem; }
  .map-embed { height: 220px; }
}
@media (max-width: 575.98px) {
  .topbar { font-size: .74rem; }
  .topbar .container > div:first-child span { display: none; }
  .site-nav .navbar-brand img { height: 40px; }
  .hero { min-height: auto; padding: 3.2rem 0 4.2rem; }
  .hero .btn, .cta-band .btn { width: 100%; }
  .stats { margin-top: -28px; }
  .stats .item { padding: 1rem .8rem; }
  .section { padding: 2.4rem 0; }
  .card-pro { padding: 1.1rem !important; }
  .ai-toggle { width: 56px; height: 56px; }
  .ai-widget { bottom: max(14px, env(safe-area-inset-bottom)); }
  .ai-panel { max-height: min(70vh, 520px); }
  .form-control, .form-select { font-size: 16px; min-height: 44px; }
  .btn-gold, .btn-teal, .btn-ghost { min-height: 44px; }
  .footer-logo { height: 48px; max-width: 90%; }
  .site-footer { padding: 2.2rem 0 calc(4.8rem + env(safe-area-inset-bottom)); }
}
