/* =========================================================
   POMPE DI CALORE — RENIX
   Pagina specifica
========================================================= */

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


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

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

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

.pompedicalore-page main {
  overflow: hidden;
}

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


/* =========================================================
   HERO — POMPE DI CALORE
   stessa struttura della pagina Fotovoltaico
========================================================= */

.pdc-hero {
  background: #536364;

  padding:
    180px
    0
    92px;

  color: #ffffff;
}


.pdc-hero__grid {
  width: min(100% - 120px, 1280px);

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    0.9fr
    1.1fr;

  gap: 90px;

  align-items: center;
}


/* TESTO */

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


.pdc-kicker {
  margin:
    0
    0
    58px;

  color: #cde4c5;

  font-size: 18px;
  line-height: 1;

  font-weight: 700;
}


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

  font-size: 48px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: -0.02em;

  color: #ffffff;

  white-space: nowrap;
}


.pdc-hero__text {
  width: auto;

  max-width: 480px;

  margin: 0;

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

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


/* FOTO */

.pdc-hero__media {
  width: 100%;

  height: auto;

  max-width: none;

  overflow: hidden;

  border-radius: 10px;
}


.pdc-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
========================================================= */

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

.pdc-section-title h2 {
  margin: 0;
  color: var(--pdc-ink);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
}

.pdc-section-title span {
  display: block;
  width: 255px;
  max-width: 70%;
  height: 3px;
  margin: 9px auto 0;
  background: var(--pdc-ink);
}

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

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


/* =========================================================
   DETTAGLI
========================================================= */

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

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

.pdc-detail-card {
  min-height: 210px;
  padding: 26px 30px 28px;
  background: var(--pdc-card);
  color: var(--pdc-ink);
  border-radius: 12px;
  box-shadow: 0 5px 7px rgba(31, 46, 47, .14);
}

.pdc-detail-card__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.pdc-detail-card__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  color: var(--pdc-ink);
}

.pdc-detail-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdc-detail-card h3 {
  margin: 0;
  color: var(--pdc-ink);
  font-size: 23px;
  line-height: 1.05;
  font-weight: 600;
}

.pdc-detail-card p {
  margin: 0;
  color: rgba(52, 64, 65, .92);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}


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

.pdc-works {
  background: var(--pdc-bg);
  padding: 66px 0 78px;
  color: #ffffff;
}

.pdc-works__shell {
  width: min(1260px, calc(100% - 40px));
}

.pdc-works .pdc-section-title {
  margin-bottom: 54px;
}

.pdc-works__scroller {
  display: flex;
  gap: 42px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.pdc-work {
  flex: 0 0 clamp(310px, 31vw, 420px);
  margin: 0;
  scroll-snap-align: start;
}

.pdc-work img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: 10px;
}


/* =========================================================
   COME FUNZIONA / BENEFICI — MATCH FIGMA
========================================================= */

.pdc-benefits {
  background: #344243;
  color: #ffffff;

  padding:
    46px
    0
    48px;

  /* fascia grigia sotto come Figma */
  border-bottom:
    54px solid #536364;
}


.pdc-benefits__grid {
  width: min(calc(100% - 120px), 1260px);
  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1.22fr
    1fr;

  gap: 74px;

  align-items: center;
}


/* =========================================================
   BLOCCO SINISTRO
========================================================= */

.pdc-benefits__intro {
  max-width: 620px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


.pdc-benefits__eyebrow {
  display: block;

  margin:
    0
    0
    12px;

  color: #91c3a2;

  font-size: 12px;
  line-height: 1.1;

  font-weight: 700;
}


.pdc-benefits__intro h2 {
  margin:
    0
    0
    16px;

  color: #ffffff;

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

  font-weight: 600;
}


.pdc-benefits__intro p {
  max-width: 590px;

  margin: 0;

  color: rgba(255, 255, 255, 0.90);

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


/* =========================================================
   3 COLONNE DESTRA
========================================================= */

.pdc-benefits__items {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 0;

  align-items: stretch;
}


.pdc-benefit {
  min-height: 130px;

  padding:
    6px
    20px
    4px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  border-left:
    3px solid #cde4c5;
}


.pdc-benefit h3 {
  margin:
    0
    0
    16px;

  color: #cde4c5;

  font-size: 12px;
  line-height: 1.1;

  font-weight: 700;
}


.pdc-benefit p {
  max-width: 135px;

  margin: 0;

  color: rgba(255, 255, 255, 0.92);

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


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

@media (max-width: 980px) {

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

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

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

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

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

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

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

  .pdc-details__grid {
    gap: 24px;
  }

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

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

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

  .pdc-benefits__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

}


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

@media (max-width: 700px) {

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

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

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

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

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

  .pdc-hero h1 {
    margin-bottom: 16px;
    font-size: 30px;
  }

  .pdc-hero__text {
    max-width: 420px;
    font-size: 14px;
    line-height: 1.45;
  }

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


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

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

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

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

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

  .pdc-detail-card {
    min-height: 165px;
    padding: 16px 14px 18px;
    border-radius: 10px;
  }

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

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

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

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


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

  .pdc-works__shell {
    width: calc(100% - 14px);
    margin-left: 14px;
    margin-right: 0;
  }

  .pdc-works .pdc-section-title {
    padding-right: 14px;
    margin-bottom: 32px;
  }

  .pdc-works__scroller {
    gap: 14px;
    padding-right: 14px;
  }

  .pdc-work {
    flex: 0 0 78%;
  }

  .pdc-work img {
    border-radius: 10px;
  }


  .pdc-benefits {
    padding: 42px 0 46px;
  }

  .pdc-benefits__grid {
    gap: 28px;
  }

  .pdc-benefits__eyebrow {
    font-size: 10px;
  }

  .pdc-benefits__intro h2 {
    font-size: 22px;
  }

  .pdc-benefits__intro p {
    font-size: 12px;
  }

  .pdc-benefits__items {
    grid-template-columns: repeat(3, 1fr);
  }

  .pdc-benefit {
    padding: 7px 9px 0;
    border-left-width: 2px;
  }

  .pdc-benefit h3 {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .pdc-benefit p {
    font-size: 7.5px;
    line-height: 1.4;
  }

}


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

@media (max-width: 420px) {

  .pdc-details__grid {
    gap: 10px;
  }

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

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

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

  .pdc-benefit {
    padding-left: 7px;
    padding-right: 7px;
  }

}
/* =========================================================
   PIÙ NEL DETTAGLIO — FIGMA DESKTOP DEFINITIVO
========================================================= */

@media (min-width: 981px) {

  /* SEZIONE */
  .pdc-details {
    padding:
      54px
      0
      92px !important;

    background: #ffffff;
  }


  /* CONTENITORE */
  .pdc-details .pdc-shell {
    width: min(calc(100% - 100px), 1290px) !important;
    max-width: none !important;
  }


  /* =====================================================
     TITOLO SEZIONE
  ===================================================== */

  .pdc-details .pdc-section-title {
    margin-bottom: 64px !important;
  }

  .pdc-details .pdc-section-title h2 {
    margin: 0 !important;

    font-size: 30px !important;
    line-height: 1.05 !important;

    font-weight: 700 !important;
  }

  .pdc-details .pdc-section-title span {
    width: 220px !important;
    height: 2px !important;

    margin:
      7px
      auto
      0 !important;
  }


  /* =====================================================
     GRIGLIA
  ===================================================== */

  .pdc-details__grid {
    display: grid !important;

    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

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

    align-items: stretch !important;
  }


  /* =====================================================
     CARD
  ===================================================== */

  .pdc-detail-card {
    width: 100% !important;

    height: 268px !important;
    min-height: 268px !important;

    padding:
      38px
      36px
      32px !important;

    background: #cde4c5 !important;

    border-radius: 10px !important;

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


  /* =====================================================
     TESTATA CARD
  ===================================================== */

  .pdc-detail-card__head {
    display: flex !important;

    align-items: flex-start !important;

    gap: 20px !important;

    min-height: 58px !important;

    margin:
      0
      0
      27px !important;
  }


  /* =====================================================
     ICONE
  ===================================================== */

  .pdc-detail-card__icon {
    width: 50px !important;
    height: 50px !important;

    flex:
      0
      0
      50px !important;

    margin: 0 !important;
  }

  .pdc-detail-card__icon img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
  }


  /* =====================================================
     TITOLI CARD
  ===================================================== */

  .pdc-detail-card h3 {
    margin: 0 !important;

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

    font-weight: 600 !important;

    letter-spacing: 0 !important;

    color: #344041 !important;
  }


  /* =====================================================
     TESTI CARD
  ===================================================== */

  .pdc-detail-card p {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

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

    font-weight: 400 !important;

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

}

/* =========================================================
   COME FUNZIONA POMPA DI CALORE
   STESSA SCALA DEL BLOCCO FOTOVOLTAICO
========================================================= */

@media (min-width: 981px) {

  .pompedicalore-page .pdc-benefits {
    width: 100% !important;

    padding:
      58px
      0
      118px !important;

    color: #ffffff !important;

    background:
      linear-gradient(
        to bottom,
        #344243 0,
        #344243 calc(100% - 64px),
        #536364 calc(100% - 64px),
        #536364 100%
      ) !important;
  }


  /* CONTENITORE GENERALE:
     molto più largo, come Fotovoltaico */
  .pompedicalore-page .pdc-benefits__grid {
    width: min(calc(100% - 160px), 1580px) !important;

    margin:
      0
      auto !important;

    display: grid !important;

    grid-template-columns:
      minmax(700px, 1.25fr)
      minmax(620px, 1fr) !important;

    gap: 92px !important;

    align-items: center !important;
  }


  /* =====================================================
     SINISTRA
  ===================================================== */

  .pompedicalore-page .pdc-benefits__intro {
    width: 100% !important;
    max-width: 760px !important;

    margin: 0 !important;
  }


  .pompedicalore-page .pdc-benefits__eyebrow {
    display: block !important;

    margin:
      0
      0
      18px !important;

    color: #91c3a2 !important;

    font-size: 16px !important;
    line-height: 1.1 !important;

    font-weight: 700 !important;
  }


  .pompedicalore-page .pdc-benefits__intro h2 {
    margin:
      0
      0
      24px !important;

    color: #ffffff !important;

    font-size: 34px !important;
    line-height: 1.12 !important;

    font-weight: 600 !important;
  }


  .pompedicalore-page .pdc-benefits__intro p {
    width: 100% !important;
    max-width: 760px !important;

    margin: 0 !important;

    color:
      rgba(255, 255, 255, 0.92) !important;

    font-size: 18px !important;
    line-height: 1.48 !important;

    font-weight: 400 !important;
  }


  /* =====================================================
     DESTRA — 3 COLONNE
  ===================================================== */

  .pompedicalore-page .pdc-benefits__items {
    width: 100% !important;

    display: grid !important;

    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    gap: 0 !important;

    align-items: stretch !important;
  }


  .pompedicalore-page .pdc-benefit {
    min-height: 160px !important;

    margin: 0 !important;

    padding:
      12px
      28px
      8px !important;

    display: flex !important;
    flex-direction: column !important;

    border-left:
      3px solid #cde4c5 !important;
  }


  .pompedicalore-page .pdc-benefit h3 {
    margin:
      0
      0
      22px !important;

    color: #cde4c5 !important;

    font-size: 16px !important;
    line-height: 1.1 !important;

    font-weight: 700 !important;
  }


  .pompedicalore-page .pdc-benefit p {
    width: 100% !important;
    max-width: 170px !important;

    margin: 0 !important;

    color:
      rgba(255, 255, 255, 0.92) !important;

    font-size: 13px !important;
    line-height: 1.48 !important;

    font-weight: 400 !important;
  }

}

/* =========================================================
   POMPE DI CALORE
   GALLERIA IDENTICA A IMPIANTI ELETTRICI
========================================================= */

.pdc-works {
  width: 100%;
  overflow: hidden;
}


/* il titolo resta centrato */
.pdc-works__shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

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

  margin:
    0
    auto
    58px !important;
}


/* =========================================================
   GALLERIA FULL WIDTH
========================================================= */

.pdc-works__scroller {

  /* QUESTI NOMI DEVONO ESSERE UGUALI AL JS */
  --pdc-gallery-start-space: 160px;
  --pdc-gallery-initial-crop: 160px;

  width: 100vw !important;

  position: relative;

  left: 50%;

  margin-left: -50vw !important;

  display: flex !important;
  align-items: stretch;

  gap: 42px !important;

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

  padding:
    0
    160px
    14px
    160px !important;

  scroll-snap-type: none !important;

  overscroll-behavior-x: contain;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  cursor: grab;
}


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


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


/* =========================================================
   FOTO
========================================================= */

.pdc-works__scroller > .pdc-work {
  width: 34vw !important;

  min-width: 430px !important;

  flex:
    0
    0
    34vw !important;

  margin: 0 !important;

  padding: 0 !important;

  overflow: hidden;

  border-radius: 10px;

  scroll-snap-align: none !important;
}


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

  width: 100% !important;

  height: 345px !important;

  aspect-ratio: auto !important;

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

  border-radius: 10px;

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


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

@media (max-width: 768px) {

  .pdc-works__scroller {
    --pdc-gallery-start-space: 40px;
    --pdc-gallery-initial-crop: 40px;

    gap: 16px !important;

    padding:
      0
      20px
      10px
      40px !important;
  }


  .pdc-works__scroller > .pdc-work {
    width: 76vw !important;
    min-width: 76vw !important;

    flex:
      0
      0
      76vw !important;
  }


  .pdc-works__scroller > .pdc-work img {
    width: 100% !important;

    height: auto !important;

    aspect-ratio:
      1.55 / 1 !important;
  }

}