/* Footer styled after the University of Salerno portal footer (dark grey bands, light text). */
#site-footer { font-size: 14px; line-height: 1.7; }
#site-footer .bg-footer { background-color: #333; color: #f9f9f9; }
#site-footer .bg-inf-footer { border-top: 1px solid #333; padding: 32px 0; background-color: rgb(0 0 0 / .2); }
#site-footer a { color: #f9f9f9; }
#site-footer a:hover { color: #fff; text-decoration: underline; }

#site-footer .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 960px) { #site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #site-footer .footer-grid { grid-template-columns: 1fr; } }

#site-footer ul { list-style: none; margin: 0; padding: 0; }
#site-footer li.divider { height: 12px; }
#site-footer ul.caret li { position: relative; padding-left: 14px; }
#site-footer ul.caret li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  border-left: 5px solid #bbb; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}

#site-footer .footer-brand { text-align: center; }
#site-footer .campus-map { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
#site-footer .campus-map:hover { text-decoration: none; }
#site-footer .campus-map h3 { font-size: 18px; letter-spacing: .08em; margin: 0; color: #fff; }
#site-footer .footer-lab { margin: 22px 0 0; color: #ddd; font-size: 12px; font-family: sans-serif; }
@media (max-width: 960px) { #site-footer .footer-brand { text-align: left; } #site-footer .campus-map { align-items: flex-start; } }
#site-footer .footer-di img { max-width: 100%; height: auto; }
/* Place this column in the last grid track, flush with the right edge */
#site-footer .footer-end { grid-column: -2 / -1; text-align: right; }
@media (max-width: 560px) { #site-footer .footer-end { text-align: left; } }

#site-footer .social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
#site-footer .social a, #site-footer .radio a {
  display: block; text-align: center; padding: 5px 4px; font-size: 12px;
  background: #444; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#site-footer .social a:hover, #site-footer .radio a:hover { background: #555; text-decoration: none; }
#site-footer .radio { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 14px; padding: 6px; background: #ff000a; border-radius: 3px; }
#site-footer .radio a { background: rgb(0 0 0 / .25); font-weight: 600; }
#site-footer .radio a:hover { background: rgb(0 0 0 / .4); }

#site-footer .sub-footer { background-color: #222; color: #f9f9f9; padding: 16px 0; border-top: 1px solid #333; }
#site-footer .sub-footer-row { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
#site-footer .sub-footer p { margin: 0; }
#site-footer .nowrap { white-space: nowrap; }
