/* =========================================================
   HOME PAGE
   Usato solo da index.html
   ========================================================= */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.15;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-side img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-contacts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.home-lead {
  max-width: 880px;
}

/* ---------- Soluzioni tecniche ---------- */

.home-solutions {
  background: transparent;
}

.home-center {
  margin-top: 28px;
  text-align: center;
}

.home-problem-grid,
.home-catalog-grid {
  margin-top: 24px;
}

.home-problem,
.home-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 105px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.home-problem:hover,
.home-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.home-problem strong,
.home-category strong {
  font-size: 1.05rem;
}

.home-problem span,
.home-category span {
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Catalogo / Area B2B ---------- */

#catalogo-professionale {
  padding-bottom: 28px;
}

#area-clienti-b2b {
  padding-top: 28px;
}

.home-b2b-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
}

.home-b2b-access .muted {
  margin-bottom: 0;
}

/* ---------- Competenza tecnica ---------- */

#competenza-tecnica {
  padding-bottom: 35px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}

#competenza-tecnica .about {
  grid-template-columns: 1.2fr .8fr;
}

.home-proof {
  padding: 26px;
}

.about .preview {
  max-width: 520px;
  margin-left: auto;
  padding: 14px;
}

.about .preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Servizi ---------- */

#servizi {
  padding-top: 35px;
}

.feature {
  padding: 18px;
}

.feature h3 {
  margin: .4rem 0 .3rem;
}

.card.feature {
  overflow: hidden;
}

.horeca-home-card,
.laundry-home-card {
  display: flex;
  flex-direction: column;
}

.card.feature.horeca-home-card .horeca-home-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px !important;
}

.horeca-home-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 4px 4px;
  text-align: left;
}

.horeca-home-content .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.horeca-home-content h3 {
  margin: 0 0 10px;
}

.horeca-home-content p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.laundry-home-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.laundry-home-images figure {
  margin: 0;
}

.card.feature.laundry-home-card .laundry-home-images img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px !important;
}

.laundry-home-images figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: .88rem;
  line-height: 1.25;
}

.laundry-home-images figcaption strong {
  display: block;
}

.laundry-home-images figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
}

.laundry-home-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 4px 4px;
  text-align: left;
}

.laundry-home-content h3 {
  margin: 0 0 10px;
}

.laundry-home-content p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.horeca-home-content .button,
.laundry-home-content .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Contatti home ---------- */

#contatti .card {
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* ---------- Responsive home ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .home-b2b-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .about .preview {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .home-problem-grid,
  .home-catalog-grid {
    grid-template-columns: 1fr !important;
  }

  .laundry-home-images {
    grid-template-columns: 1fr;
  }
}
