/* =========================================================
   INGEMA CUSTOM - HERO
   ========================================================= */

.ing-hero{ padding: 28px 0; }
.ing-hero__card{
  display:flex;
  gap: 28px;
  align-items: stretch;
  background:#fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.ing-hero__copy{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ing-hero__cta-center{
  margin-top: auto;
  padding-top: 16px; /* aria sopra */
}
/* ---  Titolo e Sottotitolo    --- */

.ing-hero__title{
  margin: 0 0 10px;
  line-height: 1.1;
  font-size: clamp(24px, 3.2vw, 40px); /* mobile -> desktop */
}

.ing-hero__subtitle{
  margin: 0 0 18px;
  opacity: .8;
  font-size: clamp(14px, 1.25vw, 16px);
}

/* Props text: non troppo grande su mobile */
.ing-hero__prop-txt b{
  font-size: 0.95em;   /* relativo al tema */
}
.ing-hero__prop-txt span{
  font-size: 0.85em;
}
/* --- END Titolo e Sottotitolo --- */

.ing-hero__cta{ display:flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.ing-hero__btn{ border-radius: 12px; font-weight: 600; }

/* CTA2 + CTA3: bordo verde più spesso */
.ing-hero__btn--ghost{
  background: transparent;
  border-width: 2px !important;
  border-color: #5aa974 !important;
  color: #2e4d3a !important;
}
.ing-hero__btn--ghost:hover{
  border-color: #2e4d3a !important;
  background-color: #2e4d3a !important;
  color: #ffffff !important;
}

/* CTA center: variante ghost arancione */
.ing-hero__btn--center{
  border-width: 2px;
  border-color: #e85b0c;
  color: #e85b0c;
  background: transparent;
}

.ing-hero__btn--center:hover{
  border-color: #e85b0c;
  background-color: #e85b0c;
  color: #ffffff;
}

.ing-hero__props{ display:grid; gap: 12px; margin-top: 14px; }
.ing-hero__prop{ display:flex; gap: 10px; align-items:flex-start; }

.ing-hero__badge{
  width: 38px; 
  height: 38px;
  min-width: 38px;       /* IMPORTANTISSIMO: evita che flex lo schiacci */
  min-height: 38px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.06);
  font-size: 18px;
  flex: 0 0 38px;        /* blocca dimensione in flex */
  box-sizing: border-box;
  overflow: hidden;      /* evita che l’icona “esca” e sembri rettangolo */
}

/* FontAwesome dentro al badge: centrata e “compatta” */
.ing-hero__badge i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;       /* puoi alzare/abbassare */
  width: 1em;
  height: 1em;
}
.ing-hero__prop-txt b{ display:block; font-size: 15px; }
.ing-hero__prop-txt span{ display:block; opacity:.75; font-size: 13px; }

.ing-hero__swiper{
  width:100%;
  border-radius: 18px;
  overflow:hidden;
}
.ing-hero__img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Props layout variants */
.ing-hero__props{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.ing-hero__props--list{
  grid-template-columns: 1fr;
}

.ing-hero__props--horizontal{
  grid-template-columns: repeat(var(--ing-props-cols, 3), minmax(0, 1fr));
}

.ing-hero__props--cards{
  grid-template-columns: repeat(var(--ing-props-cols, 3), minmax(0, 1fr));
}


.ing-hero__prop{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.ing-hero__props--cards .ing-hero__prop{
  padding:12px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  background:#fff;
}

.ing-hero__badge-img{
  width:24px;
  height:24px;
  object-fit:contain;
  display:block;
}

.ing-hero__prop-link{
  display:inline-block;
  margin-top:6px;
  text-decoration:underline;
  font-size:13px;
  opacity:.9;
}

/* =========================================================
   INGEMA CUSTOM - HERO - SLIDES
   ========================================================= */

.ing-hero__visual{
  flex: 1 1 0;
  min-width: 0;
  display:flex;

  /* slider quadrato responsive */
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 800px; /* opzionale */
}

.ing-hero__swiper,
.ing-hero__swiper .swiper-wrapper,
.ing-hero__swiper .swiper-slide{
  width: 100%;
  height: 100%;
}

/* Swiper pagination (pallini) Bianco */
.ing-hero__swiper .swiper-pagination-bullet{
  background: rgba(255,255,255,.6);
  opacity: 1;
}

.ing-hero__swiper .swiper-pagination-bullet-active{
  background: #ffffff;
}
/* --- Disattiva Frecce sliders ---*/
.ing-hero__swiper .swiper-button-prev,
.ing-hero__swiper .swiper-button-next{
  display:none;
}

/* =========================================================
   HERO - CTA centrale
   ========================================================= */

.ing-hero__cta-center{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

.ing-hero__btn--center{
  width:33%;
  min-width:220px;
  text-align:center;
  border-radius:12px;
}

/* responsive */
@media (max-width:992px){
  .ing-hero__btn--center{
    width:100%;
  }
}

/* =========================================================
   HERO - Regole Mobile
   ========================================================= */

/* =========================================================
   HERO — Mobile & Tablet tweaks (<= 992px)
   Scopo:
   - ridurre spazi verticali
   - spostare lo slider sopra il testo
   - CTA centrate su 2 righe: [CTA1] poi [CTA2 CTA3]
   - props sempre 1 colonna per evitare layout stretti
   ========================================================= */
@media (max-width: 992px){

  /* Spaziatura esterna: evita “troppo sopra / poco sotto” */
  .ing-hero{
    padding-top: 10px;
    padding-bottom: 30px;
  }

  /* Card: layout a colonna + padding ridotto */
  .ing-hero__card{
    display: flex;          /* sicurezza: se un domani cambia */
    flex-direction: column;
    padding: 18px;          /* desktop: 36px */
    gap: 18px;
    border-radius: 16px;
    margin-bottom: 30px;    /* separazione dal blocco successivo */
  }

  /* Ordine contenuti: prima slider, poi copy */
  .ing-hero__visual{ order: -1; }
  .ing-hero__copy{ order: 1; }

  /* Props: forzate a 1 colonna su mobile */
  .ing-hero__props{
    margin-top: 10px;
    gap: 10px;
  }
  .ing-hero__props--horizontal,
  .ing-hero__props--cards{
    grid-template-columns: 1fr;
  }

  /* CTA: centrate, CTA2+CTA3 simmetriche */
  .ing-hero__cta{
    justify-content: center;
    gap: 10px;
    margin: 10px 0 14px;
  }

  /* CTA1: riga singola (larghezza controllata) */
  .ing-hero__cta .ing-hero__btn:nth-child(1){
    width: 100%;
    max-width: 300px;
  }

  /* CTA2 + CTA3: seconda riga */
  .ing-hero__cta .ing-hero__btn:nth-child(2),
  .ing-hero__cta .ing-hero__btn:nth-child(3){
    min-width: 140px;
    justify-content: center;
  }

  /* CTA center sotto props: centrata e non enorme */
  .ing-hero__cta-center{
    margin-top: 14px;
  }
  .ing-hero__btn--center{
    max-width: 300px;
  }
}

/* =========================================================
   INGEMA CUSTOM - HERO - FIX RESPONSIVE (stretch + mid widths)
   ========================================================= */

/* 1) Evita lo “stiramento” verticale che rompe lo slider */
.ing-hero__card{
  align-items: flex-start; /* era stretch */
}

/* 2) Dai proporzioni più stabili alle due colonne su desktop */
.ing-hero__copy{
  flex: 1 1 56%;
}
.ing-hero__visual{
  flex: 1 1 44%;
  max-width: none;         /* togliamo il “tappo” da 800px in flex */
  align-self: flex-start;  /* sicurezza: non si stiracchia */
}

/* 3) Breakpoint “intermedio” (qui è dove di solito si rompe) */
@media (max-width: 1200px){
  .ing-hero__card{
    flex-direction: column;
  }
  .ing-hero__visual{
    order: -1;
    /* un filo meno “alto” del quadrato su schermi medi */
    aspect-ratio: 16 / 10;
  }
}

/* 4) Mobile: immagine più “panoramica” per evitare blocco troppo alto */
@media (max-width: 768px){
  .ing-hero__visual{
    aspect-ratio: 16 / 9;
  }
}