/* Final visual continuity layer: unframed wordmark and photographic diagnosis gateway. */
body.lean-home .lean-header > .lean-brand,
body.lean-home .lean-header > .lean-brand:hover,
body.lean-home .lean-header > .lean-brand:focus,
body.faults-page .site-header .brand,
body.faults-page .site-header .brand-system,
body.faults-page .site-header .brand-wordmark{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}

body.lean-home .site-entrance__mark,
body.lean-home .site-entrance__mark:hover,
body.lean-home .site-entrance__mark:focus-visible{
  width:auto!important;
  min-width:150px!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  padding:8px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.lean-home .site-entrance__mark::before,
body.lean-home .site-entrance__mark::after{
  content:none!important;
  border:0!important;
}

body.lean-home .site-entrance__eyebrow,
body.lean-home .site-entrance__wordmark,
body.lean-home .site-entrance__note,
body.faults-page .site-header .brand small{
  display:none!important;
}

body.lean-home .site-entrance__icon-frame{
  display:grid!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.lean-home .site-entrance__icon-frame img{
  width:clamp(112px,13vw,144px)!important;
  height:auto!important;
}

@media (max-width:600px){
  body.lean-home .site-entrance__icon-frame img{
    width:clamp(104px,30vw,126px)!important;
  }
}

body.lean-home .site-entrance__mark small{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:50px;
  margin-top:22px;
  padding:14px 24px!important;
  border:1.5px solid rgba(255,255,255,.92)!important;
  border-radius:999px;
  color:#fff!important;
  background:rgba(12,42,47,.78);
  box-shadow:0 12px 30px rgba(3,25,26,.30);
  font:800 .78rem/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
  letter-spacing:.15em!important;
  white-space:nowrap;
}

body.lean-home .site-entrance__mark:hover small{
  background:rgba(12,42,47,.92);
  box-shadow:0 16px 34px rgba(3,25,26,.38);
}

body.lean-home .site-entrance__mark:focus-visible{
  outline:0!important;
}

body.lean-home .site-entrance__mark:focus-visible small{
  border-color:#ee7b40!important;
  box-shadow:0 0 0 3px rgba(238,123,64,.34),0 16px 34px rgba(3,25,26,.38);
}

html body.lean-home #site-entrance-enter,
html body.lean-home #site-entrance-enter:hover,
html body.lean-home #site-entrance-enter:focus-visible{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

body.lean-home .lean-header > .lean-brand::before,
body.lean-home .lean-header > .lean-brand::after,
body.faults-page .site-header .brand::before,
body.faults-page .site-header .brand::after{display:none!important}

body.faults-page.entry-release > .entry-switch{
  --entry-photo:url("home-cards/guasti-controller-v1.webp");
  position:relative;
  isolation:isolate;
  display:grid;
  width:100%;
  max-width:none;
  min-height:430px;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-content:end;
  gap:14px;
  margin:0;
  padding:245px max(32px,calc((100vw - 1176px)/2)) 38px;
  overflow:hidden;
  border-bottom:6px solid #ee7b40;
  background:
    linear-gradient(100deg,rgba(249,252,253,.91) 0%,rgba(249,252,253,.68) 42%,rgba(249,252,253,.16) 76%,rgba(249,252,253,.02) 100%),
    var(--entry-photo) 72% 48%/cover no-repeat;
  box-shadow:0 22px 50px rgba(18,52,61,.13);
}

body.faults-page.entry-release > .entry-switch::before{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.08) 48%,rgba(224,234,236,.28) 100%);
  content:"";
  pointer-events:none;
}

body.faults-page.entry-release > .entry-switch a{
  min-height:94px;
  padding:20px 14px;
  border:2px solid rgba(255,255,255,.82)!important;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.19))!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(18,52,61,.10),0 13px 30px rgba(18,52,61,.13)!important;
  -webkit-backdrop-filter:blur(17px) saturate(112%);
  backdrop-filter:blur(17px) saturate(112%);
}

body.faults-page.entry-release > .entry-switch a[aria-current]{
  border-color:rgba(var(--entry-rgb),.62)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.75),rgba(var(--entry-rgb),.16))!important;
  box-shadow:inset 0 1px 0 #fff,0 17px 35px rgba(18,52,61,.17)!important;
}

body.faults-page.entry-release > .entry-switch a strong{font-size:clamp(14px,1.45vw,19px)}

body.faults-page.entry-release > .entry-switch a:hover,
body.faults-page.entry-release > .entry-switch a:focus-visible{
  transform:translateY(-4px);
  border-color:rgba(var(--entry-rgb),.68)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.27))!important;
  box-shadow:inset 0 1px 0 #fff,0 20px 38px rgba(18,52,61,.19)!important;
}

body.faults-page.entry-release .faults-hero{
  padding:54px 0!important;
  color:#203a3c!important;
  background:#edf4f6!important;
  box-shadow:none!important;
}

body.faults-page.entry-release .faults-hero h1{text-shadow:none!important}

/* Biblioteca: the same photographic glass gateway used by the diagnosis page. */
body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch{
  --entry-photo:url("home-cards/biblioteca-manuale-v1.webp");
  position:relative;
  isolation:isolate;
  display:grid;
  width:100%;
  max-width:none;
  min-height:430px;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-content:end;
  gap:14px;
  margin:0;
  padding:245px max(32px,calc((100vw - 1176px)/2)) 38px;
  overflow:hidden;
  border-bottom:6px solid #ee7b40;
  background:
    linear-gradient(100deg,rgba(249,252,253,.91) 0%,rgba(249,252,253,.68) 42%,rgba(249,252,253,.16) 76%,rgba(249,252,253,.02) 100%),
    var(--entry-photo) 66% 48%/cover no-repeat;
  box-shadow:0 22px 50px rgba(18,52,61,.13);
}

body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch::before{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.08) 48%,rgba(224,234,236,.28) 100%);
  content:"";
  pointer-events:none;
}

body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a{
  min-height:94px;
  padding:20px 14px;
  border:2px solid rgba(255,255,255,.82)!important;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.19))!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(18,52,61,.10),0 13px 30px rgba(18,52,61,.13)!important;
  -webkit-backdrop-filter:blur(17px) saturate(112%);
  backdrop-filter:blur(17px) saturate(112%);
}

body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a[aria-current]{
  border-color:rgba(var(--entry-rgb),.62)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.75),rgba(var(--entry-rgb),.16))!important;
  box-shadow:inset 0 1px 0 #fff,0 17px 35px rgba(18,52,61,.17)!important;
}

body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a strong{font-size:clamp(14px,1.45vw,19px)}

body.library-page-v2.entry-release .library-hero{
  color:#203a3c!important;
  background:#edf4f6!important;
  box-shadow:none!important;
}

body.tools-page.entry-release > .entry-switch{--entry-photo:url("home-cards/attrezzature-manifold-v1.webp")}
body.inverter-page.entry-release > .entry-switch{--entry-photo:url("home-cards/inverter-drive-v1.webp")}

/* REFTHE serious field edition: content and search lead, photography supports. */
@media(min-width:901px){
  body.lean-home .lean-header{min-height:270px;padding-top:28px;padding-bottom:28px;box-shadow:0 10px 26px rgba(18,52,61,.10)}
  body.lean-home .lean-header .gallery-nav{left:max(24px,calc((100vw - 1320px)/2));width:min(1180px,calc(100vw - 48px));max-width:none;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
  body.lean-home .lean-header .gallery-nav .gallery-nav__object{height:72px;min-height:72px;max-height:72px;padding:15px 8px 12px}
  body.faults-page.entry-release>.entry-switch,
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release>.entry-switch{min-height:300px;padding:178px max(24px,calc((100vw - 1176px)/2)) 24px;gap:10px;border-bottom-width:4px;box-shadow:0 10px 26px rgba(18,52,61,.10)}
  body.faults-page.entry-release>.entry-switch{grid-template-columns:repeat(7,minmax(0,1fr))}
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release>.entry-switch{grid-template-columns:repeat(5,minmax(0,1fr))}
  body.faults-page.entry-release>.entry-switch a,
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release>.entry-switch a{min-height:68px;padding:13px 10px;border-width:1px!important;border-radius:10px;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 12px rgba(18,52,61,.09)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(max-width:900px){
  body.lean-home .lean-header{min-height:410px}
  body.faults-page.entry-release>.entry-switch,
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release>.entry-switch{min-height:430px;padding-top:185px}
}

body.tools-page.entry-release > .entry-switch,
body.inverter-page.entry-release > .entry-switch{
  position:relative;
  isolation:isolate;
  display:grid;
  width:100%;
  max-width:none;
  min-height:430px;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-content:end;
  gap:14px;
  margin:0;
  padding:245px max(32px,calc((100vw - 1176px)/2)) 38px;
  overflow:hidden;
  border-bottom:6px solid #ee7b40;
  background:linear-gradient(100deg,rgba(249,252,253,.91) 0%,rgba(249,252,253,.68) 42%,rgba(249,252,253,.16) 76%,rgba(249,252,253,.02) 100%),var(--entry-photo) 66% 48%/cover no-repeat;
  box-shadow:0 22px 50px rgba(18,52,61,.13);
}

body.tools-page.entry-release > .entry-switch::before,
body.inverter-page.entry-release > .entry-switch::before{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.08) 48%,rgba(224,234,236,.28) 100%);
  content:"";
  pointer-events:none;
}

body.tools-page.entry-release > .entry-switch a,
body.inverter-page.entry-release > .entry-switch a{
  min-height:94px;
  padding:20px 14px;
  border:2px solid rgba(255,255,255,.82)!important;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.19))!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(18,52,61,.10),0 13px 30px rgba(18,52,61,.13)!important;
  -webkit-backdrop-filter:blur(17px) saturate(112%);
  backdrop-filter:blur(17px) saturate(112%);
}

body.tools-page.entry-release > .entry-switch a[aria-current],
body.inverter-page.entry-release > .entry-switch a[aria-current]{
  border-color:rgba(var(--entry-rgb),.62)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.75),rgba(var(--entry-rgb),.16))!important;
  box-shadow:inset 0 1px 0 #fff,0 17px 35px rgba(18,52,61,.17)!important;
}

body.tools-page.entry-release > .entry-switch a strong,
body.inverter-page.entry-release > .entry-switch a strong{font-size:clamp(14px,1.45vw,19px)}

body.tools-page.entry-release .tools-hero{color:#203a3c!important;background:#edf4f6!important;box-shadow:none!important}

@media(max-width:800px){
  body.faults-page.entry-release > .entry-switch{
    min-height:550px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:255px 20px 30px;
    background-position:center,67% 42%;
  }

  body.faults-page.entry-release > .entry-switch a{min-height:82px;padding:14px 9px}
  body.faults-page.entry-release > .entry-switch a:nth-child(5){grid-column:1/-1}
  body.faults-page.entry-release > .entry-switch a strong{font-size:16px}

  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch{
    min-height:550px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:255px 20px 30px;
    background-position:center,64% 42%;
  }

  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a{min-height:82px;padding:14px 9px}
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a:nth-child(5){grid-column:1/-1}
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a strong{font-size:16px}
}

@media(max-width:420px){
  body.faults-page.entry-release > .entry-switch{
    min-height:510px;
    padding:225px 16px 26px;
  }

  body.faults-page.entry-release > .entry-switch a{min-height:76px}
  body.faults-page.entry-release > .entry-switch a strong{font-size:14px}

  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch{
    min-height:510px;
    padding:225px 16px 26px;
  }

  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a{min-height:76px}
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a strong{font-size:14px}
}

@media(prefers-reduced-motion:reduce){
  body.faults-page.entry-release > .entry-switch a{transition:none!important}
  body:is(.library-page-v2,.tools-page,.inverter-page).entry-release > .entry-switch a{transition:none!important}
}

/* The product and inverter gateways share the library composition. */
body.tools-page.entry-release > .entry-switch{--entry-photo:url("home-cards/attrezzature-manifold-v1.webp")}
body.inverter-page.entry-release > .entry-switch{--entry-photo:url("home-cards/inverter-drive-v1.webp")}
