/* =========================================================
   BDG — Home: sezioni sotto la parte 3D
   (carosello ispirazione, vetrina prodotti su pietra, fascia professionisti)
   Le classi .bdg-home-* sono messe sulle sezioni YOOtheme dal campo "class".
   ========================================================= */
:root {
  --bh-orange: #E03E15;
  --bh-red: #9F1B14;
  --bh-yellow: #EBCF47;
  --bh-ink: #1d1d1b;
  --bh-muted: #5c544d;
  --bh-slab: "Alfa Slab One", serif;
}

.bdg-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bh-orange);
}
.bdg-home-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.bdg-home-eyebrow--light { color: #ff7a52; }
.bdg-home-title {
  margin: 14px 0 0;
  font-family: var(--bh-slab) !important;
  font-size: clamp(34px, 6.4vw, 64px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.01em;
  text-transform: none !important;
  color: var(--bh-ink) !important;
}
.bdg-home-title em { font-style: normal; color: var(--bh-orange); }

/* ---------- 1. ispirazione (carosello) ---------- */
.bdg-inspo-head {
  display: grid;
  gap: 14px;
  align-items: end;
  margin-bottom: 34px;
}
@media (min-width: 960px) { .bdg-inspo-head { grid-template-columns: 1fr auto; } }
.bdg-inspo-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bh-muted);
  max-width: 34ch;
}
@media (min-width: 960px) { .bdg-inspo-hint { text-align: right; padding-bottom: 10px; } }
.bdg-home-inspo .uk-slider-items > * { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bdg-home-inspo .el-item { box-shadow: 0 26px 46px -32px rgba(60, 25, 5, .55); }
/* cursore "Trascina" che segue il mouse sopra il carosello (solo dispositivi con mouse) */
.bdg-drag-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--bh-orange);
  box-shadow: 0 14px 30px -14px rgba(189, 31, 23, .8);
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.bdg-drag-cursor.is-visible { opacity: 1; transform: scale(1); }
.bdg-drag-cursor.is-pressed { transform: scale(.82); }
.bdg-drag-active, .bdg-drag-active * { cursor: none !important; }

/* ---------- 2. vetrina prodotti su pietra ---------- */
.bdg-home-range .bdg-home-title { color: #fff !important; }
.bdg-home-range .bdg-home-title em { color: var(--bh-orange); }
.bdg-home-range .uk-text-lead, .bdg-home-range .el-content p { color: rgba(255, 255, 255, .82); }
@media (min-width: 960px) {
  /* la colonna di testo resta ferma mentre scorrono le card */
  .bdg-home-range > .uk-container > .tm-grid-expand > :first-child { align-self: flex-start; position: sticky; top: 120px; }
}
.bdg-home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bdg-home-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .3s ease, transform .3s ease;
}
.bdg-home-chip:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.bdg-home-chip { padding: 9px 16px; }
.bdg-home-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bh-orange); }
.bdg-home-range .uk-button-primary { border-radius: 999px; }

/* ---------- 3. fascia professionisti ---------- */
.bdg-pro-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 34px;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--bh-orange) 0%, var(--bh-red) 100%);
  color: #fff;
}
@media (min-width: 960px) { .bdg-pro-band { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; } }
.bdg-pro-band__body { position: relative; z-index: 1; }
.bdg-pro-band h2 {
  margin: 14px 0 0;
  font-family: var(--bh-slab);
  font-size: clamp(32px, 5.6vw, 56px);
  line-height: 1.04;
  text-transform: none;
  color: #fff;
}
.bdg-pro-band h2 em { font-style: normal; color: #fff; opacity: .78; }
.bdg-pro-band p { margin: 18px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); }
.bdg-pro-band__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bdg-pro-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--bh-red) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.bdg-pro-band__btn:hover { transform: translateY(-2px); }
.bdg-pro-band__btn span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bh-orange); color: #fff; }
.bdg-pro-band__btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.bdg-pro-band__btn--ghost span { background: #25D366; }
.bdg-pro-band__media { position: relative; z-index: 1; margin: 0; }
.bdg-pro-band__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 24px;
  border: 6px solid rgba(255, 255, 255, .95);
  transform: rotate(2deg);
  box-shadow: 0 30px 60px -30px rgba(40, 10, 0, .7);
}
.bdg-pro-band__sprite {
  position: absolute;
  background: url(/wp-content/3d/bdg-ingredients-atlas.webp) no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(40, 10, 0, .35));
  z-index: 2;
}
/* basil-2 */
.bdg-pro-band__sprite--basil { width: 120px; height: 115px; left: -26px; bottom: -22px; transform: rotate(-18deg); background-size: 419.67% 439.48%; background-position: 0.77% 33.77%; }
/* tomato-1 */
.bdg-pro-band__sprite--tomato { width: 96px; height: 95px; right: -18px; top: -20px; transform: rotate(16deg); background-size: 419.67% 423.14%; background-position: 0.77% 0.77%; }

@media (max-width: 959px) {
  .bdg-home-inspo { padding-top: 56px !important; min-height: 0 !important; }
  .bdg-home-inspo .uk-margin-large-top { margin-top: 0 !important; }
  .bdg-home-range .uk-text-lead { font-size: 17px; line-height: 1.6; }
  .bdg-home-range .uk-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bdg-home-chip, .bdg-pro-band__btn, .bdg-drag-cursor { transition: none; }
}

.bdg-pro-band .bdg-home-eyebrow--light { color: #fff; opacity: .85; }
