/* Footer compatto (25/11/2026) – ECCEZIONE alla regola "footer intoccabile", autorizzata da Alessandro solo per questo.
   SOLO CSS: testi, link, crediti foto e ordine restano IDENTICI (nessun display:none, nessun text-transform nuovo).
   Telefono (fino a 768 px): caratteri piu' piccoli ma mai sotto i 13 px, meno spazio, link su due colonne, icone piu' piccole.
   Computer: un po' piu' compatto anche li' (richiesta di Alessandro: "anche nel desktop troppo ciccione"). */

/* ---------- footer delle pagine del sito (IT/EN): <footer> con .footer-content / .footer-bottom ---------- */
footer:not(.site-footer):not(.page-footer):not(.lab-footer):not(.footer) { padding: 36px 5vw 24px !important; }
footer .footer-logo { height: 30px !important; margin-bottom: 14px !important; }
footer .footer-content .footer-links { gap: 4px 26px !important; margin-bottom: 14px !important; }
footer .footer-content .footer-links a { min-height: 36px !important; padding: 4px 10px !important; }
footer .footer-bottom > p:first-of-type { font-size: 1.12rem !important; margin-bottom: 6px !important; }
footer .footer-bottom > p:nth-of-type(2) { margin-bottom: 12px !important; }
footer .footer-bottom > div { line-height: 1.55 !important; margin: 6px auto !important; }
footer .footer-bottom > div > p { margin: 2px 0 !important; }
footer .contact-card { margin-top: 6px !important; margin-bottom: 6px !important; }

@media (max-width: 768px) {
  footer:not(.site-footer):not(.page-footer):not(.lab-footer):not(.footer) { padding: 22px 16px 16px !important; }
  footer .footer-logo { height: 24px !important; margin-bottom: 10px !important; }
  footer .footer-content .footer-links {
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 12px !important; margin-bottom: 12px !important;
  }
  footer .footer-content .footer-links a {
    min-height: 40px !important; padding: 6px 4px !important; font-size: 14px !important; line-height: 1.25 !important;
  }
  footer .footer-bottom > p:first-of-type { font-size: 16px !important; line-height: 1.35 !important; margin-bottom: 4px !important; }
  footer .footer-bottom > p:nth-of-type(2) { font-size: 13px !important; letter-spacing: 1.5px !important; margin-bottom: 10px !important; }
  footer .footer-bottom, footer .footer-bottom > div, footer .footer-bottom p, footer .footer-lang-note { font-size: 13px !important; }
  footer .footer-bottom > div { line-height: 1.45 !important; margin: 4px auto !important; }
  footer .contact-card { margin-top: 6px !important; margin-bottom: 6px !important; }
  footer .contact-card__link { padding: 8px 12px !important; gap: 10px !important; }
  footer .contact-card__link svg { width: 18px !important; height: 18px !important; }
  footer .contact-card__email { font-size: 14px !important; }
  footer .contact-card__label { font-size: 13px !important; }
  footer .contact-card button, footer .contact-card__copy { padding: 8px 10px !important; font-size: 13px !important; }
  footer small, footer .footer-bottom small { font-size: 13px !important; }
}

/* ---------- footer degli articoli del blog: <footer class="site-footer"> ---------- */
.site-footer { padding: 30px 18px 26px !important; }
.site-footer .footer-svg { margin-bottom: 8px !important; }
.site-footer .footer-tagline { margin-bottom: 10px !important; }
.site-footer .footer-socials { margin-bottom: 10px !important; }
.site-footer .footer-links { margin-bottom: 8px !important; }
.site-footer .footer-divider { margin: 8px auto !important; }
@media (max-width: 768px) {
  .site-footer { padding: 22px 14px 18px !important; }
  .site-footer .footer-svg { width: 30px !important; height: 30px !important; }
  .site-footer .footer-brand { font-size: 1.05rem !important; margin-bottom: 2px !important; }
  .site-footer .footer-tagline { font-size: 13px !important; letter-spacing: 1px !important; }
  .site-footer .footer-social-link svg { width: 18px !important; height: 18px !important; }
  .site-footer .footer-links { gap: 4px 14px !important; font-size: 13px !important; }
  .site-footer .footer-copy { font-size: 13px !important; letter-spacing: .5px !important; }
}

/* ---------- varianti minori (privacy/cookie, termini, pagine AI, laboratorio): solo meno spazio ---------- */
footer.page-footer, footer.footer, footer.lab-footer { padding-top: 24px !important; padding-bottom: 20px !important; }
@media (max-width: 768px) {
  footer.page-footer, footer.footer, footer.lab-footer { padding: 18px 14px 16px !important; }
  footer.lab-footer p, footer.lab-footer a, footer.lab-footer span, footer.lab-footer small, footer.lab-footer li { font-size: max(13px, 1em) !important; }
  footer.lab-footer small, footer.lab-footer .lab-footer-legal, footer.lab-footer .lab-footer-meta { font-size: 13px !important; }
}
