/* Photografando 1.14.2 — intestazione unica per tutte le pagine.
   Non interferire con il viewer Atlante in modalità immersiva. */
:root { --pf-header-bg: #faf9f6; --pf-header-ink:#202523; --pf-header-accent:#d78c30; }
body:not(.gat-immersive-active) .site-header {
  min-height: 88px !important;
  background: var(--pf-header-bg) !important;
  border-bottom:1px solid rgba(32,37,35,.12) !important;
  box-shadow:none !important;
}
body .site-header .header-inner {
  width:min(calc(100% - 52px),1460px) !important;
  min-height:88px !important;
  display:grid !important;
  grid-template-columns:minmax(285px,auto) minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:clamp(18px,2vw,36px) !important;
}
body .site-header .brand { display:flex !important; align-items:center !important; gap:14px !important; text-decoration:none !important; }
body .site-header .brand-logo { width:54px !important; height:54px !important; object-fit:contain !important; flex:none !important; }
body .site-header .brand strong {
  color:var(--pf-header-ink) !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:clamp(1.55rem,1.65vw,1.95rem) !important;
  font-style:italic !important;
  font-weight:500 !important;
  letter-spacing:-.025em !important;
  line-height:1.1 !important;
}
body .site-header .brand small {
  display:block !important;
  font-family:Arial,"Segoe UI",sans-serif !important;
  font-size:.72rem !important;
  font-weight:500 !important;
  color:#626863 !important;
  line-height:1.3 !important;
  white-space:normal !important;
}
body .site-header .desktop-nav {display:flex !important; justify-content:center !important; min-width:0 !important;}
body .site-header .desktop-nav > .menu { display:flex !important; flex-wrap:nowrap !important; align-items:center !important; gap:clamp(3px,.55vw,10px) !important; }
body .site-header .desktop-nav > .menu a,
body .site-header .legal-menu > summary {
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  min-height:48px !important;
  padding:11px clamp(7px,.7vw,12px) !important;
  font-family:Arial,"Segoe UI",sans-serif !important;
  font-size:clamp(.91rem,.88vw,1.04rem) !important;
  font-weight:600 !important;
  font-style:normal !important;
  letter-spacing:0 !important;
  line-height:1.25 !important;
  color:var(--pf-header-ink) !important;
  text-transform:none !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
body .site-header .desktop-nav > .menu a::after,
body .site-header .legal-menu > summary::after { bottom:2px !important; height:2px !important; background:var(--pf-header-accent) !important; }
body .site-header .support-link {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:48px !important;
  padding:10px 19px !important;
  background:transparent !important;
  border:1px solid #cda26b !important;
  font-family:Arial,"Segoe UI",sans-serif !important;
  font-size:.95rem !important;
  font-weight:650 !important;
  line-height:1.2 !important;
  color:var(--pf-header-ink) !important;
  text-decoration:none !important;
}
body .site-header .support-link:hover {background:#202523 !important; color:#fff !important; border-color:#202523 !important;}
/* Testata del diario: meno spazio vuoto, senza cambiare il contenuto. */
body .pe-blog-hero {padding-block:clamp(64px,7vw,112px) !important;}
body .pe-blog-hero .pe-lead {margin-top:clamp(22px,3vw,34px) !important;}
body .pe-blog-hero h1 {font-size:clamp(3.6rem,7vw,7.5rem) !important;}
@media (min-width:901px) and (max-width:1199px) {
  body .site-header .header-inner {width:calc(100% - 32px) !important;grid-template-columns:minmax(230px,auto) minmax(0,1fr) auto !important;gap:12px !important;}
  body .site-header .brand-logo {width:46px !important;height:46px !important;}
  body .site-header .brand strong {font-size:1.48rem !important;}
  body .site-header .desktop-nav > .menu a {font-size:.83rem !important;padding-inline:6px !important;}
}
@media (max-width:900px) {
  body .site-header .header-inner {width:calc(100% - 28px) !important;min-height:70px !important;grid-template-columns:minmax(0,1fr) auto !important;gap:10px !important;}
  body .site-header .desktop-nav,body .site-header .support-link {display:none !important;}
  body .site-header .brand-logo {width:44px !important;height:44px !important;}
  body .site-header .brand strong {font-size:clamp(1.25rem,4vw,1.65rem) !important;}
  body .site-header .brand small {font-size:.62rem !important;}
  body .pe-blog-hero {padding-block:clamp(48px,9vw,76px) !important;}
  body .pe-blog-hero h1 {font-size:clamp(3.1rem,11vw,5rem) !important;}
}
@media(max-width:480px) { body .site-header .brand small {display:none !important;} }
