.equipamentos-page {
  background: #f5f3ef;
}

.fleet-hero {
  padding: 122px 44px 36px;
  background: #f5f3ef;
  color: #081b2c;
}

html {
  scroll-padding-top: 96px;
}

.equipamentos-banner {
  position: relative;
  width: 100%;
  height: min(640px, calc(100vh - 166px));
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(225, 40, 36, 0.055) 0, rgba(225, 40, 36, 0) 24%),
    linear-gradient(180deg, rgba(7, 29, 51, 0.035) 0, rgba(7, 29, 51, 0) 34%),
    #ffffff;
}

.equipamentos-banner::before {
  position: absolute;
  top: 42px;
  right: 46px;
  left: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 29, 51, 0.12), transparent);
  content: "";
}

.truck-big {
  position: absolute;
  right: -880px;
  bottom: -34px;
  width: min(900px, 56vw);
  animation: truckEnterRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.truck-big img,
.truck-s img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(13, 17, 23, 0.16));
}

@keyframes truckEnterRight {
  to {
    right: -34px;
  }
}

.banner-text {
  position: absolute;
  top: -190px;
  left: 45.5%;
  z-index: 2;
  width: min(650px, 40vw);
  opacity: 0;
  text-align: center;
  transform: translateX(-50%);
  animation: textDropDown 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

@keyframes textDropDown {
  to {
    top: 104px;
    opacity: 1;
  }
}

.banner-kicker {
  margin: 0 0 14px;
  color: #f5211a;
  font-size: clamp(0.95rem, 1vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-14px);
  animation: textPartIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

.banner-title {
  margin: 0 0 16px;
  color: #081b2c;
  font-size: clamp(3.25rem, 4.2vw, 5.15rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: titleLiftIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.55s forwards;
}

.banner-desc {
  margin: 0 0 24px;
  color: #5f5e5a;
  font-size: clamp(1.12rem, 1.18vw, 1.34rem);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
  animation: textPartIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.85s forwards;
}

.banner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: textPartIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.08s forwards;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary {
  padding: 13px 20px;
  border-radius: 2px;
  background: #f5211a;
  color: #ffffff;
}

.btn-ghost {
  padding: 12px 0;
  border-bottom: 1px solid #081b2c;
  background: transparent;
  color: #081b2c;
}

.banner-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(14px);
  animation: textPartIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.28s forwards;
}

.banner-tags a {
  display: inline-block;
  padding: 7px 10px;
  border-left: 2px solid #f5211a;
  background: rgba(7, 29, 51, 0.045);
  color: #313941;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease;
}

@keyframes titleLiftIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textPartIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trucks-small {
  position: absolute;
  bottom: 24px;
  left: 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.truck-s {
  width: min(340px, 26vw);
  opacity: 0;
  transform: translateX(-290px);
}

.truck-s:first-child {
  width: min(400px, 30vw);
}

.truck-s:nth-child(1) {
  animation: truckEnterLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.truck-s:nth-child(2) {
  animation: truckEnterLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
}

@keyframes truckEnterLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.banner-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #f5211a;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineExpand 0.6s ease 3.1s forwards;
}

@keyframes lineExpand {
  to {
    transform: scaleX(1);
  }
}

.equipment-catalog {
  padding: 72px 0 82px;
}

.equipment-catalog-head {
  margin-bottom: 34px;
}

#equipment-catalog-title {
  scroll-margin-top: 108px;
}

.equipment-grid {
  gap: 0;
}

.equipment-item {
  min-height: 560px;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  padding: clamp(20px, 1.9vw, 28px);
}

.equipment-item h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.75rem);
}

.equipment-item img {
  max-height: 360px;
}

.equipment-item-foot p {
  font-size: 0.83rem;
  line-height: 1.4;
}

@media (max-width: 1020px) {
  .fleet-hero {
    padding: 116px 24px 34px;
  }

  .equipamentos-banner {
    height: auto;
    min-height: 760px;
  }

  .banner-text {
    left: 50%;
    width: min(330px, calc(100% - 44px));
    transform: translateX(-50%);
  }

  .banner-title {
    font-size: clamp(2.8rem, 13vw, 4.35rem);
  }

  .banner-tags {
    flex-wrap: wrap;
  }

  @keyframes textDropDown {
    to {
      top: 36px;
      opacity: 1;
    }
  }

  .truck-big {
    right: auto;
    bottom: 6px;
    left: 50%;
    width: min(680px, 104vw);
    transform: translateX(95vw);
  }

  @keyframes truckEnterRight {
    to {
      transform: translateX(-50%);
    }
  }

  .trucks-small {
    right: 22px;
    bottom: 220px;
    left: 22px;
    flex-direction: row;
    justify-content: center;
  }

  .truck-s {
    width: min(188px, 36vw);
  }

  .truck-s:first-child {
    width: min(220px, 42vw);
  }

  .equipment-catalog {
    padding: 62px 0 72px;
  }

  .equipment-item {
    min-height: 500px;
    grid-template-rows: auto minmax(260px, 1fr) auto;
  }

  .equipment-item img {
    max-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .truck-big,
  .banner-text,
  .banner-kicker,
  .banner-title,
  .banner-desc,
  .banner-actions,
  .banner-tags,
  .truck-s,
  .banner-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .truck-big {
    right: -34px;
  }

  .banner-text {
    top: 104px;
  }
}

@media (max-width: 640px) {
  .equipment-catalog {
    padding: 54px 0 62px;
  }

  .equipment-catalog-head {
    margin-bottom: 28px;
  }

  .equipment-item {
    min-height: auto;
    grid-template-rows: auto minmax(220px, auto) auto;
    padding: 22px 20px;
  }

  .equipment-item img {
    max-height: 240px;
    margin: 14px 0;
  }
}


/* FROTA CAMIOES: catalogo frota 6 fotos */
.truck-catalog {
  padding: 84px 0 96px;
  background: #ffffff;
}

.truck-catalog-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.truck-catalog-head h2 {
  margin: 10px 0 16px;
  color: #081b2c;
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.truck-catalog-head p {
  max-width: 620px;
  color: #5f5e5a;
  font-size: 1rem;
  line-height: 1.7;
}

.truck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(7, 29, 51, 0.1);
  border-left: 1px solid rgba(7, 29, 51, 0.1);
}

.truck-item {
  padding: 24px 22px 26px;
  border-right: 1px solid rgba(7, 29, 51, 0.1);
  border-bottom: 1px solid rgba(7, 29, 51, 0.1);
  background: #ffffff;
}

.truck-image {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #ffffff;
}

.truck-image img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.truck-item h3 {
  margin: 0 0 10px;
  color: #081b2c;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.truck-item p {
  margin: 0;
  color: #5f5e5a;
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .truck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .truck-catalog {
    padding: 58px 0 70px;
  }

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

  .truck-image {
    min-height: 210px;
  }

  .truck-image img {
    max-height: 200px;
  }
}


/* FINAL EQUIPAMENTOS: banner profissional + frota animada */
.fleet-hero {
  padding: 0 !important;
  background: #0b2d47 !important;
}

.equipamentos-banner {
  width: 100% !important;
  height: min(620px, calc(100vh - 106px)) !important;
  min-height: 520px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 82% 22%, rgba(225, 40, 36, 0.22) 0, rgba(225, 40, 36, 0) 28%),
    linear-gradient(135deg, #0b2d47 0%, #061726 58%, #0a2540 100%) !important;
}

.equipamentos-banner::before {
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.banner-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  animation: equipamentosVisualIn 0.95s ease 0.15s both;
}

.banner-visual::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 16, 28, 0.62) 0%, rgba(4, 16, 28, 0.32) 22%, rgba(4, 16, 28, 0) 46%);
  content: "";
}

.banner-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 46%;
  transform: scale(1.1);
  transform-origin: 50% 38%;
}

.equipamentos-banner::after {
  position: absolute;
  top: 50%;
  right: clamp(20px, 2vw, 36px);
  z-index: 2;
  display: flex;
  width: min(365px, 23.5vw);
  height: min(365px, 23.5vw);
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(225, 40, 36, 0.86), rgba(195, 31, 29, 0.82));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  content: "FROTA\A OBRA\A APOIO";
  font-size: clamp(2rem, 3.4vw, 4.1rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.9;
  opacity: 0.96;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
  animation: equipamentosRedBlockIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.truck-big,
.trucks-small,
.banner-truck-slider {
  display: none !important;
}

@keyframes equipamentosVisualIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes equipamentosRedBlockIn {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 28px)) scale(0.94);
  }

  to {
    opacity: 0.96;
    transform: translateY(-50%) scale(1);
  }
}

.banner-text {
  position: absolute !important;
  top: 50% !important;
  left: clamp(28px, 3vw, 52px) !important;
  z-index: 3 !important;
  width: min(640px, 43vw) !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
  animation: equipamentosHeroTextIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both !important;
}

.banner-kicker,
.banner-title,
.banner-desc,
.banner-actions,
.banner-tags {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.banner-kicker {
  margin-bottom: 18px !important;
  color: #e2a83c !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.18em !important;
}

.banner-title {
  max-width: 700px !important;
  margin-bottom: 20px !important;
  color: #ffffff !important;
  font-size: clamp(3.1rem, 4.75vw, 5.75rem) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.06em !important;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.4) !important;
}

.banner-desc {
  max-width: 520px !important;
  margin-bottom: 28px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(0.95rem, 1.02vw, 1.12rem) !important;
  line-height: 1.58 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32) !important;
}

.banner-actions,
.banner-tags {
  justify-content: flex-start !important;
}

.btn-primary {
  background: #f5211a !important;
  color: #ffffff !important;
}

.btn-ghost {
  border-bottom-color: rgba(255, 255, 255, 0.78) !important;
  color: #ffffff !important;
}

.banner-tags a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.banner-tags a:hover,
.banner-tags a:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
  border-left-color: #ffffff !important;
}

.banner-line {
  background: #f5211a !important;
  opacity: 1 !important;
  transform: scaleX(1) !important;
  animation: equipamentosLineIn 0.75s ease 0.65s both !important;
}

@keyframes equipamentosHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes equipamentosLineIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* FINAL EQUIPAMENTOS: frota larga e cards animados */
.equipment-catalog {
  padding-bottom: 42px !important;
}

.truck-catalog {
  padding: 42px 0 96px !important;
  background: #ffffff !important;
}

.truck-catalog .page-shell {
  width: min(100% - 76px, 1540px) !important;
  max-width: none !important;
}

.truck-catalog-head {
  max-width: 760px !important;
  margin-bottom: 38px !important;
}

.truck-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.truck-item {
  position: relative !important;
  overflow: hidden !important;
  padding: 18px 18px 20px !important;
  opacity: 0;
  transform: translateY(22px);
  animation: truckCardIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.truck-item h3 {
  margin-bottom: 0 !important;
}

.truck-item:nth-child(1) { animation-delay: 0.05s; }
.truck-item:nth-child(2) { animation-delay: 0.12s; }
.truck-item:nth-child(3) { animation-delay: 0.19s; }
.truck-item:nth-child(4) { animation-delay: 0.26s; }
.truck-item:nth-child(5) { animation-delay: 0.33s; }
.truck-item:nth-child(6) { animation-delay: 0.40s; }

.truck-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #f5211a;
  content: "";
  transition: width 0.28s ease;
}

.truck-item:hover {
  z-index: 2;
  border-color: rgba(225, 40, 36, 0.18) !important;
  box-shadow: 0 24px 54px rgba(13, 17, 23, 0.10) !important;
  transform: translateY(-6px) !important;
}

.truck-item:hover::before {
  width: 100%;
}

.truck-image {
  min-height: 315px !important;
  margin-bottom: 18px !important;
}

.truck-image img {
  width: 100% !important;
  max-height: 300px !important;
  object-fit: contain !important;
  transition: transform 0.32s ease, filter 0.32s ease !important;
}

.truck-item:hover .truck-image img {
  transform: scale(1.035);
  filter: drop-shadow(0 18px 18px rgba(13, 17, 23, 0.10));
}

@keyframes truckCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .truck-catalog .page-shell {
    width: min(100% - 42px, 1000px) !important;
  }

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

  .truck-image {
    min-height: 270px !important;
  }

  .truck-image img {
    max-height: 250px !important;
  }
}

.banner-note-mobile {
  display: none;
}

@media (max-width: 1020px) {
  .equipamentos-banner {
    min-height: 640px !important;
  }

  .banner-visual::before {
    background:
      linear-gradient(180deg, rgba(4, 16, 28, 0.6) 0%, rgba(4, 16, 28, 0.14) 32%, rgba(4, 16, 28, 0) 52%, rgba(4, 16, 28, 0.4) 100%) !important;
  }

  /* Riquadro rosso: rimosso come overlay, sostituito dal blocco reale sotto il hero */
  .equipamentos-banner::after {
    content: none !important;
  }

  .banner-note-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(225, 40, 36, 0.94), rgba(195, 31, 29, 0.9));
    color: #ffffff;
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
  }

  .banner-text {
    top: 96px !important;
    left: 50% !important;
    width: min(560px, calc(100% - 44px)) !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
  }

  .banner-actions,
  .banner-tags {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .banner-title {
    overflow-wrap: break-word !important;
    font-size: clamp(2.4rem, 10vw, 4.9rem) !important;
  }

  @keyframes equipamentosHeroTextIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(-14px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
}

@media (max-width: 430px) {
  .equipamentos-banner {
    min-height: 600px !important;
  }

  .banner-text {
    top: 88px !important;
  }

  .banner-title {
    font-size: clamp(2.1rem, 11vw, 3.4rem) !important;
  }

  .banner-desc {
    font-size: clamp(0.98rem, 4.2vw, 1.12rem) !important;
  }
}

@media (max-width: 640px) {
  .truck-catalog {
    padding: 34px 0 70px !important;
  }

  .truck-catalog .page-shell {
    width: min(100% - 28px, 520px) !important;
  }

  .truck-grid {
    grid-template-columns: 1fr !important;
  }

  .truck-image {
    min-height: 210px !important;
  }

  .truck-image img {
    max-height: 200px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-text,
  .banner-visual,
  .equipamentos-banner::after,
  .banner-line,
  .truck-item,
  .truck-image img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

