@import url("/public-ui-system.css");
/* Un unico header pubblico, per React e pagine HTML degli strumenti. */
[data-mpa-public-header]{position:sticky;top:0;z-index:110;width:100%}
.mpa-unified-header{background:var(--public-header-background)!important;border-bottom:1px solid var(--public-header-border)!important;box-shadow:var(--public-header-shadow)!important;backdrop-filter:blur(18px);color:var(--public-text);position:relative;z-index:110}
.mpa-unified-header::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(244,195,86,.65) 35%,rgba(56,189,248,.33) 70%,transparent);pointer-events:none}
.mpa-unified-inner{width:min(1180px,calc(100% - 40px));min-height:72px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative}
.mpa-unified-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--public-text)!important;font-size:16px;font-weight:900;letter-spacing:-.03em;white-space:nowrap}
.mpa-unified-brand img{height:38px;width:38px;object-fit:contain}
.mpa-unified-brand span span{color:var(--public-accent)}
.mpa-unified-desktop{display:flex;align-items:center;gap:3px;margin-left:auto}
.mpa-unified-desktop a{display:inline-flex;align-items:center;padding:9px 9px;border-radius:9px;text-decoration:none;color:var(--public-muted)!important;font-size:12px;font-weight:800;white-space:nowrap}
.mpa-unified-desktop a:hover{color:var(--public-text)!important;background:var(--public-accent-soft)}
.mpa-unified-socials{display:flex;align-items:center;gap:7px}
.mpa-unified-socials a{width:33px;height:33px;border:1px solid var(--public-border);border-radius:10px;display:grid;place-items:center;background:var(--public-panel);color:var(--public-muted)!important;text-decoration:none}
.mpa-unified-socials svg{width:17px;height:17px}
.mpa-unified-socials a:hover{border-color:var(--public-header-border);color:var(--public-gold)!important}
.mpa-unified-actions{display:flex;align-items:center;gap:8px}
.mpa-unified-login{padding:10px 11px;border:1px solid var(--public-border);border-radius:10px;text-decoration:none;color:var(--public-text-soft)!important;font-size:12px;font-weight:800}
.mpa-unified-home{display:none;text-decoration:none;color:var(--public-text)!important;font-size:13px;font-weight:850}
.mpa-unified-menu{display:none;position:relative}
.mpa-unified-menu summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:1px solid var(--public-header-border);border-radius:11px;color:var(--public-gold)!important;background:var(--public-bg-soft);font-size:13px;font-weight:900;cursor:pointer}
.mpa-unified-menu summary::-webkit-details-marker{display:none}
.mpa-unified-menu[open] summary{background:var(--public-gold-soft)}
.mpa-unified-popover{position:absolute;right:0;top:calc(100% + 10px);width:min(315px,calc(100vw - 26px));border:1px solid var(--public-header-border);border-radius:16px;background:var(--public-panel);padding:12px;box-shadow:0 22px 60px rgba(0,0,0,.34);display:grid;gap:3px;max-height:min(76dvh,640px);overflow-y:auto;overscroll-behavior:contain;z-index:150}
.mpa-unified-popover>a{display:flex;align-items:center;min-height:44px;padding:9px 12px;border-radius:10px;text-decoration:none;color:var(--public-muted)!important;font-size:13px;font-weight:800}
.mpa-unified-popover>a:hover,.mpa-unified-popover>a:focus-visible{background:var(--public-accent-soft);color:var(--public-text)!important}
.mpa-unified-popover .mpa-unified-callout{margin-top:7px;background:linear-gradient(110deg,#34b4f4,#2563eb);color:white!important;text-align:center;justify-content:center;border:1px solid rgba(56,189,248,.55);font-weight:900}
.mpa-unified-popover .mpa-unified-portal{border:1px solid rgba(56,189,248,.35);color:var(--public-accent)!important;justify-content:center;margin-top:4px;background:var(--public-accent-soft)}
.mpa-unified-popover .mpa-unified-socials{border-top:1px solid var(--public-border);margin-top:9px;padding:11px 5px 3px;gap:10px;justify-content:center}
.mpa-unified-popover .mpa-unified-socials a{width:42px;height:42px}
.mpa-unified-theme{display:flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:0 10px;background:var(--public-panel);border:1px solid var(--public-border);border-radius:11px;color:var(--public-gold)!important;cursor:pointer;font-size:21px}
.mpa-unified-theme span{display:block;line-height:1}
/* Show the actual MyProAssistant wordmark beside the official emblem at every size.
   Collapse long navigation earlier instead of hiding the company name. */
@media(max-width:1100px){
 .mpa-unified-desktop,.mpa-unified-actions>.mpa-unified-socials,.mpa-unified-login{display:none}
 .mpa-unified-home,.mpa-unified-menu{display:flex}
 .mpa-unified-inner{gap:12px}
 .mpa-unified-actions{margin-left:auto}
 .mpa-unified-brand>span{display:inline}
}

@media(max-width:970px){.mpa-unified-desktop,.mpa-unified-actions>.mpa-unified-socials,.mpa-unified-login{display:none}.mpa-unified-home,.mpa-unified-menu{display:flex}.mpa-unified-inner{gap:12px}.mpa-unified-actions{margin-left:auto}}
@media(max-width:470px){.mpa-unified-inner{width:calc(100% - 28px);min-height:70px;gap:9px}.mpa-unified-brand img{width:34px;height:34px}.mpa-unified-home{font-size:12px}.mpa-unified-menu summary{padding:0 12px;min-height:40px}.mpa-unified-theme{min-width:40px;min-height:40px}}
/* I tool condividono colori e superfici del resto del sito. */
.automation-page{--bg:var(--public-bg);--bg-soft:var(--public-bg-soft);--panel:var(--public-panel);--panel-2:var(--public-panel-strong);--text:var(--public-text);--muted:var(--public-muted);--muted-2:var(--public-faint);--accent:var(--public-accent);--accent-2:var(--public-accent-strong);--border:var(--public-border);--border-strong:var(--public-header-border);background:var(--public-page-background)!important}
.automation-page::before{display:none!important;content:none!important}
.automation-page::after{content:none!important;display:none!important}
.automation-page>*{position:relative;z-index:1}
.automation-page .growth-tools-grid>a{background:var(--public-panel);border:1px solid var(--public-header-border);border-radius:15px;box-shadow:var(--public-shadow-soft)}
.automation-page .growth-tools-grid>a:hover{border-color:var(--public-gold);transform:translateY(-1px)}
.automation-page .growth-hero h1{color:var(--public-text)}
html[data-public-theme="light"] .automation-page .growth-tools-grid strong{color:var(--public-text)}
html[data-public-theme="light"] .mpa-unified-header a:hover{color:var(--public-text)!important}

/* Il nuovo header include già un interruttore tema: nasconde il vecchio tasto flottante. */
body:has([data-mpa-public-header])>.public-theme-toggle,body:has([data-mpa-public-header]) .public-theme-toggle{display:none!important}

/* Mobile: non mostrare due interruttori del tema sulle pagine React. */
html[data-public-theme="light"] .mpa-unified-header{background:var(--public-header-background)!important}

/* Desktop: la CTA entra in vista soltanto quando lo spazio lo consente. */
@media(min-width:1360px){.mpa-unified-header .mpa-unified-brand{font-size:16px}}

/* Azure headings and labels share the same brand gradient as the public site. */
:root{--mpa-azure-gradient:linear-gradient(90deg,#7dd3fc 0%,#38bdf8 52%,#60a5fa 100%)}
html[data-public-theme="light"]{--mpa-azure-gradient:linear-gradient(90deg,#075985 0%,#0284c7 52%,#2563eb 100%)}
.mpa-unified-brand span span,
.mpa-tools-page .automation-kicker > span,
.mpa-tools-page .growth-hero h1 em,
.mpa-tools-page .growth-tools-grid small,
.mpa-tools-page .growth-disclaimer strong{
  color:var(--public-accent);
  background-image:var(--mpa-azure-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.mpa-tools-page .automation-kicker::before{background:var(--public-gold)}

/* Brand identity stays visible on compact computer windows and phones. */
.mpa-unified-brand{flex:0 1 auto;min-width:0;gap:8px}
.mpa-unified-brand>span{display:inline;white-space:nowrap;font-size:clamp(12.5px,2.3vw,16px)}
.mpa-unified-brand>span::after{content:none!important;display:none!important}
@media(max-width:470px){
  .mpa-unified-home{display:none}
  .mpa-unified-inner{gap:7px}
  .mpa-unified-actions{gap:6px}
  .mpa-unified-brand{gap:6px}
  .mpa-unified-brand>span{font-size:clamp(12px,3.4vw,14px)}
}
@media(max-width:370px){
  .mpa-unified-brand img{width:30px;height:30px}
  .mpa-unified-menu summary{padding:0 9px;min-height:39px}
  .mpa-unified-theme{min-width:37px;min-height:39px;padding:0 7px}
}

/* One active-tab treatment for the complete public menu on every route. */
.mpa-unified-desktop a.mpa-unified-active,
.mpa-unified-popover a.mpa-unified-active {
  color:var(--public-text)!important;
  background:var(--public-accent-soft)!important;
  border:1px solid var(--public-border-strong);
}
.mpa-unified-desktop a.mpa-unified-active{padding:8px 8px}
.mpa-unified-popover a.mpa-unified-active{color:var(--public-accent)!important}
.mpa-unified-brand::after,.mpa-unified-brand>span::after{content:none!important;display:none!important}

/* Primary free trial entry must be visible on every desktop public header. */
.mpa-unified-trial{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;flex:0 0 auto;white-space:nowrap;
  padding:9px 12px;border:1px solid rgba(36,147,217,.55);
  border-radius:10px;text-decoration:none;
  background:linear-gradient(110deg,#089bca,#2563eb);
  color:#fff!important;font-size:11.5px;font-weight:900;
  box-shadow:0 7px 22px rgba(37,99,235,.14);
}
.mpa-unified-trial:hover{filter:brightness(1.10);transform:translateY(-1px)}
.mpa-unified-trial:focus-visible{outline:2px solid var(--public-accent);outline-offset:3px}
@media(min-width:1101px){
  .mpa-unified-actions>.mpa-unified-socials{display:flex!important}
}
/* Keep the approved desktop navigation while there is enough room. */
@media(max-width:1100px){
  .mpa-unified-trial{display:inline-flex!important}
}
@media(max-width:690px){
  .mpa-unified-trial{display:none!important}
  /* CTA is still available as the first callout in the mobile menu. */
}
html[data-public-theme="light"] .mpa-unified-theme,
html[data-public-theme="light"] .mpa-unified-menu summary{color:#111827!important}
html[data-public-theme="light"] .mpa-unified-header::after{
  background:linear-gradient(90deg,transparent,rgba(2,119,181,.20),transparent)!important;
}

/* Static public tools do not load the marketing preview stylesheet. */
html[data-public-theme] body .automation-page [data-mpa-public-header] .mpa-unified-header,
html[data-public-theme] body .automation-page > footer.automation-footer,
html[data-public-theme] body .automation-page > footer{
  background:var(--mpa-chrome-solid)!important;
}
html[data-public-theme="light"] body .automation-page > footer :is(a,p,strong,span){
  color:#111827!important;
}
/* Keep section layout, but never repaint the single page background. */
html[data-public-theme] body .automation-page .automation-section.band{
  background:transparent!important;
}

/* The theme switch stays inside the SAME public header everywhere,
   including the Formazione index and article routes at wide resolutions. */
[data-mpa-public-header] .mpa-unified-actions{flex-shrink:0;min-width:max-content}
[data-mpa-public-header] .mpa-unified-theme{
  display:inline-flex!important;flex:0 0 auto!important;
  visibility:visible!important;opacity:1!important;
  min-width:42px;min-height:42px;order:-1;
}
body:has(.formation-page) [data-mpa-public-header] .mpa-unified-theme{
  display:inline-flex!important;visibility:visible!important;
}
@media(max-width:470px){
  [data-mpa-public-header] .mpa-unified-actions{min-width:0}
  [data-mpa-public-header] .mpa-unified-theme{min-width:39px;min-height:39px}
}


/* Keep the theme control reachable in the REAL Formazione header on desktop.
   Long navigation + social icons previously squeezed its action area off-screen. */

@media(max-width:1100px){
  [data-mpa-public-header] .mpa-unified-desktop,
  [data-mpa-public-header] .mpa-unified-login{display:none!important}
  [data-mpa-public-header] .mpa-unified-menu{display:flex!important}
  [data-mpa-public-header] .mpa-unified-home{display:inline-flex!important}
  [data-mpa-public-header] .mpa-unified-actions{
    margin-left:auto!important;display:flex!important;gap:8px!important;
    min-width:0!important;flex-shrink:0!important;
  }
  [data-mpa-public-header] .mpa-unified-theme{
    display:inline-flex!important;order:0!important;position:relative!important;
    flex:0 0 42px!important;
  }
}
body:has(.formation-page) [data-mpa-public-header] .mpa-unified-theme{
  display:inline-flex!important;visibility:visible!important;
  opacity:1!important;pointer-events:auto!important;
}


/* Shared public header uses the approved Formazione composition:
   white wordmark, compact links, socials, theme switch, text login, blue CTA. */
[data-mpa-public-header] .mpa-unified-header{
  background:var(--public-header-background)!important;
  border-bottom-color:var(--public-header-border)!important;
}
[data-mpa-public-header] .mpa-unified-inner{
  width:min(1180px,calc(100% - 44px));
  min-height:72px;gap:18px;
}
[data-mpa-public-header] .mpa-unified-brand{
  gap:9px;flex:0 0 auto;font-size:14.5px;font-weight:900;
}
[data-mpa-public-header] .mpa-unified-brand img{width:34px;height:34px}
[data-mpa-public-header] .mpa-unified-brand>span{font-size:14.5px;letter-spacing:-.02em}
[data-mpa-public-header] .mpa-unified-brand span span{
  color:var(--public-text)!important;
  background:none!important;-webkit-text-fill-color:var(--public-text)!important;
}
[data-mpa-public-header] .mpa-unified-desktop{gap:4px;margin-left:auto}
[data-mpa-public-header] .mpa-unified-desktop a{
  border:1px solid transparent;border-radius:9px;padding:8px 10px;
  font-size:12px;font-weight:800;
}
[data-mpa-public-header] .mpa-unified-desktop a.mpa-unified-active{
  padding:8px 10px;border-color:var(--public-border)!important;
  background:color-mix(in srgb,var(--public-panel) 55%,transparent)!important;
}
[data-mpa-public-header] .mpa-unified-actions{gap:7px}
[data-mpa-public-header] .mpa-unified-socials{gap:6px}
[data-mpa-public-header] .mpa-unified-socials a{
  width:32px;height:32px;border-radius:9px;
}
[data-mpa-public-header] .mpa-unified-theme{
  position:relative;order:0;min-width:36px;min-height:36px;
  padding:0 7px;border-radius:9px;font-size:18px;line-height:1;
  color:var(--public-text)!important;background:var(--public-panel);
}
[data-mpa-public-header] .mpa-unified-login{
  background:transparent;border-color:transparent;padding:8px 10px;
  font-size:12px;color:var(--public-muted)!important;
}
[data-mpa-public-header] .mpa-unified-login:hover{
  background:var(--public-accent-soft);color:var(--public-text)!important;
}
[data-mpa-public-header] .mpa-unified-trial{
  min-height:34px;padding:8px 11px;border-radius:9px;
  font-size:12px;background:linear-gradient(135deg,#38bdf8,#2563eb);
  border-color:rgba(56,189,248,.30);box-shadow:0 10px 24px rgba(37,99,235,.15);
}
@media(min-width:1101px){
  [data-mpa-public-header] .mpa-unified-desktop{display:flex!important}
  [data-mpa-public-header] .mpa-unified-actions>.mpa-unified-socials{display:flex!important}
  [data-mpa-public-header] .mpa-unified-login{display:inline-flex!important}
  [data-mpa-public-header] .mpa-unified-home,
  [data-mpa-public-header] .mpa-unified-menu{display:none!important}
}
@media(max-width:1100px){
  [data-mpa-public-header] .mpa-unified-desktop,
  [data-mpa-public-header] .mpa-unified-actions>.mpa-unified-socials{display:none!important}
  [data-mpa-public-header] .mpa-unified-inner{gap:10px}
}
@media(max-width:470px){
  [data-mpa-public-header] .mpa-unified-inner{width:calc(100% - 28px);min-height:66px}
  [data-mpa-public-header] .mpa-unified-brand>span{font-size:13px}
  [data-mpa-public-header] .mpa-unified-trial{display:none!important}
}
