/* Testata e footer condivisi — Spazio Sviluppo Monte Romano */
:root{
  --verde-scuro:#1F4A2C;
  --oro:#B98A2F;
  --raggio:14px;
  --ombra:0 2px 6px rgba(22,51,95,.06), 0 14px 34px rgba(22,51,95,.09);
}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid var(--oro);outline-offset:3px;border-radius:4px}

.container{max-width:1140px;margin:0 auto;padding:0 24px}

.btn{
  display:inline-flex;align-items:center;gap:.55em;
  font-family:var(--font-body);font-weight:700;font-size:1rem;
  padding:.85em 1.6em;border-radius:999px;border:2px solid transparent;
  text-decoration:none;cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .18s;
}
.btn-primario{background:var(--verde);color:#fff}
.btn-primario:hover{background:var(--verde-scuro);transform:translateY(-1px)}

.istituzionale-top{
  background:#fff;
  border-bottom:1px solid var(--bordo);
  padding:12px 0 14px;
}
.istituzionale-inner{display:flex;flex-direction:column;align-items:center;gap:12px}
.banda-regione{width:100%;max-width:920px;height:auto;max-height:58px;object-fit:contain;object-position:center}
.loghi-soggetti{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px 40px}
.loghi-soggetti figure{margin:0;display:flex;align-items:center;gap:10px}
.loghi-soggetti img{width:auto;height:52px;object-fit:contain}
.loghi-soggetti figcaption{
  font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--grigio);max-width:11em;line-height:1.3
}
.dicitura-finanziamento{
  margin:0;text-align:center;font-size:.78rem;line-height:1.5;color:var(--grigio);max-width:54em
}
@media (max-width:560px){
  .banda-regione{max-height:44px}
  .loghi-soggetti{gap:16px 24px}
  .loghi-soggetti img{height:44px}
  .loghi-soggetti figcaption{font-size:.7rem}
}

.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.94);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--bordo);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand img{width:46px;height:46px;object-fit:contain}
.brand-testo{line-height:1.2}
.brand-testo .nome{font-family:var(--font-display);font-weight:800;font-size:1.05rem;color:var(--blu-scuro);display:block}
.brand-testo .comune{font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grigio)}
.header-cta{display:flex;gap:10px;align-items:center}
.header-cta .btn{padding:.55em 1.15em;font-size:.9rem}
.telefono-header{font-weight:700;color:var(--blu-scuro);text-decoration:none;white-space:nowrap}
.telefono-header:hover{color:var(--verde)}
@media (max-width:720px){
  .telefono-header span{display:none}
  .brand-testo .comune{display:none}
}

.footer{background:var(--blu-scuro);color:#B9C7DC;padding:56px 0 32px}
.footer-inner{margin-bottom:28px}
.footer-brand{display:flex;gap:16px;align-items:flex-start}
.footer-brand img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:12px;padding:6px}
.footer-brand .nome{font-family:var(--font-display);font-weight:800;color:#fff;font-size:1.15rem}
.footer-brand .motto{font-style:italic;font-size:.88rem;color:#8FA5C6;margin-top:2px}
.footer p,.footer-meta{color:#B9C7DC}
.footer a{color:#B9C7DC}
.footer-meta{margin-top:10px;font-size:.9rem;line-height:1.55}
.footer-meta a{color:#fff;font-weight:700}
.footer .istituzionale-footer{border-top:1px solid #2C4674;padding-top:28px;margin-bottom:28px}
.footer .banda-regione{background:#fff;border-radius:12px;padding:10px 14px;max-height:none}
.footer .loghi-soggetti img{background:#fff;border-radius:12px;padding:6px;height:58px}
.footer .loghi-soggetti figcaption{color:#B9C7DC}
.footer .dicitura-finanziamento{color:#B9C7DC}
.footer-base{border-top:1px solid #2C4674;padding-top:22px;font-size:.85rem;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}
.footer-base a[aria-current="page"]{color:#fff;font-weight:700}
