/* ── Nasconde elementi dell'header/footer di base ── */
.site-top-bar { display: none !important; }
.site-header  { display: none !important; }
.site-footer  { display: none !important; }

/* ── LOGO BAR con sfumatura bianco → blu ── */
.logo-bar-custom {
  background: linear-gradient(135deg, #ffffff 45%, #0066cc 55%);
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* HEADER */
.logo-bar-custom .logo-link img { height: 70px; width: auto; display: block; }
.logo-bar-custom .social-area { display: flex; align-items: center; gap: 4px; }
.logo-bar-custom .social-area a {
  color: #fff !important;
  font-size: 25px;
  padding: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo-bar-custom .social-area a:hover { opacity: 0.8; }

/* ── NAV BAR ── */
.nav-bar-custom { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 0 24px; }
.nav-bar-custom ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-bar-custom ul li a {
  display: block;
  padding: 14px 20px;
  font-family: "Taviraj", serif;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-bar-custom ul li a:hover,
.nav-bar-custom ul li a.current { color: #0066cc; }

/* ── BANNER LARGO ── */
.footer-banner { width: 100%; display: block; line-height: 0; }
.footer-banner img { width: 100%; height: auto; display: block; }

/* ── LOGHI ISTITUZIONALI ── */
.footer-loghi {
  background: #fff;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid #e0e0e0;
}
.footer-loghi img { height: 48px; width: auto; object-fit: contain; }

/* ── FOOTER BLU ── */
.site-footer-custom {
  background: #003366;
  color: rgba(255,255,255,0.75);
  padding: 40px 32px 24px;
  font-family: "Fira Sans", sans-serif;
  font-size: 13px;
  line-height: 1.8;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-col { flex: 1; min-width: 160px; }
.footer-col strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; }
.footer-col ul li a:hover { color: #fff; text-decoration: underline; }
.footer-col-logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col-logo img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.7;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom strong { color: #fff; }

/* ── Icona cartella blu nelle card sottosezioni ── */
.card-icon { font-size: 0 !important; }
.card-icon::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f07b";
  font-size: 24px;
  color: #0066cc;
}

/* ── Icone tipo file/link nel contenuto ── */
.content-body a .file-icon {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-size: 0.85em;
  margin-right: 4px;
  vertical-align: middle;
  opacity: 0.75;
}
.content-body a:hover .file-icon { opacity: 1; }

@media (max-width: 768px) {
  .logo-bar-custom { padding: 5px 12px; }
  .logo-bar-custom .logo-link img { height: 50px; }
  .nav-bar-custom { padding: 0 12px; }
  .footer-loghi { padding: 16px; gap: 20px; }
  .site-footer-custom { padding: 32px 16px 20px; }
  .footer-inner { gap: 24px; }
}
