:root {
  --msd-burgundy: #ad3f59;
  --msd-black: #030609;
  --msd-gray: #a7a8aa;
  --msd-text: #4f5053;
}

/* Institutional and service content pages */
.content-page__title-band {
  background: var(--msd-gray);
  color: #fff;
  padding: 1.25rem 0;
  text-align: center;
}

.content-page__title-band h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
}

.content-page__cta {
  align-items: center;
  display: inline-flex;
  gap: .75rem;
  margin-top: 1rem;
}

.content-page__cta svg {
  height: 1.2rem;
  width: 1.2rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(18rem, 42%) minmax(0, 1fr);
  min-height: 44rem;
}

.about-intro__visual {
  background: url('/images/msd/fondi/chisiamo.png') center / cover no-repeat;
}

.about-intro__copy {
  align-self: center;
  max-width: 56rem;
  padding: clamp(3rem, 7vw, 7rem);
}

.about-intro__copy h2,
.about-intro__copy h3,
.consulting-copy h2,
.consulting-copy h3,
.service-story h2,
.service-story h3 {
  color: var(--msd-burgundy);
  font-weight: 300;
}

.about-intro__copy p,
.consulting-copy p,
.consulting-copy li,
.service-story p {
  color: var(--msd-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.content-feature-band {
  color: #fff;
  overflow: hidden;
  position: relative;
}

.content-feature-band--burgundy { background: var(--msd-burgundy); }
.content-feature-band--teal { background: #08aaa9; }

.content-feature-band__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-feature {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  min-height: 15rem;
  padding: 3rem clamp(2rem, 5vw, 5rem);
}

.content-feature + .content-feature { border-left: 1px solid rgb(255 255 255 / 18%); }
.content-feature__icon svg { height: 4rem; width: 4rem; }
.content-feature h2 { font-size: 1.35rem; font-weight: 400; margin: 0 0 .35rem; text-transform: uppercase; }
.content-feature p { color: #101114; margin: 0; text-transform: uppercase; }

.consulting-copy {
  background: linear-gradient(rgb(255 255 255 / 91%), rgb(255 255 255 / 91%)), url('/images/msd/immagini/back_cons.jpg') center / cover no-repeat;
}

.consulting-copy__inner {
  max-width: 74rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.content-page--privacy .consulting-copy__inner {
  max-width: 56rem;
}

/* The cookie widget injects its own late stylesheet; keep it behind the contact drawer. */
body.drawer-open .cookie-manage {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.consulting-copy h3 { margin-top: 2.5rem; }
.consulting-copy li + li { margin-top: .45rem; }

.service-story { background: #f5f8fa; }
.service-story--coral { background: #ff514e; }
.service-story--teal { background: #08aaa9; }

.service-story__grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr);
  min-height: 40rem;
  padding-bottom: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(3rem, 7vw, 7rem);
}

.service-story__grid--reverse .service-story__copy { order: 2; }
.service-story__grid--reverse img { order: 1; }
.service-story img { display: block; max-height: 34rem; object-fit: contain; width: 100%; }
.service-story--coral .eyebrow,
.service-story--coral h2,
.service-story--teal .eyebrow,
.service-story--teal h2 { color: #fff; }
.service-story--coral h3,
.service-story--coral p,
.service-story--teal p { color: #111; }

@media (max-width: 991.98px) {
  .about-intro,
  .content-feature-band__grid,
  .service-story__grid {
    grid-template-columns: 1fr;
  }

  .about-intro__visual { aspect-ratio: 16 / 10; }
  .about-intro__copy { max-width: none; padding: 3rem clamp(1.25rem, 6vw, 3.5rem); }
  .content-feature { min-height: 0; padding: 2.5rem clamp(1.25rem, 6vw, 3.5rem); }
  .content-feature + .content-feature { border-left: 0; border-top: 1px solid rgb(255 255 255 / 18%); }
  .service-story__grid { min-height: 0; }
  .service-story__grid--reverse .service-story__copy,
  .service-story__grid--reverse img { order: initial; }
}

@media (max-width: 575.98px) {
  .content-page__title-band { padding: .8rem 0; }
  .content-page__title-band h1 { font-size: 1.75rem; }
  .content-feature { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
  .content-feature__icon svg { height: 2.6rem; width: 2.6rem; }
  .about-intro__copy p,
  .consulting-copy p,
  .consulting-copy li,
  .service-story p { font-size: 1rem; }
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--msd-text);
  font-family: "Rubik", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
body.menu-open,
body.drawer-open { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 92px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: stretch;
  color: #fff;
  background: linear-gradient(110deg, #030609 25%, #454648 100%);
}

.site-logo { display: grid; place-items: center; background: #020406; }
.site-logo img { width: 88px; height: 82px; object-fit: contain; }
.site-header__desktop { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 12px 42px; gap: 12px; }
.site-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 31px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 13px; letter-spacing: 2px; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--msd-burgundy); }
.site-socials { display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-socials a, .site-header__quick a { width: 22px; height: 22px; display: grid; place-items: center; color: #9d9c9b; }
.site-socials a:hover, .site-socials a:focus-visible, .site-header__quick a:hover { color: var(--msd-burgundy); }
.site-socials svg, .site-header__quick svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.site-header__quick, .site-menu-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 1100; width: min(100%, 430px);
  display: flex; flex-direction: column; align-items: center; padding: 30px 28px;
  color: #333; background: #fff; transform: translateX(100%); visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.mobile-menu__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; color: #333; background: none; }
.mobile-menu__close svg { width: 24px; height: 24px; display: block; }
.mobile-menu > img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 28px; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu nav a { text-decoration: none; font-size: 14px; letter-spacing: 3px; }
.mobile-menu nav a.is-active, .mobile-menu nav a:hover { color: var(--msd-burgundy); }
.mobile-menu__quick { display: flex; gap: 16px; margin: 30px 0 22px; }
.mobile-menu__quick a { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 50%; }
.mobile-menu__quick svg { width: 21px; height: 21px; fill: currentColor; }
.mobile-menu small { color: #999; text-align: center; line-height: 1.7; }

.site-footer { min-height: 128px; padding: 28px 20px 18px; background: #030609; color: #909194; text-align: center; }
.site-footer .site-socials a { color: #9d9c9b; }
.site-footer .site-socials a:hover,
.site-footer .site-socials a:focus-visible { color: var(--msd-burgundy); }
.site-footer p { margin: 18px 0 0; font-size: 12px; }
.site-footer p a { color: inherit; text-decoration: none; }
.site-footer p a:hover,
.site-footer p a:focus-visible { color: var(--msd-white); text-decoration: underline; }

.archive-page { min-height: calc(100svh - 220px); padding: 0 0 70px; background: #f7f8fa; }
.archive-page__heading { margin: 0 0 48px; padding: 22px 24px; background: var(--msd-gray); }
.archive-page__heading h1 { margin: 0; color: #fff; font-size: 34px; font-weight: 300; line-height: 1.2; text-align: center; }
.archive-page__inner { max-width: 1370px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 24px; }
.archive-grid[hidden] { display: none; }
.listing-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 8px 24px rgb(26 27 29 / 12%); }
.listing-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef0f2; }
.listing-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.listing-card__media:hover img { transform: scale(1.025); }
.listing-card__content { min-height: 410px; display: flex; flex: 1; flex-direction: column; padding: 25px 24px 27px; }
.listing-card__meta,
.listing-card__category { min-height: 24px; margin: 0 0 16px; color: #616266; font-size: 14px; }
.listing-card__category { color: var(--msd-burgundy); font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; }
.listing-card__meta a,
.listing-card__category a { text-decoration: none; }
.listing-card h2 { margin: 0 0 20px; color: var(--msd-burgundy); font-size: 27px; font-weight: 300; line-height: 1.3; text-align: center; }
.listing-card h2 a { text-decoration: none; }
.listing-card__intro { margin: 0 0 24px; color: #55565a; font-size: 15px; line-height: 1.62; }
.listing-card__fields { margin: 0 0 25px; }
.listing-card__fields > div { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid #e6e6e6; }
.listing-card__fields dt { color: #333; font-weight: 400; }
.listing-card__fields dd { margin: 0; color: var(--msd-burgundy); text-align: right; overflow-wrap: anywhere; }
.listing-card__cta { min-width: 180px; align-self: center; margin-top: auto; padding: 14px 22px; color: #fff; background: var(--msd-burgundy); box-shadow: 0 9px 18px rgb(68 19 31 / 18%); font-size: 12px; letter-spacing: 1.8px; text-align: center; text-decoration: none; text-transform: uppercase; }
.listing-card__cta:hover { color: #fff; background: #8f2f47; }
.listing-card--blog { background: #f5eded; }
.listing-card--blog .listing-card__media { border-top: 3px solid var(--msd-burgundy); }
.listing-card--blog h2 { margin-bottom: 13px; font-size: 21px; }
.listing-card--blog .listing-card__meta { margin-bottom: 20px; color: #98999c; font-size: 11px; font-weight: 500; letter-spacing: 1.7px; text-align: center; text-transform: uppercase; }
.listing-card--portfolio { background: #e2e4e7; }
.listing-card--portfolio .listing-card__content { min-height: 380px; }
.listing-card--portfolio h2 { text-align: left; }
.archive-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.archive-pagination a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e0e1e3; color: var(--msd-burgundy); background: #fff; text-decoration: none; }
.archive-pagination a:hover,
.archive-pagination a:focus-visible,
.archive-pagination a.is-active { border-color: var(--msd-burgundy); color: #fff; background: var(--msd-burgundy); }
.archive-categories { margin: -24px 0 48px; text-align: center; }
.archive-categories summary { width: max-content; max-width: 100%; margin: 0 auto; padding: 17px 28px; color: #fff; background: var(--msd-burgundy); cursor: pointer; font-size: 13px; letter-spacing: 1px; list-style: none; text-transform: uppercase; box-shadow: 0 12px 24px rgb(53 18 28 / 18%); }
.archive-categories summary::-webkit-details-marker { display: none; }
.archive-categories summary span { margin-right: 10px; }
.archive-categories nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 920px; margin: 18px auto 0; }
.archive-categories nav a { padding: 9px 13px; border: 1px solid #dadadd; color: #55565a; background: #fff; font-size: 13px; text-decoration: none; }

@media (max-width: 1050px) {
  .archive-page__heading { margin-bottom: 42px; }
  .archive-page__heading h1 { font-size: 31px; }
  .archive-page--portfolio .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .listing-card--portfolio h2 { font-size: 24px; }
  .listing-card__content { min-height: 375px; }
}

@media (max-width: 900px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .listing-card--blog h2 { font-size: 20px; }
}

@media (max-width: 575px) {
  .archive-page { padding-bottom: 48px; }
  .archive-page__heading { margin-bottom: 34px; padding: 18px 18px; }
  .archive-page__heading h1 { font-size: 27px; }
  .archive-page__inner { padding-right: 20px; padding-left: 20px; }
  .archive-grid { grid-template-columns: 1fr; gap: 22px; }
  .listing-card__content,
  .listing-card--portfolio .listing-card__content { min-height: 0; padding: 22px 20px 25px; }
  .listing-card--portfolio h2 { font-size: 25px; }
  .listing-card--blog h2 { font-size: 21px; }
  .archive-categories { margin-top: -22px; margin-bottom: 40px; }
  .archive-categories summary { width: 100%; }
  .archive-pagination { margin-top: 36px; }
}

.home-page { overflow: hidden; }
.home-desktop-hero { width: 100%; background: #000; overflow: hidden; line-height: 0; }
.home-desktop-hero video { width: 100%; height: auto; display: block; object-fit: contain; object-position: center; }
.home-mobile-hero { display: none; }
.home-service { position: relative; background: #f8fbfd; }
.home-service__inner { min-height: 650px; display: grid; grid-template-columns: minmax(320px, 42%) minmax(0, 58%); align-items: center; gap: 30px; max-width: 1440px; margin: 0 auto; padding: 60px 55px 88px; }
.home-service__copy { position: relative; z-index: 2; max-width: 520px; }
.home-service__copy h2 { margin: 0 0 12px; color: var(--msd-burgundy); font-size: 34px; font-weight: 300; }
.home-service__copy h3 { margin: 0 0 30px; color: #161616; font-size: 17px; font-weight: 400; }
.home-service__copy p { margin: 0 0 32px; font-size: 18px; line-height: 1.7; }
.home-service__inner > img { width: 100%; max-height: 560px; object-fit: contain; }
.home-service--seo .home-service__copy { grid-column: 2; grid-row: 1; justify-self: center; }
.home-service--seo .home-service__inner > img { grid-column: 1; grid-row: 1; }
.home-service--marketing .home-service__copy { max-width: 560px; }
.home-contact-band { position: relative; color: #fff; }
.home-contact-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; opacity: .38; background: radial-gradient(90% 80px at 20% 100%, #fff 0 34%, transparent 35%), radial-gradient(85% 85px at 76% 100%, #fff 0 34%, transparent 35%); }
.home-contact-band--burgundy { background: var(--msd-burgundy); }
.home-contact-band--coral { background: #ff504f; }
.home-contact-band--teal { background: #08acae; }
.home-contact-band__inner { min-height: 330px; display: grid; grid-template-columns: minmax(220px, 34%) 1fr; align-items: center; gap: 60px; max-width: 1320px; margin: auto; padding: 42px 60px 82px; }
.home-contact-band img { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; justify-self: center; }
.home-contact-band h2 { margin: 0 0 4px; font-size: 26px; font-weight: 300; }
.home-contact-band p { margin: 0 0 32px; color: #111; font-size: 18px; }
.home-contact-button { border-color: transparent; box-shadow: 0 12px 25px rgb(0 0 0 / 15%); }

.case-studies { padding: 32px 0 54px; background: #f4f6f9; }
.case-studies h1 { margin: 0 0 26px; color: var(--msd-burgundy); text-align: center; text-transform: uppercase; font-size: 34px; font-weight: 300; }
.case-studies__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-card { display: grid; grid-template-columns: 44% 56%; min-height: 270px; background: #fff; box-shadow: 0 10px 25px rgb(0 0 0 / 8%); }
.case-card__media { display: block; overflow: hidden; background: #111; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 36px 30px; }
.eyebrow, .text-link { color: var(--msd-burgundy); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; }
.case-card h2 { margin: 24px 0 10px; color: var(--msd-burgundy); font-size: 28px; font-weight: 300; }
.case-card h2 a, .text-link { text-decoration: none; }
.case-card__body > p:not(.eyebrow) { line-height: 1.6; }
.text-link { display: inline-block; margin-top: 12px; }

.service-intro { color: #fff; background: var(--msd-burgundy); }
.service-intro > h2 { margin: 0; padding: 18px 30px; background: var(--msd-gray); text-align: center; text-transform: uppercase; font-size: 38px; font-weight: 300; }
.service-intro__features, .marketing-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
.service-intro__features article, .marketing-strip article { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 45px; border-right: 1px solid rgb(255 255 255 / 16%); }
.feature-symbol { width: 74px; height: 74px; flex: 0 0 74px; display: grid; place-items: center; line-height: 1; }
.feature-symbol svg { width: 64px; height: 64px; display: block; }
.service-intro h3, .marketing-strip h2 { margin: 0 0 8px; text-transform: uppercase; font-size: 20px; font-weight: 400; }
.service-intro p, .marketing-strip p { margin: 0; color: #111; text-transform: uppercase; }

.ecommerce-copy { padding: 48px 0; background: #f7fbff; }
.ecommerce-copy article { max-width: 1120px; margin-bottom: 30px; }
.ecommerce-copy h2 { color: var(--msd-burgundy); text-transform: uppercase; font-size: 28px; font-weight: 300; }
.ecommerce-copy p { font-size: 17px; line-height: 1.65; }
.btn-msd { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border: 1px solid var(--msd-burgundy); border-radius: 28px; color: var(--msd-burgundy); background: #fff; text-transform: uppercase; letter-spacing: 4px; }
.btn-msd--solid { border-radius: 0; color: #fff; background: var(--msd-burgundy); }
.marketing-strip { color: #fff; background: #08acae; }

.contact-backdrop { position: fixed; inset: 0; z-index: 1990; background: rgb(0 0 0 / 55%); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.contact-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.contact-drawer { position: fixed; z-index: 2000; inset: 0 auto 0 0; width: min(440px, 100%); padding: 45px 34px; overflow-y: auto; background: #fff; border-right: 8px solid var(--msd-burgundy); transform: translateX(-100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
.contact-drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.contact-drawer__close { position: absolute; top: 14px; right: 14px; border: 0; background: none; width: 34px; height: 34px; }
.contact-drawer__close svg { width: 22px; height: 22px; }
.contact-drawer h2 { color: var(--msd-burgundy); font-weight: 300; }
.contact-drawer form, .contact-drawer label { display: grid; gap: 7px; }
.contact-drawer form { gap: 18px; }
.contact-drawer input, .contact-drawer textarea { width: 100%; padding: 12px; border: 1px solid #ddd; }
.contact-field__control { position: relative; display: block; }
.contact-field__control > svg { position: absolute; z-index: 1; top: 50%; left: 14px; width: 20px; height: 20px; display: block; color: var(--msd-burgundy); transform: translateY(-50%); pointer-events: none; }
.contact-field__control > input { padding-left: 48px; }
.contact-drawer .btn-msd svg { width: 19px; height: 19px; margin-right: 10px; }
.privacy-check { grid-template-columns: 26px 1fr; align-items: start; line-height: 1.35; }
.privacy-check input { appearance: none; width: 22px; height: 22px; padding: 0; border: 1px solid var(--msd-burgundy); border-radius: 4px; }
.privacy-check input:checked { background: var(--msd-burgundy); box-shadow: inset 0 0 0 4px #fff; }
.cookie-trigger { position: fixed; z-index: 1200; right: 28px; bottom: 28px; width: 52px; height: 52px; border: 1px solid #eee; border-radius: 50%; color: var(--msd-burgundy); background: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / 15%); }
.cookie-trigger svg { width: 26px; height: 26px; }

/* Shared native templates: blog and portfolio details. */
.detail-page {
  min-height: calc(100vh - 220px);
  color: #5a5b5e;
  background: #fff;
}

.detail-return-band {
  color: #fff;
  background: var(--msd-gray);
}

.detail-return-band .container-xl {
  min-height: 86px;
  display: flex;
  align-items: center;
}

.detail-return-band a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 15px;
}

.detail-return-band a:hover,
.detail-return-band a:focus-visible {
  color: var(--msd-burgundy);
}

.detail-return-band svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 60px;
}

.detail-article,
.detail-related {
  min-width: 0;
}

.detail-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.detail-heading {
  padding: 30px 34px 24px;
  text-align: center;
}

.detail-heading h1,
.portfolio-detail > h1 {
  margin: 0;
  color: var(--msd-burgundy);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.18;
}

.detail-heading p {
  margin: 18px 0 0;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
}

.detail-heading p span {
  margin: 0 8px;
}

.detail-richtext {
  padding: 24px 36px 40px;
  font-size: 18px;
  line-height: 1.72;
}

.detail-richtext img {
  max-width: 100%;
  height: auto;
}

.detail-richtext h2,
.detail-richtext h3 {
  margin: 34px 0 16px;
  color: var(--msd-gray);
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 1.25;
}

.detail-richtext h2 { font-size: 34px; }
.detail-richtext h3 { font-size: 27px; }
.detail-richtext p { margin: 0 0 18px; }
.detail-richtext a { color: var(--msd-burgundy); }

.detail-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 28px 20px 48px;
}

.detail-share a {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease, filter .2s ease;
}

.detail-share a:hover,
.detail-share a:focus-visible {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.detail-share svg {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 21px;
  margin: 0;
  fill: currentColor;
}

.detail-share__facebook { background: #3d5f9f; }
.detail-share__twitter { background: #050505; }
.detail-share__linkedin { background: #0781b7; }
.detail-share__pinterest { background: #cf2027; }

.detail-related {
  display: grid;
  align-content: start;
  gap: 22px;
}

.detail-related-card {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 18px rgb(0 0 0 / 10%);
}

.detail-related-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.detail-related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.detail-related-card h3 {
  margin: 0;
  padding: 20px 22px 24px;
  color: var(--msd-burgundy);
  text-align: center;
  font-size: 23px;
  font-weight: 300;
  line-height: 1.32;
}

.portfolio-detail {
  max-width: 1180px;
  padding-top: 44px;
  padding-bottom: 58px;
}

.portfolio-detail__image {
  width: 100%;
  max-height: 660px;
  display: block;
  object-fit: contain;
  background: #0d0d11;
}

.portfolio-detail > h1 {
  padding: 38px 24px;
  text-align: center;
}

.portfolio-meta {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.portfolio-meta__row {
  display: grid;
  grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
  gap: 22px;
  padding: 20px 18px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 17px;
}

.portfolio-meta__row:last-child { border-bottom: 0; }
.portfolio-meta__row strong { font-weight: 400; }
.portfolio-meta__row a { color: var(--msd-burgundy); text-decoration: none; }

.portfolio-section {
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.portfolio-section h2 {
  margin: 28px 36px 0;
  color: var(--msd-burgundy);
  font-size: 28px;
  font-weight: 300;
}

.portfolio-section .detail-richtext { padding-top: 14px; }
.portfolio-closing-cta {
  background: #f3f6fa;
}

.portfolio-closing-cta__inner {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr);
  align-items: center;
  overflow: hidden;
}

.portfolio-closing-cta__copy {
  position: relative;
  z-index: 1;
  padding: 64px 32px 76px;
}

.portfolio-closing-cta h2 {
  margin: 0 0 24px;
  color: var(--msd-burgundy);
  font-size: 34px;
  font-weight: 300;
  text-transform: uppercase;
}

.portfolio-closing-cta p {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.65;
}

.portfolio-closing-cta .btn-msd { gap: 10px; }
.portfolio-closing-cta .btn-msd svg { width: 20px; height: 20px; fill: currentColor; }
.portfolio-closing-cta img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 1050px) {
  .site-header {
    position: sticky;
    top: 0;
    min-height: 58px;
    grid-template-columns: 82px 1fr 58px;
  }
  .site-logo img { width: 50px; height: 54px; }
  .site-header__desktop { display: none; }
  .site-header__quick { display: flex; align-items: center; justify-content: center; gap: 28px; }
  .site-header__quick a { width: 24px; height: 24px; color: #fff; }
  .site-header__quick svg { width: 21px; height: 21px; }
  .site-menu-toggle { display: grid; place-items: center; width: 58px; height: 58px; justify-self: end; padding: 0; border: 0; color: #fff; background: transparent; }
  .site-menu-toggle svg { width: 31px; height: 31px; display: block; }
  .mobile-menu { width: 100%; }
  .case-studies__grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 42% 58%; }
  .home-desktop-hero { display: none; }
  .home-mobile-hero { display: block; background: #081a1d; }
  .home-mobile-slide { position: relative; height: calc(100svh - 58px); min-height: 600px; display: grid; align-content: center; justify-items: center; padding: 70px 90px; color: #fff; text-decoration: none; text-align: center; background: linear-gradient(rgb(2 20 24 / 28%), rgb(0 0 0 / 38%)), var(--slide-image) center / cover no-repeat; }
  .home-mobile-slide__title { max-width: 760px; font-size: 42px; font-weight: 300; line-height: 1.1; text-transform: uppercase; }
  .home-mobile-slide__subtitle { margin-top: 38px; font-size: 20px; font-style: italic; }
  .home-mobile-hero .carousel-control-prev, .home-mobile-hero .carousel-control-next { width: 12%; opacity: 1; }
  .home-service__inner { min-height: 590px; padding-inline: 38px; }
  .home-contact-band__inner { padding-inline: 36px; }

  .detail-return-band .container-xl { min-height: 72px; padding-inline: 28px; }
  .detail-layout { grid-template-columns: 1fr; gap: 42px; padding-inline: 28px; }
  .detail-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-heading h1, .portfolio-detail > h1 { font-size: 36px; }
  .detail-richtext { padding-inline: 30px; font-size: 17px; }
  .portfolio-detail { padding-inline: 28px; }
  .portfolio-closing-cta__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .site-header { grid-template-columns: 78px 1fr 58px; min-height: 58px; }
  .site-logo img { width: 48px; height: 52px; }
  .site-header__quick { gap: 22px; }
  .site-header__quick a { width: 26px; height: 26px; }
  .case-studies { padding-top: 22px; }
  .case-studies h1 { font-size: 28px; }
  .case-card { grid-template-columns: 1fr; }
  .case-card__media { aspect-ratio: 16 / 10; }
  .case-card__body { padding: 26px 22px; }
  .service-intro > h2 { font-size: 27px; }
  .service-intro__features, .marketing-strip { grid-template-columns: 1fr; }
  .service-intro__features article, .marketing-strip article { min-height: 175px; padding: 30px 22px; justify-content: flex-start; }
  .ecommerce-copy { padding: 38px 10px; }
  .ecommerce-copy h2 { font-size: 25px; }
  .ecommerce-copy p { font-size: 16px; }
  .cookie-trigger { right: 18px; bottom: 18px; }
  .home-mobile-slide { min-height: 590px; padding: 55px 52px; }
  .home-mobile-slide__title { font-size: 34px; }
  .home-mobile-slide__subtitle { margin-top: 28px; font-size: 17px; }
  .home-service__inner, .home-service--seo .home-service__inner { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 54px 28px 72px; }
  .home-service__copy, .home-service--seo .home-service__copy { grid-column: 1; grid-row: 1; justify-self: stretch; }
  .home-service__inner > img, .home-service--seo .home-service__inner > img { grid-column: 1; grid-row: 2; max-height: 420px; }
  .home-service__copy h2 { font-size: 30px; }
  .home-service__copy p { font-size: 17px; }
  .home-service .btn-msd { width: 100%; }
  .home-contact-band__inner { min-height: 610px; grid-template-columns: 1fr; gap: 38px; padding: 68px 28px 92px; text-align: center; }
  .home-contact-band img { width: 280px; height: 280px; }
  .home-contact-band h2 { font-size: 30px; }
  .home-contact-band p { font-size: 18px; }
  .home-contact-button { width: 100%; }

  .detail-return-band .container-xl { min-height: 62px; padding-inline: 20px; }
  .detail-return-band a { gap: 10px; letter-spacing: 3px; font-size: 13px; }
  .detail-return-band svg { width: 28px; height: 28px; }
  .detail-layout { gap: 30px; padding: 20px 16px 42px; }
  .detail-heading { padding: 24px 18px 18px; }
  .detail-heading h1, .portfolio-detail > h1 { font-size: 29px; }
  .detail-heading p { letter-spacing: 2px; line-height: 1.6; }
  .detail-richtext { padding: 18px 20px 30px; font-size: 16px; line-height: 1.65; }
  .detail-richtext h2 { font-size: 27px; }
  .detail-richtext h3 { font-size: 23px; }
  .detail-related { grid-template-columns: 1fr; }
  .detail-related-card h3 { font-size: 21px; }
  .portfolio-detail { padding: 26px 16px 44px; }
  .portfolio-detail > h1 { padding: 30px 10px; }
  .portfolio-meta__row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding-inline: 8px; font-size: 16px; }
  .portfolio-meta__row > :last-child { text-align: right; overflow-wrap: anywhere; }
  .portfolio-section h2 { margin-inline: 20px; font-size: 25px; }
  .portfolio-closing-cta__inner { min-height: 0; grid-template-columns: 1fr; }
  .portfolio-closing-cta__copy { padding: 48px 28px 24px; text-align: center; }
  .portfolio-closing-cta h2 { font-size: 28px; }
  .portfolio-closing-cta p { margin-inline: auto; font-size: 16px; }
  .portfolio-closing-cta .btn-msd { width: 100%; letter-spacing: 3px; }
  .portfolio-closing-cta img { min-height: 0; max-height: 420px; }
}

.progress-shell {
  min-height: 100vh;
  background: #f3f5f8;
}

.progress-header {
  background: var(--msd-black);
  min-height: 88px;
}

.progress-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.progress-kicker {
  color: var(--msd-burgundy);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.progress-card {
  border: 0;
  border-top: 3px solid var(--msd-burgundy);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgb(13 22 34 / 8%);
}

.progress-bar {
  background: var(--msd-burgundy);
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--msd-burgundy);
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  min-height: calc(100vh - 94px);
  background: #f2f5f9;
}

.contact-page__visual {
  min-height: 660px;
  background: url('/images/msd/immagini/back_2.jpg') center / cover no-repeat;
}

.contact-page__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-page__content h1 {
  margin: 0;
  padding: 16px 24px;
  color: #fff;
  background: #a7a8aa;
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}

.contact-page__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.contact-page__details h2 {
  margin-bottom: 22px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 400;
  text-transform: uppercase;
}

.contact-page__details address {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  font-style: normal;
}

.contact-page__details address a {
  color: inherit;
  text-decoration: none;
}

.contact-page__details .contact-page__email {
  color: var(--msd-burgundy);
}

.contact-page__socials {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
}

.contact-page__socials a {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #111;
}

.contact-page__socials svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767.98px) {
  .contact-page {
    grid-template-columns: 1fr;
  }

  .contact-page__visual {
    min-height: 48vh;
  }

  .contact-page__content h1 {
    padding: 12px 18px;
  }

  .contact-page__details {
    padding: 40px 20px 52px;
  }
}
