
/* ROSSELLI 2027 — HEADER + FOOTER MASTER
   Modificare questo file per cambiare lo stile di header/footer in TUTTO il sito.
   Modificare assets/components.js per cambiare menu, testi o link una sola volta. */
:root{--hf-header-height:76px;--hf-ivory:#f6f1e7;--hf-green:#0d3b32;--hf-red:#c81420;--hf-ink:#15201c;--hf-line:rgba(13,59,50,.16)}
.site-header{position:fixed;inset:0 0 auto 0;z-index:1000;height:var(--hf-header-height);transition:background .25s ease,box-shadow .25s ease,color .25s ease;background:rgba(246,241,231,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--hf-line)}
.site-header.is-hero{background:linear-gradient(180deg,rgba(246,241,231,.96),rgba(246,241,231,.72));border-bottom-color:transparent}
.site-header.scrolled{background:rgba(246,241,231,.98);box-shadow:0 8px 30px rgba(19,33,28,.08);border-bottom-color:var(--hf-line)}
.hf-wrap{width:min(1500px,calc(100% - 48px));height:100%;margin:auto;display:flex;align-items:center;gap:28px}.brand{color:var(--hf-green);text-decoration:none;font-family:Oswald,sans-serif;font-weight:900;font-size:22px;line-height:.78;letter-spacing:-.04em}.brand small{display:block;margin-top:7px;font-size:7px;letter-spacing:.32em;font-weight:700}.main-nav{display:flex;align-items:center;gap:clamp(15px,1.6vw,29px);margin-left:auto}.main-nav a,.lang-switch a{color:var(--hf-ink);text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.055em;white-space:nowrap}.main-nav a:hover,.main-nav a:focus-visible,.main-nav a[aria-current=page]{color:var(--hf-red)}.header-tools{display:flex;align-items:center;gap:15px}.lang-switch{font-size:10px;white-space:nowrap}.lang-switch a[aria-current=page]{color:var(--hf-red)}.header-cta{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;background:var(--hf-red);color:#fff!important;text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.05em}.menu-toggle{display:none;border:0;background:transparent;color:var(--hf-green);font-size:24px;padding:8px;cursor:pointer}.mobile-panel{display:none;position:fixed;z-index:999;top:var(--hf-header-height);left:0;right:0;background:var(--hf-ivory);padding:8px 24px;border-bottom:1px solid var(--hf-line);box-shadow:0 20px 35px rgba(13,59,50,.1)}.mobile-panel.open{display:block}.mobile-panel a{display:block;padding:12px 0;color:var(--hf-green);text-decoration:none;text-transform:uppercase;font-weight:800}
.mobile-panel a + a{border-top:1px solid var(--hf-line)}
.site-footer{background:#07372e;color:#fff;padding:56px 0 24px}.footer-top{display:grid;grid-template-columns:1.1fr 2fr .8fr;gap:60px;padding-bottom:38px}.footer-brand{font-size:28px;font-weight:900;line-height:.8}.footer-brand small{display:block;font-size:8px;letter-spacing:.3em;margin-top:10px}.footer-copy{max-width:360px;color:rgba(255,255,255,.7);font-size:14px;line-height:1.55;margin-top:18px}.footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px}.footer-nav a,.footer-legal a{color:rgba(255,255,255,.82);text-decoration:none;font-size:13px}.footer-nav a:hover,.footer-legal a:hover{color:#fff}.footer-contact{font-size:13px;line-height:1.7;color:rgba(255,255,255,.78)}.footer-contact strong{display:block;color:#fff;text-transform:uppercase;font-size:11px;letter-spacing:.12em;margin-bottom:8px}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:20px;display:flex;justify-content:space-between;gap:30px;align-items:center}.footer-legal{display:flex;flex-wrap:wrap;gap:18px}.footer-copyline{font-size:11px;color:rgba(255,255,255,.5)}
@media(max-width:1240px){.main-nav{display:none}.menu-toggle{display:block}.header-service{margin-left:auto}}
@media(max-width:650px){:root{--hf-header-height:68px}.hf-wrap{width:calc(100% - 28px)}.header-cta{display:none}.footer-top{grid-template-columns:1fr;gap:32px}.footer-contact{grid-column:auto}.footer-bottom{display:block}.footer-legal{margin-bottom:18px}.site-footer{padding-top:42px}}

/* Official Rosselli wordmark */
.brand{display:block;flex:0 0 auto}
.brand img{display:block;width:132px;height:auto}
.footer-brand{display:inline-block;max-width:100%;box-sizing:border-box;padding:10px 12px;background:var(--hf-ivory,#f4f1ea);border-radius:3px}
.footer-brand img{display:block;width:160px;max-width:100%;height:auto}
@media(max-width:480px){.brand img{width:112px}}

/* Shared width on wide viewports, including when zoomed out. */
:root{--wide-content:clamp(1500px,calc(1150px + 22vw),2400px)}
.hf-wrap{max-width:var(--wide-content);width:calc(100% - 64px)}

.header-service{
  display:grid;
  flex:none;
  gap:1px;
  color:var(--hf-green);
  font-size:.6875rem;
  line-height:1.2;
  white-space:nowrap;
}
.header-service a{font-size:.8125rem;font-weight:800;text-decoration:none}
.header-service a:hover,.header-service a:focus-visible{color:var(--hf-red);text-decoration:underline}
.header-service span:last-child{color:#41544b}
.mobile-panel{
  max-height:calc(100vh - var(--hf-header-height));
  max-height:calc(100dvh - var(--hf-header-height));
  overflow-y:auto;
  overscroll-behavior-y:contain;
}

.site-footer{background:var(--hf-ivory);color:var(--hf-ink);border-top:1px solid var(--hf-line);padding:26px 0 14px}
.footer-top{grid-template-columns:1fr 1.45fr 1fr;gap:clamp(18px,3vw,44px);align-items:start;padding-bottom:18px}
.footer-brand{background:transparent;padding:0}
.footer-brand img{width:132px}
.footer-copy,.footer-contact,.footer-copyline{color:#41544b}
.footer-copy{margin:8px 0 0;font-size:13px}
.footer-company{line-height:1.4}
.footer-contact{line-height:1.45;overflow-wrap:anywhere}
.footer-contact strong{margin-bottom:4px}
.footer-contact strong,.footer-contact a,.footer-nav a,.footer-legal a{color:var(--hf-green)}
.footer-nav{gap:5px 16px}
.footer-nav a:hover,.footer-legal a:hover,.footer-contact a:hover{color:var(--hf-red)}
.footer-bottom{border-top-color:var(--hf-line);padding-top:12px;gap:8px 20px;flex-wrap:wrap}
.footer-legal{gap:5px 16px}

@media(max-width:650px){
  .hf-wrap{width:calc(100% - 28px)}
  .site-header > .hf-wrap{gap:8px}
  .header-tools{gap:5px}
  .site-header .menu-toggle{line-height:1;padding:6px}
  .footer-top{grid-template-columns:1fr;gap:14px;padding-bottom:14px}
  .footer-bottom{display:flex}
  .footer-legal{margin-bottom:0}
}
@media(max-width:360px){.brand img{width:86px}}
