/* Pagina del dipartimento di Ingegneria: "la tavola di progetto".
   Intro da cianotipia (blu di progetto con la doppia quadrettatura), ingranaggi che girano ingranati, linea di quota,
   indice nel cartiglio della tavola, righello sul bordo, sezioni come tavole (Tav. 1...), divisori con il dado esagonale,
   finale con il riquadro di approvazione. Si appoggia a mift.css e dipartimento.css. Prefisso ig-. */

/* ---------- intro ---------- */
.mf-hero.ig-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 52px; color: #fff; text-align: left; background: #00314f; }
.mf-hero.ig-hero::before { display: block; content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(143,208,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(143,208,255,.22) 1px, transparent 1px), linear-gradient(rgba(143,208,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(143,208,255,.08) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; -webkit-mask-image: none; mask-image: none; }
/* ingranaggi: due ruote dentate che girano ingranate, con gli assi a tratto e punto come nei disegni tecnici */
.ig-ingr { position: absolute; z-index: -1; top: -30px; right: -90px; width: 400px; height: auto; pointer-events: none; opacity: .5; }
.ig-ingr path, .ig-ingr circle { fill: none; stroke: #8fd0ff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ig-ingr .ig-asse { stroke-width: 1; stroke-dasharray: 14 4 2 4; }
.ig-g1 { transform-origin: 0 0; animation: ig-gira1 90s linear infinite; }
.ig-g2 { transform-origin: 0 0; transform: rotate(154.29deg); animation: ig-gira2 45s linear infinite; }
@keyframes ig-gira1 { to { transform: rotate(360deg); } }
@keyframes ig-gira2 { from { transform: rotate(154.29deg); } to { transform: rotate(-565.71deg); } }

.ig-in { max-width: 1280px; margin: 0 auto; padding: 36px 16px 92px; display: grid; gap: 34px; }
.ig-testo { align-self: center; }
.ig-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; }
.ig-pre::before { content: ""; width: 22px; height: 3px; background: #8fd0ff; }
.mf-hero.ig-hero .ig-testo h1 { max-width: 13ch; margin: 0; font-size: clamp(36px, 10.4vw, 54px); line-height: 1.03; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.mf-hero.ig-hero .ig-testo h1 em { color: #8fd0ff; font-style: normal; background: none; text-decoration: underline dashed; text-decoration-thickness: 3px; text-underline-offset: 9px; text-decoration-color: #8fd0ff; }
.mf-hero.ig-hero .dp-lead { max-width: 30rem; margin: 20px 0 0; font-size: 17px; line-height: 1.55; color: #dcecf9; }
/* linea di quota: due frecce e la misura */
.ig-quota { display: flex; align-items: center; gap: 10px; max-width: 30rem; margin: 26px 0 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fd0ff; }
.ig-quota::before, .ig-quota::after { content: ""; flex: 1 1 0; height: 9px; border-left: 2px solid #8fd0ff; background: linear-gradient(#8fd0ff, #8fd0ff) 0 50% / 100% 1px no-repeat; }
.ig-quota::after { border-left: 0; border-right: 2px solid #8fd0ff; }

/* ---------- il cartiglio: l'indice ---------- */
.ig-cartiglio-w { align-self: center; justify-self: center; width: 100%; max-width: 470px; }
.ig-cartiglio { position: relative; border: 2px solid #002b45; background: #f6faff; color: #1a1c1e; box-shadow: 8px 8px 0 #1B6FA8; }
/* i quattro fori di fissaggio agli angoli */
.ig-foro { position: absolute; width: 9px; height: 9px; border: 1.5px solid #6f9bc2; border-radius: 50%; background: #e3eefa; }
.ig-foro:nth-of-type(1) { top: 6px; left: 6px; } .ig-foro:nth-of-type(2) { top: 6px; right: 6px; } .ig-foro:nth-of-type(3) { bottom: 6px; left: 6px; } .ig-foro:nth-of-type(4) { bottom: 6px; right: 6px; }
.ig-ct-top { display: flex; justify-content: space-between; gap: 8px; padding: 14px 22px 8px; border-bottom: 2px solid #005687; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1B6FA8; }
.ig-ct-t { margin: 0; padding: 12px 22px 10px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; color: #005687; }
.ig-ct-t small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1B6FA8; }
.ig-tav { list-style: none; margin: 0; padding: 0; border-top: 1px solid #9ec0de; }
.mf-pagina .ig-tav a, .ig-tav a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; align-items: center; gap: 10px; min-height: 56px; padding: 9px 20px 9px 0; color: #1a1c1e; text-decoration: none; transition: background 150ms ease; }
.ig-tav li + li { border-top: 1px solid #c9dcee; }
.ig-tav a:hover { background: #e3eefa; }
.ig-tav a:active { background: #cfe2f4; }
.ig-tav a:focus-visible { outline: 3px solid #005687; outline-offset: -3px; }
.ig-n { align-self: stretch; display: flex; align-items: center; justify-content: center; border-right: 1px solid #c9dcee; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: #1B6FA8; }
.ig-tt { display: grid; gap: 1px; min-width: 0; }
.ig-tt b { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.25; color: #005687; }
.ig-tt span { font-size: 13.5px; line-height: 1.4; color: #41474f; }
.ig-tav .material-symbols-outlined { font-size: 20px; color: #1B6FA8; transition: transform 150ms ease; }
.ig-tav a:hover .material-symbols-outlined { transform: translateX(3px); }
.ig-ct-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #005687; }
.ig-ct-foot div { padding: 8px 12px 10px; border-left: 1px solid #c9dcee; }
.ig-ct-foot div:first-child { padding-left: 22px; border-left: 0; }
.ig-ct-foot small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5c6670; }
.ig-ct-foot b { display: block; margin-top: 2px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: #005687; }

/* ---------- righello sul bordo ---------- */
.ig-righello { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #cfe8ff; border-top: 2px solid #002b45; }
.ig-righello::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #00314f 0 1px, transparent 1px 10px) 0 0 / 100% 9px no-repeat, repeating-linear-gradient(90deg, #00314f 0 2px, transparent 2px 50px) 0 0 / 100% 18px no-repeat; }
.ig-righello span { position: absolute; right: 16px; bottom: 3px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #00314f; }

@media (min-width: 900px) {
  .ig-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding: 64px 40px 108px; }
  .mf-hero.ig-hero .ig-testo h1 { font-size: 66px; line-height: 1.02; }
  .mf-hero.ig-hero .dp-lead { font-size: 19px; }
  .ig-cartiglio-w { justify-self: end; }
  .ig-ingr { top: -50px; right: auto; left: 38%; width: 560px; opacity: .55; }
}

/* ---------- sezioni come tavole ---------- */
.dp-pagina .mf-sh .ig-kk { gap: 12px; color: #1B6FA8; }
.ig-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 16px 0 12px; background: #005687; color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }

/* ---------- divisori: righello con il dado ---------- */
.dp-div.ig-div { gap: 16px; }
.dp-div.ig-div::before, .dp-div.ig-div::after { height: 10px; border: 0; border-radius: 0; background: repeating-linear-gradient(90deg, #1B6FA8 0 1px, transparent 1px 9px) 0 0 / 100% 7px no-repeat, linear-gradient(#1B6FA8, #1B6FA8) 0 100% / 100% 2px no-repeat; }
.ig-div span { position: relative; flex: none; width: 46px; height: 46px; background: #005687; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.ig-div span::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; background: #f7f9fc; }

/* ---------- finale: approvazione della tavola ---------- */
.mf-cta.ig-cta { max-width: 860px; margin: 56px auto; padding: 36px 24px 28px; border: 2px solid #005687; border-radius: 4px; background: #fff; box-shadow: 8px 8px 0 #1B6FA8; text-align: center; }
.mf-cta.ig-cta .ig-fin { display: block; margin: 0 auto 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1B6FA8; }
.mf-cta.ig-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.ig-cta p:not(.ig-fin) { max-width: 34rem; margin: 0 auto 24px; font-size: 17px; line-height: 1.55; color: #1a1c1e; }
.mf-cta.ig-cta .mf-az { justify-content: center; margin-bottom: 26px; }
.ig-appr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -24px -28px; border-top: 2px solid #005687; text-align: left; }
.ig-appr div { padding: 10px 16px 12px; border-left: 1px solid #c9dcee; }
.ig-appr div:first-child { border-left: 0; padding-left: 24px; }
.ig-appr small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5c6670; }
.ig-appr b { display: block; margin-top: 2px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: #005687; }
.ig-appr .ig-fir { border-bottom: 0; }
.ig-appr .ig-fir b { height: 18px; border-bottom: 2px dotted #1B6FA8; }
.mf-pagina .ig-cta .mf-btn-pieno { background: #005687; color: #fff; }
.mf-pagina .ig-cta .mf-btn-pieno:hover { background: #00466f; }
.mf-pagina .ig-cta .mf-btn-vuoto { background: #fff; color: #005687; border-color: #005687; }
.mf-pagina .ig-cta .mf-btn-vuoto:hover { background: #e3eefa; }
@media (max-width: 520px) { .mf-cta.ig-cta { padding: 30px 18px 24px; } .ig-appr { margin: 0 -18px -24px; } .ig-appr div:first-child { padding-left: 18px; } .mf-cta.ig-cta .mf-az { flex-direction: column; } .mf-cta.ig-cta .mf-btn { width: 100%; } }

@media (max-width: 420px) {
  .ig-tav a { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 8px; padding-right: 14px; }
  .ig-ct-t { font-size: 19px; }
  .ig-ct-foot b, .ig-appr b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-g1, .ig-g2 { animation: none; }
  .ig-tav a, .ig-tav .material-symbols-outlined { transition: none; }
  .ig-tav a:hover .material-symbols-outlined { transform: none; }
}
