:root {
  --unifei-bg-image: url("/static/images/fundo-unifei.webp");
  --unifei-navy: #082f5b;
  --unifei-blue: #005a9c;
  --unifei-white: #ffffff;
  --unifei-soft: #e8eef5;
  --unifei-overlay: rgba(5, 39, 82, 0.44);
  --site-shell-width: 1360px;
  --center-grid-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--unifei-white);
  background-color: var(--unifei-navy);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image: var(--unifei-bg-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(1.08) contrast(1.03) saturate(1.02);
}

body::after {
  background-color: var(--unifei-overlay);
  background-image:
    radial-gradient(ellipse at center, rgba(8, 47, 91, 0.02) 18%, rgba(8, 47, 91, 0.14) 68%, rgba(8, 47, 91, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 39, 82, 0.04) 0%, rgba(5, 39, 82, 0.08) 45%, rgba(5, 39, 82, 0.18) 100%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell {
  width: min(100%, var(--site-shell-width));
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.2vw, 2.5rem);
}

.site-header {
  padding-top: clamp(1rem, 2.2vw, 1.8rem);
  padding-bottom: clamp(0.9rem, 1.8vw, 1.4rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  min-width: 0;
  width: fit-content;
}

.site-header__logo {
  display: block;
  width: clamp(132px, 16vw, 230px);
  max-height: clamp(42px, 6vw, 68px);
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header__divider {
  width: 1px;
  align-self: stretch;
  min-height: clamp(42px, 5vw, 62px);
  background: rgba(232, 238, 245, 0.45);
  flex: 0 0 auto;
}

.site-header__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-header__text h1 {
  margin: 0;
  color: var(--unifei-white);
  font-size: clamp(1.15rem, 1.9vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.site-header__text p {
  margin: 0;
  color: rgba(232, 238, 245, 0.96);
  font-size: clamp(1.15rem, 2.35vw, 2.55rem);
  font-weight: 700;
  line-height: 1.35;
}

.page__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.9rem, 2vw, 1.6rem);
}

.center-grid {
  width: min(var(--center-grid-width), 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.3vw, 1rem);
  align-items: stretch;
}

.center-action {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.center-action:hover,
.center-action:focus-visible {
  transform: scale(1.005);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
  outline: none;
}

.center-action img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .site-header__inner {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__divider {
    height: 42px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-top: 0.85rem;
  }

  .site-header__logo {
    width: clamp(112px, 38vw, 170px);
    max-height: 52px;
  }

  .site-header__text h1 {
    font-size: clamp(1rem, 4.4vw, 1.35rem);
  }

  .site-header__text p {
    font-size: clamp(1rem, 5vw, 1.45rem);
  }

  .page__stage {
    padding: 0.6rem;
    align-items: flex-start;
  }

  .center-grid {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
  }

  .center-action img {
    width: 100%;
    height: auto;
  }
}
