/* Shared category openings, based on the approved Events typography. */
#inizio.mm-category-opening .mm-title {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(56px, 7vw, 100px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: balance;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
#inizio.mm-category-opening a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 16px 20.8px;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
}
/* Film pages: title, unobscured film, then the enquiry link on white. */
#inizio.mm-category-opening--film {
  display: block;
  height: auto;
  min-height: 0;
  margin: var(--mm-top, 100px) 0 0;
  padding: 0;
  background: #fff;
}
#inizio.mm-category-opening--film .mm-category-heading {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 5vw, 64px) 20px;
  text-align: center;
}
#inizio.mm-category-opening--film .mm-title { color: #554536; text-shadow: none; }
#inizio.mm-category-opening--film .mm-category-cta {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 20px;
  box-sizing: border-box;
  background: #fff;
}
#inizio.mm-category-opening--film a.button { color: #554536; background: transparent; }
#inizio.mm-category-opening--film a.button:hover { background: #554536; color: #fff; border-color: #554536; }
#inizio.mm-category-opening--film a.button:focus-visible { outline: 3px solid #554536; outline-offset: 5px; }
.mm-room-walks.mm-room-text-only { background: #fff; border: 0; }
/* Photo pages: the same centred overlay and outlined action as Events. */
#inizio.mm-category-opening--photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: clamp(420px, 48vw, 650px);
  margin: var(--mm-top, 100px) 0 0;
  padding: 30px 20px;
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
  background: #29251d;
}
#inizio.mm-category-opening--photo > figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  z-index: -2;
}
#inizio.mm-category-opening--photo picture { display: block; width: 100%; height: 100%; }
#inizio.mm-category-opening--photo > figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none !important;
}
#inizio.mm-category-opening--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(25, 23, 16, .43);
  pointer-events: none;
}
#inizio.mm-category-opening--photo .mm-open__copy {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 25px;
  background: none;
  text-align: center;
}
#inizio.mm-category-opening--photo .mm-title { color: #fff; text-shadow: 0 2px 14px #0005; }
#inizio.mm-category-opening--photo a.button { color: #fff; background: #27241d45; }
#inizio.mm-category-opening--photo a.button:hover { color: #554536; background: #fff; border-color: #fff; }
#inizio.mm-category-opening--photo a.button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
#percorsi { scroll-margin-top: calc(var(--mm-top, 100px) + 20px); }
@media (max-width: 767px) {
  #inizio.mm-category-opening .mm-title { font-size: clamp(45px, 13vw, 65px); }
  #inizio.mm-category-opening a.button { padding: 12px 18px; font-size: 11px; }
  #inizio.mm-category-opening--photo { height: auto; aspect-ratio: 2000 / 1084; padding: 20px 12px; }
  #inizio.mm-category-opening--photo .mm-open__copy { gap: 16px; }
}
/* Mobile refinement: preserve desktop and Events, compact only these openings. */
@media (max-width: 767px) {
  #inizio.mm-production-opening.mm-category-opening .mm-title {
    font-size: clamp(26px, 8vw, 42px);
    white-space: nowrap;
    text-wrap: nowrap;
  }
  #inizio.mm-category-opening.mm-category-opening--film .mm-title {
    font-size: clamp(28px, 7.6vw, 40px);
  }
  #inizio.mm-category-opening.mm-category-opening--film .mm-category-heading {
    padding: 20px 16px;
  }
  #inizio.mm-category-opening.mm-category-opening--film .mm-category-cta {
    padding: 16px 20px;
  }
  #inizio.mm-category-opening--film + .mm-chapter {
    padding-top: 22px;
  }
}
