/* =====================================================================
   HOME DALMESSE (index.php): layout desktop
   Attivo solo da 992px in su e solo sulla home (body.home-d).
   Il mobile resta invariato: i contenitori .hd-* sotto i 992px non hanno stili.
   ===================================================================== */
@media (min-width: 992px) {
  .home-d {
    --hd-max: 1200px;
    --hd-navy: #102d45;
    --hd-ink: #1f2a33;
    --hd-muted: #55626c;
    --hd-soft: #f3f5f7;
    --hd-space: clamp(56px, 6vw, 96px);
  }

  /* ---------- 3 card iniziali: stessa altezza, immagine sopra, testo sotto ---------- */
  .home-d .our-brand.style3.top .row { align-items: stretch; }
  .home-d .our-brand.style3.top .col-lg-4 { display: flex; }
  .home-d .our-brand.style3.top .brand-card {
    display: flex; flex-direction: column; width: 100%; height: 480px; margin: 0;
    overflow: hidden; background: var(--hd-soft); border-right: 1px solid #fff;
  }
  .home-d .our-brand.style3.top .brand-card .simpleParallax { height: 280px; flex: none; }
  .home-d .our-brand.style3.top .brand-card .brand-parallax {
    height: 280px !important; width: 100%; object-fit: cover; flex: none; transform: none !important;
  }
  .home-d .our-brand.style3.top .box3 .brand-parallax { object-fit: contain; background: #fff; padding: 16px 0 0; }
  .home-d .our-brand.style3.top .brand-body {
    position: static; flex: 1; display: flex; flex-direction: column;
    padding: 28px 36px 32px !important; background: none !important;
  }
  .home-d .our-brand.style3.top h3 { width: auto; font-size: 28px; line-height: 1.2; color: var(--hd-navy) !important; margin-bottom: 8px; }
  .home-d .our-brand.style3.top p { width: auto; font-size: 17px; color: var(--hd-muted) !important; margin-bottom: 0; }
  .home-d .our-brand.style3.top .box3 .logo { margin: 0 0 8px; width: 110px; }
  .home-d .our-brand.style3.top .brand-body .btn { margin-top: auto; align-self: flex-start; }

  /* ---------- presentazione + numeri ---------- */
  .home-d .reassurance {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; align-items: center;
    max-width: var(--hd-max); margin-top: var(--hd-space) !important; padding: 0 32px !important;
  }
  .home-d .reassurance .hd-intro { grid-column: 1; }
  .home-d .reassurance .hd-intro .door { margin: 0 auto 24px !important; max-width: 150px; }
  .home-d .reassurance .hd-intro p { margin: 0 auto; max-width: 420px; font-size: 1.2em; line-height: 1.5; color: var(--hd-ink); }
  .home-d .reassurance .hd-stats {
    grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    padding: 40px 32px; background: var(--hd-soft);
  }
  .home-d .reassurance .hd-stats > div { margin-top: 0 !important; }
  .home-d .reassurance .hd-stats h2 { color: var(--hd-navy); margin-bottom: 8px; }
  .home-d .reassurance .hd-stats h3 { font-size: 1.15rem; line-height: 1.35; color: var(--hd-muted); }
  .home-d .reassurance > .row.text-center { grid-column: 1 / -1; margin-top: 48px !important; padding-top: 0 !important; }

  /* ---------- brand: stessa larghezza del resto della pagina ---------- */
  .home-d .our-brand.style2.slider { margin-top: var(--hd-space); }
  .home-d .our-brand.style2.slider .brandswiper { max-width: var(--hd-max); margin: 0 auto; padding: 0 32px; }
  .home-d .our-brand.style2.slider .swiper-scrollbar { margin-left: 0 !important; }

  /* ---------- carriera: presentazione a sinistra, passaggi a destra ---------- */
  .home-d .hd-carriera {
    display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; align-items: center;
    max-width: var(--hd-max); margin: var(--hd-space) auto 0; padding: 0 32px;
  }
  .home-d .hd-carriera .happy-join { padding: 0 !important; margin: 0 !important; background: none; }
  .home-d .hd-carriera .happy-join .container { max-width: none; padding: 0; text-align: left !important; }
  .home-d .hd-carriera .happy-corner { margin: 0 0 28px !important; width: 200px; }
  .home-d .hd-carriera .happy-join h2 { font-size: 2.2rem; line-height: 1.15; }
  .home-d .hd-carriera .happy-join p { font-size: 1.05rem; line-height: 1.6; color: var(--hd-muted); }
  .home-d .hd-carriera .happy-dots { margin: 0 !important; padding: 40px 24px 32px; max-width: none; background: var(--hd-soft); }
  .home-d .hd-carriera .happy-dots img { max-width: 88px; }
  .home-d .hd-carriera .happy-dots .btn { margin-top: 16px !important; }

  /* ---------- un mondo di opportunità: logo a sinistra, testo a destra ---------- */
  .home-d .hd-opps {
    display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; align-items: center;
    text-align: left !important; max-width: var(--hd-max); margin: 0 auto; padding: var(--hd-space) 32px !important;
  }
  .home-d .hd-opps img { grid-row: 1 / span 2; width: 100% !important; max-width: 400px !important; margin: 0 auto !important; }
  .home-d .hd-opps p { padding: 0 !important; margin: 0 0 24px; align-self: end; font-size: 1.2rem; line-height: 1.55; color: var(--hd-ink); }
  .home-d .hd-opps .btn { justify-self: start; align-self: start; }

  /* ---------- smart working: pulsante vicino al blocco ---------- */
  .home-d .smart-link { padding-top: 32px !important; }

  /* ---------- storie di successo: testo a sinistra, video a destra ---------- */
  .home-d .hd-storie {
    display: grid; grid-template-columns: 7fr 5fr; align-items: stretch;
    max-width: var(--hd-max); margin: 0 auto var(--hd-space); padding: 0 32px;
  }
  .home-d .hd-storie .happy-join.blue { display: flex; align-items: center; padding: 64px 56px !important; }
  .home-d .hd-storie .happy-join.blue .container { max-width: none; padding: 0; }
  .home-d .hd-storie .happy-join.blue .text-center { text-align: left !important; padding-bottom: 0 !important; }
  .home-d .hd-storie .happy-join.blue h2 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 20px; }
  .home-d .hd-storie .happy-join.blue p { font-size: 1.05rem; line-height: 1.65; }
  .home-d .hd-storie .happy-join .ball.wind { display: none; }
  .home-d .hd-storie > .col-md-6 {
    width: auto; max-width: none; margin: 0 !important; padding: 32px !important;
    background: #0d2233; display: flex; flex-direction: column; justify-content: center;
  }
  .home-d .hd-storie .review-card { margin-bottom: 24px; }
  .home-d .hd-storie video { display: block; width: auto; max-width: 100%; height: 520px; margin: 0 auto; object-fit: cover; }
  .home-d .hd-storie .btn { margin-left: 0 !important; }
}

/* ---------- rifiniture ---------- */
@media (min-width: 992px) {
  /* card: immagini a filo, senza cornice */
  .home-d .our-brand.style3.top .brand-card .simpleParallax,
  .home-d .our-brand.style3.top .brand-card .brand-parallax { margin: 0 !important; padding-left: 0; padding-right: 0; }

  /* brand: meno spazio sotto il carosello */
  .home-d .our-brand.style2.slider { padding-bottom: 0 !important; margin-bottom: 0 !important; }

  /* carriera e storie: niente inclinazione (skew) dentro i riquadri a colonne */
  .home-d .hd-carriera .happy-join,
  .home-d .hd-carriera .happy-join .container,
  .home-d .hd-storie .happy-join,
  .home-d .hd-storie .happy-join .container { transform: none !important; }

  /* storie: video e pulsante visibili */
  .home-d .hd-storie .reviewSwiper { margin-top: 0 !important; overflow: visible; height: auto; }
  .home-d .hd-storie .review-card { margin-bottom: 20px; }
  .home-d .hd-storie video { height: 480px; }
}
@media (min-width: 992px) {
  .home-d .hd-storie .happy-join.blue { margin-top: 0 !important; }
  .home-d .hd-storie > .col-md-6 { padding-bottom: 40px !important; }
  .home-d .hd-storie .reviewSwiper .btn { display: block; max-width: 270px; margin: 0 auto !important; }
}
@media (min-width: 992px) {
  /* card "Fai carriera": inquadratura dall'alto, la ragazza resta intera */
  .home-d .our-brand.style3.top .box1 .brand-parallax { object-position: center top; }
}
@media (min-width: 992px) {
  /* card "L'azienda di successo": foto ingrandita a riempire, stessa altezza delle altre */
  .home-d .our-brand.style3.top .brand-card.box2 .brand-parallax {
    object-fit: cover !important; object-position: center 40%; padding: 0 !important;
    height: 280px !important; width: 100%;
  }
  .home-d .our-brand.style3.top .brand-card .brand-parallax { height: 280px !important; }
}
@media (min-width: 992px) {
  /* card "Shop": illustrazione a filo, stessa altezza delle foto */
  .home-d .our-brand.style3.top .brand-card.box3 .brand-parallax {
    object-fit: cover !important; object-position: center; padding: 0 !important; background: #fff;
  }
}
