/* Draft v4 (proposte-avorio, not published). Loaded after ivory-v3.css. */

/* 1 · Tombstones: same warm panel, now with structure. Fixed logo stages so the
   marks sit at one height across the row, sizes balanced by logo proportion,
   and a deeper warm footer band that carries Empiria's role and the date. No outline, no shadow. */
.tomb-grid { gap: 28px; align-items: stretch; }
.tomb { padding: 0; background: #EAE0C8; justify-content: flex-start; }
.tomb-main { width: 100%; padding: 44px 32px 36px; display: flex; flex-direction: column; align-items: center; flex: 1 0 auto; }
.tb-sector { margin: 0 0 36px; font-size: 10.5px; letter-spacing: .24em; }
.tb-logo { height: 76px; margin: 0; width: 100%; }
.tb-logo img { max-height: none; max-width: 86%; width: auto; }
.tb-logo-b { height: 60px; }
.tb-logo-b img { max-height: none; max-width: 80%; }
.tb-verb { font-size: 20px; line-height: 1.2; margin: 18px 0 18px; color: rgba(12,26,46,.70); }
.tb-parts { margin: -4px 0 6px; font-size: 14px; line-height: 1.55; }
.tb-parts + .tb-verb { margin-top: 14px; }
.tb-acq { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; }
.tb-foot { width: 100%; margin-top: auto; background: #E1D4B4; padding: 22px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tb-foot .tb-role { margin: 0; padding: 0; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: #0C1A2E; }
.tb-foot .tb-date { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(12,26,46,.72); }
@media (max-width: 900px) {
  .tomb-grid { gap: 20px; }
  .tomb-main { padding: 36px 24px 30px; }
  .tb-sector { margin-bottom: 28px; }
  .tb-logo { height: 68px; } .tb-logo-b { height: 54px; }
  .tb-logo img { transform: scale(.92); }
}

/* 1b · Tombstone hover (pointer devices only): the card rises 4px like a lifted print,
   warms a shade, the strip deepens. Transform only, so the row never reflows. */
.tomb { transition: transform .45s cubic-bezier(.22,.61,.36,1), background-color .45s ease, box-shadow .45s ease; }
.tb-foot { transition: background-color .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .tomb:hover { transform: translateY(-4px); background: #E7DCC1; box-shadow: 0 18px 30px -24px rgba(12,26,46,.45); }
  .tomb:hover .tb-foot { background: #DBCCA8; }
}
.tomb:focus-within { transform: translateY(-4px); background: #E7DCC1; box-shadow: 0 18px 30px -24px rgba(12,26,46,.45); }
.tomb:focus-within .tb-foot { background: #DBCCA8; }

/* 2 · Parlano di noi: an ivory section like Operazioni and Team (home: right after the London photo;
   transactions: after the announcements). Warm-panel cards like the tombstones, led by the outlet's own logo. */
.press-sec .sec-tag { color: #0C1A2E !important; }
.press-sec .sec-tag::before { background: url(/brand-epsilon-navy.svg) center / contain no-repeat !important; }
.press-sec .sec-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; margin: 0 0 20px; }
.press-sec .sec-title { color: #0C1A2E !important; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(36px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 24px; }
.press-sec .sec-lead { color: rgba(12,26,46,.76) !important; max-width: 40em; font-size: 17px; line-height: 1.65; margin: 0; }
.press-head { max-width: 760px; margin-bottom: 56px; }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.press-item { background: #EAE0C8; transition: transform .45s cubic-bezier(.22,.61,.36,1), background-color .45s ease, box-shadow .45s ease; }
.press-item a { display: flex; flex-direction: column; height: 100%; padding: 36px 40px 32px; color: #0C1A2E; text-decoration: none; }
.press-logo { display: flex; align-items: flex-end; height: 50px; margin: 0 0 28px; }
.press-logo img { height: var(--lh); width: auto; display: block; }
.press-title { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.22; letter-spacing: -0.005em; margin: 0 0 32px; color: #0C1A2E; max-width: 26em; }
.press-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.press-date { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(12,26,46,.72); }
.press-cta { font-size: 12px; font-weight: 600; 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; }
@media (hover: hover) and (pointer: fine) {
  .press-item:hover { transform: translateY(-4px); background: #E7DCC1; box-shadow: 0 18px 30px -24px rgba(12,26,46,.45); }
  .press-item a:hover .press-cta { text-decoration-color: #C9A256; text-underline-offset: 4px; }
}
.press-item:focus-within { transform: translateY(-4px); background: #E7DCC1; box-shadow: 0 18px 30px -24px rgba(12,26,46,.45); }
.press-list { position: relative; z-index: 1; }
.press-item a:focus-visible { outline: 2px solid #0C1A2E; outline-offset: 4px; }
.press-item a:focus-visible .press-cta { text-decoration-color: #C9A256; }
@media (max-width: 900px) {
  .press-head { margin-bottom: 36px; }
  .press-list { grid-template-columns: 1fr; gap: 16px; }
  .press-item a { padding: 28px 24px 26px; }
  .press-logo { height: 42px; margin-bottom: 22px; }
  .press-logo img { height: calc(var(--lh) * .84); }
  .press-sec .sec-lead { font-size: 16px; }
  .press-title { font-size: 22px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .tomb, .tb-foot, .press-item { transition: none; }
  .tomb:hover, .tomb:focus-within, .press-item:hover, .press-item:focus-within { transform: none; }
}

/* 4 · Team on phones: the open card and its profile panel are one lighter surface,
   inset 12px around the card so email and LinkedIn no longer touch its edge,
   and 32px of page navy below the panel before the next row (animated with the
   height, so closing stays one motion). Desktop and tablet untouched. */
@media (max-width: 619px) {
  .team-grid { column-gap: 24px; }
  .team-grid > .person::before { top: -12px; left: -12px; right: -12px; }
  .team-panel {
    margin: 0 -12px;
    transition: grid-template-rows 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), margin-bottom 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .team-panel.is-open { margin-bottom: 32px; }
  .team-panel-body { padding: 6px 12px 26px; }
}
@media (max-width: 619px) and (prefers-reduced-motion: reduce) { .team-panel { transition: none; } }
