@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");

:root {
  --ipz-red: #d72832;
  --ipz-red-dark: #a91522;
  --ipz-ink: #07131d;
  --ipz-navy: #0a1d2b;
  --ipz-paper: #f7f7f5;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  color: #14191f;
  background: #fff;
}
body.menu-open {
  overflow: hidden;
}

.container-ipz {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.section-kicker {
  color: var(--ipz-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.red-rule {
  width: 2.5rem;
  height: 3px;
  background: var(--ipz-red);
  border-radius: 99px;
}
.btn-primary,
.btn-outline {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.btn-primary {
  color: white;
  background: var(--ipz-red);
  border: 1px solid var(--ipz-red);
}
.btn-primary:hover {
  background: var(--ipz-red-dark);
  border-color: var(--ipz-red-dark);
  transform: translateY(-1px);
}
.btn-outline {
  color: inherit;
  border: 1px solid currentColor;
}
.btn-outline:hover {
  color: white;
  background: var(--ipz-red);
  border-color: var(--ipz-red);
}

.site-header {
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(4, 11, 17, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}
.mobile-toggle {
  display: grid !important;
}
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.65rem;
  height: 2px;
  background: var(--ipz-red);
  transition: right 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.hero-home {
  background-image:
    linear-gradient(
      90deg,
      rgba(2, 7, 11, 0.98) 0%,
      rgba(2, 7, 11, 0.91) 35%,
      rgba(2, 7, 11, 0.46) 67%,
      rgba(2, 7, 11, 0.25) 100%
    ),
    url("../images/hero-home.a8a30d2a81e7.jpg");
  background-position: center;
  background-size: cover;
}
.hero-inner {
  background-image:
    linear-gradient(
      90deg,
      rgba(2, 7, 11, 0.96) 0%,
      rgba(2, 7, 11, 0.82) 46%,
      rgba(2, 7, 11, 0.25) 100%
    ),
    url("../images/hero-interna.6cf0d2468ed6.jpg");
  background-position: center;
  background-size: cover;
}
.page-hero {
  background-image:
    linear-gradient(90deg, rgba(2, 7, 11, 0.97), rgba(2, 7, 11, 0.72)),
    url("../images/hero-interna.6cf0d2468ed6.jpg");
  background-position: center;
  background-size: cover;
}
.smart-band {
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 19, 30, 0.98) 0%,
      rgba(4, 19, 30, 0.91) 48%,
      rgba(4, 19, 30, 0.55) 100%
    ),
    url("../images/smart-cities.31ae5751a1f9.jpg");
  background-position: center;
  background-size: cover;
}
.quote-band {
  background: linear-gradient(135deg, #06111a, #111820);
}
.image-placeholder {
  position: relative;
  overflow: hidden;
  background: #d9dee2;
}
.image-placeholder::after {
  content: "IMAGEM";
  position: absolute;
  inset: auto 1rem 1rem auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.card-lift {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 40, 50, 0.35);
  box-shadow: 0 18px 45px rgba(8, 20, 29, 0.1);
}
.icon-box {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ipz-red);
  background: rgba(215, 40, 50, 0.08);
}
.stat-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #edf0f2;
  box-shadow: 0 10px 35px rgba(5, 17, 27, 0.05);
}
.project-tile::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}
.event-tile {
  border: 0 !important;
  box-shadow: none !important;
}
.event-tile::after {
  content: none !important;
}
.form-field {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9dde0;
  background: #fff;
  padding: 0.75rem 0.9rem;
  outline: none;
}
.form-field:focus {
  border-color: var(--ipz-red);
  box-shadow: 0 0 0 3px rgba(215, 40, 50, 0.1);
}
.social-link {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  font-size: 1rem;
  transition: 0.2s ease;
}
.social-link:hover {
  background: var(--ipz-red);
  border-color: var(--ipz-red);
  transform: translateY(-2px);
}
.event-logo-card {
  position: relative;
  display: grid;
  min-height: 300px;
  width: 100%;
  cursor: pointer;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3e7ea;
  background: white;
  padding: 3rem;
  font: inherit;
  transition: 0.25s ease;
}
.event-logo-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--ipz-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.event-logo-card:hover,
.event-logo-card:focus-visible {
  border-color: rgba(215, 40, 50, 0.45);
  outline: none;
  box-shadow: 0 22px 55px rgba(7, 19, 29, 0.1);
  transform: translateY(-5px);
}
.event-logo-card:hover::after,
.event-logo-card:focus-visible::after {
  transform: scaleX(1);
}
.event-logo-card img {
  width: min(100%, 360px);
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.event-logo-card:hover img {
  transform: scale(1.025);
}
.event-card-action {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: #6c7680;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.modal-open {
  overflow: hidden;
}
.event-modal {
  width: min(900px, calc(100% - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.3);
}
.event-modal::backdrop {
  background: rgba(2, 8, 13, 0.78);
  backdrop-filter: blur(7px);
}
.event-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 500px;
  overflow: hidden;
  background: white;
}
.event-modal-brand {
  display: grid;
  min-height: 100%;
  place-items: center;
  border-right: 1px solid #e6eaed;
  background: linear-gradient(145deg, #fff, #f5f5f2);
  padding: 3rem;
}
.event-modal-brand img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
}
.event-modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2.25rem, 5vw, 4.25rem) 3rem;
}
.event-modal-copy h2 {
  margin-top: 0.75rem;
  color: var(--ipz-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.event-modal-copy > p:not(.section-kicker) {
  margin-top: 1.35rem;
  color: #53616d;
  font-size: 1.02rem;
  line-height: 1.75;
}
.event-modal-realization {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e7ea;
}
.event-modal-realization img {
  width: 108px;
  height: auto;
  padding: 0.6rem;
  background: var(--ipz-ink);
}
.event-modal-realization span {
  display: grid;
  gap: 0.2rem;
  color: #515d67;
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
}
.event-modal-realization strong {
  color: var(--ipz-red);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.event-modal-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  cursor: pointer;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ipz-ink);
  transition: 0.2s ease;
}
.event-modal-close:hover,
.event-modal-close:focus-visible {
  background: var(--ipz-red);
  outline: none;
  transform: rotate(5deg);
}
.footer-link {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: white;
}
.legal-copy h2 {
  margin-top: 2.5rem;
  color: var(--ipz-ink);
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}
.legal-copy h3 {
  margin-top: 1.75rem;
  color: var(--ipz-ink);
  font-size: 1.05rem;
  font-weight: 800;
}
.legal-copy p {
  margin-top: 1rem;
  color: #52606c;
  line-height: 1.8;
}
.legal-copy ul,
.legal-copy ol {
  margin: 1rem 0 0 1.25rem;
  color: #52606c;
  line-height: 1.8;
}
.legal-copy ul {
  list-style: disc;
}
.legal-copy ol {
  list-style: decimal;
}
.legal-copy table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.legal-copy th,
.legal-copy td {
  border: 1px solid #dfe4e8;
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}
.legal-copy th {
  background: var(--ipz-ink);
  color: white;
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: grid !important;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 6.5rem 1.5rem 2rem;
    background: rgba(3, 10, 16, 0.98);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
  }
  .mobile-menu a.mobile-cta {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-bottom: 0;
    background: var(--ipz-red);
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex !important;
  }
  .mobile-toggle,
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .container-ipz {
    width: min(100% - 1.25rem, 1180px);
  }
  .hero-home {
    background-image:
      linear-gradient(rgba(2, 7, 11, 0.83), rgba(2, 7, 11, 0.94)),
      url("../images/hero-home.a8a30d2a81e7.jpg");
  }
  .hero-inner {
    background-image:
      linear-gradient(rgba(2, 7, 11, 0.78), rgba(2, 7, 11, 0.95)),
      url("../images/hero-interna.6cf0d2468ed6.jpg");
  }
  .event-logo-card {
    min-height: 250px;
    padding: 2.25rem;
  }
  .event-modal-panel {
    grid-template-columns: 1fr;
  }
  .event-modal-brand {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid #e6eaed;
    padding: 2.5rem 3rem 2rem;
  }
  .event-modal-brand img {
    max-height: 165px;
  }
  .event-modal-copy {
    padding: 2.25rem 1.5rem 2rem;
  }
  .event-modal-copy h2 {
    padding-right: 1.5rem;
  }
  .event-modal-realization {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-logo-card,
  .event-logo-card::after,
  .event-logo-card img,
  .event-modal-close {
    transition: none;
  }
}

.html-rico {
  color: #52606c;
  line-height: 1.8;
}
.html-rico p + p,
.html-rico ul + p,
.html-rico ol + p {
  margin-top: 1rem;
}
.html-rico h2,
.html-rico h3,
.html-rico h4 {
  margin-top: 1.5rem;
  color: var(--ipz-ink);
  font-weight: 800;
  line-height: 1.3;
}
.html-rico h2 {
  font-size: 1.25rem;
}
.html-rico h3,
.html-rico h4 {
  font-size: 1.05rem;
}
.html-rico ul,
.html-rico ol {
  margin: 1rem 0 0 1.25rem;
}
.html-rico ul {
  list-style: disc;
}
.html-rico ol {
  list-style: decimal;
}
.html-rico a {
  color: var(--ipz-red);
  font-weight: 700;
}
.html-rico strong,
.html-rico b {
  color: #14191f;
  font-weight: 700;
}
.html-rico img {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

.errorlist {
  margin-top: 0.35rem;
  color: var(--ipz-red);
  font-size: 0.75rem;
  font-weight: 700;
}
.errorlist li {
  list-style: none;
}
