/**
 * Homepage – hero, categorie, in evidenza, CTA
 */

/* Hero – full width anche dentro .container */
.home-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: linear-gradient(135deg, var(--wa-nav) 0%, #3d3935 50%, #2d2a26 100%);
  color: #fff;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.home-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
.home-hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}
.home-hero-cta .btn {
  border-radius: 10px;
  font-weight: 500;
}
.home-hero-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* Sezioni generiche */
.home-section {
  padding: 3.5rem 0;
}
.home-section:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.home-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--wa-charcoal);
  margin-bottom: 0.5rem;
  text-align: center;
}
.home-section-lead {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Card categoria */
.category-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.category-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(145deg, #f0ede8 0%, #faf9f7 100%);
}
.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-img {
  transform: scale(1.06);
}
.category-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--wa-muted);
  opacity: 0.5;
}
.category-card-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--wa-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.category-card:hover .category-card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.category-card .card-body {
  padding: 1.25rem;
}
.category-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wa-charcoal);
  margin-bottom: 0.35rem;
}
.category-card-desc {
  line-height: 1.45;
}

/* Sezione in evidenza */
.home-featured .card .card-title {
  font-weight: 600;
  color: var(--wa-charcoal);
}

/* CTA finale – full width come hero */
.home-cta {
  padding: 3rem 0 4rem;
}
.home-cta .container {
  max-width: 900px;
}
.home-cta-box {
  background: linear-gradient(135deg, var(--wa-charcoal) 0%, #3d3935 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--wa-radius-lg);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.home-cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}
.home-cta-text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.home-cta-box .btn-light {
  color: var(--wa-charcoal);
  font-weight: 500;
  border-radius: 10px;
}
.home-cta-box .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* Container homepage: prima sezione senza padding top doppio (il nav già dà spazio) */
.home-page .container.py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.home-page .webapp-main .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
