.home-page section {
  scroll-margin-top: var(--header-height);
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 82vh;
  min-height: 560px;
  max-height: 760px;
  position: relative;
  overflow: hidden;
}

.hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
  z-index: 1;
}

.carousel-caption-wrapper {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.carousel-caption-wrapper .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  pointer-events: auto;
}

.carousel-caption {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: translateY(-2rem);
  width: 100%;
  max-width: 800px;
  padding: 0;
  color: #fff;
  text-align: left;
}

.carousel-caption h1 {
  max-width: 760px;
  margin-bottom: 0.75rem;
  font-size: 3.5rem;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .carousel-caption {
    max-width: 680px;
  }

  .carousel-caption h1 {
    max-width: 640px;
    font-size: 3.15rem;
  }
}

.carousel-caption p {
  max-width: 34rem;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
  opacity: 0.96;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.carousel-caption .btn {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 5% !important;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 10px;
  width: auto;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  justify-content: center;
  align-items: center;
}

.carousel-indicators button {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: none !important;
  background: var(--vermelho-effex) !important;
  width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease !important;
  opacity: 1 !important;
  transform-origin: center !important;
}

.carousel-indicators .active {
  background-color: #fff !important;
  transform: scale(1.2) !important;
}

.quick-actions {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-actions .btn {
  min-width: 180px;
}

.home-page .card {
  border-radius: var(--radius-lg) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14) !important;
}

.home-page .card .card-body {
  padding: 1.25rem;
}

.home-page .card-title {
  line-height: 1.18;
}

.home-page .imagem-fill {
  min-height: 320px;
}

.numbers-section {
  padding-bottom: 2rem !important;
}

.differentials-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.differentials-inner {
  width: 100%;
  max-width: 100%;
}

.differentials-heading {
  width: 100%;
}

.home-page .collapse-item {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 0 1rem;
}

.home-page .collapse-item > .d-flex {
  min-width: 0;
  gap: 1rem;
}

.home-page .collapse-item a.lead {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.home-contact-form {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.toggle-icon.btn-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-plus {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: #222;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.icon-plus::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%) scaleX(1);
  transform-origin: center;
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
}

.icon-plus::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 22px;
  transform: translateX(-50%) scaleY(1);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s ease;
}

.toggle-icon.btn-icon.open .icon-plus {
  transform: scale(1.03) rotate(0.5deg);
}

.toggle-icon.btn-icon.open .icon-plus::after {
  transform: translateX(-50%) scaleY(0.02);
  opacity: 0;
}

.toggle-icon.btn-icon.open .icon-plus::before {
  transform: translateY(-50%) scaleX(1.28);
}

textarea {
  height: 100px;
  resize: none;
}

@media (max-width: 991.98px) {
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item {
    height: 680px;
    min-height: 620px;
    max-height: none;
  }

  .hero .carousel-item::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.74));
  }

  .carousel-caption-wrapper .container {
    align-items: flex-end;
    padding-bottom: 5.5rem;
  }

  .carousel-caption {
    transform: none;
    max-width: 360px;
  }

  .carousel-caption h1 {
    max-width: 13ch;
    font-size: 2.45rem;
  }

  .carousel-caption p {
    font-size: 1.05rem;
  }

  .quick-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .numbers-section {
    padding-bottom: 1.25rem !important;
  }

  .differentials-section {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item {
    height: 640px;
    min-height: 600px;
  }

  .carousel-caption-wrapper .container {
    padding-bottom: 4.75rem;
  }

  .carousel-caption h1 {
    font-size: 2rem;
    max-width: 14ch;
  }

  .carousel-caption p {
    max-width: 100%;
  }

  .carousel-caption .btn {
    width: 100%;
    max-width: 100%;
  }

  .home-page .card .card-body {
    padding: 1rem;
  }

  .home-page .collapse-item {
    padding: 0.75rem 0 0.85rem;
  }

  .home-page .collapse-item > .d-flex {
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .home-page .collapse-item a.lead {
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .toggle-icon.btn-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}
