/* =========================================================
   ZERLAB STUDIO — MATERIALI
   ========================================================= */

.materials {
  width: 100%;

  padding:
    clamp(100px, 9vw, 145px)
    var(--page-padding)
    clamp(110px, 10vw, 160px);

  background: var(--cream);
}


/* =========================================================
   HEADER
   ========================================================= */

.materials-heading {
  width: 100%;
  margin-bottom: clamp(55px, 6vw, 90px);
}

.materials-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
}

.materials-title-row h2 {
  max-width: 980px;
  margin: 0;

  color: var(--ink);

  font-size: clamp(52px, 5.4vw, 84px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -4.5px;
}

.materials-title-row h2 strong {
  color: var(--blue);
  font-weight: 700;
}

.materials-title-row > p {
  max-width: 370px;

  margin: 0;
  padding-bottom: 7px;

  color: #66707d;

  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.materials-layout {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(400px, 0.92fr);

  gap: clamp(55px, 6vw, 100px);

  align-items: center;
}


/* =========================================================
   SHOWCASE
   ========================================================= */

.materials-visual {
  min-width: 0;
}

.material-showcase {
  width: 100%;

  overflow: hidden;

  border: 1px solid rgba(7, 24, 44, 0.10);
  border-radius: 24px;

  background: #e9e1d5;
}


/* =========================================================
   FOTO REALE
   ========================================================= */

.material-main-photo {
  position: relative;

  width: 100%;
  height: clamp(390px, 31vw, 485px);

  overflow: hidden;

  background: #10171e;
}

.material-main-photo > img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 54%;

  transform: scale(1.04);

  transition: transform 0.8s ease;
}

.material-showcase:hover
.material-main-photo > img {
  transform: scale(1.075);
}


/* =========================================================
   FOTO — OVERLAY
   ========================================================= */

.material-photo-overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(5, 17, 31, 0.55) 0%,
      rgba(5, 17, 31, 0.18) 42%,
      rgba(5, 17, 31, 0.02) 72%
    ),
    linear-gradient(
      0deg,
      rgba(5, 17, 31, 0.45) 0%,
      transparent 35%
    );
}


/* =========================================================
   FOTO — COPY
   ========================================================= */

.material-photo-copy {
  position: absolute;

  z-index: 3;

  top: clamp(30px, 3vw, 43px);
  left: clamp(28px, 3.5vw, 46px);

  display: flex;
  flex-direction: column;
}

.material-photo-copy > span {
  margin-bottom: 11px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 8px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 2px;
}

.material-photo-copy strong {
  color: #ffffff;

  font-size: clamp(23px, 2vw, 31px);
  font-weight: 700;

  line-height: 1.05;

  letter-spacing: -1.3px;
}


/* =========================================================
   FOTO — CAPTION
   ========================================================= */

.material-photo-bottom {
  position: absolute;

  z-index: 3;

  right: clamp(28px, 3.5vw, 46px);
  bottom: clamp(24px, 2.7vw, 35px);
  left: clamp(28px, 3.5vw, 46px);

  padding-top: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.material-photo-bottom span {
  color: rgba(255, 255, 255, 0.92);

  font-size: 8px;
  font-weight: 800;

  line-height: 1.4;

  letter-spacing: 1.5px;
}

.material-photo-bottom small {
  color: rgba(255, 255, 255, 0.60);

  font-size: 9px;

  line-height: 1.4;
}


/* =========================================================
   DUE RIQUADRI TECNICI
   ========================================================= */

.material-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  background: #ebe3d7;
}

.material-tech-card {
  position: relative;

  min-width: 0;
  min-height: 225px;

  padding:
    clamp(27px, 3vw, 38px);

  overflow: hidden;
}

.material-tech-card + .material-tech-card {
  border-left: 1px solid rgba(7, 24, 44, 0.12);
}


/* =========================================================
   TESTI CARD TECNICHE
   ========================================================= */

.material-tech-heading {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
}

.material-tech-heading > span {
  margin-bottom: 13px;

  color: var(--blue);

  font-size: 8px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 1.8px;
}

.material-tech-heading strong {
  color: var(--navy);

  font-size: clamp(23px, 2vw, 30px);
  font-weight: 750;

  line-height: 1.02;

  letter-spacing: -1.2px;
}

.material-tech-heading small {
  margin-top: 8px;

  color: #727b85;

  font-size: 10px;
  font-weight: 500;

  line-height: 1.4;
}


/* =========================================================
   DIAGRAMMA SPESSORE
   ========================================================= */

.material-thickness-visual {
  position: absolute;

  right: 32px;
  bottom: 31px;
  left: 38px;

  height: 51px;
}

.thickness-surface {
  position: absolute;

  right: 48px;
  bottom: 27px;
  left: 0;

  height: 12px;

  border-radius: 3px 3px 1px 1px;

  background:
    repeating-linear-gradient(
      90deg,
      #655443 0,
      #655443 2px,
      #796552 2px,
      #796552 4px
    );
}

.thickness-body {
  position: absolute;

  right: 48px;
  bottom: 17px;
  left: 0;

  height: 11px;

  background: #55483c;
}

.thickness-base {
  position: absolute;

  right: 48px;
  bottom: 10px;
  left: 0;

  height: 8px;

  background: #26292b;

  border-radius: 0 0 2px 2px;
}

.thickness-measure {
  position: absolute;

  right: 0;
  bottom: 4px;

  height: 42px;

  display: flex;
  align-items: center;

  gap: 6px;
}

.thickness-measure > span {
  position: relative;

  width: 1px;
  height: 42px;

  display: block;

  background: rgba(7, 24, 44, 0.36);
}

.thickness-measure > span::before,
.thickness-measure > span::after {
  content: "";

  position: absolute;

  left: -3px;

  width: 7px;
  height: 1px;

  background: var(--navy);
}

.thickness-measure > span::before {
  top: 0;
}

.thickness-measure > span::after {
  bottom: 0;
}

.thickness-measure strong {
  color: var(--navy);

  font-size: 13px;
  font-weight: 800;
}

.thickness-measure small {
  color: #737c85;

  font-size: 6px;
  font-weight: 800;

  letter-spacing: 0.8px;
}


/* =========================================================
   DIAGRAMMA GOMMA
   ========================================================= */

.material-rubber-visual {
  position: absolute;

  right: 35px;
  bottom: 29px;
  left: 38px;
}

.rubber-surface {
  position: relative;

  height: 42px;

  overflow: hidden;

  border-radius: 4px;

  background:
    linear-gradient(
      145deg,
      #303336,
      #1f2224
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rubber-surface::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 9px,
      rgba(255, 255, 255, 0.055) 9px,
      rgba(255, 255, 255, 0.055) 10px
    );
}

.rubber-surface span {
  position: absolute;

  top: 50%;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.17);
}

.rubber-surface span:nth-child(1) {
  left: 12%;
}

.rubber-surface span:nth-child(2) {
  left: 29%;
  top: 32%;
}

.rubber-surface span:nth-child(3) {
  left: 48%;
  top: 64%;
}

.rubber-surface span:nth-child(4) {
  left: 68%;
  top: 35%;
}

.rubber-surface span:nth-child(5) {
  left: 85%;
  top: 61%;
}

.rubber-caption {
  margin-top: 9px;

  color: #7b838c;

  font-size: 6.5px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 1.25px;
}


/* =========================================================
   CONTENUTO DESTRA
   ========================================================= */

.materials-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.materials-intro {
  max-width: 520px;
}

.materials-kicker {
  display: block;

  margin-bottom: 15px;

  color: var(--blue);

  font-size: 8px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.materials-intro h3 {
  margin: 0;

  color: var(--ink);

  font-size: clamp(31px, 3vw, 46px);
  font-weight: 500;

  line-height: 1.03;

  letter-spacing: -2.2px;
}

.materials-intro h3 strong {
  color: var(--blue);

  font-weight: 700;
}

.materials-intro > p {
  max-width: 480px;

  margin: 22px 0 0;

  color: #66707d;

  font-size: 13px;

  line-height: 1.75;
}


/* =========================================================
   DATI
   ========================================================= */

.materials-specs {
  width: 100%;

  margin-top: 34px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  border-top: 1px solid rgba(7, 24, 44, 0.14);
  border-bottom: 1px solid rgba(7, 24, 44, 0.14);
}

.material-spec {
  min-width: 0;

  padding: 20px 18px 20px 0;
}

.material-spec + .material-spec {
  padding-left: 18px;

  border-left: 1px solid rgba(7, 24, 44, 0.12);
}

.material-spec strong {
  display: block;

  color: var(--ink);

  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 750;

  line-height: 1;

  letter-spacing: -1px;

  white-space: nowrap;
}

.material-spec span {
  display: block;

  margin-top: 7px;

  color: #78818b;

  font-size: 8px;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}


/* =========================================================
   SCOPRI IL MATERIALE
   ========================================================= */

.materials-details {
  width: 100%;

  margin-top: 25px;
}

.materials-details-toggle {
  width: 100%;

  padding: 0 0 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border: 0;
  border-bottom: 1px solid rgba(7, 24, 44, 0.14);

  background: transparent;

  color: var(--ink);

  font: inherit;

  cursor: pointer;

  text-align: left;
}

.materials-details-toggle > span:first-child {
  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.7px;

  text-transform: uppercase;
}

.materials-details-icon {
  width: 26px;
  height: 26px;

  flex: 0 0 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(7, 73, 132, 0.25);
  border-radius: 50%;

  color: var(--blue);

  font-size: 17px;

  line-height: 1;

  transition:
    transform 0.35s ease,
    background-color 0.35s ease;
}

.materials-details-toggle:hover
.materials-details-icon {
  background: rgba(7, 73, 132, 0.06);
}

.materials-details-toggle[aria-expanded="true"]
.materials-details-icon {
  transform: rotate(45deg);
}


/* =========================================================
   CONTENUTO NASCOSTO
   ========================================================= */

.materials-details-content {
  display: grid;

  grid-template-rows: 0fr;

  opacity: 0;

  transition:
    grid-template-rows 0.5s ease,
    opacity 0.35s ease;
}

.materials-details-content.is-open {
  grid-template-rows: 1fr;

  opacity: 1;
}

.materials-details-inner {
  min-height: 0;

  overflow: hidden;
}

.materials-details-inner p {
  max-width: 510px;

  margin: 18px 0 0;

  color: #68727d;

  font-size: 12px;

  line-height: 1.75;
}

.materials-details-inner p:first-child {
  margin-top: 22px;
}

.materials-details-inner p:last-child {
  padding-bottom: 5px;
}

.materials-details-inner strong {
  color: var(--ink);

  font-weight: 700;
}


/* =========================================================
   PROPRIETÀ
   ========================================================= */

.materials-properties {
  width: 100%;

  margin-top: 24px;

  display: flex;
  flex-wrap: wrap;

  gap: 8px 18px;
}

.materials-properties span {
  position: relative;

  color: #747d87;

  font-size: 7px;
  font-weight: 800;

  line-height: 1.4;

  letter-spacing: 1.3px;

  text-transform: uppercase;
}

.materials-properties span:not(:last-child)::after {
  content: "·";

  position: absolute;

  right: -11px;

  color: rgba(7, 24, 44, 0.30);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .materials-title-row {
    align-items: flex-start;
    flex-direction: column;

    gap: 28px;
  }

  .materials-title-row > p {
    max-width: 500px;

    padding-bottom: 0;
  }

  .materials-layout {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .materials-visual {
    max-width: 850px;
  }

  .material-main-photo {
    height: 500px;
  }

  .materials-content {
    max-width: 760px;
  }

  .materials-intro {
    max-width: 650px;
  }

  .materials-intro > p,
  .materials-details-inner p {
    max-width: 650px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .materials {
    padding:
      80px
      20px
      95px;
  }

  .materials-heading {
    margin-bottom: 45px;
  }

  .materials-title-row {
    gap: 22px;
  }

  .materials-title-row h2 {
    font-size: clamp(43px, 12.3vw, 59px);

    line-height: 0.98;

    letter-spacing: -3.2px;
  }

  .materials-title-row > p {
    max-width: 330px;

    font-size: 12px;

    line-height: 1.65;
  }

  .materials-layout {
    gap: 42px;
  }


  /* FOTO */

  .material-showcase {
    border-radius: 18px;
  }

  .material-main-photo {
    height: 390px;
  }

  .material-main-photo > img {
    object-position: center center;
  }

  .material-photo-copy {
    top: 25px;
    left: 23px;
  }

  .material-photo-copy strong {
    font-size: 23px;
  }

  .material-photo-bottom {
    right: 23px;
    bottom: 21px;
    left: 23px;

    align-items: flex-start;
    flex-direction: column;

    gap: 5px;
  }


  /* CARD TECNICHE */

  .material-tech-grid {
    grid-template-columns: 1fr;
  }

  .material-tech-card {
    min-height: 210px;

    padding: 27px 24px;
  }

  .material-tech-card + .material-tech-card {
    border-top: 1px solid rgba(7, 24, 44, 0.12);
    border-left: 0;
  }


  /* CONTENUTO */

  .materials-intro h3 {
    font-size: clamp(32px, 9vw, 42px);

    letter-spacing: -1.8px;
  }

  .materials-intro > p {
    margin-top: 17px;

    font-size: 12px;

    line-height: 1.7;
  }

  .materials-specs {
    margin-top: 27px;

    grid-template-columns: 1fr;
  }

  .material-spec {
    padding: 16px 0;
  }

  .material-spec + .material-spec {
    padding-left: 0;

    border-top: 1px solid rgba(7, 24, 44, 0.10);
    border-left: 0;
  }

  .material-spec strong {
    font-size: 22px;
  }

  .materials-details {
    margin-top: 22px;
  }

  .materials-details-inner p {
    font-size: 11.5px;

    line-height: 1.7;
  }

  .materials-properties {
    margin-top: 20px;

    gap: 7px 16px;
  }

  .materials-properties span {
    font-size: 6.5px;
  }

}


/* =========================================================
   ACCESSIBILITÀ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .material-main-photo > img,
  .materials-details-content,
  .materials-details-icon {
    transition: none;
  }

}