:root {
  --ink: #101623;
  --muted: #5f6978;
  --line: #dde4eb;
  --paper: #f7f9fb;
  --white: #ffffff;
  --teal: #087f8c;
  --gold: #d5a21d;
  --red: #c63f3f;
  --green: #267a47;
  --shadow: 0 24px 70px rgba(16, 22, 35, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(221, 228, 235, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: #344052;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.site-nav .nav-action {
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
}

.site-nav .nav-action[aria-current="page"] {
  color: var(--white);
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  padding: 132px clamp(18px, 5vw, 76px) 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/images/foto-grupo.jpeg") center / cover no-repeat;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.96) 0%, rgba(247, 249, 251, 0.82) 46%, rgba(16, 22, 35, 0.36) 100%),
    linear-gradient(0deg, rgba(16, 22, 35, 0.22), rgba(16, 22, 35, 0.04));
}

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

.hero-content {
  max-width: 850px;
}

.hero-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-logos img {
  width: 82px;
  height: 58px;
  padding: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(221, 228, 235, 0.9);
  border-radius: var(--radius);
}

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

.hero h1,
.section h2,
.feature h2,
.invitation h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: #334052;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
}

.btn.primary {
  color: var(--white);
  background: var(--ink);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.event-card {
  padding: 28px;
  color: var(--white);
  background: rgba(16, 22, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-card p,
.event-card strong,
.event-card span,
.event-card small {
  display: block;
}

.event-card p {
  margin: 0 0 6px;
  color: #cbd4df;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.event-card span {
  margin: 18px 0;
  color: var(--gold);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
}

.event-card small {
  color: #dfe7ef;
  font-size: 0.95rem;
  line-height: 1.55;
}

.section {
  padding: clamp(68px, 9vw, 118px) clamp(18px, 5vw, 76px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: 560px;
  padding: 138px clamp(18px, 5vw, 76px) 74px;
  background:
    linear-gradient(120deg, rgba(8, 127, 140, 0.08), rgba(213, 162, 29, 0.1)),
    var(--white);
}

.page-hero h1,
.invitation-page h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
  line-height: 1.72;
}

.page-hero > img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero:not(.image-hero) > img {
  padding: 34px;
  object-fit: contain;
  background: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.value-grid article {
  padding: clamp(28px, 4vw, 46px);
  background: var(--white);
}

.value-grid h3 {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-stats {
  padding-top: clamp(68px, 9vw, 118px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.section h2,
.feature h2,
.invitation h2 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  font-weight: 800;
}

.intro-copy p,
.feature-content p,
.section-heading p,
.invitation-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.stats article {
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
}

.stats span {
  color: var(--gold);
  font-weight: 800;
}

.stats h3 {
  margin: 22px 0 12px;
  font-size: 1.5rem;
}

.stats p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 650px;
  background: var(--ink);
}

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

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 82px);
  color: var(--white);
}

.feature-content p {
  color: #c7d1dd;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  padding: 9px 12px;
  color: #eaf0f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.gallery-item:hover img {
  opacity: 0.82;
  transform: scale(1.045);
}

.invitation {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(68px, 9vw, 118px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(120deg, rgba(8, 127, 140, 0.08), rgba(213, 162, 29, 0.1)),
    var(--white);
}

.invitation-page {
  min-height: calc(100vh - 96px);
  padding-top: 136px;
}

.invitation dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
}

.invitation dl div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.invitation dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invitation dd {
  margin: 8px 0 0;
  font-weight: 800;
}

.poster {
  margin: 0;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.poster img {
  border-radius: calc(var(--radius) - 2px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 76px);
  color: #dce4ed;
  background: #0b101a;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 13, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.ai-launcher {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--green));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(8, 127, 140, 0.32);
  cursor: pointer;
}

.ai-launcher span {
  font-weight: 800;
  letter-spacing: 0;
}

.ai-panel {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 98px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(390px, calc(100vw - 32px));
  height: min(590px, calc(100vh - 126px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ai-panel[hidden] {
  display: none;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--ink);
}

.ai-header strong,
.ai-header small {
  display: block;
}

.ai-header small {
  margin-top: 3px;
  color: #c9d4df;
  font-size: 0.78rem;
}

.ai-header button {
  width: 36px;
  height: 36px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  background: #f2f6f8;
}

.ai-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ai-message.assistant {
  align-self: flex-start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.ai-message.user {
  align-self: flex-end;
  color: var(--white);
  background: var(--teal);
}

.ai-message.loading {
  color: var(--muted);
}

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

.ai-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.ai-form button {
  height: 44px;
  padding: 0 14px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.ai-form button:disabled,
.ai-form input:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .page-hero,
  .split,
  .feature,
  .section-heading,
  .invitation {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .event-card {
    max-width: 430px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .page-hero h1,
  .invitation-page h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-logos img {
    width: 70px;
    height: 52px;
  }

  .event-card span {
    font-size: 3rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .invitation dl {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-launcher {
    right: 16px;
    bottom: 16px;
  }

  .ai-panel {
    right: 16px;
    bottom: 88px;
    height: min(560px, calc(100vh - 106px));
  }
}
