:root {
  --vm-blue: #073b75;
  --vm-cyan: #03a8d8;
  --vm-orange: #ff6b16;
  --vm-banner-gap: 14px;
  --vm-hero-height: clamp(390px, 34vw, 560px);
}

html {
  overflow-x: hidden;
}

body {
  background: #f3f7fb;
  color: #10243e;
  overflow-x: hidden;
}

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

.container {
  width: calc(100% - 24px);
  max-width: 1540px;
}

.site-navbar {
  background: linear-gradient(100deg, #052d5c, #075ca2);
}

.navbar-brand img {
  width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

.site-navbar .nav-link:hover {
  color: #fff;
}

/*
 * No computador e no notebook o carrossel e a coluna com três banners usam
 * exatamente a mesma altura. As três linhas laterais dividem a altura total,
 * descontando automaticamente os dois espaços entre elas.
 */
.hero-banner-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.15fr) minmax(235px, 1fr);
  gap: var(--vm-banner-gap);
  width: 100%;
  height: var(--vm-hero-height);
  min-height: 0;
}

.hero-banner-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-banner-main,
.hero-carousel,
.hero-slide,
.hero-slide .carousel-item,
.hero-slide .carousel-item > a {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-carousel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(7, 59, 117, .18);
}

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

.hero-banner-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--vm-banner-gap);
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.banner-small {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #dfeaf4;
  box-shadow: 0 10px 28px rgba(7, 59, 117, .13);
  transition: transform .2s ease, box-shadow .2s ease;
}

.banner-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(7, 59, 117, .2);
}

.banner-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.banner-small-bottom {
  aspect-ratio: 9 / 4;
}

.hero-banner-placeholder {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(28px, 5vw, 80px);
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(120deg, #052d5c 0%, #075ca2 58%, #03a8d8 100%);
  box-shadow: 0 18px 45px rgba(7, 59, 117, .18);
}

.hero-banner-placeholder span {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffd39c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-banner-placeholder h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
}

.hero-banner-placeholder p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.ad-card img,
.gallery-thumb img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.ad-card img {
  height: 220px;
}

.gallery-thumb img {
  height: 120px;
}

.card-soft {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(7, 59, 117, .08);
}

.category-chip {
  text-decoration: none;
}

.category-chip .card {
  transition: all .2s ease;
}

.category-chip:hover .card {
  transform: translateY(-3px);
}

.stats-badge {
  font-size: .9rem;
}

.table thead th {
  white-space: nowrap;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.login-box {
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  max-width: 760px;
}

.site-footer {
  background: linear-gradient(100deg, #052d5c, #073b75);
}

.btn-success {
  background: #0aa86e;
  border-color: #0aa86e;
}

@media (min-width: 1600px) {
  :root {
    --vm-hero-height: 570px;
  }

  .hero-banner-layout {
    grid-template-columns: minmax(0, 4fr) minmax(280px, 1fr);
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  :root {
    --vm-hero-height: clamp(410px, 37vw, 500px);
  }

  .hero-banner-layout {
    grid-template-columns: minmax(0, 3fr) minmax(225px, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --vm-hero-height: 410px;
    --vm-banner-gap: 12px;
  }

  .hero-banner-layout {
    grid-template-columns: minmax(0, 2.7fr) minmax(210px, 1fr);
  }

  .navbar-brand img {
    width: 160px;
  }

  .site-navbar .nav-link,
  .site-navbar .btn {
    font-size: .85rem;
  }
}

@media (max-width: 991.98px) {
  .hero-banner-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .hero-banner-main {
    height: clamp(300px, 52vw, 440px);
  }

  .hero-banner-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  .banner-small-side {
    aspect-ratio: 9 / 4;
  }

  .navbar-collapse {
    padding: 12px 0 4px;
  }

  .site-navbar .navbar-nav {
    align-items: stretch !important;
  }
}

@media (max-width: 767.98px) {
  .container {
    width: calc(100% - 20px);
  }

  .hero-banner-main {
    height: clamp(245px, 58vw, 360px);
  }

  .hero-banner-side,
  .banner-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .banner-small-side,
  .banner-small-bottom {
    aspect-ratio: 9 / 4;
  }

  .ad-card img {
    height: 190px;
  }

  .navbar-brand img {
    width: 150px;
    height: 50px;
  }
}

@media (max-width: 575.98px) {
  .hero-banner-layout {
    gap: 12px;
  }

  .hero-banner-main {
    height: clamp(220px, 62vw, 300px);
  }

  .hero-carousel,
  .hero-banner-placeholder {
    border-radius: 18px;
  }

  .hero-banner-side,
  .banner-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner-small {
    border-radius: 15px;
  }

  .banner-small-side,
  .banner-small-bottom {
    aspect-ratio: 9 / 4;
  }

  .hero-banner-placeholder {
    padding: 24px;
  }

  .ad-card img {
    height: 180px;
  }
}
