/* ============================================================
   vittalmente — style.css
   Paleta: teal #2D6E6E · amber #F5A623 · red #8B0000 · cream #F0EDE8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- RESET + BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #F0EDE8;
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 16px;
}
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { color: #2D6E6E; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- VARIÁVEIS ---------- */
:root {
  --teal:  #2D6E6E;
  --td:    #1a4a4a;
  --tl:    #e8f4f4;
  --amber: #F5A623;
  --red:   #8B0000;
  --cream: #F0EDE8;
  --white: #ffffff;
  --text:  #1a1a1a;
  --muted: #666666;
  --r:     12px;
  --rs:    8px;
  --shadow:0 4px 16px rgba(45,110,110,.12);
}

/* ---------- CONTAINERS ---------- */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 1.5rem; }
.section-sm { padding: 2.5rem 1.5rem; }

/* ---------- FLASH ---------- */
.flash {
  padding: .8rem 1.5rem; font-size: 14px; text-align: center;
  position: sticky; top: 0; z-index: 200;
}
.flash-ok   { background: #e8f5e8; color: #2d6a2d; }
.flash-erro { background: #fce8e8; color: #8b0000; }
.flash-info { background: var(--tl);  color: var(--td);   }

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,237,232,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45,110,110,.12);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1.5rem; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--td); letter-spacing: -.5px;
}
.nav-brand em { color: var(--amber); font-style: italic; }
.nav-links {
  display: flex; gap: 1.4rem; margin-left: auto; align-items: center;
}
.nav-links a {
  font-size: .82rem; font-weight: 500; color: #555;
  letter-spacing: .3px;
}
.nav-links a:hover { color: var(--teal); opacity: 1; }
.btn-nav {
  background: var(--teal); color: #fff !important;
  padding: .45rem 1.1rem; border-radius: 30px;
  font-size: .8rem; font-weight: 500; white-space: nowrap;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--td); opacity: 1 !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--td); border-radius: 2px; transition: .3s;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--td);
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 3rem 3rem 3rem; max-width: 560px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(245,166,35,.2); color: var(--amber);
  border: 1px solid rgba(245,166,35,.35);
  padding: .3rem .9rem; border-radius: 20px;
  font-size: .72rem; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2rem,4vw,3.2rem); color: #fff; margin-bottom: 1rem; }
.hero h1 em { color: var(--amber); font-style: italic; }
.hero-sub { color: rgba(255,255,255,.72); font-size: 1rem; margin-bottom: 2rem; font-weight: 300; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: .72rem 1.6rem; border-radius: 30px;
  font-size: .88rem; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; border: none;
  transition: transform .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-primary  { background: var(--amber); color: #fff; }
.btn-teal     { background: var(--teal);  color: #fff; }
.btn-outline  { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; }
.btn-outline-teal { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline-teal:hover { background: var(--tl); }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-block { width: 100%; text-align: center; }
.btn-danger { background: var(--red); color: #fff; }

/* ---------- SECTION HEADS ---------- */
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.5rem,3vw,2.2rem); color: var(--text); margin-bottom: .5rem; }
.section-sub   { font-size: .95rem; color: var(--muted); max-width: 500px; }
.section-head  { margin-bottom: 2.5rem; }

/* ---------- CARDS ---------- */
.card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid rgba(45,110,110,.1);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- SERVIÇOS ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.2rem; }
.service-card {
  background: var(--cream); border-radius: var(--r); padding: 1.5rem;
  border: 1px solid rgba(45,110,110,.1);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
}
.service-card:nth-child(1)::after { background: var(--teal); }
.service-card:nth-child(2)::after { background: var(--amber); }
.service-card:nth-child(3)::after { background: var(--red); }
.service-card:nth-child(4)::after { background: var(--td); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.service-card p  { font-size: .83rem; color: var(--muted); }

/* ---------- EVENTOS ---------- */
.events-section { background: var(--td); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 1.2rem; }
.event-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); padding: 1.5rem;
  transition: background .2s;
}
.event-card:hover { background: rgba(255,255,255,.13); }
.event-date {
  display: inline-block; background: var(--amber); color: #fff;
  border-radius: var(--rs); padding: .3rem .7rem;
  font-size: .75rem; font-weight: 500; margin-bottom: 1rem;
}
.event-card h3 { font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.event-card p  { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.vagas-bar-wrap { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.vagas-bar { flex: 1; height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.vagas-fill { height: 100%; background: var(--amber); border-radius: 2px; }
.vagas-text { font-size: .7rem; color: rgba(255,255,255,.45); white-space: nowrap; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1.2rem; }
.blog-card { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(45,110,110,.1); }
.blog-card:hover { transform: translateY(-2px); }
.blog-thumb { height: 160px; background: var(--tl); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body  { padding: 1.1rem; }
.blog-cat   { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; color: var(--teal); margin-bottom: .3rem; }
.blog-card h3 { font-size: .92rem; line-height: 1.4; margin-bottom: .5rem; }
.blog-card p  { font-size: .78rem; color: var(--muted); }
.blog-date    { font-size: .7rem; color: #aaa; margin-top: .6rem; }

/* ---------- DEPOIMENTOS ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1.2rem; }
.testi-card { background: var(--white); border-radius: var(--r); padding: 1.5rem; border: 1px solid rgba(45,110,110,.08); }
.testi-stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; margin-bottom: .7rem; }
.testi-card blockquote { font-size: .85rem; line-height: 1.7; color: #555; font-style: italic; margin-bottom: 1rem; }
.testi-author { display: flex; align-items: center; gap: .6rem; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 500; color: #fff; flex-shrink: 0; overflow: hidden; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FORMULÁRIOS ---------- */
.form-group  { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 500; color: #555; margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--cream); border: 1px solid rgba(45,110,110,.2);
  border-radius: var(--rs); padding: .65rem .9rem;
  font-size: .88rem; font-family: 'DM Sans', sans-serif; color: var(--text);
  outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .erro { font-size: .75rem; color: #c0392b; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: flex-start; gap: .5rem; }
.form-check input { width: auto; margin-top: 3px; accent-color: var(--teal); }
.form-check label { font-size: .82rem; color: #666; }

/* ---------- TAGS & BADGES ---------- */
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 20px; font-size: .72rem; font-weight: 500; }
.tag-teal   { background: var(--tl); color: var(--td); border: 1px solid rgba(45,110,110,.2); }
.tag-amber  { background: rgba(245,166,35,.15); color: #8a5500; }
.tag-green  { background: #e8f5e8; color: #2d6a2d; }
.tag-red    { background: #fce8e8; color: #8b0000; }
.tag-gray   { background: #f0f0f0; color: #555; }

/* ---------- CONTATO ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-item { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.contact-dot  { width: 38px; height: 38px; border-radius: 10px; background: var(--tl); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff; border: none;
  padding: .8rem 1.6rem; border-radius: 30px;
  font-size: .88rem; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; margin-top: 1rem;
  transition: opacity .2s;
}
.btn-whatsapp:hover { opacity: .9; }

/* ---------- FOOTER ---------- */
.footer { background: var(--td); color: rgba(255,255,255,.7); padding: 3rem 1.5rem 0; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.footer-logo em { color: var(--amber); font-style: italic; }
.footer-brand p { font-size: .82rem; line-height: 1.7; margin-bottom: .4rem; }
.footer-social { display: flex; gap: .8rem; margin-top: .8rem; }
.footer-social a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-social a:hover { color: var(--amber); opacity: 1; }
.footer-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); margin-bottom: .8rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--amber); opacity: 1; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .72rem; color: rgba(255,255,255,.3); }
.footer-badges { display: flex; gap: .5rem; }
.badge-ssl, .badge-lgpd, .badge-cfp {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: 2px 8px; font-size: .65rem; color: rgba(255,255,255,.4);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); opacity: 1; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 480px; z-index: 250;
  background: var(--white); border: 1px solid rgba(45,110,110,.15);
  border-radius: var(--r); padding: 1rem 1.2rem;
  font-size: .82rem; color: #555;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.btn-cookie-ok {
  background: var(--teal); color: #fff; border: none;
  padding: .4rem 1rem; border-radius: 20px; font-size: .8rem; cursor: pointer; font-family: 'DM Sans',sans-serif;
}
.btn-cookie-no {
  background: transparent; color: #888; border: 1px solid #ddd;
  padding: .4rem 1rem; border-radius: 20px; font-size: .8rem; cursor: pointer; font-family: 'DM Sans',sans-serif;
}

/* ---------- ADMIN ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--td); padding: 1.5rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand   { padding: .5rem 1.2rem 1.5rem; font-family: 'Playfair Display',serif; font-size: 1.1rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .5rem; }
.admin-brand em { color: var(--amber); font-style: italic; }
.admin-nav-item {
  padding: .6rem 1.2rem; font-size: .82rem; color: rgba(255,255,255,.6);
  cursor: pointer; display: flex; align-items: center; gap: .6rem;
  border-left: 2px solid transparent; transition: all .15s; text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,.06); color: #fff; opacity: 1;
}
.admin-nav-item.active { border-left-color: var(--amber); }
.admin-content { background: var(--cream); padding: 2rem; }
.admin-top     { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.admin-title   { font-size: 1.4rem; color: var(--td); }
.stat-cards    { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.stat-card     { background: var(--white); border-radius: var(--r); padding: 1rem; border: 1px solid rgba(45,110,110,.08); }
.stat-card .val { font-size: 1.6rem; font-weight: 500; font-family:'Playfair Display',serif; color: var(--teal); }
.stat-card .lbl { font-size: .72rem; color: #aaa; margin-top: 2px; }
.stat-card .chg { font-size: .68rem; color: #3d8a3d; margin-top: 4px; }
.data-table    { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { padding: .65rem 1rem; text-align: left; font-size: .7rem; color: #999; font-weight: 500; background: var(--cream); border-bottom: 1px solid rgba(45,110,110,.08); }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid rgba(45,110,110,.05); color: #444; }
.data-table tr:hover td { background: rgba(45,110,110,.03); }
.table-wrap    { background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid rgba(45,110,110,.08); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(240,237,232,.98);
    padding: 1rem 1.5rem; gap: .8rem;
    border-bottom: 1px solid rgba(45,110,110,.12);
    z-index: 99;
  }
  .hero { min-height: 70vh; }
  .hero-content { padding: 2rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stat-cards   { grid-template-columns: 1fr; }
  .events-grid, .services-grid { grid-template-columns: 1fr; }
}
