
/* =========================================================
   D.G. Vini - regole comuni ottimizzate
   Header uniforme su index e pagine interne + footer fisso
   ========================================================= */
:root{
  --black:#050505;
  --white:#ffffff;
  --gold:#d4a55c;
  --burgundy:#8f111d;
  --header-h:132px;
  --footer-h:58px;
}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body{overflow-x:hidden;padding-bottom:var(--footer-h)}
.site-header,
.site-header.scrolled{
  position:fixed !important;
  inset:0 0 auto 0 !important;
  height:var(--header-h) !important;
  min-height:var(--header-h) !important;
  z-index:1000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  padding:12px 54px !important;
  background:rgba(0,0,0,.58) !important;
  border-bottom:1px solid rgba(212,165,92,.22) !important;
  box-shadow:none;
  backdrop-filter:blur(10px);
  transition:background .3s ease, box-shadow .3s ease !important;
}
.site-header.scrolled{
  background:rgba(0,0,0,.84) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.34) !important;
}
.brand{display:flex;align-items:center;text-decoration:none;flex:0 0 auto}
.brand img,
.site-header .brand img{
  width:auto !important;
  height:120px !important;
  max-height:120px !important;
  max-width:min(34vw,320px) !important;
  object-fit:contain !important;
  display:block !important;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.main-nav,
.site-header .main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
}
.main-nav a,
.site-header .main-nav a{
  position:relative;
  color:var(--white) !important;
  text-decoration:none !important;
  text-transform:uppercase;
  letter-spacing:.12em !important;
  font-size:12.5px !important;
  line-height:1.25 !important;
  font-weight:600 !important;
  transition:color .25s ease;
}
.main-nav a::after{display:none !important}
.main-nav a:hover,
.main-nav a.active{color:var(--gold) !important}
.menu-toggle{
  display:none;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:rgba(0,0,0,.35) !important;
  border-radius:6px !important;
  cursor:pointer;
}
.menu-toggle span{display:block;width:22px;height:2px;background:#fff;margin:5px auto}
.site-footer,
.site-footer.scrolled{
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  z-index:1100 !important;
  min-height:var(--footer-h) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:14px 8vw !important;
  text-align:center !important;
  background:rgba(0,0,0,.88) !important;
  border-top:1px solid rgba(212,165,92,.2) !important;
  backdrop-filter:blur(10px);
}
.site-footer p{font-size:13px !important;line-height:1.35;margin:0 !important;color:rgba(255,255,255,.72) !important}
main{padding-bottom:0}
.panel{padding-top:calc(var(--header-h) + 34px)}
@media (max-width:980px){
  :root{--header-h:108px;--footer-h:58px}
  .site-header,.site-header.scrolled{padding:10px 22px !important;height:var(--header-h) !important;min-height:var(--header-h) !important}
  .brand img,.site-header .brand img{height:84px !important;max-height:84px !important;max-width:240px !important}
  .menu-toggle{display:block !important}
  .main-nav,.site-header .main-nav{
    position:absolute !important;
    top:var(--header-h) !important;
    right:18px !important;
    width:min(280px,calc(100vw - 36px)) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:0 !important;
    padding:18px !important;
    background:rgba(0,0,0,.94) !important;
    border:1px solid rgba(212,165,92,.25) !important;
    border-radius:0 0 18px 18px !important;
    transform:translateY(-14px) !important;
    opacity:0 !important;
    pointer-events:none !important;
    transition:.25s ease !important;
  }
  .main-nav.open,.site-header .main-nav.open{transform:translateY(0) !important;opacity:1 !important;pointer-events:auto !important}
  .main-nav a,.site-header .main-nav a{width:100%;padding:14px 4px !important}
  .panel{background-attachment:scroll !important;padding-top:140px !important;padding-bottom:calc(70px + var(--footer-h)) !important}
}
@media (max-width:560px){
  :root{--header-h:92px}
  .site-header,.site-header.scrolled{padding:8px 16px !important}
  .brand img,.site-header .brand img{height:68px !important;max-height:68px !important;max-width:210px !important}
  .panel{padding-top:118px !important}
  .site-footer{padding:10px 14px !important}
  .site-footer p{font-size:11px !important}
}

/* Pulsante evidenza: Ultime novità
   Rimane sempre accanto al logo, anche su schermi verticali. */
.news-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:48px;
  padding:13px 22px;
  margin-left:4px;
  margin-right:auto;
  border:1px solid var(--gold);
  border-radius:3px;
  color:#fff;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:13px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  background:linear-gradient(135deg,rgba(143,17,29,.98),rgba(70,7,14,.82));
  box-shadow:0 12px 30px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.06);
  transition:transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.news-pill:hover,
.news-pill:focus,
.news-pill.active-pill{
  color:#26060a;
  background:linear-gradient(135deg,var(--gold),#f1d090);
  box-shadow:0 14px 36px rgba(212,165,92,.25);
  transform:translateY(-2px);
}
@media (max-width:980px){
  .site-header,.site-header.scrolled{gap:12px !important;}
  .brand img,.site-header .brand img{max-width:170px !important;}
  .news-pill{
    min-height:42px;
    padding:11px 15px;
    margin-left:0;
    margin-right:auto;
    font-size:11px;
    letter-spacing:.1em;
  }
}
@media (max-width:560px){
  .site-header,.site-header.scrolled{gap:8px !important;}
  .brand img,.site-header .brand img{height:62px !important;max-height:62px !important;max-width:118px !important;}
  .news-pill{
    position:static;
    min-height:36px;
    padding:9px 10px;
    font-size:9px;
    letter-spacing:.07em;
    margin-right:auto;
  }
  .main-nav,.site-header .main-nav{top:var(--header-h) !important;}
}
@media (max-width:390px){
  .brand img,.site-header .brand img{max-width:98px !important;}
  .news-pill{font-size:8px;padding:8px 8px;}
  .menu-toggle{width:38px !important;min-width:38px !important;}
}
