/* =========================================================
   ZERLAB STUDIO — HERO
   ========================================================= */

.hero {
  width: 100%;
  height: 650px;

  display: grid;
  grid-template-columns: 46% 54%;

  background: var(--cream-light);

  overflow: hidden;
}


/* =========================================================
   CONTENUTO HERO
   ========================================================= */

.hero-content {
  position: relative;
  z-index: 5;

  padding:
    62px
    clamp(45px, 5vw, 82px)
    42px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.hero-eyebrow {
  margin-bottom: 25px;

  display: flex;
  align-items: center;

  gap: 14px;

  color: #596575;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 3.2px;

  text-transform: uppercase;
}


.hero-eyebrow span {
  width: 36px;
  height: 1px;

  flex-shrink: 0;

  background: var(--ink);
}


/* =========================================================
   TITOLO
   ========================================================= */

.hero h1 {
  max-width: 680px;

  margin: 0;

  color: var(--ink);

  font-size:
    clamp(55px, 4.55vw, 74px);

  font-weight: 700;

  line-height: 0.96;

  letter-spacing: -4px;
}


.hero h1 strong {
  color: var(--blue);

  font-weight: 700;
}


/* =========================================================
   DESCRIZIONE
   ========================================================= */

.hero-description {
  max-width: 520px;

  margin:
    29px
    0
    0;

  color: #566374;

  font-size: 15px;
  font-weight: 400;

  line-height: 1.7;
}


/* =========================================================
   AZIONI HERO
   ========================================================= */

.hero-actions {
  width: 100%;

  margin-top: 28px;

  display: flex;
  align-items: center;

  gap: 12px;
}


/* =========================================================
   CTA PRINCIPALE
   ========================================================= */

.primary-button {
  height: 58px;

  padding:
    0
    25px;

  flex:
    1
    1
    0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-radius: 14px;

  color: var(--white);

  background: var(--blue);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.5px;

  text-transform: uppercase;

  white-space: nowrap;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


.primary-button span {
  font-size: 19px;

  transition:
    transform 0.25s ease;
}


.primary-button:hover {
  background: var(--blue-hover);

  transform:
    translateY(-2px);

  box-shadow:
    0 14px 32px
    rgba(7, 73, 132, 0.16);
}


.primary-button:hover span {
  transform:
    translateX(5px);
}


/* =========================================================
   CTA SECONDARIA
   ========================================================= */

.secondary-button {
  height: 58px;

  padding:
    0
    21px;

  flex:
    1
    1
    0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  border:
    1px solid
    rgba(7, 24, 44, 0.17);

  border-radius: 14px;

  color: var(--ink);

  background: transparent;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.45px;

  text-transform: uppercase;

  white-space: nowrap;

  text-decoration: none;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}


.secondary-button span {
  color: var(--blue);

  font-size: 16px;

  transition:
    transform 0.25s ease;
}


.secondary-button:hover {
  border-color:
    rgba(7, 73, 132, 0.45);

  background:
    rgba(7, 73, 132, 0.04);

  transform:
    translateY(-2px);
}


.secondary-button:hover span {
  transform:
    translateY(4px);
}


/* =========================================================
   SPECIFICHE HERO
   ========================================================= */

.hero-specs {
  width: 100%;

  margin-top: 37px;
  padding-top: 21px;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  border-top:
    1px solid
    rgba(7, 24, 44, 0.18);
}


.hero-spec {
  position: relative;

  min-width: 0;

  padding:
    1px
    16px
    3px;
}


.hero-spec:first-child {
  padding-left: 0;
}


.hero-spec:last-child {
  padding-right: 0;
}


.hero-spec:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 0;
  right: 0;

  width: 1px;
  height: 39px;

  background:
    rgba(7, 24, 44, 0.16);
}


.hero-spec strong {
  display: block;

  color: var(--ink);

  font-size: 9px;
  font-weight: 800;

  line-height: 1.35;

  letter-spacing: 0.85px;

  white-space: nowrap;
}


.hero-spec span {
  display: block;

  margin-top: 6px;

  color: #687381;

  font-size: 9px;
  font-weight: 500;

  line-height: 1.35;
}


/* =========================================================
   FOTO HERO
   ========================================================= */

.hero-visual {
  position: relative;

  min-width: 0;
  height: 650px;

  background: #d8d5cf;

  overflow: hidden;
}


.hero-visual > img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position:
    42%
    center;

  transition:
    transform 1.1s
    cubic-bezier(.2, .7, .2, 1);
}


.hero:hover
.hero-visual > img {
  transform:
    scale(1.012);
}


/* =========================================================
   FUSIONE FOTO / TESTO
   ========================================================= */

.hero-visual::before {
  content: "";

  position: absolute;

  z-index: 3;

  top: 0;
  bottom: 0;
  left: -1px;

  width: 58px;

  background:
    linear-gradient(
      90deg,
      var(--cream-light) 0%,
      rgba(251, 249, 245, 0.48) 30%,
      rgba(251, 249, 245, 0.16) 62%,
      rgba(251, 249, 245, 0) 100%
    );

  pointer-events: none;
}


/* =========================================================
   OVERLAY FOTO
   ========================================================= */

.hero-image-shade {
  position: absolute;

  z-index: 2;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 72%,
      rgba(4, 14, 25, 0.07) 100%
    );

  pointer-events: none;
}


/* =========================================================
   TESTO LATERALE FOTO
   ========================================================= */

.hero-side-copy {
  position: absolute;

  z-index: 5;

  top: 48px;
  right: 38px;

  color: var(--white);
}


.hero-side-copy > span {
  display: block;

  width: 34px;
  height: 1px;

  margin-bottom: 13px;

  background:
    rgba(255, 255, 255, 0.75);
}


.hero-side-copy p {
  margin: 0;

  font-size: 9px;
  font-weight: 600;

  line-height: 1.8;

  letter-spacing: 2.4px;
}


/* =========================================================
   BUSINESS STRIP
   ========================================================= */

.business-strip {
  width: 100%;
  min-height: 124px;

  padding:
    0
    var(--page-padding);

  display: grid;

  grid-template-columns:
    minmax(290px, 0.8fr)
    minmax(0, 2.2fr);

  align-items: center;

  gap:
    clamp(45px, 6vw, 100px);

  background: #f4f0e9;

  border-top:
    1px solid
    rgba(7, 24, 44, 0.09);

  border-bottom:
    1px solid
    rgba(7, 24, 44, 0.13);
}


/* =========================================================
   BUSINESS INTRO
   ========================================================= */

.business-strip-intro {
  display: flex;
  align-items: center;

  gap: 20px;
}


.business-strip-intro > span {
  flex-shrink: 0;

  color: var(--blue);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 2.4px;

  text-transform: uppercase;
}


.business-strip-intro > strong {
  position: relative;

  padding-left: 20px;

  color: var(--ink);

  font-size: 14px;
  font-weight: 650;

  line-height: 1.4;

  letter-spacing: -0.35px;
}


.business-strip-intro > strong::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 0;

  width: 1px;
  height: 38px;

  background:
    rgba(7, 24, 44, 0.20);

  transform:
    translateY(-50%);
}


/* =========================================================
   CATEGORIE ATTIVITÀ
   ========================================================= */

.business-types {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  border-left:
    1px solid
    rgba(7, 24, 44, 0.15);

  border-top:
    1px solid
    rgba(7, 24, 44, 0.15);
}


.business-types > span {
  min-height: 46px;

  padding:
    0
    14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-right:
    1px solid
    rgba(7, 24, 44, 0.15);

  border-bottom:
    1px solid
    rgba(7, 24, 44, 0.15);

  color: #364556;

  background: transparent;

  font-size: 9px;
  font-weight: 650;

  line-height: 1.3;

  letter-spacing: 0.2px;

  text-align: center;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}


.business-types > span:hover {
  color: var(--blue);

  background:
    rgba(255, 255, 255, 0.58);
}


/* =========================================================
   DESKTOP MEDIO
   ========================================================= */

@media (max-width: 1250px) {

  .hero {
    grid-template-columns:
      47%
      53%;
  }


  .hero h1 {
    font-size:
      clamp(52px, 5vw, 68px);
  }


  .hero-content {
    padding-left: 45px;
    padding-right: 35px;
  }


  .hero-actions {
    flex-direction: column;

    align-items: stretch;

    max-width: 360px;

    gap: 10px;
  }


  .primary-button,
  .secondary-button {
    width: 100%;

    flex: none;
  }


  .hero-specs {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      18px
      0;
  }


  .hero-spec {
    padding:
      0
      15px;
  }


  .hero-spec:nth-child(odd) {
    padding-left: 0;
  }


  .hero-spec:nth-child(2)::after {
    display: none;
  }


  .business-strip {
    grid-template-columns:
      minmax(250px, 0.75fr)
      minmax(0, 2fr);

    gap: 40px;
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .hero {
    height: auto;

    display: flex;

    flex-direction: column;
  }


  .hero-content {
    min-height: 560px;

    padding:
      70px
      var(--page-padding)
      55px;
  }


  .hero h1 {
    max-width: 650px;

    font-size:
      clamp(58px, 9vw, 80px);
  }


  .hero-description {
    max-width: 560px;
  }


  .hero-actions {
    max-width: 600px;

    flex-direction: row;
  }


  .primary-button,
  .secondary-button {
    flex:
      1
      1
      0;
  }


  .hero-specs {
    max-width: 650px;

    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 0;
  }


  .hero-spec {
    padding:
      0
      15px;
  }


  .hero-spec:first-child {
    padding-left: 0;
  }


  .hero-spec:nth-child(2)::after {
    display: block;
  }


  .hero-visual {
    height: 570px;
  }


  .hero-visual > img {
    object-position: center;
  }


  .hero-visual::before {
    display: none;
  }


  .business-strip {
    padding:
      34px
      var(--page-padding);

    grid-template-columns: 1fr;

    gap: 30px;
  }


  .business-strip-intro {
    justify-content: flex-start;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .hero-content {
    min-height: 0;

    padding:
      55px
      20px
      45px;
  }


  .hero-eyebrow {
    margin-bottom: 20px;

    font-size: 8px;

    letter-spacing: 2.2px;
  }


  .hero-eyebrow span {
    width: 28px;
  }


  .hero h1 {
    font-size:
      clamp(47px, 14vw, 64px);

    line-height: 0.97;

    letter-spacing: -3px;
  }


  .hero-description {
    margin-top: 24px;

    font-size: 14px;

    line-height: 1.65;
  }


  /* CTA */

  .hero-actions {
    width: 100%;
    max-width: none;

    margin-top: 27px;

    flex-direction: column;

    align-items: stretch;

    gap: 10px;
  }


  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: none;

    height: 58px;

    padding:
      0
      28px;

    flex: none;
  }


  /* SPECIFICHE */

  .hero-specs {
    margin-top: 34px;

    padding-top: 21px;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      24px
      0;
  }


  .hero-spec {
    padding:
      0
      14px;
  }


  .hero-spec:nth-child(odd) {
    padding-left: 0;
  }


  .hero-spec:nth-child(2)::after {
    display: none;
  }


  .hero-spec strong {
    font-size: 9px;
  }


  .hero-spec span {
    font-size: 9px;
  }


  /* FOTO */

  .hero-visual {
    height: 470px;
  }


  .hero-visual > img {
    object-position:
      48%
      center;
  }


  .hero-side-copy {
    display: none;
  }


  /* BUSINESS */

  .business-strip {
    padding:
      36px
      20px
      40px;

    gap: 28px;
  }


  .business-strip-intro {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;
  }


  .business-strip-intro > span {
    font-size: 8px;
  }


  .business-strip-intro > strong {
    padding-left: 0;

    font-size: 16px;

    line-height: 1.35;
  }


  .business-strip-intro > strong::before {
    display: none;
  }


  .business-types {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .business-types > span {
    min-height: 49px;

    font-size: 9px;
  }

}


/* =========================================================
   RIDUZIONE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .hero-visual > img,
  .primary-button,
  .primary-button span,
  .secondary-button,
  .secondary-button span,
  .business-types > span {
    transition: none;
  }

}