/* Pagina del dipartimento DICAM (Civilta' Antiche e Moderne): "dall'antico a oggi".
   Intro con la greca, la stele ad arco come indice con i numeri romani, la linea del tempo sul bordo,
   sezioni come libri (Libro I...), divisori con il meandro e l'omega, finale "Explicit" con il colophon.
   Si appoggia a mift.css e dipartimento.css. Prefisso dc-. */

/* la greca (meandro) come immagine ripetuta */
:root { --dc-greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16' fill='none' stroke='%231B6FA8' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M1 15V1h18v10H7V6h6'/%3E%3C/svg%3E"); }

/* ---------- intro ---------- */
.mf-hero.dc-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 52px; color: #fff; text-align: left; background: #005687; }
.mf-hero.dc-hero::before { display: none; }
.dc-fregio { position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: -1; background: var(--dc-greca) 0 50% / 24px 16px repeat-x; filter: brightness(2.4) saturate(.6); opacity: .55; }
/* un grande omega, appena visibile, dietro il testo */
.dc-omega { position: absolute; z-index: -1; left: -30px; bottom: 40px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 420px; line-height: .8; color: #fff; opacity: .06; pointer-events: none; user-select: none; }

.dc-in { max-width: 1280px; margin: 0 auto; padding: 56px 16px 124px; display: grid; gap: 38px; }
.dc-testo { align-self: center; }
.dc-pre { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fd0ff; }
.dc-pre::before { content: ""; width: 22px; height: 3px; background: #8fd0ff; }
.mf-hero.dc-hero .dc-testo h1 { max-width: 13ch; margin: 0; font-size: clamp(36px, 10.6vw, 54px); line-height: 1.03; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.mf-hero.dc-hero .dc-testo h1 em { color: #8fd0ff; font-style: normal; background: none; }
.mf-hero.dc-hero .dp-lead { max-width: 30rem; margin: 20px 0 0; font-size: 17px; line-height: 1.55; color: #dcecf9; }

/* ---------- la stele: l'indice ---------- */
.dc-stele-w { align-self: center; justify-self: center; width: 100%; max-width: 440px; }
.dc-stele { position: relative; padding: 70px 22px 8px; border: 2px solid #00314f; border-radius: 220px 220px 10px 10px / 130px 130px 10px 10px; background: #f6f9fd; color: #1a1c1e; box-shadow: 0 22px 44px rgba(0,25,45,.38); }
.dc-stele::before { content: ""; position: absolute; inset: 6px; border: 1px solid #9ec0de; border-radius: 214px 214px 6px 6px / 124px 124px 6px 6px; pointer-events: none; }
/* il basamento */
.dc-stele::after { content: ""; position: absolute; left: -14px; right: -14px; top: calc(100% + 2px); height: 14px; border: 2px solid #00314f; border-radius: 3px; background: #cfe2f4; }
.dc-st-t { margin: 0; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: .34em; padding-left: .34em; color: #005687; }
.dc-st-s { margin: 2px 0 12px; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1B6FA8; }
.dc-ind { list-style: none; margin: 0; padding: 0; border-top: 2px solid #005687; }
.mf-pagina .dc-ind a, .dc-ind a { display: grid; grid-template-columns: 46px minmax(0, 1fr) 22px; align-items: center; gap: 8px; min-height: 56px; padding: 9px 8px 9px 2px; color: #1a1c1e; text-decoration: none; transition: background 150ms ease; }
.dc-ind li + li { border-top: 1px solid #c9dcee; }
.dc-ind a:hover { background: #e3eefa; }
.dc-ind a:active { background: #cfe2f4; }
.dc-ind a:focus-visible { outline: 3px solid #005687; outline-offset: -3px; }
.dc-rom { text-align: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .04em; color: #1B6FA8; }
.dc-tt { display: grid; gap: 1px; min-width: 0; }
.dc-tt b { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.25; color: #005687; }
.dc-tt span { font-size: 13.5px; line-height: 1.4; color: #41474f; }
.dc-ind .material-symbols-outlined { font-size: 20px; color: #1B6FA8; transition: transform 150ms ease; }
.dc-ind a:hover .material-symbols-outlined { transform: translateX(3px); }
.dc-st-piede { margin: 0; padding: 10px 0 14px; border-top: 2px solid #005687; text-align: center; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #5c6670; }

/* ---------- linea del tempo ---------- */
.dc-tempo { position: absolute; left: 0; right: 0; bottom: 18px; padding: 0 16px 14px; }
.dc-tempo ol { display: flex; max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; }
.dc-tempo li { position: relative; flex: 1 1 0; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cfe3f5; }
.dc-tempo li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: rgba(143,208,255,.55); }
.dc-tempo li:first-child::before { display: none; }
.dc-tempo li i { position: relative; z-index: 1; display: block; width: 14px; height: 14px; margin: 0 auto 8px; border: 2px solid #8fd0ff; border-radius: 50%; background: #005687; }
.dc-tempo li:last-child { color: #fff; }
.dc-tempo li:last-child i { background: #fff; box-shadow: 0 0 0 4px rgba(143,208,255,.4); }
@media (max-width: 560px) { .dc-tempo li:nth-child(2), .dc-tempo li:nth-child(3), .dc-tempo li:nth-child(5) { display: none; } .dc-tempo li { font-size: 11px; letter-spacing: .06em; } }
.dc-fondo { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--dc-greca) 0 50% / 24px 16px repeat-x; filter: brightness(2.4) saturate(.6); opacity: .55; }

@media (min-width: 900px) {
  .dc-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding: 72px 40px 140px; }
  .mf-hero.dc-hero .dc-testo h1 { font-size: 66px; line-height: 1.02; }
  .mf-hero.dc-hero .dp-lead { font-size: 19px; }
  .dc-stele-w { justify-self: end; }
  .dc-omega { font-size: 560px; left: 20px; bottom: 60px; }
}

/* ---------- sezioni come libri ---------- */
.dp-pagina .mf-sh .dc-kk { gap: 12px; color: #1B6FA8; }
.dc-tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px 6px; background: #005687; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); }

/* ---------- divisori: meandro con l'omega ---------- */
.dp-div.dc-div { gap: 16px; }
.dp-div.dc-div::before, .dp-div.dc-div::after { height: 16px; border: 0; border-radius: 0; background: var(--dc-greca) 0 50% / 24px 16px repeat-x; }
.dc-div span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid #005687; border-radius: 50%; background: #fff; color: #005687; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 24px; line-height: 1; box-shadow: 0 0 0 5px #e3eefa; }

/* ---------- finale: explicit e colophon ---------- */
.mf-cta.dc-cta { position: relative; max-width: 860px; margin: 56px auto; padding: 44px 24px 26px; border: 2px solid #005687; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(0,60,100,.16); text-align: center; overflow: hidden; }
.mf-cta.dc-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: var(--dc-greca) 0 50% / 24px 16px repeat-x; border-bottom: 1px solid #c9dcee; }
.mf-cta.dc-cta .dc-fin { display: block; margin: 0 auto 14px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #1B6FA8; }
.mf-cta.dc-cta h2 { max-width: 26ch; margin: 0 auto 12px; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.1; color: #005687; text-wrap: balance; }
.mf-cta.dc-cta p:not(.dc-fin):not(.dc-colo) { max-width: 34rem; margin: 0 auto 24px; font-size: 17px; line-height: 1.55; color: #1a1c1e; }
.mf-cta.dc-cta .mf-az { justify-content: center; }
.mf-cta.dc-cta .dc-colo { max-width: 30rem; margin: 26px auto 0; padding-top: 14px; border-top: 1px solid #c9dcee; font-size: 13px; font-style: italic; letter-spacing: .02em; color: #5c6670; }
.mf-pagina .dc-cta .mf-btn-pieno { background: #005687; color: #fff; }
.mf-pagina .dc-cta .mf-btn-pieno:hover { background: #00466f; }
.mf-pagina .dc-cta .mf-btn-vuoto { background: #fff; color: #005687; border-color: #005687; }
.mf-pagina .dc-cta .mf-btn-vuoto:hover { background: #e3eefa; }
@media (max-width: 520px) { .mf-cta.dc-cta { padding: 40px 18px 22px; } .mf-cta.dc-cta .mf-az { flex-direction: column; } .mf-cta.dc-cta .mf-btn { width: 100%; } }

@media (max-width: 420px) {
  .dc-ind a { grid-template-columns: 38px minmax(0, 1fr) 18px; }
  .dc-stele { padding: 62px 16px 6px; }
  .dc-st-t { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-ind a, .dc-ind .material-symbols-outlined { transition: none; }
  .dc-ind a:hover .material-symbols-outlined { transform: none; }
}
