/* Chi siamo — hand-built layout: full-bleed bands alternating with
   asymmetric text sections. No cards, no radii, text sits on the photograph. */

.mdcs {
  --ink: #141414;
  --paper: #fff;
  --accent: #f5c43f;
  --muted: #6f6a64;
  --rule: rgba(20, 20, 20, .14);
  --rule-light: rgba(255, 255, 255, .22);

  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

.mdcs * { box-sizing: border-box; }

.mdcs h1, .mdcs h2, .mdcs h3, .mdcs .mdcs-num {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0;
}

.mdcs p { margin: 0 0 1.1em; }
.mdcs p:last-child { margin-bottom: 0; }

.mdcs-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* asymmetric grid: the empty left column is the point */
.mdcs-offset {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 0 60px;
}

.mdcs-offset > * { grid-column: 2; }

.mdcs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

/* ---------------------------------------------------------------- hero */
.mdcs-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 40px 120px;
  background: #2a231d center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.mdcs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, .58) 0%, rgba(12, 10, 8, .28) 40%, rgba(12, 10, 8, .55) 100%);
}

.mdcs-hero > * { position: relative; z-index: 1; }

.mdcs-hero h1 {
  color: #fff !important;
  font-size: clamp(3rem, 9vw, 7.5rem);
  max-width: 15ch;
}

.mdcs-hero .mdcs-kicker {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin: 28px auto 0;
  max-width: 46ch;
}

/* ---------------------------------------------------------------- text sections */
.mdcs-section { padding: clamp(80px, 11vw, 170px) 0; }

.mdcs-lead {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  max-width: 22ch;
}

.mdcs-lead + .mdcs-body { margin-top: 56px; }

.mdcs-h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.mdcs-h2 + .mdcs-body { margin-top: 36px; }

.mdcs-body {
  font-size: 1.0625rem;
  color: #3b3730;
  max-width: 62ch;
}

.mdcs-body strong { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- full-bleed bands */
.mdcs-band {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 150px) 0;
  background: #2a231d center / cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

.mdcs-band--plain { min-height: 78vh; }

/* a directional scrim keeps the photograph readable instead of veiling it flat */
.mdcs-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 9, 7, .82) 0%, rgba(10, 9, 7, .62) 38%, rgba(10, 9, 7, .12) 72%, rgba(10, 9, 7, .05) 100%);
}

.mdcs-band--right::before {
  background: linear-gradient(260deg, rgba(10, 9, 7, .82) 0%, rgba(10, 9, 7, .62) 38%, rgba(10, 9, 7, .12) 72%, rgba(10, 9, 7, .05) 100%);
}

.mdcs-band--plain::before {
  background: linear-gradient(180deg, rgba(10, 9, 7, .35) 0%, rgba(10, 9, 7, .1) 50%, rgba(10, 9, 7, .35) 100%);
}

.mdcs-band .mdcs-wrap { position: relative; z-index: 1; width: 100%; }

.mdcs-band h2,
.mdcs-band h3 {
  /* the Elementor kit colours headings globally and outranks inheritance */
  color: #fff;
}

.mdcs-band h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 13ch;
}

.mdcs-band .mdcs-body { color: rgba(255, 255, 255, .88); max-width: 44ch; }

.mdcs-col { max-width: 560px; }
.mdcs-band--right .mdcs-col { margin-left: auto; }

/* ---------------------------------------------------------------- figures on a band */
.mdcs-figures { margin-top: 48px; }

.mdcs-num {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--accent);
}

.mdcs-num-label {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin: 6px 0 0;
}

.mdcs-list { list-style: none; margin: 38px 0 0; padding: 0; }

.mdcs-list li {
  padding: 15px 0;
  border-top: 1px solid var(--rule-light);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .9);
}

.mdcs-list li:last-child { border-bottom: 1px solid var(--rule-light); }

/* ---------------------------------------------------------------- generations */
.mdcs-gens {
  display: grid;
  /* same split as .mdcs-offset, so the entries line up under the heading */
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px 60px;
  align-items: start;
  margin-top: 64px;
}

.mdcs-gens > .mdcs-ritratto { grid-row: 1 / span 3; margin: 0; }
.mdcs-ritratto img { display: block; width: 100%; height: auto; }

.mdcs-ritratto figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .75;
}

.mdcs-gen { grid-column: 2; border-top: 2px solid var(--ink); padding-top: 26px; }

.mdcs-gen h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); }

.mdcs-gen .mdcs-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 22px;
}

.mdcs-gen .mdcs-year {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 0 0 14px;
}

.mdcs-gen p:not(.mdcs-role):not(.mdcs-year) { font-size: 1rem; color: #46413a; }

/* ---------------------------------------------------------------- certifications */
.mdcs-rows { margin-top: 48px; border-top: 1px solid var(--rule); }

.mdcs-row {
  border-bottom: 1px solid var(--rule);
}

.mdcs-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
}

.mdcs-row summary::-webkit-details-marker { display: none; }

.mdcs-row summary::after {
  content: "+";
  font-family: Archivo, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform .25s ease;
}

.mdcs-row[open] summary::after { transform: rotate(45deg); }

.mdcs-row summary:hover { color: #8a6d12; }

.mdcs-row-body { padding: 0 0 26px; max-width: 62ch; color: #46413a; }

.mdcs-note {
  margin-top: 28px;
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- reveal */
.mdcs-r { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.mdcs-r.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .mdcs-band { background-attachment: scroll; }
  .mdcs-hero, .mdcs-band--plain { background-position: 68% center; }
  .mdcs-offset { grid-template-columns: 1fr; gap: 0; }
  .mdcs-offset > * { grid-column: 1; }
  .mdcs-gens { grid-template-columns: 1fr; gap: 40px; }
  .mdcs-gen { grid-column: 1; }
  .mdcs-gens > .mdcs-ritratto { grid-row: auto; max-width: 360px; }
  .mdcs-band--right .mdcs-col { margin-left: 0; }
  .mdcs-band::before,
  .mdcs-band--right::before { background: linear-gradient(180deg, rgba(10,9,7,.62) 0%, rgba(10,9,7,.72) 100%); }
}

@media (max-width: 640px) {
  .mdcs-wrap { padding: 0 22px; }
  .mdcs-hero { padding: 120px 22px 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .mdcs-r { opacity: 1; transform: none; transition: none; }
  .mdcs-row summary::after { transition: none; }
}
