:root {
  --ink: #123342;
  --muted: #607989;
  --line: #d8e9ee;
  --surface: #f5fbfc;
  --white: #ffffff;
  --blue: #0078ae;
  --blue-dark: #004d73;
  --teal: #10aab0;
  --green: #75bf43;
  --shadow: 0 20px 56px rgba(0, 80, 110, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, #f7fcfd 38%, #ffffff 78%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 8px 18px;
  font-size: 0.82rem;
  background: linear-gradient(90deg, #0078ae, #12a9ad);
  backdrop-filter: blur(12px);
}

.topbar a {
  opacity: 0.92;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(2, 77, 112, 0.13);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 154px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #294252;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
  background: #edf7fa;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  height: min(760px, 100vh);
  min-height: 660px;
  overflow: hidden;
  background: #e9f7fa;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.image-only {
  align-items: stretch;
  background: #101f54;
}

.hero-slide.image-only img {
  object-fit: contain;
  object-position: center;
  background: #101f54;
}

.slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 78, 115, 0.92), rgba(2, 129, 164, 0.58), rgba(255, 255, 255, 0.06)),
    linear-gradient(0deg, rgba(2, 70, 101, 0.54), rgba(2, 70, 101, 0.04) 58%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 105px auto 0;
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 5.8vw, 5rem);
  line-height: 1;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.hero-actions,
.carousel-controls,
.contact-cards,
.quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #12a9ad);
  box-shadow: 0 18px 34px rgba(0, 110, 168, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.carousel-controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  z-index: 2;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.carousel-prev,
.carousel-next,
.carousel-dots button,
.chat-close {
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.carousel-prev,
.carousel-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.18);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}

.carousel-dots button.is-active {
  width: 32px;
  background: var(--white);
}

.section,
.feature-band,
.contact-section,
.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section h2,
.feature-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section p,
.feature-copy p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 145px;
}

.values-grid,
.service-grid,
.news-grid {
  display: grid;
  gap: 18px;
}

.values-grid {
  grid-template-columns: repeat(3, 1fr);
}

.values-grid article,
.service-grid article,
.news-grid article,
.notice-card {
  border: 1px solid rgba(216, 233, 238, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(24, 94, 124, 0.06);
}

.values-grid article {
  padding: 26px 24px;
  border-top: 4px solid var(--green);
}

.values-grid span,
.service-grid span {
  color: var(--green);
  font-weight: 900;
}

.values-grid h3,
.service-grid h3,
.news-grid h3 {
  margin: 10px 0;
  color: var(--ink);
}

.notice {
  width: 100%;
  padding: 76px max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(135deg, rgba(232, 248, 249, 0.92), rgba(247, 251, 246, 0.96)),
    radial-gradient(circle at 85% 12%, rgba(117, 191, 67, 0.16), transparent 34%);
}

.notice-card {
  max-width: 920px;
  padding: 36px 38px;
  background: rgba(255, 255, 255, 0.9);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid article {
  min-height: 210px;
  padding: 26px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 253, 252, 0.88));
}

.service-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #edf8f2;
  font-size: 1.5rem;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
  padding: 96px 0;
  position: relative;
}

.feature-band.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.feature-media {
  overflow: hidden;
  border-radius: 8px 8px 8px 48px;
  box-shadow: var(--shadow);
}

.feature-band.reverse .feature-media {
  border-radius: 8px 8px 48px 8px;
}

.feature-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.pill-list,
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.pill-list span,
.timeline span {
  border: 1px solid #cfe6ed;
  border-radius: 999px;
  padding: 10px 13px;
  color: #245568;
  background: rgba(242, 250, 252, 0.94);
  font-size: 0.93rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
}

.check-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.check-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-columns li {
  position: relative;
  margin-bottom: 14px;
  padding: 16px 16px 16px 44px;
  border: 1px solid rgba(216, 233, 238, 0.96);
  border-radius: var(--radius);
  color: #284352;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.88);
}

.check-columns li::before {
  position: absolute;
  left: 16px;
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.event-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  padding: 86px max(16px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 74, 105, 0.92), rgba(0, 119, 151, 0.78)),
    url("../imagens/fallback-palestra.svg") center/cover;
}

.event-band .eyebrow,
.event-band p {
  color: rgba(255, 255, 255, 0.88);
}

.event-band div {
  max-width: 760px;
}

.partners {
  padding-bottom: 34px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.logo-strip span {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #567080;
  background: rgba(245, 251, 252, 0.88);
  font-weight: 900;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-grid article {
  padding: 26px 24px;
  border-top: 4px solid #12a9ad;
}

.news-grid time {
  color: var(--teal);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  padding: 94px 0;
}

.contact-section {
  width: 100%;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(135deg, rgba(0, 120, 174, 0.08), rgba(117, 191, 67, 0.09));
}

.contact-cards {
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-cards a {
  border: 1px solid #c9e6eb;
  border-radius: 999px;
  padding: 10px 14px;
  color: #245466;
  background: #f0fafb;
  font-weight: 850;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(216, 233, 238, 0.98);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #2a4657;
  font-size: 0.92rem;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd9df;
  border-radius: 7px;
  padding: 13px 12px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 167, 166, 0.12);
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: #d8e8ee;
}

.footer {
  width: 100%;
  margin-top: 30px;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(135deg, #064a6e, #0a2d3f);
}

.footer img {
  width: 150px;
  height: auto;
  margin-bottom: 18px;
}

.footer p {
  max-width: 510px;
  margin: 0;
  color: #a9c0ca;
}

.footer nav {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}

.chat-toggle {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 18px 40px rgba(0, 92, 101, 0.26);
  cursor: pointer;
  font-weight: 950;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: none;
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #cfe1e7;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.chat-widget.is-open .chat-panel {
  display: block;
}

.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: var(--white);
  background: #0b526d;
}

.chat-panel header span {
  display: block;
  margin-top: 3px;
  color: #c8eef1;
  font-size: 0.82rem;
}

.chat-close {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 1.5rem;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding: 16px;
  background: #f5fafb;
}

.chat-messages p {
  max-width: 86%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
}

.chat-messages .bot {
  justify-self: start;
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-messages .user {
  justify-self: end;
  color: var(--white);
  background: var(--blue);
}

.quick-actions {
  flex-wrap: wrap;
  padding: 0 16px 14px;
  background: #f5fafb;
}

.quick-actions button {
  border: 1px solid #cde2e8;
  border-radius: 999px;
  padding: 8px 10px;
  color: #27566a;
  background: var(--white);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  border: 1px solid #cbd9df;
  border-radius: 7px;
  padding: 11px;
}

.chat-form button {
  border: 0;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .intro,
  .values-grid,
  .service-grid,
  .feature-band,
  .feature-band.reverse,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .logo-strip,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-band,
  .feature-band.reverse,
  .contact-section,
  .section {
    padding: 68px 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    display: none;
  }

  .nav {
    margin-top: 10px;
  }

  .brand {
    width: 132px;
  }

  .brand img {
    width: 132px;
  }

  .hero-content {
    margin-top: 82px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .carousel-controls {
    left: 16px;
    right: auto;
    bottom: 18px;
  }

  .check-columns,
  .logo-strip,
  .news-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .event-band,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-media img {
    height: 360px;
  }

  .contact-copy p strong {
    overflow-wrap: anywhere;
  }

  .chat-widget {
    right: 16px;
    bottom: 16px;
  }
}
