/* =========================================================
   IMPIANTI IDRAULICI — RENIX
   Struttura coerente con Pompe di calore
========================================================= */

:root {
  --idr-bg: #566667;
  --idr-bg-dark: #344243;
  --idr-card: #cde4c5;
  --idr-green: #91c3a2;
  --idr-ink: #344041;
  --idr-white: #ffffff;
}


/* =========================================================
   BASE
========================================================= */

.idraulici-page {
  margin: 0;
  background: #ffffff;
  color: var(--idr-ink);
  font-family: "Montserrat", sans-serif;
}

.idraulici-page *,
.idraulici-page *::before,
.idraulici-page *::after {
  box-sizing: border-box;
}

.idraulici-page main {
  overflow: hidden;
}

.idr-shell {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.idr-hero {
  background: #536364;
  padding: 180px 0 92px;
  color: #ffffff;
}

.idr-hero__grid {
  width: min(100% - 120px, 1280px);
  margin-inline: auto;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.idr-hero__copy {
  width: auto;
  max-width: none;
}

.idr-kicker {
  margin: 0 0 58px;
  color: #cde4c5;

  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.idr-hero h1 {
  margin: 0 0 28px;

  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;

  color: #ffffff;
  white-space: nowrap;
}

.idr-hero__text {
  width: auto;
  max-width: 480px;
  margin: 0;

  font-size: 22px;
  line-height: 1.38;

  color: rgba(255, 255, 255, 0.94);
}


/* HERO FOTO */

.idr-hero__media {
  width: 100%;
  height: auto;
  max-width: none;

  overflow: hidden;
  border-radius: 10px;
}

.idr-hero__media img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 1.52 / 1;

  object-fit: cover;
  object-position: center;

  border-radius: 0;
}


/* =========================================================
   TITOLI SEZIONI
========================================================= */

.idr-section-title {
  margin-bottom: 58px;
  text-align: center;
}

.idr-section-title h2 {
  margin: 0;

  color: var(--idr-ink);

  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
}

.idr-section-title span {
  display: block;

  width: 255px;
  max-width: 70%;
  height: 3px;

  margin: 9px auto 0;

  background: var(--idr-ink);
}

.idr-section-title--light h2 {
  color: #ffffff;
}

.idr-section-title--light span {
  background: #ffffff;
}


/* =========================================================
   PIÙ NEL DETTAGLIO
========================================================= */

.idr-details {
  padding: 56px 0 100px;
  background: #ffffff;
}

.idr-details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 40px;
}

.idr-detail-card {
  min-height: 210px;

  padding: 26px 30px 28px;

  background: var(--idr-card);
  color: var(--idr-ink);

  border-radius: 12px;

  box-shadow:
    0 5px 7px
    rgba(31, 46, 47, .14);
}

.idr-detail-card__head {
  display: flex;
  align-items: flex-start;

  gap: 18px;
  margin-bottom: 18px;
}

.idr-detail-card__icon {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  color: var(--idr-ink);
}

.idr-detail-card__icon img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.idr-detail-card h3 {
  margin: 0;

  color: var(--idr-ink);

  font-size: 23px;
  line-height: 1.05;
  font-weight: 600;
}

.idr-detail-card p {
  margin: 0;

  color: rgba(52, 64, 65, .92);

  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}


/* =========================================================
   LAVORI REALIZZATI
========================================================= */

.idr-works {
  width: 100%;

  background: var(--idr-bg);

  padding: 66px 0 78px;

  color: #ffffff;

  overflow: hidden;
}

.idr-works__shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.idr-works .idr-section-title {
  width: fit-content;

  margin:
    0
    auto
    58px;
}


/* GALLERIA FULL WIDTH */

.idr-works__scroller {
  --gallery-start-offset: 160px;

  width: 100vw;

  position: relative;
  left: 50%;

  margin-left: -50vw;

  display: flex;
  align-items: stretch;

  gap: 42px;

  overflow-x: auto;
  overflow-y: hidden;

  padding:
    0
    160px
    14px
    160px;

  scroll-snap-type: none;
  overscroll-behavior-x: contain;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  cursor: grab;
}

.idr-works__scroller::-webkit-scrollbar {
  display: none;
}

.idr-works__scroller.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.idr-works__scroller > .idr-work {
  width: 34vw;
  min-width: 430px;

  flex: 0 0 34vw;

  margin: 0;
  padding: 0;

  overflow: hidden;

  border-radius: 10px;
}

.idr-works__scroller > .idr-work img {
  display: block;

  width: 100%;
  height: 345px;

  object-fit: cover;
  object-position: center;

  border-radius: 10px;

  pointer-events: none;
  user-select: none;
}


/* =========================================================
   FASCIA PRE-FOOTER
========================================================= */

.idr-prefooter {
  width: 100%;
  height: 288px;

  background:
    linear-gradient(
      to bottom,
      var(--idr-bg-dark) 0,
      var(--idr-bg-dark) calc(100% - 64px),
      #536364 calc(100% - 64px),
      #536364 100%
    );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .idr-shell {
    width: min(100% - 36px, 900px);
  }

  .idr-hero {
    padding: 112px 0 62px;
  }

  .idr-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .idr-kicker {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .idr-hero h1 {
    font-size: 34px;
  }

  .idr-hero__text {
    font-size: 15px;
  }

  .idr-details {
    padding: 48px 0 72px;
  }

  .idr-details__grid {
    gap: 24px;
  }

  .idr-detail-card {
    min-height: 190px;
    padding: 22px 20px;
  }

  .idr-detail-card h3 {
    font-size: 18px;
  }

  .idr-detail-card p {
    font-size: 12px;
  }

  .idr-prefooter {
    height: 230px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .idr-shell {
    width: calc(100% - 28px);
  }

  .idr-hero {
    padding: 92px 0 44px;
  }

  .idr-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .idr-hero__copy {
    max-width: none;
  }

  .idr-kicker {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .idr-hero h1 {
    margin-bottom: 16px;

    font-size: 30px;

    white-space: normal;
  }

  .idr-hero__text {
    max-width: 420px;

    font-size: 14px;
    line-height: 1.45;
  }

  .idr-hero__media img {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
  }


  /* DETTAGLI */

  .idr-details {
    padding: 40px 0 54px;
  }

  .idr-section-title {
    margin-bottom: 34px;
  }

  .idr-section-title h2 {
    font-size: 25px;
  }

  .idr-section-title span {
    width: 190px;
  }

  .idr-details__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .idr-detail-card {
    min-height: 165px;

    padding: 16px 14px 18px;

    border-radius: 10px;
  }

  .idr-detail-card__head {
    gap: 10px;
    margin-bottom: 26px;
  }

  .idr-detail-card__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .idr-detail-card h3 {
    font-size: 14px;
    line-height: 1.1;
  }

  .idr-detail-card p {
    font-size: 9.5px;
    line-height: 1.4;
  }


  /* GALLERIA */

  .idr-works {
    padding: 46px 0 54px;
  }

  .idr-works .idr-section-title {
    margin-bottom: 32px;
  }

  .idr-works__scroller {
    --gallery-start-offset: 40px;

    gap: 16px;

    padding:
      0
      20px
      10px
      40px;
  }

  .idr-works__scroller > .idr-work {
    width: 76vw;
    min-width: 76vw;

    flex: 0 0 76vw;
  }

  .idr-works__scroller > .idr-work img {
    width: 100%;
    height: auto;

    aspect-ratio: 1.55 / 1;
  }

  .idr-prefooter {
    height: 188px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  .idr-details__grid {
    gap: 10px;
  }

  .idr-detail-card {
    min-height: 155px;
    padding: 14px 12px;
  }

  .idr-detail-card h3 {
    font-size: 12.5px;
  }

  .idr-detail-card p {
    font-size: 8.5px;
  }

}


/* =========================================================
   DESKTOP — MATCH DELLE CARD POMPE DI CALORE
========================================================= */

@media (min-width: 981px) {

  .idr-details {
    padding:
      54px
      0
      92px;
  }

  .idr-details .idr-shell {
    width:
      min(
        calc(100% - 100px),
        1290px
      );
    max-width: none;
  }

  .idr-details .idr-section-title {
    margin-bottom: 64px;
  }

  .idr-details .idr-section-title h2 {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
  }

  .idr-details .idr-section-title span {
    width: 220px;
    height: 2px;

    margin:
      7px
      auto
      0;
  }

  .idr-details__grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    column-gap: 48px;
    row-gap: 88px;

    align-items: stretch;
  }

  .idr-detail-card {
    width: 100%;

    height: 268px;
    min-height: 268px;

    padding:
      38px
      36px
      32px;

    background: #cde4c5;

    border-radius: 10px;

    box-shadow:
      0
      5px
      8px
      rgba(31, 46, 47, 0.14);
  }

  .idr-detail-card__head {
    display: flex;
    align-items: flex-start;

    gap: 20px;

    min-height: 58px;

    margin:
      0
      0
      27px;
  }

  .idr-detail-card__icon {
    width: 64px;
    height: 64px;

    flex:
      0
      0
      64px;

    margin: 0;
  }

  .idr-detail-card__icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
  }

  .idr-detail-card h3 {
    margin: 0;

    font-size: 24px;
    line-height: 1.08;

    font-weight: 600;

    letter-spacing: 0;

    color: #344041;
  }

  .idr-detail-card p {
    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: 15px;
    line-height: 1.48;

    font-weight: 400;

    color: rgba(52, 64, 65, 0.92);
  }

}
