/* Ivory v3 (published 29/11/2026): ivory Operazioni and Team on home, tombstones, one navy, one header value,
   gold rule on ivory, valuation epsilon in the left column, Instrument Sans body. Loaded after brand.css. */

/* 1 · One navy on the homepage: Services and the valuation CTA use the page navy */
.services, .val-home-cta { background: #0C1A2E !important; }

/* 2 · Ivory sections */
.section.ivory { background: #F2EBD8 !important; color: #0C1A2E; }
.section.ivory .sec-title, .section.ivory h2, .section.ivory h3 { color: #0C1A2E !important; }
.section.ivory .sec-lead { color: rgba(12,26,46,.74) !important; max-width: 40em; }
/* labels on ivory: navy type and navy epsilon (gold on ivory is 2.0:1) */
.section.ivory .sec-tag, .section.ivory .pf-label { color: #0C1A2E !important; }
.section.ivory .sec-tag::before { background: url(/brand-epsilon-navy.svg) center / contain no-repeat !important; }
.ivory-head { max-width: 760px; margin-bottom: 56px; }

/* 3 · Tombstones: quiet, straight on ivory, no slab, no shadow, no rules */
.tomb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tomb { background: #EAE0C8; padding: 40px 28px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tb-sector { font-family: 'Instrument Sans'; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #0C1A2E; margin: 0 0 28px; }
.tb-logo { height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 0 16px; }
.tb-logo img { max-height: 56px; max-width: 190px; object-fit: contain; }
.tb-logo-b { height: 44px; } .tb-logo-b img { max-height: 44px; max-width: 170px; }
.tb-verb { font-family: 'Instrument Serif'; font-size: 19px; color: rgba(12,26,46,.66); margin: 0 0 16px; }
.tb-parts { font-family: 'Instrument Sans'; font-size: 14px; line-height: 1.5; color: #0C1A2E; margin: -6px 0 16px; max-width: 22em; }
.tb-acq { font-family: 'Instrument Sans'; font-size: 14px; color: rgba(12,26,46,.74); margin: 0 0 20px; max-width: 22em; }
.tb-role { font-family: 'Instrument Sans'; font-weight: 500; font-size: 14px; color: #0C1A2E; margin: auto 0 6px; padding-top: 8px; }
.tb-date { font-family: 'Instrument Sans'; font-size: 13px; letter-spacing: .06em; color: rgba(12,26,46,.62); margin: 0; }
.ivory-more { margin: 48px 0 0; }
.ivory-more a { font-family: 'Instrument Sans'; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #0C1A2E; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(201,162,86,.6); text-underline-offset: 7px; transition: text-decoration-color .25s, text-underline-offset .25s; }
.ivory-more a:hover, .ivory-more a:focus-visible { text-decoration-color: #C9A256; text-underline-offset: 4px; }
.deals-grid-page { padding-top: 64px !important; padding-bottom: 64px !important; }

/* 4 · Homepage people on ivory: ivory-backdrop photos, same hover as the Team page */
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pt-card { margin: 0; }
.pt-card .person-photo { position: relative; width: 100%; aspect-ratio: 800 / 873; overflow: hidden; background: #F2EBD8; }
.pt-card .person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06) translateX(0); transition: transform 0.55s cubic-bezier(0.29, 0.59, 0.23, 0.93); }
@media (hover: hover) and (pointer: fine) { .person-photo:hover img { transform: scale(1.06) translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .pt-card .person-photo img { transition: none; } }
.pt-card figcaption { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.pt-name { font-family: 'Instrument Serif'; font-size: 26px; color: #0C1A2E; }
.pt-role { font-family: 'Instrument Sans'; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #0C1A2E; }
.prev-firms { margin-top: 64px; }
.pf-label { font-family: 'Instrument Sans'; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 22px; }
.prev-firms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 52px; row-gap: 30px; }
.firm-logos li { height: var(--h); line-height: 0; }
.firm-logos li img { height: 100%; width: auto; display: block; }

/* 5 · No hairlines between blocks (same class as the gold line under the Team hero) */
.team-layout, .legal-body > .container { border-top: 0 !important; }
.news-item:first-child { border-top: 0 !important; }
.approach-list, .services .services-grid, .sectors-list, .fam-tags { border-top: 0 !important; }
.split-body .deliv, .split-body .steps, .split-body .led, .split-body .faq, .succ-box,
.val-main .val-form, .val-main .val-contact-form { border-top: 0 !important; }

/* 6 · Team page: layout untouched (Luigi is reworking it). Only the shared kicker treatment. */
.team-rail-kicker.eyebrow { margin: 0 0 20px !important; letter-spacing: .2em !important; }
.news-hero .eyebrow { letter-spacing: .2em !important; }

@media (max-width: 900px) {
  .tomb-grid { grid-template-columns: 1fr; gap: 16px; }
  .pt-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pt-name { font-size: 21px; }
  .prev-firms ul { column-gap: 34px; row-gap: 22px; }
  .firm-logos li { height: calc(var(--h) * .78); }
}

/* 5b · Content lists separated by space, not by rules */
.approach-row, .services .service-row, .services .service-row:nth-child(2n), .services .service-row:nth-last-child(-n+2),
.sector-row, .news-item, .split-body .deliv li, .split-body .step, .fam-tags span { border-top: 0 !important; border-bottom: 0 !important; }
.news-item .logos-band { border-top: 0 !important; padding-top: 0 !important; }

/* 5c · Section boundaries: colour change or space, never a 1px rule */
.section, .place-break, footer, .team-close, .trust { border-top: 0 !important; }
.footer-top, .trust, .stat, .contact .value { border-bottom: 0 !important; }

/* 1b · Landing: one navy (the alternate bands used --bg-deep #1A2D4A) */
.sec.alt, .formsec { background: #0C1A2E !important; }

/* 7 · Header: one value on every page, at the top and after scroll (home and landing used to switch to 0.94) */
nav.top, nav.top.scrolled, .top, .top.scrolled {
  background: rgba(12,26,46,0.78) !important;
  -webkit-backdrop-filter: saturate(1.8) blur(14px) !important; backdrop-filter: saturate(1.8) blur(14px) !important;
}

/* 8 · Gold on ivory, the rule: gold is the brand mark and the interaction accent, never small text on ivory.
   Ivory sections carry the same large background epsilon as the navy heroes (gold, decorative). */
.section.ivory { position: relative; overflow: hidden; }
.section.ivory > .container { position: relative; z-index: 1; }
.section.ivory::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: 40px; right: 48px; height: 150px; aspect-ratio: 3 / 4;
  background: url(/brand-epsilon.svg) center / contain no-repeat; opacity: 0.38;
}
.deals-grid-page::after { display: none; }
@media (max-width: 767px) { .section.ivory::after { top: 28px; right: 20px; height: 96px; } }
.tomb-grid, .pt-grid { position: relative; z-index: 1; }

/* 9 · Valuation: the background epsilon lives in the left column, never across the form */
@media (min-width: 900px) {
  .val-page::after { display: none !important; }
  .val-intro { position: sticky; }
  .val-intro::after {
    content: ''; position: absolute; left: 0; top: calc(100% + 64px); pointer-events: none;
    height: 300px; aspect-ratio: 3 / 4;
    background: url(/brand-epsilon.svg) left top / contain no-repeat; opacity: 0.16;
  }
}
/* form sections separated by space, not by a rule */
.val-form .val-section-label { border-top: 0 !important; }

/* 10 · Body type: Instrument Sans (400 to 700); the old Light 300 maps to 400 */
.hero-sub { font-weight: 400 !important; }
