/*
|--------------------------------------------------------------------------
| SASACO HEADER
|--------------------------------------------------------------------------
*/

:root{
  --sasaco-header-height:72px;
  --sasaco-header-bg:#ffffff;
  --sasaco-header-border:#e5e9f2;
  --sasaco-primary:#082c68;
  --sasaco-accent:#e30613;
}

header{
  position:sticky;
  top:0;
  z-index:999;
  background:#fff;
}

header .relative2{
  max-width:1680px;
  margin:0 auto;
  min-height:var(--sasaco-header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
}

header .left .logo img{
  max-height:52px;
  width:auto;
}

header .right{
  display:flex;
  align-items:center;
  gap:14px;
}

header .publish{
  height:48px !important;
  padding:0 22px !important;
  border-radius:12px !important;
  font-weight:600 !important;
}

@media(max-width:768px){

  header .relative2{
    min-height:62px;
    padding:0 14px;
  }

  header .left .logo img{
    max-height:42px;
  }

  header .publish{
    height:42px !important;
    padding:0 14px !important;
  }
}

/*
|--------------------------------------------------------------------------
| SASACO HEADER SEARCH
|--------------------------------------------------------------------------
*/

header .sasaco-header-main {
  width: calc(100% - 48px);
  max-width: 1680px;
  gap: 22px;
}

header .sasaco-header-main > .left {
  flex: 0 0 auto;
}

header .sasaco-header-search {
  flex: 1 1 auto;
  min-width: 0;
}

header .sasaco-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 230px 200px 110px;
  align-items: stretch;
  min-width: 0;
  height: 48px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(20, 38, 70, 0.06);
  overflow: hidden;
}

header .sasaco-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border-right: 1px solid #e6ebf2;
  background: #fff;
}

header .sasaco-search-field > i {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: #7b8797;
  font-size: 14px;
  pointer-events: none;
}

header .sasaco-search-field input,
header .sasaco-search-field select {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 14px 0 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172033;
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  outline: none;
  box-shadow: none;
}

header .sasaco-search-field select {
  cursor: pointer;
  appearance: auto;
}

header .sasaco-search-field:focus-within {
  background: #f8fbff;
}

header .sasaco-search-submit {
  height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #082c68;
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease;
}

header .sasaco-search-submit:hover {
  background: #061f4b;
}

header .sasaco-header-main > .right {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media screen and (max-width: 1280px) {
  header .sasaco-search-form {
    grid-template-columns: minmax(180px, 1fr) 190px 160px 92px;
  }

  header .sasaco-header-main {
    gap: 14px;
  }
}

/* SASACO HEADER WIDTH FIX */

@media screen and (min-width: 1024px) {
  header > .inside {
    width: calc(100% - 32px);
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
  }

  header .sasaco-header-main {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }

  header .sasaco-header-main > .left {
    flex: 0 0 180px;
    width: 180px;
  }

  header .sasaco-header-main > .left .logo {
    width: 100%;
  }

  header .sasaco-header-search {
    flex: 1 1 700px;
    width: auto;
    min-width: 500px;
  }

  header .sasaco-header-main > .right {
    flex: 0 0 auto;
    width: auto;
    max-width: 410px;
    gap: 12px;
  }

  header .publish {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1350px) {
  header .sasaco-header-main > .left {
    flex-basis: 145px;
    width: 145px;
  }

  header .sasaco-header-search {
    min-width: 440px;
  }

  header .sasaco-search-form {
    grid-template-columns:
      minmax(170px, 1fr)
      170px
      145px
      82px;
  }

  header .publish {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* SASACO HEADER FINAL ALIGNMENT */

@media screen and (min-width: 1024px) {
  header .sasaco-header-main {
    display: grid;
    grid-template-columns: 170px minmax(620px, 1fr) auto;
    align-items: center;
    gap: 18px;
  }

  header .sasaco-header-main > .left {
    width: 170px;
    min-width: 170px;
  }

  header .sasaco-header-main > .left .logo,
  header .sasaco-header-main > .left .logo a {
    display: flex;
    align-items: center;
    width: 100%;
  }

  header .sasaco-header-main > .left .logo img {
    width: 155px;
    max-width: 155px;
    max-height: 54px;
    object-fit: contain;
  }

  header .sasaco-header-search {
    width: 100%;
    min-width: 0;
  }

  header .sasaco-header-main > .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: max-content;
    max-width: none;
    gap: 14px;
  }

  header .sasaco-header-main > .right .publish {
    width: auto !important;
    min-width: 190px;
    max-width: none;
    padding-left: 18px !important;
    padding-right: 18px !important;
    white-space: nowrap;
  }

  header .sasaco-header-main > .right .publish > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
  }

  header .sasaco-header-main > .right .register,
  header .sasaco-header-main > .right .login,
  header .sasaco-header-main > .right .logout,
  header .sasaco-header-main > .right .my-account {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1450px) {
  header .sasaco-header-main {
    grid-template-columns: 145px minmax(500px, 1fr) auto;
    gap: 12px;
  }

  header .sasaco-header-main > .left {
    width: 145px;
    min-width: 145px;
  }

  header .sasaco-header-main > .left .logo img {
    width: 135px;
    max-width: 135px;
  }

  header .sasaco-header-main > .right {
    gap: 10px;
  }

  header .sasaco-header-main > .right .publish {
    min-width: 165px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* SASACO HEADER COMPACT TUNING */

@media screen and (min-width: 1024px) {
  header > .inside {
    width: calc(100% - 20px);
  }

  header .sasaco-header-main {
    grid-template-columns: 150px minmax(560px, 1fr) auto;
    gap: 14px;
  }

  header .sasaco-header-main > .left {
    width: 150px;
    min-width: 150px;
  }

  header .sasaco-header-main > .left .logo img {
    width: 140px;
    max-width: 140px;
  }

  header .sasaco-header-main > .right {
    gap: 10px;
  }

  header .sasaco-header-main > .right .publish {
    min-width: 170px;
    height: 46px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header .sasaco-header-main > .right .register,
  header .sasaco-header-main > .right .login {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1350px) {
  header .sasaco-header-main {
    grid-template-columns: 130px minmax(460px, 1fr) auto;
    gap: 10px;
  }

  header .sasaco-header-main > .left {
    width: 130px;
    min-width: 130px;
  }

  header .sasaco-header-main > .left .logo img {
    width: 120px;
    max-width: 120px;
  }

  header .sasaco-header-main > .right .publish {
    min-width: 150px;
  }

  header .sasaco-search-form {
    grid-template-columns:
      minmax(160px, 1fr)
      150px
      130px
      78px;
  }
}


/* SASACO HEADER VISUAL ONLY FINAL */

@media screen and (min-width: 1024px) {

  /* Non modifica dimensioni, larghezze o altezze */
  header {
    background: #ffffff;
    border-bottom: 0;
    box-shadow: 0 3px 14px rgba(8, 44, 104, 0.10);
  }

  /* Barra superiore Contattaci invariata */
  header .relative1 {
    background: #ffffff !important;
    border-bottom: 1px solid #e4e9f1;
  }

  header .relative1 a {
    color: #445066;
  }

  header .relative1 a:hover {
    color: #ff4b0b;
  }

  /* Riga principale blu SASACO */
  header .sasaco-header-main {
    background: #061a3a !important;
  }

  /* Logo su riquadro bianco */
  header .sasaco-header-main > .left {
    background: #ffffff !important;
    border-right: 1px solid #dce3ed;
  }

  /* Area ricerca blu */
  header .sasaco-header-search {
    background: #061a3a !important;
  }

  /* Barra ricerca bianca */
  header .sasaco-search-form {
    background: #ffffff !important;
    border: 1px solid #244064 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
  }

  header .sasaco-search-field,
  header .sasaco-search-field input,
  header .sasaco-search-field select {
    background: #ffffff !important;
    color: #172033 !important;
  }

  header .sasaco-search-field {
    border-right-color: #dfe5ee !important;
  }

  header .sasaco-search-field > i {
    color: #718096 !important;
  }

  header .sasaco-search-field:focus-within {
    background: #f7faff !important;
    box-shadow: inset 0 0 0 2px rgba(33, 107, 255, 0.13);
  }

  /* Pulsante Cerca arancione */
  header .sasaco-search-submit {
    background: #ff4b0b !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  header .sasaco-search-submit:hover {
    background: #e84206 !important;
  }

  /* Area account */
  header .sasaco-header-main > .right {
    background: #061a3a !important;
  }

  header .sasaco-header-main > .right .register,
  header .sasaco-header-main > .right .login,
  header .sasaco-header-main > .right .logout,
  header .sasaco-header-main > .right .my-account {
    color: #ffffff !important;
  }

  header .sasaco-header-main > .right .register:hover,
  header .sasaco-header-main > .right .login:hover,
  header .sasaco-header-main > .right .logout:hover,
  header .sasaco-header-main > .right .my-account:hover {
    color: #ff9b73 !important;
  }

  /* Inserisci annuncio arancione pieno */
  header .sasaco-header-main > .right .publish {
    background: #ff4b0b !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  header .sasaco-header-main > .right .publish:hover {
    background: #e84206 !important;
  }

  /* Elimina il riquadro/alone interno Delta */
  header .sasaco-header-main > .right .publish > span,
  header .sasaco-header-main > .right .publish > span.mbCl2,
  header .sasaco-header-main > .right .publish > span > span {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }

  header .sasaco-header-main > .right .publish svg {
    fill: #ffffff !important;
  }
}


/* SASACO HEADER ROUNDED ENDS ONLY */

@media screen and (min-width: 1024px) {

  header .sasaco-header-main {
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
  }

  header .sasaco-header-main > .left {
    border-top-left-radius: 18px !important;
    border-bottom-left-radius: 18px !important;
  }

  header .sasaco-header-main > .right {
    border-top-right-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
  }
}


/* ==========================================================
   SASACO HEADER SIDE COLOR EFFECT
========================================================== */

.sasaco-header-wrapper,
.sasaco-main-header{
    background: linear-gradient(
        90deg,
        #234985 0%,
        #001b4d 12%,
        #001b4d 88%,
        #234985 100%
    ) !important;
}


/* ==========================================================
   SASACO HEADER PREMIUM EDGES
========================================================== */

.sasaco-header-shell{
    overflow:hidden;
    box-shadow:
        0 8px 22px rgba(0,0,0,.12),
        inset 14px 0 18px rgba(255,255,255,.06),
        inset -14px 0 18px rgba(255,255,255,.06);
}

.sasaco-header-shell:before,
.sasaco-header-shell:after{
    content:'';
    position:absolute;
    top:0;
    width:40px;
    height:100%;
    pointer-events:none;
}

.sasaco-header-shell:before{
    left:0;
    background:linear-gradient(
        90deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,0)
    );
}

.sasaco-header-shell:after{
    right:0;
    background:linear-gradient(
        270deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,0)
    );
}



  header .sasaco-header-main > .left,
  header .sasaco-header-search,
  header .sasaco-header-main > .right {
    position: relative;
    z-index: 1;
  }

  header .sasaco-header-search,
  header .sasaco-header-main > .right {
    background: transparent !important;
  }
}


/* SASACO HEADER EDGE HIGHLIGHTS */

@media screen and (min-width: 1024px) {

  header .sasaco-header-main::before,
  header .sasaco-header-main::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 26px;
    z-index: 5;
    pointer-events: none;
  }

  header .sasaco-header-main::before {
    left: 0;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(
      90deg,
      rgba(50, 94, 160, 0.75) 0%,
      rgba(50, 94, 160, 0) 100%
    );
  }

  header .sasaco-header-main::after {
    right: 0;
    border-radius: 0 18px 18px 0;
    background: linear-gradient(
      270deg,
      rgba(50, 94, 160, 0.75) 0%,
      rgba(50, 94, 160, 0) 100%
    );
  }
}


/* SASACO HEADER SUBITO AIRY FINAL */

@media screen and (min-width: 1024px) {

  /* Mantiene larghezza e bordi attuali, aumenta solo il respiro */
  header .sasaco-header-main {
    min-height: 72px !important;
    align-items: center !important;
  }

  header .sasaco-header-main > .left {
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  header .sasaco-header-main > .left .logo,
  header .sasaco-header-main > .left .logo a {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  header .sasaco-header-main > .left .logo img {
    width: 135px !important;
    max-width: 135px !important;
    max-height: 56px !important;
    object-fit: contain !important;
  }

  header .sasaco-header-search {
    min-height: 72px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
  }

  header .sasaco-search-form {
    height: 48px !important;
  }

  header .sasaco-search-field,
  header .sasaco-search-field input,
  header .sasaco-search-field select {
    height: 48px !important;
  }

  header .sasaco-search-field input,
  header .sasaco-search-field select {
    font-size: 14px !important;
  }

  header .sasaco-search-submit {
    height: 48px !important;
    font-size: 14px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  header .sasaco-header-main > .right {
    height: 72px !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
  }

  header .sasaco-header-main > .right .publish {
    height: 48px !important;
    min-height: 48px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  header .sasaco-header-main > .right .publish > span,
  header .sasaco-header-main > .right .publish > span.mbCl2 {
    height: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  header .sasaco-header-main > .right .register,
  header .sasaco-header-main > .right .login,
  header .sasaco-header-main > .right .logout,
  header .sasaco-header-main > .right .my-account {
    min-height: 44px !important;
    font-size: 14px !important;
  }
}


/* SASACO HEADER FINAL INNER SPACING */

@media screen and (min-width: 1024px) {

  header .sasaco-header-main > .left {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header .sasaco-header-main > .right {
    padding-right: 18px !important;
    gap: 14px !important;
  }

  header .sasaco-header-main > .right .register,
  header .sasaco-header-main > .right .login,
  header .sasaco-header-main > .right .logout,
  header .sasaco-header-main > .right .my-account {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}


/* ==========================================================
   SASACO HEADER FLAT COLOR
========================================================== */

@media screen and (min-width:1024px){

  header .sasaco-header-main{
    background:#061a3a !important;
    background-image:none !important;
  }

}


/* SASACO HEADER BALANCED FINAL */

@media screen and (min-width: 1024px) {

  /* Mantiene larghezza e altezza attuali */
  header .sasaco-header-main {
    display: grid !important;
    grid-template-columns: 145px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 12px !important;
  }

  /* Logo */
  header .sasaco-header-main > .left {
    width: 145px !important;
    min-width: 145px !important;
    box-sizing: border-box !important;
  }

  /* Ricerca: occupa tutto lo spazio disponibile */
  header .sasaco-header-search {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  header .sasaco-search-form {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-template-columns:
      minmax(220px, 1fr)
      210px
      170px
      90px !important;
  }

  /* Azioni a destra */
  header .sasaco-header-main > .right {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding-left: 8px !important;
    padding-right: 16px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  header .sasaco-header-main > .right .publish {
    min-width: 185px !important;
    margin: 0 !important;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1350px) {

  header .sasaco-header-main {
    grid-template-columns: 130px minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
  }

  header .sasaco-header-main > .left {
    width: 130px !important;
    min-width: 130px !important;
  }

  header .sasaco-search-form {
    grid-template-columns:
      minmax(170px, 1fr)
      165px
      130px
      78px !important;
  }

  header .sasaco-header-main > .right {
    gap: 9px !important;
    padding-right: 10px !important;
  }

  header .sasaco-header-main > .right .publish {
    min-width: 155px !important;
  }
}


/* ==========================================================
   SASACO HEADER FINAL BALANCE
========================================================== */

@media screen and (min-width:1024px){

  header .sasaco-header-main{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

  header .sasaco-header-search{
    flex:1 1 auto !important;
    max-width:900px !important;
    margin-right:24px !important;
  }

  header .sasaco-header-main > .right{
    display:flex !important;
    align-items:center !important;
    gap:18px !important;
    margin-left:0 !important;
    padding-right:18px !important;
    white-space:nowrap !important;
  }

  header .sasaco-header-main > .right .publish{
    margin-right:8px !important;
  }

}

/* =========================================================
   SASACO FIX - MY ACCOUNT DROPDOWN
   ========================================================= */

@media (min-width: 768px) {

  header,
  header .inside,
  header .sasaco-header-main,
  header .sasaco-header-main > .right,
  header .sasaco-header-main > .right .link-box {
    overflow: visible !important;
  }

  header {
    position: relative;
    z-index: 9999 !important;
  }

  header .sasaco-header-main {
    position: relative;
    z-index: 10000;
    overflow: visible !important;
  }

  header .sasaco-header-main > .right {
    position: relative;
    z-index: 10001;
    overflow: visible !important;
  }

  header .sasaco-header-main > .right .link-box {
    position: relative;
    z-index: 10002;
    overflow: visible !important;
  }

  header .sasaco-header-main > .right .link-box .user-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    width: 220px !important;
    z-index: 10003 !important;
    background: #fff !important;
    overflow: visible !important;
  }

}



/* ==========================================================
   SASACO ACCOUNT DROPDOWN V2
   DESKTOP / TABLET / MOBILE
   ========================================================== */

header .sasaco-account-box {
  position: relative !important;

  overflow: visible !important;

  z-index: 10020 !important;
}


/* TRIGGER ACCOUNT */
header .sasaco-account-trigger {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 7px !important;

  white-space: nowrap;
}


header .sasaco-account-trigger > i {
  font-size: 10px;

  transition: transform .18s ease;
}


header .sasaco-account-box:hover
.sasaco-account-trigger > i,

header .sasaco-account-box.is-open
.sasaco-account-trigger > i {
  transform: rotate(180deg);
}


/* ==========================================================
   DROPDOWN
   ========================================================== */

header .sasaco-account-dropdown {
  position: absolute !important;

  top: calc(100% + 13px) !important;
  right: 0 !important;
  left: auto !important;

  z-index: 99999 !important;

  width: 292px !important;
  min-width: 292px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid #e0e7f0 !important;
  border-radius: 16px !important;

  background: #fff !important;

  box-shadow:
    0 18px 48px rgba(18,38,70,.18) !important;

  overflow: hidden !important;
}


/*
 * Hover desktop.
 * Mantiene anche il comportamento Delta originale.
 */
@media screen and (min-width:960px) {

  header .sasaco-account-box:hover
  > .sasaco-account-dropdown,

  header .sasaco-account-box:focus-within
  > .sasaco-account-dropdown {
    display: block !important;
  }

}


/* triangolino */
header .sasaco-account-dropdown::before {
  content: "";

  position: absolute;

  top: -7px;
  right: 25px;

  width: 13px;
  height: 13px;

  border-left: 1px solid #e0e7f0;
  border-top: 1px solid #e0e7f0;

  background: #fff;

  transform: rotate(45deg);
}


header .sasaco-account-dropdown .ins {
  position: relative;

  z-index: 2;

  width: 100% !important;

  margin: 0 !important;
  padding: 14px !important;

  background: #fff !important;
}


/* ==========================================================
   HEADER UTENTE
   ========================================================== */

header .sasaco-account-head {
  display: flex;

  align-items: center;

  gap: 11px;

  width: 100%;

  padding: 2px 2px 11px;
}


header .sasaco-account-head .image {
  flex: 0 0 46px !important;

  width: 46px !important;
  height: 46px !important;

  margin: 0 !important;

  border-radius: 12px !important;

  overflow: hidden !important;

  background: #f0f3f8;
}


header .sasaco-account-head .image img {
  display: block;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover;

  border-radius: 12px;
}


header .sasaco-account-head-text {
  min-width: 0;
}


header .sasaco-account-head-text strong {
  display: block;

  margin: 0 0 3px;

  color: #102348 !important;

  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


header .sasaco-account-head-text span {
  display: block;

  color: #8290a5;

  font-size: 12px;
}


/* ==========================================================
   SEPARATORI
   ========================================================== */

header .sasaco-account-divider {
  width: 100%;

  height: 1px;

  margin: 4px 0 7px;

  background: #edf1f6;
}


/* ==========================================================
   LINK
   ========================================================== */

header .sasaco-account-links {
  display: block;

  width: 100%;
}


header .sasaco-account-links > a,
header .sasaco-account-logout {
  display: grid !important;

  grid-template-columns: 34px minmax(0,1fr) 14px;

  align-items: center;

  gap: 7px;

  width: 100% !important;
  min-height: 44px;

  margin: 1px 0 !important;
  padding: 7px 9px !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: transparent !important;

  color: #263957 !important;

  font-size: 13px !important;
  font-weight: 600 !important;

  text-decoration: none !important;

  transition:
    background .15s ease,
    color .15s ease;
}


header .sasaco-account-links > a:hover {
  background: #f1f6ff !important;

  color: #1264df !important;
}


header .sasaco-account-link-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border-radius: 9px;

  background: #f2f5f9;

  color: #52647d;

  font-size: 13px;

  transition:
    background .15s ease,
    color .15s ease;
}


header .sasaco-account-links > a:hover
.sasaco-account-link-icon {
  background: #e4efff;

  color: #1264df;
}


header .sasaco-account-arrow {
  justify-self: end;

  color: #a2adbd;

  font-size: 9px;
}


/* ==========================================================
   ESCI
   ========================================================== */

header .sasaco-account-logout {
  grid-template-columns: 34px minmax(0,1fr) !important;

  color: #d83b49 !important;
}


header .sasaco-account-logout
.sasaco-account-link-icon {
  background: #fff1f2;

  color: #d83b49;
}


header .sasaco-account-logout:hover {
  background: #fff4f5 !important;

  color: #c92f3d !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (min-width:960px)
and (max-width:1399px) {

  header .sasaco-account-dropdown {
    width: 278px !important;
    min-width: 278px !important;

    right: -4px !important;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media screen and (max-width:959px) {

  header .sasaco-account-box {
    position: static !important;
  }


  header .sasaco-account-dropdown {
    position: absolute !important;

    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    border-radius: 14px !important;
  }


  header .sasaco-account-dropdown::before {
    display: none;
  }


  header .sasaco-account-box.is-open
  > .sasaco-account-dropdown {
    display: block !important;
  }


  header .sasaco-account-dropdown .ins {
    padding: 12px !important;
  }


  header .sasaco-account-links > a,
  header .sasaco-account-logout {
    min-height: 48px;

    font-size: 14px !important;
  }

}


/* ==========================================================
   SASACO ACCOUNT DROPDOWN
   FIX INTESTAZIONE UTENTE
   ========================================================== */

header .sasaco-account-head {
  display: flex !important;
  align-items: center !important;

  gap: 12px !important;

  width: 100% !important;

  padding: 3px 3px 12px !important;
}


header .sasaco-account-head .image {
  flex: 0 0 46px !important;

  width: 46px !important;
  height: 46px !important;
}


header .sasaco-account-head-text {
  display: flex !important;

  flex-direction: column !important;

  justify-content: center !important;

  flex: 1 1 auto !important;

  min-width: 0 !important;
}


header .sasaco-account-head-text strong {
  display: block !important;

  width: 100% !important;

  margin: 0 0 4px !important;

  color: #102348 !important;

  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;

  white-space: nowrap !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;
}


header .sasaco-account-head-text span {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;

  color: #8290a5 !important;

  font-size: 12px !important;
  line-height: 1.3 !important;

  white-space: nowrap !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;
}


/* MOBILE */
@media screen and (max-width:959px) {

  header .sasaco-account-head-text strong {
    font-size: 15px !important;
  }

  header .sasaco-account-head-text span {
    font-size: 12px !important;
  }

}

/* ==========================================================
   SASACO ACCOUNT DROPDOWN - HOVER BRIDGE FIX
   Evita la chiusura mentre il cursore passa
   dal trigger Account al dropdown.
   Solo desktop.
   ========================================================== */

@media screen and (min-width: 960px) {

  header .sasaco-account-box::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 18px;
    background: transparent;
    pointer-events: auto;
  }

  header .sasaco-account-box:hover .sasaco-account-dropdown,
  header .sasaco-account-box.is-open .sasaco-account-dropdown {
    display: block !important;
  }

  header .sasaco-account-dropdown {
    top: calc(100% + 10px) !important;
  }

}
