/* Match the shared header's content width and side padding across inner pages. */
body .hg-page-container,
#top .hg-page-container {
  box-sizing:border-box;
  width:100%;
  max-width:1280px;
  margin-inline:auto;
  padding-inline:16px;
}
@media (min-width:640px) {
  body .hg-page-container,
  #top .hg-page-container { padding-inline:24px; }
}
@media (min-width:1024px) {
  body .hg-page-container,
  #top .hg-page-container { padding-inline:32px; }
}
/* Align the opening badge 48px below the shared header on every page and screen size. */
body .hg-page-start,
#top .hg-page-start { padding-top:48px; }
/* Shared opening badge: use Innovazione's type, spacing, colours and two dots. */
.hg-page-eyebrow,
#top .hg-page-eyebrow {
  display:inline-flex;
  vertical-align:top;
  align-items:center;
  gap:10px;
  max-width:100%;
  box-sizing:border-box;
  padding:7px 14px;
  border:1px solid var(--hg-eyebrow-border,#2b2647);
  border-radius:999px;
  background:var(--hg-eyebrow-surface,#131022);
  color:var(--hg-eyebrow-color,#f5f3fc);
  font-family:"IBM Plex Sans",sans-serif;
  font-size:.72rem;
  font-weight:700;
  line-height:1.6;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.hg-page-eyebrow__text,
#top .hg-page-eyebrow__text {
  min-width:0;
  font:inherit;
  color:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
}
.hg-page-eyebrow__dots,
#top .hg-page-eyebrow__dots {
  display:inline-flex;
  align-items:center;
  gap:4px;
  width:16px;
  height:6px;
  flex:0 0 16px;
}
.hg-page-eyebrow__dots::before,
.hg-page-eyebrow__dots::after,
#top .hg-page-eyebrow__dots::before,
#top .hg-page-eyebrow__dots::after {
  content:"";
  display:block;
  width:6px;
  height:6px;
  border-radius:2px;
  background:var(--hg-eyebrow-pink,#ff2e93);
}
.hg-page-eyebrow__dots::after,
#top .hg-page-eyebrow__dots::after { background:var(--hg-eyebrow-violet,#b04cf0); }
body.hg-light {
  --hg-eyebrow-border:#ddd5f0;
  --hg-eyebrow-surface:#ffffff;
  --hg-eyebrow-color:#1b1633;
  --hg-eyebrow-pink:#d6007a;
  --hg-eyebrow-violet:#8b2fd0;
}
.hg-site-header { border-bottom: 1px solid var(--hg-border); background: var(--hg-header); color: var(--hg-text); }
/* Give shared navigation its own typography so page styles cannot change its weight. */
.hg-site-header,
.hg-site-header *,
.hg-mobile-menu,
.hg-mobile-menu * { font-family:"IBM Plex Sans",sans-serif !important; font-weight:700 !important; }
.hg-site-header--dark, .hg-mobile-menu--dark { --hg-header: rgba(6,8,19,.96); --hg-panel: #0b0e1c; --hg-card: rgba(255,255,255,.045); --hg-border: rgba(255,255,255,.12); --hg-text: #f8fafc; --hg-muted: #a5afc2; }
.hg-site-header--light, .hg-mobile-menu--light { --hg-header: rgba(255,255,255,.97); --hg-panel: #f8fafc; --hg-card: #fff; --hg-border: #dce2eb; --hg-text: #0f172a; --hg-muted: #526176; }
.hg-header-row { gap: 16px; }
.hg-brand { display: inline-flex; align-items: center; min-width: 0; }
.hg-brand img { max-width: min(44vw, 180px); object-fit: contain; }
.hg-brand-divider { height: 18px; width: 1px; background: var(--hg-border); flex: none; }
.hg-brand-line { color: var(--hg-muted); font-size: 10px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.hg-desktop-nav { margin-left: auto; }
.hg-desktop-nav a { color: var(--hg-muted); border-radius: 9px; padding: 9px 11px; white-space: nowrap; transition: color .2s, background .2s; }
.hg-desktop-nav a:hover, .hg-desktop-nav a[aria-current="page"] { color: var(--hg-text); background: var(--hg-card); }
/* Keep the consulting page typography aligned with Innovazione, including the shared header. */
body[data-hubgrade-page="consulenza"],
body[data-hubgrade-page="consulenza"] * { font-family:"IBM Plex Sans",sans-serif !important; font-weight:700 !important; }
/* Share the homepage footer typography across every WordPress page. */
#contatti-footer,
#contatti-footer * { font-family:"IBM Plex Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-weight:700; }
#contatti-footer .hg-footer-legal { padding-left:64px; }
body[data-hubgrade-page="callmecenter"] .hg-header-contact { background:#c026d3; box-shadow:0 8px 24px rgba(192,38,211,.25); }
body[data-hubgrade-page="callmecenter"] .hg-header-contact:hover { background:#d946ef; }
.hg-menu-pink { color: #ec167f; }
.hg-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.hg-view-toggle, .hg-menu-toggle { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--hg-border); background: var(--hg-card); color: var(--hg-text); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.hg-view-toggle { border-radius: 50%; color: #d97706; }
.hg-site-header--light .hg-view-toggle { color: #4f46e5; }
.hg-view-toggle svg { width: 21px; height: 21px; }
.hg-menu-toggle { border-radius: 10px; flex-direction: column; gap: 5px; }
.hg-menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .24s, opacity .2s; }
.hg-menu-toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.hg-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.hg-menu-toggle.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }
.hg-view-toggle:hover, .hg-menu-toggle:hover, .hg-view-toggle:focus-visible, .hg-menu-toggle:focus-visible { border-color: #ec167f; box-shadow: 0 0 0 3px rgba(236,22,127,.15); outline: none; }
.hg-header-contact, .hg-mobile-menu-contact { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 22px; background: #ec167f; color: #fff !important; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.hg-header-contact:hover, .hg-mobile-menu-contact:hover { background: #cf0c68; transform: translateY(-1px); }
.hg-mobile-menu { position: fixed; top: var(--hg-header-bottom,80px); left: 0; right: 0; z-index: 49; max-height: calc(100dvh - var(--hg-header-bottom,80px)); overflow-y: auto; background: var(--hg-header); border-bottom: 1px solid var(--hg-border); color: var(--hg-text); box-shadow: 0 24px 48px rgba(2,6,23,.24); }
.hg-mobile-menu[hidden] { display: none !important; }
.hg-mobile-menu-inner { padding-top: 24px; padding-bottom: 28px; }
.hg-mobile-menu-layout { display: block; }
.hg-mobile-menu-feature { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 24px; padding: 20px 24px; border: 1px solid var(--hg-border); border-radius: 20px; background: linear-gradient(145deg, rgba(236,22,127,.14), rgba(110,11,181,.09) 60%, var(--hg-panel)); }
.hg-mobile-menu-feature .hg-mobile-menu-heading { grid-column: 1 / -1; }
.hg-mobile-menu-feature strong { grid-column: 1; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; letter-spacing: -.04em; }
.hg-mobile-menu-feature p { grid-column: 1; margin: 6px 0 0; color: var(--hg-muted); font-size: 14px; line-height: 1.5; }
.hg-mobile-menu-feature .hg-mobile-menu-contact { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
.hg-mobile-menu-links { min-width: 0; margin-top: 22px; }
.hg-mobile-menu-heading { display: block; margin-bottom: 13px; color: var(--hg-muted); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hg-mobile-menu-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.hg-mobile-menu-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 92px; padding: 13px; border: 1px solid var(--hg-border); border-radius: 14px; background: var(--hg-card); color: var(--hg-text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.hg-mobile-menu-item:hover, .hg-mobile-menu-item[aria-current="page"] { border-color: #ec167f; box-shadow: 0 6px 18px rgba(236,22,127,.12); transform: translateY(-1px); }
.hg-mobile-menu-item:focus-visible, .hg-mobile-menu-contact:focus-visible { outline: 2px solid #ec167f; outline-offset: 3px; }
.hg-mobile-menu-item span { font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.hg-mobile-menu-item small { color: var(--hg-muted); font-size: 12px; line-height: 1.35; }
.hg-mobile-menu-contact { margin-top: 16px; gap: 18px; }
.hg-mobile-menu-contact span { font-size: 18px; line-height: 1; }
.hg-mobile-menu-contact--mobile { display: none; }
@media(max-width:1199px) { .hg-header-contact { display: none; } }
@media(max-width:767px) {
  .hg-header-row { height: 68px !important; gap: 8px; }
  .hg-brand img { max-width: min(39vw,150px); max-height: 42px; }
  .hg-header-actions { gap: 7px; }
  .hg-view-toggle, .hg-menu-toggle { width: 40px; height: 40px; }
  .hg-mobile-menu-inner { padding-top: 18px; padding-bottom: 24px; }
  .hg-mobile-menu-layout { display: block; }
  .hg-mobile-menu-feature { display: none; }
  .hg-mobile-menu-links { margin-top: 0; }
  .hg-mobile-menu-grid { display: block; }
  .hg-mobile-menu-item { position: relative; flex-direction: row; align-items: center; min-height: 56px; padding: 12px 36px 12px 4px; border: 0; border-bottom: 1px solid var(--hg-border); border-radius: 0; background: transparent; }
  .hg-mobile-menu-item::after { content: '\2192'; position: absolute; right: 4px; color: #ec167f; font-size: 20px; }
  .hg-mobile-menu-item:hover, .hg-mobile-menu-item[aria-current="page"] { background: transparent; box-shadow: none; transform: none; color: #ec167f; }
  .hg-mobile-menu-item small { display: none; }
  .hg-mobile-menu-contact--mobile { display: flex; width: 100%; margin-top: 20px; }
}
@media(min-width:1200px) and (max-width:1279px) {
  .hg-desktop-nav { display: flex; gap: 0; }
  .hg-desktop-nav a { padding: 8px 7px; font-size: 12px; }
  .hg-brand-divider, .hg-brand-line { display: none; }
  .hg-header-row { gap: 10px; }
  .hg-brand img { max-width: 150px; }
  .hg-header-actions { gap: 6px; margin-left: 8px; }
  .hg-header-contact { display: inline-flex; padding: 10px 12px; }
  .hg-menu-toggle, .hg-mobile-menu { display: none !important; }
}
@media(min-width:1280px) { .hg-menu-toggle, .hg-mobile-menu { display: none !important; } .hg-header-actions { margin-left: 12px; } }
/* ---- Language Switcher (Desktop) ---- */
.hg-lang-switcher { position: relative; flex: none; }
.hg-lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px;
  border: 1px solid var(--hg-border); border-radius: 10px;
  background: var(--hg-card); color: var(--hg-text);
  font-size: 12px; font-weight: 700 !important; letter-spacing: .06em;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.hg-lang-current:hover, .hg-lang-current:focus-visible {
  border-color: #ec167f; box-shadow: 0 0 0 3px rgba(236,22,127,.15); outline: none;
}
.hg-lang-current[aria-expanded="true"] .hg-lang-chevron { transform: rotate(180deg); }
.hg-lang-current .hg-lang-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.hg-lang-code { text-transform: uppercase; }
.hg-lang-chevron { transition: transform .2s; flex: none; }
.hg-lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 6px;
  border: 1px solid var(--hg-border); border-radius: 14px;
  background: var(--hg-header); backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(2,6,23,.28);
  z-index: 60;
  animation: hg-lang-fade .18s ease-out;
}
.hg-lang-dropdown[hidden] { display: none; }
@keyframes hg-lang-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hg-lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--hg-text); text-decoration: none;
  font-size: 13px; font-weight: 600 !important;
  transition: background .15s;
}
.hg-lang-option:hover { background: var(--hg-card); }
.hg-lang-option .hg-lang-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex: none; }
.hg-lang-option-name { flex: 1; }
.hg-lang-option-code { color: var(--hg-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hg-lang-option--disabled { opacity: .35; pointer-events: none; }
/* ---- Language Switcher (Mobile menu) ---- */
.hg-mobile-lang { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hg-border); }
.hg-mobile-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-mobile-lang-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--hg-border); border-radius: 10px;
  background: var(--hg-card); color: var(--hg-text);
  text-decoration: none; font-size: 13px; font-weight: 700 !important;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hg-mobile-lang-item .hg-lang-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.hg-mobile-lang-item:hover { border-color: #ec167f; box-shadow: 0 4px 14px rgba(236,22,127,.12); transform: translateY(-1px); }
.hg-mobile-lang-item--active {
  border-color: #ec167f; background: rgba(236,22,127,.12);
  box-shadow: 0 0 0 2px rgba(236,22,127,.2);
}
.hg-mobile-lang-item--disabled { opacity: .35; pointer-events: none; }
@media(max-width:767px) {
  .hg-lang-current { height: 40px; padding: 0 10px; border-radius: 10px; }
  .hg-lang-dropdown { min-width: 160px; }
}
@media(prefers-reduced-motion:reduce) { .hg-site-header *, .hg-mobile-menu * { transition-duration: .01ms !important; } }
