
.mm-sec { padding: 84px 40px; }

@keyframes mmHeroIn { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
.mm-phero { position: relative; min-height: clamp(440px,72vh,680px); display: flex; align-items: flex-end; overflow: hidden; background: var(--mm-graphite-dk); animation: mmHeroIn .7s ease both; }
@media (prefers-reduced-motion:reduce) {
  .mm-phero { animation:none; }
}
.mm-phero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mm-phero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,rgba(6,6,6,.28) 0%,rgba(6,6,6,.10) 42%,rgba(6,6,6,.80) 100%); }
.mm-phero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px,5vw,60px) clamp(46px,8vh,92px); }
.mm-phero-eyebrow { font-size: .72rem; font-weight: var(--fw-semibold); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--mm-champagne); display: block; margin-bottom: 16px; }
.mm-phero-title { font-family: var(--font-title); font-size: clamp(2.6rem,6vw,4.6rem); font-weight: var(--fw-medium); letter-spacing: var(--ls-tight); line-height: 1.02; color: var(--mm-white); }
.mm-phero-text { font-family: var(--font-body); font-size: 1rem; font-weight: var(--fw-light); line-height: 1.7; text-align: left; color: rgba(255,255,255,.82); margin-top: 18px; max-width: 52ch; text-shadow: 0 1px 14px rgba(6,6,6,.5); }
@media (min-width:901px) {
  .mm-phero-inner { max-width: none; margin: 0; padding-left: clamp(40px,5vw,72px); padding-right: clamp(40px,5vw,72px); padding-bottom: clamp(56px,9vh,120px); }
  .mm-phero-text { max-width: 600px; }
}

.mm-pl-intro { max-width: 760px; margin: 0 auto; padding: clamp(56px,8vw,92px) 24px clamp(8px,2vw,20px); text-align: center; }
.mm-pl-eyebrow { font-size: .72rem; font-weight: var(--fw-semibold); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--mm-champagne); display: block; margin-bottom: 18px; }
.mm-pl-text { font-size: var(--fs-body-lg); font-weight: var(--fw-light); line-height: 1.7; color: var(--mm-text-secondary); margin: 0 auto; max-width: 56ch; }
.mm-pl-text a { color: var(--mm-black); border-bottom: 1px solid var(--mm-platinum); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.mm-pl-text a:hover { color: var(--mm-champagne); border-color: var(--mm-champagne); }

.mm-catnav { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(18px,3vw,30px) 0 clamp(4px,1vw,10px); }
.mm-catnav-track { display: flex; gap: 10px; justify-content: center; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 2px clamp(24px,5vw,40px) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.mm-catnav-track::-webkit-scrollbar { display: none; }
.mm-catnav-track.is-scrollable { cursor: grab; justify-content: flex-start; }
.mm-catnav-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.mm-catnav-track.is-dragging a { pointer-events: none; }
.mm-catnav::before, .mm-catnav::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; }
.mm-catnav::before { left: 0; background: linear-gradient(90deg,var(--mm-white),transparent); }
.mm-catnav::after { right: 0; background: linear-gradient(270deg,var(--mm-white),transparent); }
.mm-catnav.can-scroll-left::before { opacity: 1; }
.mm-catnav.can-scroll-right::after { opacity: 1; }
.mm-catpill { flex: 0 0 auto; white-space: nowrap; font-family: var(--font-title); font-size: .72rem; font-weight: var(--fw-medium); letter-spacing: .1em; text-transform: uppercase; color: var(--mm-text-secondary); background: var(--mm-white); border: 1px solid var(--mm-border); border-radius: 999px; padding: 11px 22px; line-height: 1; transition: color .22s,border-color .22s,background .22s; }
.mm-catpill:hover { border-color: var(--mm-black); color: var(--mm-black); background: var(--mm-off-white); }
.mm-catpill:focus-visible { outline: 2px solid var(--mm-champagne); outline-offset: 2px; }

.mm-feat-head { text-align: center; margin-bottom: 44px; }
.mm-feat-title { font-family: var(--font-title); font-size: var(--fs-h2); font-weight: var(--fw-medium); letter-spacing: var(--ls-tight); line-height: var(--lh-heading); color: var(--mm-black); margin-top: 10px; }
.mm-feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.mm-feat-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--mm-border-lt); border-radius: 3px; background: var(--mm-off-white); color: inherit; transition: border-color .25s,box-shadow .25s; }
.mm-feat-card:hover { border-color: var(--mm-black); box-shadow: 0 14px 44px rgba(6,6,6,.08); }
.mm-feat-card.is-hero { grid-column: span 2; grid-row: span 2; }
.mm-feat-card:not(.is-hero) { aspect-ratio: 1 / 1; }
.mm-feat-media { height: 100%; overflow: hidden; background: var(--mm-off-white); }
.mm-feat-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.mm-feat-card.is-hero .mm-feat-media img { aspect-ratio: auto; height: 100%; }
.mm-feat-card:hover .mm-feat-media img { transform: scale(1.04); }
.mm-feat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; background: linear-gradient(0deg,rgba(6,6,6,.78) 0%,rgba(6,6,6,.30) 60%,rgba(6,6,6,0) 100%); color: var(--mm-white); }
.mm-feat-cat { font-size: .7rem; font-weight: var(--fw-medium); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.mm-feat-name { font-family: var(--font-title); font-size: 1.35rem; font-weight: var(--fw-medium); letter-spacing: .01em; text-transform: uppercase; color: var(--mm-white); margin-top: 5px; }
.mm-feat-card.is-hero .mm-feat-name { font-size: 1.7rem; }
.mm-feat-discover { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--mm-white); margin-top: 12px; opacity: 0; transform: translateY(6px); transition: opacity .3s,transform .3s,gap .2s; }
.mm-feat-card:hover .mm-feat-discover { opacity: 1; transform: none; gap: 11px; }
.mm-feat-icon-badge { position: absolute; top: 16px; left: 16px; font-size: .6rem; font-weight: var(--fw-semibold); letter-spacing: .18em; text-transform: uppercase; color: var(--mm-black); background: rgba(255,255,255,.9); padding: 5px 10px; border-radius: 2px; z-index: 2; }

.mm-cat { background: var(--mm-black); }
.mm-cat-head { text-align: center; margin-bottom: 46px; }
.mm-cat-title { font-family: var(--font-title); font-size: var(--fs-h2); font-weight: var(--fw-medium); letter-spacing: var(--ls-tight); color: var(--mm-white); margin-top: 10px; }
.mm-cat-grid { display: grid; grid-template-columns: repeat(var(--cat-cols,6),1fr); gap: clamp(14px,1.4vw,20px); }
.mm-cat-card { position: relative; display: block; overflow: hidden; border-radius: 3px; min-height: 300px; color: var(--mm-white); background: var(--mm-graphite-dk); }
.mm-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.mm-cat-card:hover img { transform: scale(1.05); }
.mm-cat-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 22px; }
.mm-cat-name { font-family: var(--font-title); font-size: 1.22rem; font-weight: var(--fw-medium); letter-spacing: -0.01em; color: var(--mm-white); text-shadow: 0 2px 16px rgba(6,6,6,.5); }
.mm-cat-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 11px; font-size: .66rem; letter-spacing: var(--ls-wider); text-transform: uppercase; color: rgba(255,255,255,.92); }
.mm-cat-go i { transition: transform .25s; }
.mm-cat-card:hover .mm-cat-go i { transform: translateX(5px); }

.mm-cat-slider { position: relative; }
.mm-cat-slider .mm-cat-track { display: flex; gap: clamp(14px,1.4vw,20px); overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 6px; }
.mm-cat-slider .mm-cat-track::-webkit-scrollbar { display: none; }
.mm-cat-slider .mm-cat-track .mm-cat-card { flex: 0 0 400px; width: 400px; height: 300px; min-height: 0; scroll-snap-align: start; }
.mm-cat-slider .mm-cat-track .mm-cat-card.is-cat-more { display: block; }
.mm-cat-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(6,6,6,.55); color: var(--mm-white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .22s,border-color .22s,opacity .25s; }
.mm-cat-arrow i { font-size: 18px; }
.mm-cat-arrow:hover { background: rgba(6,6,6,.85); border-color: rgba(255,255,255,.7); }
.mm-cat-arrow--prev { left: 16px; }
.mm-cat-arrow--next { right: 16px; }
.mm-cat-arrow.is-disabled { opacity: 0; pointer-events: none; }
.mm-cat-slider::before, .mm-cat-slider::after { content: ""; position: absolute; top: 0; bottom: 6px; width: 46px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; }
.mm-cat-slider::before { left: 0; background: linear-gradient(90deg,var(--mm-black),transparent); }
.mm-cat-slider::after { right: 0; background: linear-gradient(270deg,var(--mm-black),transparent); }
.mm-cat-slider.can-scroll-left::before { opacity: 1; }
.mm-cat-slider.can-scroll-right::after { opacity: 1; }
.mm-cat-more { display: none; }
.mm-cat-more[hidden] { display: none; }

.mm-all-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(18px,2vw,28px); }
@media (min-width:901px) {
  .mm-all-grid:not(:has(> :nth-child(3))) { display: flex; justify-content: center; }
  .mm-all-grid:not(:has(> :nth-child(3))) > * { flex: 0 0 calc((100% - 3 * clamp(18px,2vw,28px)) / 4); min-width: 0; }
}
@media (max-width:1200px) and (min-width:901px) {
  .mm-all-grid:not(:has(> :nth-child(3))) > * { flex-basis: calc((100% - 2 * clamp(18px,2vw,28px)) / 3); }
}
.mm-prod-card { position: relative; display: block; color: inherit; }
.mm-prod-media { position: relative; overflow: hidden; border: 1px solid var(--mm-border-lt); border-radius: 3px; background: var(--mm-off-white); aspect-ratio: 1/1; outline: 0 solid var(--mm-black); outline-offset: -2px; transition: outline-color .25s, outline-width .25s; }
.mm-prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.mm-prod-card:hover .mm-prod-media img { transform: scale(1.05); }
.mm-prod-card:hover .mm-prod-media { outline-color: var(--mm-black); outline-width: 2px; }
.mm-prod-cat { display: block; margin-top: 14px; font-size: .66rem; font-weight: var(--fw-semibold); letter-spacing: .18em; text-transform: uppercase; color: var(--mm-champagne); }
.mm-prod-name { font-family: var(--font-title); font-size: 1.12rem; font-weight: var(--fw-medium); letter-spacing: .01em; color: var(--mm-black); margin-top: 5px; transition: color .2s; }
.mm-prod-card:hover .mm-prod-name { color: var(--mm-champagne); }
.mm-prod-card.is-hidden { display: none; }
.mm-all-more { display: flex; justify-content: center; margin-top: clamp(36px,4vw,54px); }
.mm-all-more[hidden] { display: none; }

.mm-xp-head { text-align: center; margin-bottom: 44px; }
.mm-xp-title { font-family: var(--font-title); font-size: var(--fs-h2); font-weight: var(--fw-medium); letter-spacing: var(--ls-tight); color: var(--mm-black); margin-top: 10px; }
.mm-xp-text { font-size: var(--fs-body-lg); font-weight: var(--fw-light); line-height: 1.7; color: var(--mm-text-secondary); margin: 16px auto 0; max-width: 60ch; }
.mm-xp-text strong { color: var(--mm-text-primary); font-weight: var(--fw-medium); }
.mm-xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mm-xp-card { position: relative; display: block; overflow: hidden; border-radius: 3px; min-height: 380px; color: var(--mm-white); background: var(--mm-graphite-dk); }
.mm-xp-grid .mm-xp-card img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center center; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.mm-xp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(6,6,6,.84) 0%,rgba(6,6,6,.4) 50%,rgba(6,6,6,.1) 100%); transition: background .45s; }
.mm-xp-card:hover img { transform: scale(1.05); }
.mm-xp-card:hover::after { background: linear-gradient(0deg,rgba(6,6,6,.5) 0%,rgba(6,6,6,.14) 56%,rgba(6,6,6,0) 100%); }
.mm-xp-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 36px; }
.mm-xp-eyebrow { font-size: .66rem; font-weight: var(--fw-semibold); letter-spacing: .2em; text-transform: uppercase; color: var(--mm-champagne); text-shadow: 0 1px 14px rgba(6,6,6,.55); }
.mm-xp-name { font-family: var(--font-title); font-size: 1.6rem; font-weight: var(--fw-medium); color: var(--mm-white); margin: 8px 0 0; text-shadow: 0 2px 18px rgba(6,6,6,.55); }
.mm-xp-cta { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--mm-white); margin-top: 16px; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 3px; transition: border-color .25s; text-shadow: 0 1px 12px rgba(6,6,6,.6); }
.mm-xp-cta i { transition: transform .25s; }
.mm-xp-card:hover .mm-xp-cta { border-color: var(--mm-white); }
.mm-xp-card:hover .mm-xp-cta i { transform: translateX(5px); }

.mm-prodcta { background: var(--mm-graphite-dk); color: var(--mm-white); text-align: center; position: relative; overflow: hidden; }
.mm-prodcta::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../logo/Pattern__M-oblique__white-motif.svg") no-repeat center; background-size: cover; opacity: .04; }
.mm-prodcta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.mm-prodcta-title { font-family: var(--font-title); font-size: var(--fs-h2); font-weight: var(--fw-medium); letter-spacing: var(--ls-tight); line-height: var(--lh-heading); color: var(--mm-white); margin-top: 10px; }
.mm-prodcta-text { font-size: var(--fs-body); font-weight: var(--fw-light); line-height: 1.7; color: rgba(255,255,255,.72); margin: 16px auto 0; max-width: 52ch; }
.mm-prodcta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

@media (max-width:1200px) and (min-width:901px) {
  .mm-cat-grid { grid-template-columns: repeat(3,1fr); }
  .mm-all-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:900px) {
  #main { overflow-x: hidden; }
  .mm-sec { padding: 56px 20px; }
  .mm-feat-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .mm-feat-card.is-hero { grid-column: span 2; grid-row: auto; }
  .mm-feat-card.is-hero .mm-feat-media img { aspect-ratio: 16/10; height: auto; }
  .mm-feat-name { font-size: 1.25rem; }
  .mm-feat-card.is-hero .mm-feat-name { font-size: 1.45rem; }
  .mm-feat-discover { opacity: 1; transform: none; }
  .mm-feat-more-mobile { display: none; }
  .mm-cat-grid { grid-template-columns: 1fr; }
  .mm-cat-card { min-height: 230px; }
  .mm-cat-name { font-size: 1.3rem; }
  .mm-cat-slider { overflow: hidden; }
  .mm-cat-slider .mm-cat-track { display: grid; grid-template-columns: 1fr; gap: 16px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .mm-cat-slider .mm-cat-track .mm-cat-card { flex: none; min-height: 230px; }
  .mm-cat-grid .mm-cat-card.is-cat-more { display: none; }
  .mm-cat-grid .mm-cat-card.is-cat-more.is-visible { display: block; }
  .mm-cat-slider .mm-cat-track .mm-cat-card.is-cat-more { display: none; }
  .mm-cat-slider .mm-cat-track .mm-cat-card.is-cat-more.is-visible { display: block; }
  .mm-cat-arrow { display: none; }
  .mm-cat-slider::before, .mm-cat-slider::after { display: none; }
  .mm-cat-more { display: flex; justify-content: center; margin-top: 32px; }
  .mm-all-grid { grid-template-columns: 1fr 1fr; }
  .mm-xp-grid { grid-template-columns: 1fr; gap: 16px; }
  .mm-xp-card { min-height: 320px; }
  .mm-phero { min-height: clamp(380px,64vh,520px); }
  .mm-phero-title{font-size:clamp(2.6rem,6vw,4.6rem);line-height:1.02;}
  .mm-phero-text{font-size:1rem;line-height:1.7;color:rgba(255,255,255,.82);font-weight:var(--fw-light);}
  .mm-phero-eyebrow span{display:block;line-height:1.5;}
  .mm-phero-eyebrow .mm-phero-eyebrow-sep{display:none;}
  .mm-phero-text{display:none;}
  .mm-phero-inner{display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;padding-top:clamp(30px,9vh,64px);padding-bottom:30px;text-align:left;}
}
@media (max-width:560px) {
  .mm-feat-grid { grid-template-columns: 1fr; }
  .mm-feat-card.is-hero { grid-column: auto; }
  .mm-feat-card.is-hero .mm-feat-media img { aspect-ratio: 1/1; }
  .mm-cat-grid { grid-template-columns: 1fr; }
  .mm-all-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mm-prod-name { font-size: 1rem; }
}

/* 7 nov 2026 (Galaxy S25, 360px): su mobile le card categoria restavano larghe 400px (regola dello slider desktop) dentro un
   contenitore di ~320px: il lato destro veniva tagliato (divano Seating tagliato, piano Consoles a filo). Larghezza = contenitore. */
@media (max-width:900px){
  .mm-cat-slider .mm-cat-track .mm-cat-card{width:100%;max-width:100%;}
}
