/* ============================================
   BRIDGEON — Page-specific Styles
   ============================================ */


/* ============================================
   HERO — Non-home pages (about, contacts, …)
   ============================================ */

body:not(.page-home) .hero {
  aspect-ratio: unset;
}

body:not(.page-home) .hero__overlay {
  height: 37vw;
  transform: translate(-41%, 0%) rotate(-45deg);
  background-color: var(--color-dark);
}

body:not(.page-home) .hero__content {
  padding-block: var(--space-120);
}

body:not(.page-home) .hero__text {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
}

@media (max-width: 2000px) {
  body:not(.page-home) .hero__overlay {
    height: 43vw;
    transform: translate(-43%, 0%) rotate(-45deg);
  }
}

@media (max-width: 1620px) {
  body:not(.page-home) .hero__overlay {
    height: 44vw;
    transform: translate(-41%, 0%) rotate(-45deg);
  }
}

@media (max-width: 1200px) {
  body:not(.page-home) .hero__overlay {
    height: 46vw;
    transform: translate(-43%, 0%) rotate(-45deg);
  }
}

@media (max-width: 1023px) {
  body:not(.page-home) .hero__overlay {
    height: 65vw;
    transform: translate(-42%, 0%) rotate(-45deg);
  }
}

@media (max-width: 767px) {
  body:not(.page-home) .hero__text {
    font-size: 20px;
    line-height: 26px;
  }

  body:not(.page-home) .hero__overlay {
    height: 70vw;
    transform: translate(-41%, 0%) rotate(-45deg);
  }
}

@media (max-width: 575px) {
  body:not(.page-home) .hero__overlay {
    height: 85vw;
    transform: translate(-37%, 0%) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  body:not(.page-home) .hero__text {
        font-size: 17px;
    line-height: 21px;
  }
}

@media (max-width: 420px) {
  body:not(.page-home) .hero__overlay {
    height: 97vw;
    transform: translate(-36%, 0%) rotate(-45deg);
  }
}


/* ============================================
   ABOUT US
   ============================================ */

.about-intro {
  background-color: var(--color-bg-light);
  padding-block: var(--space-120);
}

.about-intro__body {
  max-width: 57%;
}

.about-intro__heading {
  color: var(--color-primary);
  margin-bottom: var(--space-32);
}

.counters {
  background-color: var(--color-primary);
  padding-block: var(--space-120);
}

.counters__grid {
  display: flex;
  justify-content: space-between;
  gap: var(--space-48);
}

.counters__item {
  text-align: center;
  flex: 1;
}

.counters__value {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--fs-counter);
  font-weight: var(--fw-counter);
  line-height: 1;
  color: var(--color-dark);
  margin-bottom: var(--space-16);
}

.counters__label {
  color: var(--color-white);
}

.about-us {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light);
  padding-block: var(--space-120);
}

.about-us > .container {
  position: relative;
  z-index: 3;
}

.about-us::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -1px;
  width: auto;
  height: 80%;
  aspect-ratio: 1460 / 1166;
  background: url('../img/pittogramma.png') no-repeat center bottom / contain;
  z-index: 1;
  pointer-events: none;
}

.about-us::after {
  content: "";
  position: absolute;
  right: 15%;
  bottom: -10%;
  width: auto;
  height: 98%;
  aspect-ratio: 1;
  background: url('../img/buonomo-andrea.png') no-repeat center bottom / contain;
  z-index: 2;
  pointer-events: none;
}

.about-us__body {
  max-width: 45%;
}

.about-us__heading {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.about-us__heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.about-us__text {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-h4);
  margin-bottom: var(--space-64);
}

.about-us__name {
  margin-top: var(--space-64);
  color: var(--color-primary);
}

@media (min-width: 1640px) {
  .counters > .container {
    padding: 0;
  }
}

@media (max-width: 2200px) {
  .about-us::after {
    right: 11%;
    height: 98%;
  }
}

@media (max-width: 2000px) {
  .about-us::after {
    right: 9%;
    height: 98%;
  }

  .about-us::before {
    right: 9%;
  }
}

@media (max-width: 1800px) {
  .about-us::after {
    right: 8%;
    height: 98%;
  }

  .about-us::before {
    right: 8%;
  }
}

@media (max-width: 1620px) {
  .about-us::after {
    right: 11%;
    height: 90%;
    background-position: right center;
  }

  .about-us::before {
    right: 2%;
    height: 55%;
  }
}

@media (max-width: 1400px) {
  .about-us::after {
    right: 7%;
    height: 87%;
  }

  .about-us::before {
    right: 2px;
  }
}

@media (max-width: 1200px) {
  .about-intro__body {
    max-width: 47%;
  }

  .about-us::after {
    right: 3%;
    height: 88%;
  }
}

@media (max-width: 1023px) {
  .about-intro {
    padding-block: var(--space-64);
  }

  .about-intro__body {
    max-width: 70%;
  }

  .about-us {
    padding-block: var(--space-64);
  }

  .about-us__body {
    max-width: 54%;
  }

  .about-us::after {
    right: 2%;
    height: 86%;
  }

  .counters {
    padding-block: var(--space-64);
  }
}

@media (max-width: 880px) {
  .about-us::after {
    right: 0;
    height: 80%;
  }

  .about-us::before {
    right: 2px;
    height: 50%;
  }
}

@media (max-width: 767px) {
  .about-intro {
    padding-block: var(--space-48);
  }

  .about-intro__body {
    max-width: 100%;
  }

  .about-us {
    padding-top: var(--space-48);
    padding-bottom: 71vw;
  }

  .about-us__body {
    max-width: 100%;
  }

  .about-us::after {
    right: var(--content-padding-inline);
    height: auto;
    width: 100vw;
  }

  .about-us::before {
    right: 60%;
    height: auto;
    width: 63%;
  }

  .counters {
    padding-block: var(--space-48);
  }

  .counters__grid {
    flex-direction: column;
    gap: var(--space-40);
  }
}

@media (max-width: 575px) {
  .about-us::after {
    right: 3%;
    bottom: -10vw;
  }

  .statement__inner {
    gap: var(--space-40);
  }
}

@media (max-width: 480px) {
  .about-us {
    padding-bottom: 58vw;
  }

  .about-us::after {
    right: 2%;
    width: 90vw;
    bottom: -10vw;
  }
}

@media (max-width: 420px) {
  .about-us {
    padding-bottom: 97vw;
  }

  .about-us::before {
    right: 2px;
    height: auto;
    width: calc(100% - 2px);
  }

  .about-us::after {
    right: 21%;
    width: 100vw;
    bottom: -13vw;
  }

  .about-us__text {
    margin-bottom: var(--space-40);
  }

  .about-us__name {
    margin-top: var(--space-40);
  }
}


/* ============================================
   CONTACTS
   ============================================ */

.page-contacts .cta-final__row {
  flex-direction: column;
}

.page-contacts .btn-cta-final {
  display: none;
}