.section-white {
  background: #fff;
}

.home-page .company__copy-footer .button[data-reveal] {
  --reveal-delay: 180ms;
}

.home-page .company__copy-footer .company__associations[data-reveal] {
  --reveal-delay: 320ms;
}

.home-page .solutions__inner p[data-reveal] {
  --reveal-delay: 160ms;
}

@media (max-width: 767px) {
  .home-page .company__copy-footer .button[data-reveal] {
    --reveal-delay: 100ms;
  }

  .home-page .company__copy-footer .company__associations[data-reveal],
  .home-page .solutions__inner p[data-reveal] {
    --reveal-delay: 180ms;
  }
}

.company {
  padding: 110px 0;
}

.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}

.company__media {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(45, 51, 99, 0.14);
  background: linear-gradient(180deg, #f8fbfb 0%, #fff 100%);
  box-shadow: 0 24px 70px rgba(45, 51, 99, 0.1);
}

.company__visual {
  position: relative;
  overflow: hidden;
  background: #dfe9ed;
}

.company__photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.milestone {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(298px, 64%);
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  padding: 42px 24px 38px;
  background: #00769a url("../img/simbolo.png") center center / contain no-repeat;
  box-shadow: 0 18px 42px rgba(0, 58, 80, 0.18);
  color: #fff;
  text-align: center;
}

.milestone strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: clamp(58px, 5.3vw, 76px);
  font-weight: 700;
  line-height: 0.92;
  white-space: nowrap;
}

.milestone strong .counter-label {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1;
}

.milestone p {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.company__anniversary {
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(45, 51, 99, 0.14);
  background: #fff;
  box-shadow: 0 12px 24px rgba(45, 51, 99, 0.08);
}

.company__copy {
  position: relative;
  padding: 42px 0 0 34px;
  border-left: 3px solid rgba(0, 118, 154, 0.24);
}

.section-ghost {
  margin: 0 0 -40px;
  color: transparent;
  font-family: "Open Sans Tirrena", Inter, sans-serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 0.85;
  -webkit-text-stroke: 1px #e5e5e5;
  text-stroke: 1px #e5e5e5;
}

.company__copy .section-ghost {
  color: rgba(45, 51, 99, 0.035);
  -webkit-text-stroke: 1.4px rgba(45, 51, 99, 0.18);
  text-stroke: 1.4px rgba(45, 51, 99, 0.18);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--tirrena-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--tirrena-heading);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.08;
}

h2 span {
  color: var(--tirrena-teal);
}

.copy {
  color: var(--tirrena-text);
  font-size: 16px;
  line-height: 1.6875;
}

.company__copy .copy {
  margin-top: 30px;
}

.copy p {
  margin: 0 0 17px;
}

.company__copy-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(45, 51, 99, 0.12);
}

.company__copy .button {
  margin-top: 0;
  white-space: nowrap;
}

.company__associations {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(45, 51, 99, 0.12);
  background: #fff;
}

.associations {
  width: 100%;
  margin: 0;
}

.video-band {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: url("../img/video-poster.jpg") center center / cover no-repeat;
}

.video-band video {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.services {
  padding: 60px 0 99px;
  background: var(--tirrena-bg);
}

.services__intro {
  display: grid;
  grid-template-columns: 277.5px 922.5px;
  gap: 15px;
  align-items: start;
}

.services__intro .copy {
  padding-top: 0;
}

.services__intro .button {
  margin-top: 28px;
}

.service-cards {
  display: grid;
  width: min(calc(var(--tirrena-container) + 30px), calc(90vw + 30px));
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 57px;
}

.service-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0 4px;
  overflow: hidden;
  background: transparent;
}

.service-card img {
  width: 100%;
  height: auto;
  transition: transform 260ms ease;
}

.service-card span {
  position: absolute;
  bottom: 20px;
  left: 4px;
  z-index: 2;
  display: block;
  padding: 4px 10px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  opacity: 0.7;
}

.service-card:hover img,
.service-card:focus-visible img {
  transform: scale(1.04);
}

.solutions {
  padding: 0;
  overflow-x: clip;
  contain: paint;
  background: #fff;
}

.solutions__inner {
  position: relative;
  display: grid;
  width: min(1200px, calc(100% - 80px));
  aspect-ratio: 1076 / 579;
  place-items: center;
}

.solutions__inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solutions__inner p {
  position: relative;
  z-index: 1;
  width: 92%;
  margin: 4% 0 0;
  color: var(--tirrena-blue);
  font-size: clamp(42px, 7.35vw, 90px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.solutions__inner span {
  color: var(--tirrena-teal);
}

.operations {
  padding: 72px 0 62px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(242, 247, 245, 0) 58%),
    var(--tirrena-bg);
}

.operations__heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.operations__heading .section-ghost {
  margin-bottom: -34px;
  color: rgba(45, 51, 99, 0.035);
  -webkit-text-stroke: 1.4px rgba(45, 51, 99, 0.18);
  text-stroke: 1.4px rgba(45, 51, 99, 0.18);
}

.flag-carousel {
  --flag-carousel-gap: 15px;
  --flag-carousel-side-gutter: 54px;
  --flag-carousel-panel-padding-y: 20px;
  --flag-carousel-card-width: calc((min(var(--tirrena-container), 90vw) - (var(--flag-carousel-gap) * 4) - (var(--flag-carousel-side-gutter) * 2)) / 5);
  --flag-carousel-image-height: calc(var(--flag-carousel-card-width) * 150 / 270);
  position: relative;
  overflow: hidden;
  contain: paint;
  width: min(var(--tirrena-container), 90vw);
  margin-top: 34px;
  padding: var(--flag-carousel-panel-padding-y) var(--flag-carousel-side-gutter) 16px;
  border: 1px solid rgba(45, 51, 99, 0.14);
  border-top: 4px solid rgba(0, 118, 154, 0.82);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 45px rgba(45, 51, 99, 0.08);
}

.flag-carousel__viewport {
  max-width: 100%;
  overflow: hidden;
  contain: paint;
}

.flag-carousel__track {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--flag-carousel-gap);
}

.flag-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(45, 51, 99, 0.14);
  background: #fff;
  box-shadow: 0 8px 18px rgba(45, 51, 99, 0.06);
  text-align: center;
}

.flag-card[hidden] {
  display: none;
}

.flag-card img {
  display: block;
  width: 100%;
  aspect-ratio: 270 / 150;
  object-fit: cover;
}

.flag-card p {
  display: grid;
  min-height: 50px;
  margin: 0;
  place-items: center;
  padding: 11px 10px;
  border-top: 1px solid rgba(45, 51, 99, 0.1);
  background: linear-gradient(180deg, #fff, rgba(242, 247, 245, 0.72));
  color: var(--tirrena-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.flag-carousel__button {
  position: absolute;
  top: calc(var(--flag-carousel-panel-padding-y) + ((var(--flag-carousel-image-height) - 44px) / 2));
  z-index: 3;
  display: grid;
  width: 36px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--tirrena-teal);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  box-shadow: 0 10px 22px rgba(0, 118, 154, 0.22);
}

.flag-carousel__button::before {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24));
}

.flag-carousel__button--prev {
  left: 10px;
}

.flag-carousel__button--prev::before {
  transform: rotate(-45deg);
}

.flag-carousel__button--next {
  right: 10px;
}

.flag-carousel__button--next::before {
  transform: rotate(135deg);
}
