.carousel-img-fixed {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Taglia l'immagine in eccesso senza deformarla */
}

.swiper {
    padding-bottom: 40px !important;
}

.swiper .card-body {
    min-height: 100px;
    max-height: 125px;
}
/* =========================
   HOME PAGE - CASA MILANO
   ========================= */

:root {
  --cm-bg: #fcf8f3;
  --cm-surface: #fffdf9;
  --cm-surface-2: #f8f1e7;
  --cm-text: #3b2f2a;
  --cm-text-soft: #7a685c;
  --cm-accent: #b88746;
  --cm-accent-dark: #9f7238;
  --cm-accent-soft: #f3e4d0;
  --cm-border: rgba(90, 62, 43, 0.08);
  --cm-shadow: 0 14px 34px rgba(58, 36, 24, 0.08);
  --cm-shadow-hover: 0 18px 38px rgba(58, 36, 24, 0.14);
}

body {
  background: linear-gradient(to bottom, #fffdf9 0%, #fcf8f3 100%);
  color: var(--cm-text);
}

h1, h2, h3, h4,
.hero-title,
.section-title,
.feature-title {
  font-family: 'Playfair Display', serif;
  color: #2f241d;
}

p {
  color: var(--cm-text-soft);
  line-height: 1.75;
}

.shadow-custom {
  box-shadow: var(--cm-shadow) !important;
}

.bottom_line {
  width: 10rem;
  height: 3px;
  background: linear-gradient(90deg, #d8b07a 0%, #b88746 100%);
  border-radius: 999px;
  margin: 0 auto;
}

.section-kicker,
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cm-accent);
  font-weight: 700;
}

.btn-home-primary {
  background: linear-gradient(135deg, var(--cm-accent) 0%, #d0a064 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(184, 135, 70, 0.22);
  transition: all 0.28s ease;
}

.btn-home-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(184, 135, 70, 0.28);
  background: linear-gradient(135deg, var(--cm-accent-dark) 0%, #be8f55 100%);
}

.btn-home-secondary {
  background: var(--cm-accent-soft);
  color: var(--cm-text);
  border: 1px solid rgba(184, 135, 70, 0.35);
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.28s ease;
}

.btn-home-secondary:hover {
  text-decoration: none;
  color: var(--cm-accent-dark);
  border-color: rgba(184, 135, 70, 0.45);
  transform: translateY(-2px);
}

/* HERO */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 640px;
}

.hero-banner-image {
  width: 100%;
  height: 640px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 19, 12, 0.70) 0%, rgba(30, 19, 12, 0.42) 40%, rgba(30, 19, 12, 0.10) 100%);
  display: flex;
  align-items: center;
}

.hero-banner-content {
  max-width: 640px;
  padding: 2rem 2rem 2rem 4rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
}

.hero-actions .btn {
  min-width: 200px;
}

/* INTRO */
.intro-card {
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9 0%, #f9f2e8 100%);
}

.intro-logo {
  max-width: 180px;
}

#logo {
  width: 512px;
  height: 512px;
}

.intro-text {
  max-width: 760px;
  font-size: 1.06rem;
}

/* EXPERIENCE */
.experience-card {
  border-radius: 26px;
  background: var(--cm-surface);
}

.experience-text-wrap {
  padding: 3rem 2.4rem;
}

.experience-image-wrap {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.experience-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.experience-card:hover .experience-image {
  transform: scale(1.04);
}

/* FILOSOFIA */
.philosophy-card {
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf5ec 100%);
}

/* FEATURE CARDS */
.feature-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfb 0%, #f8f2ea 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.feature-card .card-body {
  padding: 2rem 1.5rem;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--cm-shadow-hover) !important;
}

.feature-card-offset {
  margin-top: 20px;
}

.feature-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f6e7d3 0%, #edd0a9 100%);
  color: var(--cm-accent-dark);
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(184, 135, 70, 0.18);
}

.feature-title {
  margin-bottom: 0.85rem;
}

/* SWIPER / SUGGESTIONI */
.suggestion-wrapper {
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1e8 100%);
}

.swiper {
  padding-bottom: 56px !important;
}

.swiper-slide {
  height: auto;
}

.suggestion-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suggestion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cm-shadow-hover);
}

.carousel-img-fixed,
.suggestion-image {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.4s ease;
}

.suggestion-card:hover .carousel-img-fixed,
.suggestion-card:hover .suggestion-image {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.suggestion-card .card-body {
  min-height: 126px;
  padding: 1rem 1rem 1.2rem;
  background: linear-gradient(180deg, #fffdfb 0%, #f9f4ec 100%);
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 1;
  background: #d9c4aa;
}

.swiper-pagination-bullet-active {
  background: var(--cm-accent);
  transform: scale(1.15);
}

/* CTA FINALE */
.final-cta-card {
  background: linear-gradient(135deg, #fffaf3 0%, #f4e7d6 100%) !important;
  border-radius: 26px;
  overflow: hidden;
}

.final-cta-card .card-body {
  padding: 3.5rem 2rem !important;
}

.cta-text {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* REVEAL ANIMATION */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-banner,
  .hero-banner-image {
    min-height: 560px;
    height: 560px;
  }

  .hero-banner-content {
    padding: 2rem;
    max-width: 100%;
  }

  .experience-text-wrap {
    padding: 2.2rem 1.6rem;
  }

  .feature-card-offset {
    margin-top: 0;
  }

  .carousel-img-fixed,
  .suggestion-image {
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  .hero-banner,
  .hero-banner-image {
    min-height: 520px;
    height: 520px;
  }

  .hero-banner-overlay {
    background:
      linear-gradient(to top, rgba(30, 19, 12, 0.74) 0%, rgba(30, 19, 12, 0.44) 45%, rgba(30, 19, 12, 0.15) 100%);
    align-items: flex-end;
  }

  .hero-banner-content {
    padding: 1.4rem;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .experience-image {
    min-height: 300px;
  }

  .carousel-img-fixed,
  .suggestion-image {
    height: 220px;
  }

  .final-cta-card .card-body {
    padding: 2.5rem 1.25rem !important;
  }
}