/*
Generale Pagine client PSC (home, login client, eventuali landing, ecc.)
*/

/* ---------------------------
   GENERAL CLIENT
---------------------------- */
/* Background base */
html:has(body.psc-theme.client-side),
body.psc-theme.client-side {
    background: #fff !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.psc-theme.client-side #content {
  flex: 1 1 auto;
  min-height: 0 !important;
  background: #fff !important;
  margin-top: 45px !important;
  margin-bottom: 105px !important;
}
/* Evita clear “spaziatori” */
body.psc-theme.client-side > .clear {
  display: none !important;
}
/* evita clipping del ::before full-bleed */
body.psc-theme.client-side #content,
body.psc-theme.client-side .psc-home-wrapper,
body.psc-theme.client-side #container{
  overflow: visible !important;
}
/* ---------------------------
   FINE GENERAL CLIENT
---------------------------- */


















/* ---------------------------
   HEADER CLIENT
---------------------------- */
body.psc-theme #container {
  height: var(--header-height) !important;
}

body.psc-theme #header-inner {
    max-width: var(--page-max-width) !important;  /* OsTicket per evitare dispersione mette larghezza massima 1264px */    
    display: flex;
    align-items: center;        
    justify-content: space-between; 
    height: 100%;     
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}



body.psc-theme.client-side .pull-right.flush-right{
  position: static !important;
  top: auto !important;
  transform: none !important;
}

/* wrapper login */
body.psc-theme.client-side .pull-right.flush-right p{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;      /* spazio tra testo e bottone */
  margin: 0 !important;
  white-space: nowrap !important; /* evita che vada a capo */
}

/* bottone */
body.psc-theme.client-side .pull-right.flush-right a.btn{
  display: inline-flex !important;
  align-items: center !important;
}






















body.psc-theme.client-side #nav-wrapper{
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;

  width: 100% !important;
  min-height: var(--client-nav-min-height, 64px) !important;

  /* IMPORTANT: niente height fissa, sennò schiacci contenuti */
  height: auto !important;
  overflow: visible !important;
  background: var(--color-bg-layout-header) !important;
}

/* nav-inner come container */
body.psc-theme.client-side #nav-inner{
  max-width: var(--page-max-width, 1120px) !important;
  margin: 0 auto !important;
  padding-left: var(--page-gutter-x, 24px) !important;
  padding-right: var(--page-gutter-x, 24px) !important;
  box-sizing: border-box !important;
  min-height: var(--client-nav-min-height, 64px) !important;
  display: flex !important;
  align-items: center !important;
}

/* menu UL: deve avere altezza e centratura verticale */
body.psc-theme.client-side #nav-inner > ul#nav{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;

  display: flex !important;
  align-items: center !important;
  min-height: var(--client-nav-min-height, 64px) !important;
}

/* lang-wrapper: NON deve essere assoluto (altrimenti crea overlay strani) */
body.psc-theme.client-side #lang-wrapper{
  margin-left: auto !important;
  position: static !important;

  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: var(--client-nav-min-height, 64px) !important;
}

body.psc-theme.client-side #nav-wrapper a {
   display: inline-flex !important;
  align-items: center !important;

  font-family: Inter, var(--font-body) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;

  color: var(--color-text-on-brand) !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

body.psc-theme.client-side ul#nav li a svg {
  fill: var(--color-text-on-brand);
}

body.psc-theme.client-side #left-logo {
  margin: 12px 11px 12px 12px !important;
}

body.psc-theme.client-side #header-logo {
  margin: 10px 20px 0px 20px !important; 
}
/* ---------------------------
   FINE HEADER CLIENT
---------------------------- */




/* ---------------------------
   FOOTER CLIENT
---------------------------- */
/* Footer PSC in fondo */
body.psc-theme.client-side .psc-footer-wrapper {
  flex: 0 0 auto;
}
/* Nascondi eventuale footer core se presente */
body.psc-theme.client-side #footer,
body.psc-theme.client-side #footer-wrap {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* ---------------------------
   FINE FOOTER CLIENT
---------------------------- */


/* ---------------------------
   SFONDO GRIGIO PAGINE CON FORM
---------------------------- */
body.psc-theme.client-side #content > form::before{
  content: "";
  position: absolute !important;
  inset: 0 !important;                  
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  background: var(--color-bg-surface-highlight) !important;
  z-index: -1 !important;
}
/* ---------------------------
   FINE SFONDO GRIGIO PAGINE CON FORM
---------------------------- */



/* MOBILE */
@media (max-width: 860px){
  body.psc-theme.client-side #content,
  body.psc-theme.client-side #container{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.psc-theme.client-side #content{
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}
