/* =====================================================================
   HOME DEI BRAND (fadal, ekloge, ekloge-home, dreamtime): layout desktop
   Attivo solo da 992px, tramite body.bh-d + body.bh-<brand>. Mobile invariato,
   tranne le sezioni "set" vuote nascoste (vedi sotto).
   ===================================================================== */

/* sezione "set" senza prodotti: non mostrare la fascia vuota */
.bh-d section.products.slider.set:not(:has(.swiper-slide)) { display: none; }

@media (min-width: 992px) {
  .bh-d { --bh-max: 1200px; --bh-space: clamp(48px, 5vw, 80px); }

  /* comuni: caroselli e newsletter */
  .bh-d .productsSwiper, .bh-d .productsSetSwiper { max-width: var(--bh-max) !important; }
  .bh-d section.welcome .row { justify-content: center; }

  /* ---------- FADAL: banner promo interi (grande a sinistra, due a destra) ---------- */
  .bh-fadal .bh-promo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    max-width: var(--bh-max); margin: 12px auto 0; padding: 0 32px;
  }
  .bh-fadal .bh-promo > a:first-child { grid-row: 1 / span 2; display: block; }
  .bh-fadal .bh-promo > a > section { margin: 0 !important; }
  .bh-fadal .bh-promo > a:first-child > section {
    height: 100% !important; min-height: 0; aspect-ratio: 3333 / 2536; padding: 0 !important;
    background-size: cover; background-position: center;
  }
  .bh-fadal .bh-promo .home-test.box-image { height: auto; padding: 0 !important; }
  .bh-fadal .bh-promo .home-test.box-image img { display: block; width: 100%; height: auto; aspect-ratio: 3333 / 1208; object-fit: cover; }
  .bh-fadal .bh-promo:not(:has(> a:nth-child(2))) { grid-template-columns: 1fr; }
  /* testo introduttivo: niente spazio vuoto sopra */
  .bh-fadal section.home-promo { min-height: 0 !important; margin-top: var(--bh-space) !important; }

  /* ---------- DREAMTIME ---------- */
  /* certificazioni: griglia invece di colonna unica */
  .bh-dreamtime section.certifications > .container.mb-5 { max-width: var(--bh-max); }
  .bh-dreamtime section.certifications > .container.mb-5 > .row { justify-content: center; row-gap: 16px; }
  .bh-dreamtime section.certifications > .container.mb-5 > .row > .col-12 { flex: 0 0 25%; max-width: 25%; padding: 0 20px; }
  .bh-dreamtime section.certifications .col-12 img { height: 90px; width: auto !important; max-width: 160px !important; object-fit: contain; margin-top: 24px !important; }
  .bh-dreamtime section.certifications .col-12 p { font-size: .92rem; line-height: 1.5; }
  .bh-dreamtime section.certifications > .container.mb-5 > .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; }

  /* testo + immagine grandi: immagine contenuta, pulsante normale */
  .bh-dreamtime section.box-text-image > img { display: block; max-width: var(--bh-max); height: 520px; margin: 0 auto; object-fit: cover; }
  .bh-dreamtime section.box-text-image > .text-center .btn,
  .bh-dreamtime section.box-text-image .col-md-6 .btn { width: auto !important; padding: 14px 36px !important; }
  .bh-dreamtime section.box-text-image .col-md-6 { margin: 0 auto; text-align: center; }
  .bh-dreamtime section.box-text-image > .text-center { margin-top: 16px; }

  /* vetrina a riquadri: altezza contenuta */
  .bh-dreamtime section.showcase .container { max-width: var(--bh-max); }

  /* ---------- EKLOGÈ HOME: testo introduttivo leggibile ---------- */
  .bh-ekloge-home .container > p, .bh-ekloge-home .container-2 > p { max-width: 820px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 992px) {
  .bh-dreamtime section.box-text-image > img[src*="dormire2"] { object-position: center top; }
}

/* ---------- DREAMTIME: apertura e categorie (desktop) ---------- */
@media (min-width: 992px) {
  /* apertura: foto a destra, titolo nello spazio libero a sinistra */
  .bh-dreamtime section.dreamtime-box-1 {
    min-height: 540px; display: flex; align-items: center;
    background-color: #ebebec; background-repeat: no-repeat;
    background-size: auto 100%; background-position: right center;
  }
  .bh-dreamtime section.dreamtime-box-1::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #ebebec 0%, #ebebec 30%, rgba(235,235,236,0) 48%);
  }
  .bh-dreamtime section.dreamtime-box-1 { position: relative; }
  .bh-dreamtime section.dreamtime-box-1 > .container { position: relative; z-index: 1; max-width: 1200px; padding: 0 32px; }
  .bh-dreamtime section.dreamtime-box-1 .col { max-width: 420px; padding: 0; }
  .bh-dreamtime section.dreamtime-box-1 h1 { font-size: clamp(2.2rem, 3vw, 3rem); line-height: 1.12; margin-bottom: 14px; }
  .bh-dreamtime section.dreamtime-box-1 h2 { font-size: 1.15rem; margin-bottom: 22px; color: #3a3a3a; }
  .bh-dreamtime section.dreamtime-box-1 .btn { padding: 12px 34px; }

  /* categorie: griglia 2x2 di riquadri, soggetto intero a destra, nome a sinistra */
  .bh-dreamtime .dt-cat {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: 1200px; margin: 16px auto 0; padding: 0 32px;
  }
  .bh-dreamtime .dt-cat > a { display: block; text-decoration: none; }
  .bh-dreamtime .dt-cat section.home-test {
    position: relative; margin: 0 !important; padding: 0 !important; height: 240px; overflow: hidden;
    background-color: #faf9fd; background-size: auto 100%; background-position: right center;
    border: 1px solid #ecebef; transition: box-shadow .3s cubic-bezier(.22,1,.36,1), background-size .6s cubic-bezier(.22,1,.36,1);
  }
  .bh-dreamtime .dt-cat > a:hover section.home-test { background-size: auto 106%; box-shadow: 0 18px 36px -22px rgba(0,0,0,.35); }
  .bh-dreamtime .dt-cat section.home-test > .container {
    position: absolute; left: 0; top: 0; bottom: 0; width: 45%; max-width: none;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 32px !important;
  }
  .bh-dreamtime .dt-cat section.home-test h2 { margin: 0; font-size: 1.5rem !important; font-weight: 700; color: #1a1a1a; letter-spacing: .02em; }
  .bh-dreamtime .dt-cat section.home-test h2::after {
    content: "Scopri →"; display: block; margin-top: 8px;
    font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: #5f9a1a; text-transform: uppercase;
  }
}
@media (min-width: 992px) {
  /* sfumatura dal colore di fondo verso la foto (niente stacco netto, testo leggibile) */
  .bh-dreamtime section.dreamtime-box-1::before { content: none; }
  .bh-dreamtime section.dreamtime-box-1 {
    background-image: linear-gradient(90deg, #ebebec 0%, #ebebec 34%, rgba(235,235,236,0) 50%), url(../../dreamtime/img/1.jpg);
    background-size: 100% 100%, auto 100%; background-position: 0 0, right center;
  }
  .bh-dreamtime .dt-cat section.dreamtime-box-2 { background-image: linear-gradient(90deg, #faf9fd 0%, #faf9fd 28%, rgba(250,249,253,0) 52%), url(../../dreamtime/img/2.jpg); }
  .bh-dreamtime .dt-cat section.dreamtime-box-3 { background-image: linear-gradient(90deg, #faf9fd 0%, #faf9fd 28%, rgba(250,249,253,0) 52%), url(../../dreamtime/img/3.jpg); }
  .bh-dreamtime .dt-cat section.dreamtime-box-4 { background-image: linear-gradient(90deg, #faf9fd 0%, #faf9fd 28%, rgba(250,249,253,0) 52%), url(../../dreamtime/img/4.jpg); }
  .bh-dreamtime .dt-cat section.dreamtime-box-5 { background-image: linear-gradient(90deg, #faf9fd 0%, #faf9fd 28%, rgba(250,249,253,0) 52%), url(../../dreamtime/img/5.jpg); }
  .bh-dreamtime .dt-cat section.home-test { background-size: 100% 100%, auto 100%; background-position: 0 0, right center; }
  .bh-dreamtime .dt-cat > a:hover section.home-test { background-size: 100% 100%, auto 106%; }
  .bh-dreamtime .dt-cat section.home-test > .container { width: 40%; }
}
