/* "Cosa facciamo per te" nelle pagine dei dipartimenti: quattro tessere compatte (icona, titolo, una riga),
   due per riga su telefono e quattro su schermo largo. Ogni dipartimento le veste con il proprio tema
   (variabili --fa-*, scelte dall'attributo data-tema sul contenitore della pagina). */

#fare .mf-fare { --fa-bg: #fff; --fa-bd: #005687; --fa-bw: 2px; --fa-bs: solid; --fa-r: 14px; --fa-sh: 4px 4px 0 #1B6FA8; --fa-shh: 6px 6px 0 #005687; --fa-ink: #005687; --fa-sub: #41474f; --fa-ib: #e3eefa; --fa-ic: #005687; --fa-ibd: #005687; --fa-ibs: solid; --fa-ir: 10px; --fa-arr: #1B6FA8; --fa-img: none; --fa-imgs: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 6px 6px 0; }
@media (min-width: 900px) { #fare .mf-fare { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.mf-pagina #fare a.mf-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 3px; min-height: 112px; padding: 14px 14px 12px; border: var(--fa-bw) var(--fa-bs) var(--fa-bd); border-radius: var(--fa-r); background-color: var(--fa-bg); background-image: var(--fa-img); background-size: var(--fa-imgs); box-shadow: var(--fa-sh); text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.mf-pagina #fare a.mf-card::before { display: none; }
/* la freccia nell'angolo: tutta la tessera e' il link */
.mf-pagina #fare a.mf-card::after { content: "arrow_outward"; position: absolute; top: 12px; right: 12px; font-family: 'Material Symbols Outlined'; font-size: 20px; line-height: 1; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; color: var(--fa-arr); transition: transform 150ms ease; }
.mf-pagina #fare a.mf-card:hover { transform: translate(-2px, -2px); box-shadow: var(--fa-shh); border-color: var(--fa-bd); }
.mf-pagina #fare a.mf-card:hover::after { transform: translate(2px, -2px); }
.mf-pagina #fare a.mf-card:active { transform: none; box-shadow: none; }
.mf-pagina #fare a.mf-card:focus-visible { outline: 3px solid #005687; outline-offset: 3px; }
#fare .mf-card-i { width: 40px; height: 40px; margin: 0 0 8px; border: 2px var(--fa-ibs) var(--fa-ibd); border-radius: var(--fa-ir); background: var(--fa-ib); color: var(--fa-ic); box-shadow: none; }
#fare .mf-card-i .material-symbols-outlined { font-size: 22px !important; }
#fare .mf-card h3 { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15.5px; line-height: 1.2; color: var(--fa-ink); }
#fare .mf-card p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--fa-sub); }
#fare .mf-card-vai { display: none; }
@media (min-width: 900px) {
  .mf-pagina #fare a.mf-card { min-height: 124px; padding: 16px 16px 14px; }
  #fare .mf-card h3 { font-size: 16.5px; }
  #fare .mf-card p { font-size: 13.5px; }
}

/* ---------- un'identita' per dipartimento ---------- */
[data-tema="giurisprudenza"] #fare .mf-fare { --fa-bg: #00466f; --fa-bd: #002b45; --fa-r: 4px; --fa-ink: #fff; --fa-sub: #dcecf9; --fa-ib: #fff; --fa-ic: #00466f; --fa-ibd: #fff; --fa-ir: 4px; --fa-arr: #8fd0ff; --fa-shh: 6px 6px 0 #002b45; --fa-img: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 12px, transparent 12px 30px); }
[data-tema="economia"] #fare .mf-fare { --fa-r: 4px 4px 0 0; --fa-ir: 50%; }
[data-tema="economia"] #fare a.mf-card { border-bottom-style: dashed; border-bottom-width: 3px; }
[data-tema="ingegneria"] #fare .mf-fare { --fa-bg: #00314f; --fa-bd: #8fd0ff; --fa-r: 3px; --fa-ink: #fff; --fa-sub: #dcecf9; --fa-ib: transparent; --fa-ic: #8fd0ff; --fa-ibd: #8fd0ff; --fa-ibs: dashed; --fa-ir: 50%; --fa-arr: #8fd0ff; --fa-shh: 6px 6px 0 #8fd0ff; --fa-img: linear-gradient(rgba(143,208,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(143,208,255,.16) 1px, transparent 1px); --fa-imgs: 20px 20px; }
[data-tema="dicam"] #fare .mf-fare { --fa-r: 6px; --fa-ir: 24px 24px 5px 5px; }
[data-tema="biomorf"] #fare .mf-fare { --fa-bg: #00263d; --fa-bd: #8fd0ff; --fa-r: 12px; --fa-ink: #fff; --fa-sub: #cfe3f5; --fa-ib: #005687; --fa-ic: #8fd0ff; --fa-ibd: #8fd0ff; --fa-ir: 50%; --fa-arr: #8fd0ff; --fa-shh: 6px 6px 0 #8fd0ff; }
[data-tema="chibiofaram"] #fare .mf-fare { --fa-bg: #e8f3fb; --fa-ib: #005687; --fa-ic: #fff; --fa-ibd: transparent; --fa-ir: 0; --fa-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34zM28 100L0 84V66m28 0l28 16v18' fill='none' stroke='%231B6FA8' stroke-opacity='.22' stroke-width='1.5'/%3E%3C/svg%3E"); --fa-imgs: 56px 100px; }
[data-tema="chibiofaram"] #fare .mf-card-i { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); width: 42px; height: 46px; }
[data-tema="cospecs"] #fare .mf-fare { --fa-bg: #1B6FA8; --fa-bd: #00466f; --fa-r: 20px 20px 20px 4px; --fa-ink: #fff; --fa-sub: #fff; --fa-ib: #fff; --fa-ic: #1B6FA8; --fa-ibd: #fff; --fa-ir: 50%; --fa-arr: #fff; --fa-sh: 4px 4px 0 #00466f; --fa-shh: 6px 6px 0 #00263d; }
[data-tema="dimed"] #fare .mf-fare { --fa-bg: #00314f; --fa-bd: #00263d; --fa-bw: 3px; --fa-r: 8px; --fa-ink: #fff; --fa-sub: #cfe3f5; --fa-ib: #fff; --fa-ic: #00314f; --fa-ibd: #fff; --fa-ir: 8px; --fa-arr: #8fd0ff; --fa-shh: 6px 6px 0 #00314f; }
[data-tema="scipog"] #fare .mf-fare { --fa-bd: #002b45; --fa-bw: 3px; --fa-r: 0; --fa-ir: 4px; --fa-ib: #fff; --fa-ibd: #002b45; --fa-sh: 5px 5px 0 #1B6FA8; }
[data-tema="scipog"] #fare .mf-card h3 { text-transform: uppercase; letter-spacing: .02em; font-size: 14.5px; }
[data-tema="scienzeveterinarie"] #fare .mf-fare { --fa-bs: dashed; --fa-r: 22px; --fa-ibs: dashed; --fa-ir: 50%; --fa-sh: 0 8px 18px rgba(0,60,100,.12); --fa-shh: 0 12px 24px rgba(0,60,100,.18); }
[data-tema="mift"] #fare .mf-fare { --fa-bg: #f7fbff; --fa-r: 10px; --fa-ir: 6px; --fa-ib: #fff; --fa-img: linear-gradient(rgba(27,111,168,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(27,111,168,.14) 1px, transparent 1px); --fa-imgs: 16px 16px; }
[data-tema="patologiaumana"] #fare .mf-fare { --fa-r: 22px; --fa-ir: 50%; --fa-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28' viewBox='0 0 160 28'%3E%3Cpath d='M0 14H44l6-10 8 22 6-12h14l6-8 6 16 6-8H160' fill='none' stroke='%231B6FA8' stroke-opacity='.18' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); --fa-imgs: 160px 28px; }
[data-tema="patologiaumana"] #fare a.mf-card { background-repeat: repeat-x; background-position: 0 100%; }

@media (prefers-reduced-motion: reduce) {
  .mf-pagina #fare a.mf-card, .mf-pagina #fare a.mf-card::after { transition: none; }
  .mf-pagina #fare a.mf-card:hover, .mf-pagina #fare a.mf-card:hover::after { transform: none; }
}

/* ---------- telefono: i titoli dell'intro di ogni dipartimento sono centrati ---------- */
@media (max-width: 899px) {
  .gi-testo { text-align: center; }
  .mf-hero.gi-hero .gi-testo h1, .mf-hero.gi-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .gi-pre { display: flex; justify-content: center; }
  .gi-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .ec-testo { text-align: center; }
  .mf-hero.ec-hero .ec-testo h1, .mf-hero.ec-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .ec-pre { display: flex; justify-content: center; }
  .ec-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .ig-testo { text-align: center; }
  .mf-hero.ig-hero .ig-testo h1, .mf-hero.ig-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .ig-pre { display: flex; justify-content: center; }
  .ig-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .dc-testo { text-align: center; }
  .mf-hero.dc-hero .dc-testo h1, .mf-hero.dc-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .dc-pre { display: flex; justify-content: center; }
  .dc-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .bm-testo { text-align: center; }
  .mf-hero.bm-hero .bm-testo h1, .mf-hero.bm-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .bm-pre { display: flex; justify-content: center; }
  .bm-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .cf-testo { text-align: center; }
  .mf-hero.cf-hero .cf-testo h1, .mf-hero.cf-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .cf-pre { display: flex; justify-content: center; }
  .cf-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .vt-testo { text-align: center; }
  .mf-hero.vt-hero .vt-testo h1, .mf-hero.vt-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .vt-pre { display: flex; justify-content: center; }
  .vt-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .co-testo { text-align: center; }
  .mf-hero.co-hero .co-testo h1, .mf-hero.co-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .co-pre { display: flex; justify-content: center; }
  .co-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .di-testo { text-align: center; }
  .mf-hero.di-hero .di-testo h1, .mf-hero.di-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .di-pre { display: flex; justify-content: center; }
  .di-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .sc-testo { text-align: center; }
  .mf-hero.sc-hero .sc-testo h1, .mf-hero.sc-hero .dp-lead { margin-left: auto; margin-right: auto; }
  .sc-pre { display: flex; justify-content: center; }
  .sc-pre::after { content: ""; width: 22px; height: 3px; background: currentColor; }
  .ig-quota { margin-left: auto; margin-right: auto; }
  .pu-hero-t { text-align: center; }
  .pu-hero h1, .pu-hero .pu-lead { margin-left: auto; margin-right: auto; }
}
