/*---------------------------------------------------
  1) Variabili & Base
---------------------------------------------------*/
:root {
  --clr-accent: #008C96;
  --clr-accent-light: rgba(0, 140, 150, 0.10);
  --clr-bg: #FFFFFF;
  --clr-sidebar-from: #F8FAFC;
  --clr-sidebar-to: #FFFFFF;
  --clr-text: #333333;
  --clr-muted: #6E7C87;
  --clr-border: #E2E8F0;
  --radius: 10px;
  --transition: 0.3s ease;
  --sidebar-width: 290px;
  --sidebar-collapsed: 64px;
  --gap-section: 28px;
  --gap-item: 8px;
}

@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal!important;
  font-weight: 300;
  src: url('../fonts/fa/9634e88f77167595c1f7a79a900c448d.woff2') format('woff2'),
       url('../fonts/fa/9634e88f77167595c1f7a79a900c448d.woff') format('woff'),
       url('../fonts/fa/9634e88f77167595c1f7a79a900c448d.ttf') format('truetype');
} 
.fa-light, .fa-regular, .fa-solid, .fa-thin, .fa-duotone {
  font-family: 'Font Awesome 6 Pro', sans-serif !important;
  font-style: normal!important;
}

body.sivit-app-body {
  margin: 0; padding: 0;
  background: var(--clr-bg);
  font-family: 'Inter', sans-serif;
  color: var(--clr-text);
}
.sivit-app-dashboard {
  display: flex;
  min-height: 100vh;
}


#primary {
    margin: 0!important;
}


/*---------------------------------------------------
  2) Sidebar Container & Gradient
---------------------------------------------------*/
.sivit-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--clr-bg);
  border-right: 1px solid var(--clr-border);
  display: flex; flex-direction: column;
  padding: var(--gap-section) 20px;
  box-sizing: border-box;
  transition: width var(--transition);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}
.sivit-sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

/*---------------------------------------------------
  3) Logo & Toggle
---------------------------------------------------*/
.sivit-logo {
  text-align: left;
  padding: 0 var(--gap-item);
  margin-bottom: var(--gap-section);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 52px; /* spazio per hamburger sopra */
  padding-bottom: 18px; /* spazio per hamburger sopra */
}
.sivit-logo img {
  max-width: 132px;
  transition: max-width var(--transition);
}
.sivit-sidebar.collapsed .sivit-logo img {
  max-width: 32px;
  margin: 0 auto;
  display: block;
}

/* Hamburger sopra il logo sempre */
.sivit-hamburger {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #d5dfe7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #344c5c;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
  z-index: 20;
}
.sivit-hamburger:hover {
  transform: scale(1.04);
  background: #ffffff;
  border-color: #c4d2dc;
  color: #1f3e50;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.sivit-hamburger:focus-visible {
  outline: 3px solid rgba(0, 140, 150, 0.18);
  outline-offset: 3px;
}
.sivit-hamburger span {
  display: block;
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 1px;
  transform: translateX(2px) rotate(225deg);
  transition: transform var(--transition);
}
.sivit-sidebar.collapsed .sivit-hamburger {
  color: #223746;
}
.sivit-sidebar.collapsed .sivit-hamburger span {
  transform: translateX(-1px) rotate(45deg);
}

/*---------------------------------------------------
  4) Section Headers
---------------------------------------------------*/
nav[data-section] {
  padding: 0 var(--gap-item);
}
nav[data-section]::before {
  content: attr(data-section);
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-muted);
  text-transform: uppercase;
}

/*---------------------------------------------------
  5) Menu Items & Active State
---------------------------------------------------*/
    .sivit-menu,
    .sivit-menu-secondary,
    .sivit-menu .sub-menu,
    .sivit-menu-secondary .sub-menu {
    list-style: none; margin: 0; padding: 0;
    }
    .sivit-menu li,
    .sivit-menu-secondary li {
    margin-bottom: 6px;
    }

    .sivit-menu .sivit-menu-divider-item {
    margin: 16px 0 8px;
    padding: 0 12px 0 20px;
    }
    .sivit-menu .sivit-menu-divider-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 18px;
    color: #1f2933;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    }
    .sivit-menu .sivit-menu-divider-line::after {
    content: "";
    height: 1px;
    background: var(--clr-border);
    flex: 1 1 auto;
    min-width: 18px;
    }
    .sivit-menu .sivit-menu-divider-line:empty::after {
    min-width: 100%;
    }
    .sivit-sidebar.collapsed .sivit-menu .sivit-menu-divider-item {
    width: 100%;
    margin: 10px 0;
    padding: 0 8px;
    }
    .sivit-sidebar.collapsed .sivit-menu .sivit-menu-divider-line {
    min-height: 1px;
    gap: 0;
    }
    .sivit-sidebar.collapsed .sivit-menu .sivit-menu-divider-line span,
    .sivit-sidebar.collapsed .sivit-menu .sivit-menu-divider-line::after {
    display: none;
    }

    /* I separatori di sezione (MATERIALI, FORM, ecc.) a volte ereditano da WordPress
       la classe menu-item-has-children (hanno una voce figlia nell'editor dei menu).
       Non devono mai comportarsi da voce con sottomenu: azzera qualunque sottomenu,
       freccina o stato "espanso" che Astra/WP potrebbero aggiungere. */
    .sivit-menu .sivit-menu-divider-item.menu-item-has-children {
    position: static;
    }
    .sivit-menu .sivit-menu-divider-item.menu-item-has-children > .sub-menu,
    .sivit-menu .sivit-menu-divider-item.menu-item-has-children > .children,
    .sivit-menu .sivit-menu-divider-item .sivit-menu-divider-line + .sub-menu,
    .sivit-menu .sivit-menu-divider-item .sivit-menu-divider-line + .children {
    display: none !important;
    }
    .sivit-menu .sivit-menu-divider-item.menu-item-has-children.ast-submenu-expanded {
    background: none !important;
    }
    .sivit-menu .sivit-menu-divider-line .ast-menu-toggle,
    .sivit-menu .sivit-menu-divider-line .dropdown-menu-toggle {
    display: none !important;
    }

    .sivit-menu a,
    .sivit-menu-secondary a {
    display: flex; align-items: center;
    gap: 12px;
    padding: 9px 12px 9px 20px;
    color: var(--clr-text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.32;
    }

    /* Icona sempre stessa dimensione e padding (così non si sposta nulla) */
    .sivit-menu a .fa, .sivit-menu-secondary a .fa {
    font-size: 1.1rem;
    color: var(--clr-muted);
    min-width: 1.75em;
    flex: 0 0 auto;
    text-align: center;
    box-sizing: content-box;
    transition: color 0.3s, background 0.3s;
    }

    /* Etichette lunghe: ellissi invece di taglio secco a bordo sidebar */
    .sivit-menu a .label,
    .sivit-menu-secondary a .label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    }

    /* Hover */
    .sivit-menu a:hover,
    .sivit-menu-secondary a:hover {
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    }
    .sivit-menu a:hover .fa,
    .sivit-menu-secondary a:hover .fa {
    color: var(--clr-accent);
    }

    /* Active page styling: non spostare, evidenzia con cerchietto */
    .sivit-menu .current-menu-item > a,
    .sivit-menu .current_page_item > a,
    .sivit-menu .active-menu-item > a {
    background: var(--clr-sidebar-from);
    color: var(--clr-accent);
    font-weight: 600;
    }
    .sivit-menu .current-menu-item > a .fa,
    .sivit-menu .current_page_item > a .fa,
    .sivit-menu .active-menu-item > a .fa {
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    border-radius: 50%;
    font-weight: 600;
    box-shadow: none;
    }

    /* Label attiva più marcata */
    .sivit-menu .current-menu-item > a .label,
    .sivit-menu .current_page_item > a .label,
    .sivit-menu .active-menu-item > a .label {
    color: var(--clr-accent);
    font-weight: 600;
    }

    /* Tooltip icone: mostrato via JS solo quando la sidebar è collapsed (assets/js/sivit-app.js) */
    .sivit-icon-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    background: #1f2933;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 2000;
    }
    .sivit-icon-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    }

    /* Collapsed: centra icone, nascondi label, aria ampia */
    .sivit-sidebar.collapsed .sivit-menu li,
    .sivit-sidebar.collapsed .sivit-menu-secondary li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    }
    .sivit-sidebar.collapsed .sivit-menu a,
    .sivit-sidebar.collapsed .sivit-menu-secondary a {
    justify-content: center;
    padding: 0;
    min-height: 42px;
    }
    .sivit-sidebar.collapsed .sivit-menu .label,
    .sivit-sidebar.collapsed .sivit-menu-secondary .label {
    display: none !important;
    }

    /* Collapsed: icona user centrata */
    .sivit-sidebar.collapsed .sivit-user {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    }
    .sivit-sidebar.collapsed .sivit-user img {
    margin: 0;
    }

/*---------------------------------------------------
  6) Promo Card (se la usi)
---------------------------------------------------*/
.sivit-promo {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin: var(--gap-section) var(--gap-item) 0 var(--gap-item);
  padding: var(--gap-item);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: left;
}
.sivit-promo .promo-icon {
  font-size: 1.5rem;
  color: var(--clr-accent);
  margin-bottom: 8px;
}
.sivit-promo h4 {
  margin: 4px 0;
  font-size: 1rem;
  font-weight: 600;
}
.sivit-promo p {
  margin: 8px 0;
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.4;
}
.sivit-promo .promo-btn {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}
.sivit-promo .promo-btn:hover {
  background: rgba(0, 140, 150, 0.8);
}

/*---------------------------------------------------
  7) Social & User Card
---------------------------------------------------*/
.sivit-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: var(--gap-section) 0;
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}
.sivit-social .fa {
  font-size: 1.15rem;
  color: var(--clr-muted);
  transition: color var(--transition), opacity var(--transition);
}
.sivit-social .fa:hover {
  color: var(--clr-accent);
  opacity: 1;
}
.sivit-sidebar.collapsed .sivit-social {
  display: none;
}

.sivit-user {
  display: flex; align-items: center;
  padding: var(--gap-item) var(--gap-item);
  border-top: 1px solid var(--clr-border);
}
.sivit-user img {
  width: 40px; height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}
.sivit-user .user-info {
  flex: 1;
}
.sivit-user .user-name {
  font-size: 0.95rem; font-weight: 600;
}
.sivit-user .user-email {
  font-size: 0.8rem; color: var(--clr-muted);
}
.sivit-user .user-menu {
  background: none; border: none;
  font-size: 1.2rem; color: var(--clr-muted);
  cursor: pointer; margin-left: 8px;
}

/*---------------------------------------------------
  8) Main Content & Responsive
---------------------------------------------------*/
.sivit-main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  transition: margin-left var(--transition);
}
.sivit-sidebar.collapsed ~ .sivit-main-content {
  margin-left: var(--sidebar-collapsed);
}

/*---------------------------------------------------
  9) Accessibilità e bugfix WordPress/Astra
---------------------------------------------------*/
/* Disattiva rettangolo/pallino WordPress/Astra sulle voci menu */
.sivit-menu li.menu-item > a:before,
.sivit-menu-secondary li.menu-item > a:before,
.menu-item > a:before,
.menu-item > a::before {
  content: none !important;
  display: none !important;
}
.elementor-nav-menu--main .elementor-item:before {
  content: none !important;
  display: none !important;
}
.sivit-menu .menu-item::before,
.sivit-menu .menu-item:before {
  content: none !important;
  display: none !important;
}
/* SIDEBAR COLLASSATA: hover/active sulle icone */
.sivit-sidebar.collapsed .sivit-menu a,
.sivit-sidebar.collapsed .sivit-menu-secondary a {
  background: none !important;
  padding: 0 !important;
}

.sivit-sidebar.collapsed .sivit-menu a .fa,
.sivit-sidebar.collapsed .sivit-menu-secondary a .fa {
  /* icona sempre centrata */
  display: flex;
  margin: 0 auto;
  padding: 8px;
  border-radius: 50%;
  background: none;
  transition: background 0.2s, color 0.2s;
}

/* Hover: cerchio azzurrino */
.sivit-sidebar.collapsed .sivit-menu a:hover .fa,
.sivit-sidebar.collapsed .sivit-menu-secondary a:hover .fa {
  background: rgba(0,140,150,0.10);
  color: var(--clr-accent);
}

/* Attivo: cerchio azzurrino + colore icona */
.sivit-sidebar.collapsed .sivit-menu .active-menu-item > a .fa,
.sivit-sidebar.collapsed .sivit-menu-secondary .active-menu-item > a .fa {
  background: rgba(0,140,150,0.14);
  color: var(--clr-accent);
  font-weight: 600;
}
.sivit-sidebar.collapsed .sivit-menu a:hover .fa {
  box-shadow: 0 2px 6px rgba(0,140,150,0.10);
}
/* === SOCIAL & USER CARD STICKY IN BASSO === */
.sivit-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* sopra */
  min-height: 100vh;
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--clr-bg);
  border-right: 1px solid var(--clr-border);
  padding: var(--gap-section) 20px;
  box-sizing: border-box;
  transition: width var(--transition);
  z-index: 1000;
}
@media (min-width: 801px) {
  .sivit-sidebar.collapsed {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.sivit-sidebar-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
    overflow-y: auto;
}
.sivit-sidebar-bottom {
  margin-top: auto;
  width: 100%;
}
.sivit-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 0 0;
  border-top: 1px solid var(--clr-border);
  margin-top: 18px;
  margin-bottom: 8px;
}
.sivit-social .fa-brands {
  font-size: 1.14rem;
  color: var(--clr-muted);
  transition: color 0.18s;
  border-radius: 50%;
  padding: 8px;
}
.sivit-social .fa-brands:hover {
  color: var(--clr-accent);
  background: var(--clr-accent-light);
}
.sivit-sidebar.collapsed .sivit-social {
  display: none;
}

/* USER CARD */
.sivit-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 7px 7px 7px 9px;
  min-height: 58px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.sivit-user .user-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.sivit-user img,
.sivit-user .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  background: #e5ecee;
}
.sivit-user .user-info {
  flex: 1;
  min-width: 0;
}
.sivit-user .user-name {
  font-weight: 600;
  font-size: 0.94rem;
  color: #15202b;
  line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sivit-user .user-email {
  display: none;
}
.sivit-user .user-menu {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  background: transparent;
  border: none;
  color: var(--clr-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  margin-left: 0;
  position: relative;
  z-index: 2;
}
.sivit-user .user-menu:hover {
  background: var(--clr-accent-light);
  color: var(--clr-accent);
}
.sivit-user .user-menu i {
  transition: transform 0.15s;
}
.sivit-user .user-menu.active i {
  transform: rotate(180deg);
}

/* COLLASSATO: mostra solo avatar */
.sivit-sidebar.collapsed .sivit-user .user-info,
.sivit-sidebar.collapsed .sivit-user .user-menu {
  display: none !important;
}
.sivit-sidebar.collapsed .sivit-user {
  justify-content: center;
  min-height: 44px;
  padding: 4px;
}
.sivit-sidebar.collapsed .sivit-user .user-link {
  justify-content: center;
}

.sivit-sidebar.collapsed .sivit-user img,
.sivit-sidebar.collapsed .sivit-user .avatar {
  width: 34px;
  height: 34px;
  margin-right: 0 !important;
  object-fit: cover;
  border-radius: 50%;
  flex-basis: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
}


/* DROPDOWN MENU UTENTE */
.user-dropdown {
  display: none;
  position: static;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9px;
  box-shadow: none;
  z-index: 1;
  flex-direction: column;
  overflow: hidden;
  padding: 5px;
}
.user-dropdown a {
  padding: 9px 10px;
  color: var(--clr-text);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: none;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
  display: flex; align-items: center; gap: 12px;
}
.user-dropdown a:last-child {
  border-bottom: none;
}
.user-dropdown a:hover {
  background: var(--clr-accent-light);
  color: var(--clr-accent);
}
.sivit-user .user-menu.active + .user-dropdown {
  display: flex;
}

/* Responsive (già a posto in tuo css) */
/* ===== MOBILE TOPBAR ===== */
.sivit-mobile-topbar {
  display: none;
}
.sivit-bottom-nav {
  display: none;
}
.sivit-bottom-sheet {
  display: none;
}
@media (max-width: 800px) {
  .sivit-mobile-topbar {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 0 14px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 1200;
  }
  .sivit-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
  }
  .sivit-mobile-logo img,
  .sivit-mobile-topbar .custom-logo {
    max-height: 34px !important;
    height: auto !important;
    width: auto !important;
    max-width: 140px !important;
    min-width: 0;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
  }
  .sivit-mobile-hamburger {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    z-index: 2000;
  }
  .sivit-mobile-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--clr-accent);
    border-radius: 2px;
    transition: 0.2s;
  }
  .sivit-sidebar {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: min(var(--sidebar-width), calc(100vw - 54px));
    border-radius: 0;
    z-index: 3300;
    box-shadow: 2px 0 16px rgba(0,0,0,0.09);
    opacity: 1;
    pointer-events: auto;
    max-height: none;
  }
  .sivit-sidebar.open {
    transform: translateX(0);
  }
  .sivit-sidebar .sivit-logo {
    display: none !important;
  }
  .sivit-mobile-overlay {
    display: none;
  }
  body.sidebar-mobile-open .sivit-mobile-overlay {
    display: block;
    content: '';
    position: fixed;
    z-index: 3200;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    pointer-events: all;
    transition: opacity 0.2s;
  }
  body.bottom-sheet-open {
    overflow: hidden;
  }
  .sivit-main-content {
    margin-left: 0 !important;
    padding-top: 0;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .sivit-bottom-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 3400;
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(248,249,250,0.58));
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
    padding: 5px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255,255,255,0.82), inset 0 -1px 0 rgba(15,23,42,0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
  }
  .sivit-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0));
    pointer-events: none;
  }
  .sivit-bottom-nav-item {
    flex: 1 1 20%;
    text-align: center;
    color: rgba(34, 40, 47, 0.62);
    font-size: clamp(9.5px, 2.55vw, 11.2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    padding: 5px 3px 4px;
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    min-width: 0;
    height: 100%;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .sivit-bottom-nav-item i {
    font-size: 1.22rem;
    margin-bottom: 3px;
    vertical-align: middle;
  }
  .sivit-bottom-nav-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    letter-spacing: 0;
    font-weight: 650;
  }
  .sivit-bottom-nav-item.is-active,
  .sivit-bottom-nav-item.is-current,
  .sivit-bottom-nav-item:active,
  .sivit-bottom-nav-item:focus {
    color: #111827;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), inset 0 0 0 1px rgba(17, 24, 39, 0.04), 0 7px 16px rgba(15, 23, 42, 0.08);
  }
  .sivit-bottom-nav-item.is-current:not(button),
  .sivit-bottom-nav-item.is-active {
    color: #111827;
  }
  .sivit-bottom-nav-item:active {
    transform: scale(0.98);
  }
  .sivit-bottom-sheet {
    display: block;
    position: fixed;
    inset: 0;
    width: auto;
    max-height: none;
    background: #f8f9fa;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3300;
    overflow-y: auto;
    padding: calc(12px + env(safe-area-inset-top)) 0 calc(88px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    will-change: transform;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .sivit-bottom-sheet.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .sivit-bottom-sheet-handle {
    display: none;
  }
  .sivit-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 20px 10px 24px;
  }
  .sivit-bottom-sheet-title {
    color: #111827;
    font-size: 1.48rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .sivit-bottom-sheet-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 116px;
    max-height: 42px;
    object-fit: contain;
  }
  .sivit-bottom-sheet-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sivit-bottom-sheet-profile-shortcut,
  .sivit-bottom-sheet-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(30, 63, 89, 0.10);
    -webkit-tap-highlight-color: transparent;
  }
  .sivit-bottom-sheet-close {
    width: 36px;
    height: 36px;
    color: #6b7280;
  }
  .sivit-bottom-sheet-profile-shortcut i {
    font-size: 1.18rem;
  }
  .sivit-bottom-sheet-close i {
    font-size: 0.94rem;
  }
  .sivit-bottom-sheet-profile-shortcut:active,
  .sivit-bottom-sheet-profile-shortcut:focus-visible,
  .sivit-bottom-sheet-close:active,
  .sivit-bottom-sheet-close:focus-visible {
    background: #edf5f7;
    color: #111827;
  }
  .sivit-bottom-sheet-content {
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .sivit-bottom-sheet-nav {
    display: grid;
    gap: 0;
    border-top: 1px solid #edf0f2;
  }
  .sivit-bottom-sheet-divider {
    padding: 14px 20px 4px;
    color: #6e7c87;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .sivit-bottom-sheet-divider:first-child {
    padding-top: 4px;
  }
  .sivit-bottom-sheet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: transparent;
    color: #111827;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.12;
  }
  .sivit-bottom-sheet-link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .sivit-bottom-sheet-link-main i {
    width: 24px;
    text-align: center;
    color: #45525c;
    flex: 0 0 auto;
  }
  .sivit-bottom-sheet-link-main span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sivit-bottom-sheet-link i {
    font-size: 0.8rem;
    color: #a7b0b8;
  }
  .sivit-bottom-sheet-link-main > i {
    color: #45525c;
    font-size: 1.02rem;
  }
  .sivit-bottom-sheet-link:active,
  .sivit-bottom-sheet-link:focus-visible {
    background: #eef4f6;
    color: #111827;
  }
  .sivit-bottom-sheet-link.is-current {
    background: #f0f2f4;
    color: #111827;
  }
  .sivit-bottom-sheet-footer {
    border-top: 1px solid #e3e6e8;
    background: transparent;
    margin-top: 18px;
    padding: 6px 0 0;
  }
  .sivit-bottom-sheet-account-link,
  .sivit-bottom-sheet-account-link i {
    color: #111827;
  }
  .sivit-bottom-sheet-account-link.is-danger,
  .sivit-bottom-sheet-account-link.is-danger i {
    color: #b23b3b;
  }
  .sivit-bottom-sheet-user {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #d5e3ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(14, 35, 55, 0.08);
    gap: 10px;
  }
  .sivit-bottom-sheet-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
  }
  .sivit-bottom-sheet-user-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .sivit-bottom-sheet-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .sivit-bottom-sheet-user-profile:active,
  .sivit-bottom-sheet-user-profile:focus-visible {
    opacity: 0.88;
  }
  .sivit-bottom-sheet-user img,
  .sivit-bottom-sheet-user .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid #e4edf3;
    background: #eef5fa;
  }
  .sivit-bottom-sheet-user-profile i {
    color: #5f7d92;
    font-size: 0.86rem;
    flex: 0 0 auto;
  }
  .sivit-bottom-sheet-user-profile span {
    color: #273647;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sivit-bottom-sheet-user-email {
    color: #71869a;
    font-size: 0.75rem;
    padding-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sivit-bottom-sheet-user-actions {
    position: relative;
    flex: 0 0 auto;
  }
  .sivit-bottom-sheet-user-more {
    width: 34px;
    height: 34px;
    border: 1px solid #cfdee8;
    border-radius: 10px;
    background: #f8fbfd;
    color: #4f6f84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .sivit-bottom-sheet-user-more:active,
  .sivit-bottom-sheet-user-more:focus-visible,
  .sivit-bottom-sheet-user-more.is-open {
    background: #eef6f9;
    border-color: #bdd3dd;
    color: #2d5b76;
  }
  .sivit-bottom-sheet-user-dropdown {
    position: absolute;
    right: 0;
    top: auto;
    bottom: calc(100% + 8px);
    min-width: 138px;
    border: 1px solid #cad9e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    padding: 5px;
    z-index: 6;
  }
  .sivit-bottom-sheet-user-dropdown[hidden] {
    display: none !important;
  }
  .sivit-bottom-sheet-user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 7px;
    color: #253646;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
  }
  .sivit-bottom-sheet-user-dropdown-link i {
    color: #d13d3d;
    font-size: 0.9rem;
  }
  .sivit-bottom-sheet-user-dropdown-link:active,
  .sivit-bottom-sheet-user-dropdown-link:focus-visible {
    background: #fff3f3;
    color: #8b2c2c;
  }
}

@media (min-width: 801px) {
  .sivit-mobile-overlay {
    display: none !important;
  }
  .sivit-bottom-sheet {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .sivit-bottom-nav-item span {
    font-size: 9.5px;
  }
}

body, .sivit-dashboard-main {
  background: #fff !important;
}

/* HERO VIDEO FULL WIDTH */
.sivit-dashboard-hero-video {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  margin-bottom: 46px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
#dashboard-video {
  position: absolute;
  width: 100vw;
  min-width: 100%;
  min-height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  object-fit: cover;
  z-index: 1;
  filter: blur(2.5px) brightness(0.75) saturate(1.12);
}
.dashboard-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,0.21) 0,rgba(0,0,0,0.06) 75%,rgba(255,255,255,0.01) 100%);
  z-index: 2;
}
.dashboard-hero-content {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 42px 40px 30px 38px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.dashboard-hero-emoji {
  font-size: 2.6rem;
  margin-right: 12px;
  filter: drop-shadow(0 2px 9px rgba(0,0,0,0.12));
}
.dashboard-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,50,70,0.19);
  margin-bottom: 2px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.dashboard-hero-user {
  color: #00a7bb;
  font-weight: 900;
  letter-spacing: -0.01em;
  padding-left: 8px;
  text-decoration: none;
  cursor: pointer;
}
.dashboard-hero-user:hover,
.dashboard-hero-user:focus {
  text-decoration: underline;
  color: #00a7bb;
}
.dashboard-hero-sub {
  font-size: 1.06rem;
  color: #e9fafd;
  font-weight: 500;
  opacity: 0.97;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.09);
  margin-top: 1px;
}

/* GRID E BOX */
.dashboard-widget-grid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr); /* oppure quante ne vuoi */
  padding: 0 2vw 0px 2vw;
}
.dashboard-widget-grid.dashboard-widget-grid-subscriber-only {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-widget-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 28px 0 rgba(30,60,120,0.08);
  padding: 24px 24px 20px 24px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1.3px solid rgba(0,160,190,0.10);
  transition: box-shadow 0.16s, transform 0.11s;
}
.dashboard-widget-card:hover {
  box-shadow: 0 3px 28px 0 rgba(30,60,120,0.08);
  transform: none;
}
.dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
  color: #009099;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.22; /* aggiungi o regola! */
}

.dashboard-card-title i.fa {
  font-size: 1.35em;   /* leggermente più grande */
  width: 1.45em;
  min-width: 1.45em;
  color: #00b6bb;
  display: flex;
  align-items: center;   /* questo centra l'icona! */
  justify-content: center;
  text-align: center;
  margin-right: 5px;
  opacity: 0.87;
  /* fix per allineamento perfetto */
  height: 1.4em;
}
.dashboard-widget-card ul, .dashboard-widget-card li {
  margin: 0; padding: 0; list-style: none;
}
.dashboard-widget-card ul li {
  border-bottom: 1px solid rgba(0,140,150,0.08);
  margin: 0 0 6px 0;
  padding: 0 0 7px 0;
  font-size: 0.98rem;
  color: #0c3e47;
}
.dashboard-widget-card ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.dashboard-widget-card a {
  color: #008c96;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.12s;
}
.dashboard-widget-card a:hover {
  color: #18383c;
  text-decoration: none;
}
.dashboard-widget-card a,
.dashboard-widget-card a:hover,
.dashboard-widget-card a:focus,
.dashboard-widget-card a:focus-visible,
.dashboard-widget-card a:active {
  text-decoration: none !important;
  box-shadow: none;
}

.dashboard-card-title,
.dashboard-card-title span,
.dashboard-widget-card a,
.dashboard-widget-card li {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Dashboard desktop/tablet */
@media (min-width: 901px) {
  body:has(.sivit-dashboard-hero-video),
  body:has(.sivit-dashboard-hero-video) #page,
  body:has(.sivit-dashboard-hero-video) .site,
  body:has(.sivit-dashboard-hero-video) #content,
  body:has(.sivit-dashboard-hero-video) .site-content,
  body:has(.sivit-dashboard-hero-video) .ast-container {
    background: #ffffff !important;
  }

  body:has(.sivit-dashboard-hero-video) .ast-separate-container .ast-article-single,
  body:has(.sivit-dashboard-hero-video) .ast-article-single,
  body:has(.sivit-dashboard-hero-video) article {
    background: transparent !important;
    box-shadow: none !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) {
    background: #ffffff !important;
    min-height: 100vh;
    padding: 34px 42px 56px;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .entry-content,
  .sivit-main-content:has(.sivit-dashboard-hero-video) article,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .entry-content[data-ast-blocks-layout] > * {
    background: transparent !important;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .entry-content,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-group,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-cover,
  .sivit-main-content:has(.sivit-dashboard-hero-video) *:has(> .sivit-dashboard-hero-video),
  .sivit-main-content:has(.sivit-dashboard-hero-video) .ast-article-single,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .ast-container {
    background: transparent !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-site-logo,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-image:first-child {
    margin: 0 0 22px !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .custom-logo,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-site-logo img,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-image:first-child img {
    max-width: 142px !important;
    height: auto !important;
  }

  .sivit-dashboard-hero-video {
    height: clamp(240px, 22vw, 330px);
    border-radius: 22px;
    margin: 0 0 34px;
    box-shadow: 0 28px 70px rgba(10, 45, 52, 0.16);
    background: #132126;
    isolation: isolate;
  }

  #dashboard-video {
    width: 100%;
    left: 0;
    transform: none;
    filter: brightness(0.66) saturate(1.08);
  }

  .dashboard-hero-overlay {
    background:
      linear-gradient(110deg, rgba(0, 140, 150, 0.44), rgba(17, 24, 39, 0.10) 42%, rgba(4, 13, 17, 0.76)),
      linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.52));
  }

  .dashboard-hero-content {
    width: auto;
    inset: auto 0 0 0;
    padding: 0 42px 34px;
    gap: 16px;
    align-items: center;
  }

  .dashboard-hero-emoji {
    width: 62px;
    height: 62px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 2.15rem;
    filter: none;
  }

  .dashboard-hero-title {
    font-size: clamp(2.55rem, 4.2vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 12px 34px rgba(0,0,0,0.28);
  }

  .dashboard-hero-user {
    color: #3fd7de;
    padding-left: 8px;
  }

  .dashboard-hero-sub {
    margin-top: 8px;
    color: rgba(255,255,255,0.86);
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    font-weight: 520;
    text-shadow: none;
  }

  .dashboard-widget-grid {
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    align-items: stretch;
  }

  .dashboard-widget-grid.dashboard-widget-grid-subscriber-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-widget-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(0, 140, 150, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 54px rgba(15, 40, 50, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    gap: 16px;
  }

  .dashboard-widget-card:hover {
    box-shadow: 0 20px 54px rgba(15, 40, 50, 0.08);
    transform: none;
  }

  .dashboard-widget-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #008c96, rgba(0,140,150,0.08));
  }

  .dashboard-card-title {
    display: flex;
    margin: 0 0 4px;
    color: #123743;
    font-size: 1.02rem;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-wrap: pretty;
    align-items: center;
    gap: 10px;
  }

  .dashboard-card-title span {
    min-width: 0;
    vertical-align: middle;
  }

  .dashboard-card-title i.fa {
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    vertical-align: middle;
    margin: 0;
    border-radius: 12px;
    background: rgba(0, 140, 150, 0.10);
    color: #008c96;
    font-size: 0.95rem;
    opacity: 1;
  }

  .dashboard-widget-card ul,
  .dashboard-widget-card li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dashboard-widget-card ul {
    display: grid;
    gap: 8px;
  }

  .dashboard-widget-card ul li {
    border: 0;
    margin: 0;
    padding: 8px 12px;
    border-radius: 14px;
    background: #f8fafb;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .dashboard-widget-card .sivit-news-date {
    display: block;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 0.63rem;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  .dashboard-widget-card a {
    color: #007f88;
    text-decoration: none;
    font-weight: 760;
  }
  .dashboard-widget-card a:hover,
  .dashboard-widget-card a:focus-visible {
    text-decoration: none;
  }

  .dashboard-widget-card li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0f6f77;
    font-size: 0.9rem;
    line-height: 1.24;
  }

  .dashboard-widget-card li a::after {
    content: "\f105";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #6b7280;
    flex: 0 0 auto;
  }
}

/* Dashboard mobile */
@media (max-width: 900px) {
  body:has(.sivit-dashboard-hero-video),
  body:has(.sivit-dashboard-hero-video) #page,
  body:has(.sivit-dashboard-hero-video) .site,
  body:has(.sivit-dashboard-hero-video) #content,
  body:has(.sivit-dashboard-hero-video) .site-content,
  body:has(.sivit-dashboard-hero-video) .ast-container {
    background: #ffffff !important;
  }

  body:has(.sivit-dashboard-hero-video) .ast-separate-container .ast-article-single,
  body:has(.sivit-dashboard-hero-video) .ast-article-single,
  body:has(.sivit-dashboard-hero-video) article {
    background: transparent !important;
    box-shadow: none !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) {
    background: #ffffff !important;
    padding-left: 0;
    padding-right: 0;
  }

  body:has(.sivit-dashboard-hero-video) .sivit-mobile-topbar {
    display: none !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .entry-content,
  .sivit-main-content:has(.sivit-dashboard-hero-video) article {
    background: transparent !important;
    max-width: none;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .entry-content[data-ast-blocks-layout] > * {
    background: transparent !important;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .entry-content,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-group,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-cover,
  .sivit-main-content:has(.sivit-dashboard-hero-video) *:has(> .sivit-dashboard-hero-video),
  .sivit-main-content:has(.sivit-dashboard-hero-video) .ast-article-single,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .ast-container {
    background: transparent !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-site-logo,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-image:first-child,
  body:has(.sivit-dashboard-hero-video) .wp-block-site-logo,
  body:has(.sivit-dashboard-hero-video) .entry-content > .wp-block-image:first-child {
    display: none !important;
  }

  .sivit-main-content:has(.sivit-dashboard-hero-video) .custom-logo,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-site-logo img,
  .sivit-main-content:has(.sivit-dashboard-hero-video) .wp-block-image:first-child img {
    max-width: 128px !important;
    height: auto !important;
  }

  .sivit-dashboard-hero-video {
    height: clamp(230px, 62vw, 310px);
    margin: 0 0 24px;
    border-radius: 0;
    box-shadow: 0 22px 54px rgba(12, 45, 52, 0.18);
    background: #122025;
    isolation: isolate;
  }

  #dashboard-video {
    width: 100%;
    left: 0;
    transform: none;
    filter: brightness(0.64) saturate(1.08);
  }

  .dashboard-hero-overlay {
    background:
      linear-gradient(135deg, rgba(0, 140, 150, 0.42) 0%, rgba(12, 18, 24, 0.14) 42%, rgba(2, 10, 13, 0.76) 100%),
      linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.62));
  }

  .dashboard-hero-content {
    inset: auto 0 0 0;
    width: auto;
    padding: 0 20px 22px;
    align-items: center;
    gap: 12px;
  }

  .dashboard-hero-emoji {
    width: 44px;
    height: 44px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 1.55rem;
    box-shadow: none;
  }

  .dashboard-hero-title {
    font-size: clamp(1.82rem, 7.2vw, 2.38rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 8px 28px rgba(0,0,0,0.25);
  }

  .dashboard-hero-user {
    display: inline-block;
    color: #35d0d7;
    padding-left: 4px;
  }

  .dashboard-hero-sub {
    margin-top: 6px;
    color: rgba(255,255,255,0.86);
    font-size: 0.92rem;
    font-weight: 520;
    text-shadow: none;
  }

  .dashboard-widget-grid,
  .dashboard-widget-grid.dashboard-widget-grid-subscriber-only {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0 14px 28px;
  }

  .dashboard-widget-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    min-height: 0;
    border-radius: 24px;
    border: 1px solid rgba(0, 140, 150, 0.11);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(15, 40, 50, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    gap: 14px;
  }

  .dashboard-widget-card:hover {
    box-shadow: 0 18px 42px rgba(15, 40, 50, 0.09);
    transform: none;
  }

  .dashboard-widget-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #008c96, rgba(0,140,150,0.08));
  }

  .dashboard-card-title {
    display: flex;
    margin: 0 0 4px;
    color: #123743;
    font-size: 1.03rem;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: 0;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-wrap: pretty;
    align-items: center;
    gap: 10px;
  }

  .dashboard-card-title span {
    min-width: 0;
    vertical-align: middle;
  }

  .dashboard-card-title i.fa {
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    vertical-align: middle;
    margin: 0;
    border-radius: 12px;
    background: rgba(0, 140, 150, 0.10);
    color: #008c96;
    font-size: 0.95rem;
    opacity: 1;
  }

  .dashboard-widget-card h2,
  .dashboard-widget-card h3,
  .dashboard-widget-card h4 {
    color: #111827;
    line-height: 1.12;
  }

  .dashboard-widget-card ul,
  .dashboard-widget-card li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dashboard-widget-card ul {
    display: grid;
    gap: 8px;
  }

  .dashboard-widget-card ul li {
    border: 0;
    margin: 0;
    padding: 8px 11px;
    border-radius: 14px;
    background: #f8fafb;
    color: #1f2937;
    font-size: 0.88rem;
    line-height: 1.24;
  }

  .dashboard-widget-card .sivit-news-date {
    display: block;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  .dashboard-widget-card a {
    color: #007f88;
    text-decoration: none;
    font-weight: 760;
    line-height: 1.25;
  }
  .dashboard-widget-card a:hover,
  .dashboard-widget-card a:focus-visible {
    text-decoration: none;
  }

  .dashboard-widget-card li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #0f6f77;
    font-size: 0.88rem;
    line-height: 1.24;
  }

  .dashboard-widget-card li a::after {
    content: "\f105";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #6b7280;
    flex: 0 0 auto;
  }
}


/*CATALOGHI*/
.cataloghi-wrap {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.cataloghi-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.cataloghi-filters .filter-btn {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #009aa6;
  border-radius: 8px;
  background: #fff;
  color: #007f89;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.cataloghi-filters .filter-btn:hover,
.cataloghi-filters .filter-btn:focus-visible {
  border-color: #00828c;
  box-shadow: 0 0 0 3px rgba(0, 154, 166, 0.12);
  outline: none;
}

.cataloghi-filters .filter-btn.active {
  background: #009aa6;
  border-color: #009aa6;
  color: #fff;
}

.cataloghi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.cataloghi-empty {
  margin: 0;
}

.cataloghi-card {
  display: grid;
  grid-template-rows: minmax(286px, auto) auto;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(22, 37, 47, 0.07);
  color: #1f2a37;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cataloghi-card.is-hidden,
.cataloghi-card[hidden] {
  display: none !important;
}

.cataloghi-card:hover,
.cataloghi-card:focus-visible {
  border-color: rgba(0, 154, 166, 0.42);
  box-shadow: 0 18px 42px rgba(22, 37, 47, 0.13);
  transform: translateY(-3px);
  outline: none;
}

.cataloghi-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 286px;
  aspect-ratio: 3 / 4.18;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(245,249,250,0.95)),
    #f4f8f9;
}

.cataloghi-cover img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 92%;
  max-height: 92%;
  border-radius: 2px;
  box-shadow: 0 14px 26px rgba(31, 42, 55, 0.18);
  object-fit: contain;
}

.cataloghi-cover-placeholder {
  display: grid;
  place-items: center;
  width: 76%;
  min-height: 68%;
  padding: 18px;
  border: 1px solid rgba(0, 154, 166, 0.22);
  border-radius: 5px;
  background: #fff;
  color: #007f89;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 14px 26px rgba(31, 42, 55, 0.12);
}

.cataloghi-card.is-portrait .cataloghi-cover img {
  width: auto;
  height: 92%;
}

.cataloghi-card.is-landscape .cataloghi-cover img {
  width: 92%;
  height: auto;
}

.cataloghi-info {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 92px;
  padding: 16px 14px 18px;
  text-align: center;
}

.cataloghi-label {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #1f2a37;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cataloghi-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px 6px;
  border-radius: 7px;
  background: rgba(0, 154, 166, 0.09);
  color: #007f89;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
}

.cataloghi-card:hover .cataloghi-label,
.cataloghi-card:focus-visible .cataloghi-label {
  color: #007f89;
}

@media (max-width: 700px) {
  .cataloghi-filters {
    justify-content: flex-start;
  }

  .cataloghi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cataloghi-card {
    grid-template-rows: minmax(218px, auto) auto;
  }

  .cataloghi-cover {
    min-height: 218px;
  }

  .cataloghi-info {
    min-height: 88px;
    padding: 13px 10px 15px;
  }

  .cataloghi-label {
    font-size: 0.88rem;
  }

  .cataloghi-type {
    font-size: 0.68rem;
  }
}

@media (max-width: 360px) {
  .cataloghi-grid {
    grid-template-columns: 1fr;
  }
}


/* LOGIN */

body.page-id-376,
body.page-id-450,
body.page-id-457 {
  --sivit-auth-teal: #008c96;
  --sivit-auth-teal-dark: #00767e;
  --sivit-auth-ink: #172337;
  --sivit-auth-muted: #64727d;
  --sivit-auth-line: #d8e8e8;
}

body.page-id-376 {
  overflow: hidden !important;
  background: #fff !important;
}

body.page-id-376 .site-header,
body.page-id-376 .site-footer,
body.page-id-450 .site-header,
body.page-id-450 .site-footer,
body.page-id-457 .site-header,
body.page-id-457 .site-footer {
  display: none !important;
}

body.page-id-376 #page,
body.page-id-376 .site-content,
body.page-id-376 .ast-container,
body.page-id-376 .sivit-main-content {
  width: 100%;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.page-id-376 #primary,
body.page-id-376 #main,
body.page-id-376 article,
body.page-id-376 .entry-content {
  width: 100%;
  height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.page-id-376 .entry-content .wp-block-columns {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: minmax(440px, 540px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.page-id-376 .entry-content .wp-block-columns > .wp-block-column {
  width: auto !important;
  flex: initial !important;
  min-width: 0 !important;
  margin: 0 !important;
  align-self: stretch !important;
}

body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:first-of-type {
  grid-column: 1;
  box-sizing: border-box;
  padding: clamp(30px, 5vh, 48px) clamp(20px, 4vw, 52px) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #fff !important;
}

body.page-id-376 .entry-content .wp-block-site-logo {
  margin: 0 0 clamp(18px, 3vh, 28px);
}

body.page-id-376 .entry-content .wp-block-site-logo a {
  display: inline-block;
}

body.page-id-376 .entry-content .wp-block-site-logo img {
  width: 112px;
  max-width: 112px;
  height: auto;
  display: block;
}

body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2 {
  margin: 0;
  max-width: 330px;
  color: var(--sivit-auth-ink);
  font-size: clamp(2rem, 4vh, 2.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2 mark {
  color: var(--sivit-auth-teal) !important;
  white-space: nowrap;
}

body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2::after {
  content: "Entra con il tuo account per accedere agli strumenti riservati.";
  display: block;
  margin-top: 12px;
  color: var(--sivit-auth-muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
}

html[lang^="en"] body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2::after {
  content: "Sign in with your account to access reserved tools.";
}

body.page-id-376 .wppb-block-container {
  margin-top: clamp(18px, 3vh, 28px);
}

body.page-id-376 #wppb-form-style-1-wrapper,
body.page-id-376 #wppb-login-wrap,
body.page-id-376 #wppb-loginform {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.page-id-376 .wppb-form-field {
  margin: 0 0 14px;
}

body.page-id-376 .wppb-form-field label,
body.page-id-450 .wppb-form-field label,
body.page-id-457 .wppb-form-field label {
  margin: 0 0 8px;
  color: #314152;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

body.page-id-376 .wppb-form-text-field input,
body.page-id-450 .wppb-form-text-field input,
body.page-id-450 .wppb-number input,
body.page-id-457 .wppb-form-text-field input {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--sivit-auth-line);
  border-radius: 14px;
  background: #f8fbfb;
  color: var(--sivit-auth-ink);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.page-id-450 .wppb-form-text-field input,
body.page-id-450 .wppb-number input,
body.page-id-457 .wppb-form-text-field input,
body.page-id-450 #register,
body.page-id-457 #wppb-recover-password-button {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.page-id-376 .wppb-form-text-field input:focus,
body.page-id-450 .wppb-form-text-field input:focus,
body.page-id-450 .wppb-number input:focus,
body.page-id-457 .wppb-form-text-field input:focus {
  border-color: var(--sivit-auth-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 140, 150, 0.13);
  outline: 0;
}

body.page-id-376 .login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}

body.page-id-376 .login-remember input[type="checkbox"],
body.page-id-450 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #b8d5d7;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

body.page-id-376 .login-remember input[type="checkbox"]:checked,
body.page-id-450 input[type="checkbox"]:checked {
  border-color: var(--sivit-auth-teal);
  background: var(--sivit-auth-teal);
}

body.page-id-376 .login-remember label {
  margin: 0;
  color: #52616d;
  font-size: 0.92rem;
  font-weight: 700;
}

body.page-id-376 .login-submit,
body.page-id-450 .form-submit,
body.page-id-457 .form-submit {
  margin: 22px 0 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.page-id-376 #wppb-form-style-1-wrapper .login-submit {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.page-id-376 #wppb-form-style-1-wrapper .login-submit::before,
body.page-id-376 #wppb-form-style-1-wrapper .login-submit::after,
body.page-id-376 #wppb-form-style-1-wrapper .login-register-lost-password::before,
body.page-id-376 #wppb-form-style-1-wrapper .login-register-lost-password::after {
  content: none !important;
  display: none !important;
}

body.page-id-376 .login-submit .button-primary,
body.page-id-450 #register,
body.page-id-457 #wppb-recover-password-button {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--sivit-auth-teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 18px 30px rgba(0, 140, 150, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.page-id-376 .login-submit .button-primary:hover,
body.page-id-376 .login-submit .button-primary:focus,
body.page-id-450 #register:hover,
body.page-id-450 #register:focus,
body.page-id-457 #wppb-recover-password-button:hover,
body.page-id-457 #wppb-recover-password-button:focus {
  background: var(--sivit-auth-teal-dark);
  box-shadow: 0 20px 34px rgba(0, 118, 126, 0.27);
  transform: translateY(-1px);
}

body.page-id-376 .login-register-lost-password {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #dceaea;
}

body.page-id-376 .login-register-lost-password .login-separator {
  display: none;
}

body.page-id-376 .login-register-lost-password a,
body.page-id-450 a,
body.page-id-457 a {
  color: var(--sivit-auth-teal);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

body.page-id-376 .login-register-lost-password a:hover,
body.page-id-376 .login-register-lost-password a:focus,
body.page-id-450 a:hover,
body.page-id-450 a:focus,
body.page-id-457 a:hover,
body.page-id-457 a:focus {
  color: var(--sivit-auth-teal-dark);
}

body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:nth-of-type(2) {
  grid-column: 2;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
  background: #eef3f3 !important;
}

body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:nth-of-type(2)::before,
body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:nth-of-type(2)::after {
  content: none !important;
  display: none !important;
}

body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:nth-of-type(2) video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  outline: none;
}

body.page-id-450,
body.page-id-457 {
  overflow-x: hidden;
  background: #fff !important;
}

body.page-id-450 #page,
body.page-id-457 #page,
body.page-id-450 .site-content,
body.page-id-457 .site-content,
body.page-id-450 .ast-container,
body.page-id-457 .ast-container,
body.page-id-450 .sivit-main-content,
body.page-id-457 .sivit-main-content {
  width: 100%;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.page-id-450 #primary,
body.page-id-457 #primary {
  width: 100%;
  max-width: 100vw !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: clamp(30px, 5vh, 64px) clamp(20px, 4vw, 52px) !important;
}

body.page-id-450 #main,
body.page-id-457 #main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-id-457 #primary {
  width: min(100%, 620px);
  display: flex;
  align-items: center;
  min-height: 100vh;
}

body.page-id-450 article,
body.page-id-457 article {
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-id-450 article::before,
body.page-id-457 article::before {
  content: none;
  display: none;
}

body.page-id-450 .sivit-auth-logo-link,
body.page-id-457 .sivit-auth-logo-link {
  content: "";
  display: block;
  width: 112px;
  height: 44px;
  margin: 0 0 24px;
  background: url("../../../../uploads/2025/04/sivit-logo-300x117.png") left center / contain no-repeat;
}

body.page-id-450 .entry-header,
body.page-id-457 .entry-header {
  margin: 0 0 30px !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid #dceaea;
}

body.page-id-450 .entry-title,
body.page-id-457 .entry-title {
  margin: 0;
  color: var(--sivit-auth-ink);
  font-size: 0 !important;
  line-height: 1.05;
  letter-spacing: 0;
}

body.page-id-450 .entry-title.sivit-auth-title-rendered,
body.page-id-457 .entry-title.sivit-auth-title-rendered {
  color: var(--sivit-auth-ink);
  font-size: clamp(2rem, 4vh, 2.8rem) !important;
  font-weight: 800;
  line-height: 1.05;
}

body.page-id-450 .entry-title.sivit-auth-title-rendered span,
body.page-id-457 .entry-title.sivit-auth-title-rendered span {
  color: var(--sivit-auth-teal);
}

body.page-id-450 .entry-title::before {
  content: "Crea il tuo account SIVIT.app";
}

body.page-id-457 .entry-title::before {
  content: "Recupera la password";
}

html[lang^="en"] body.page-id-450 .entry-title::before {
  content: "Create your SivitApp account";
}

html[lang^="en"] body.page-id-457 .entry-title::before {
  content: "Reset your password";
}

body.page-id-450 .entry-title::before,
body.page-id-457 .entry-title::before {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

body.page-id-450 .entry-title::after {
  content: "Crea il tuo profilo per accedere piu velocemente a strumenti, listini e richieste.";
}

body.page-id-457 .entry-title::after {
  content: "Inserisci la tua email: riceverai un link per impostare una nuova password.";
}

html[lang^="en"] body.page-id-450 .entry-title::after {
  content: "Create your profile to access tools, price lists and requests faster.";
}

html[lang^="en"] body.page-id-457 .entry-title::after {
  content: "Enter your email: you'll receive a link to set a new password.";
}

body.page-id-450 .entry-title::after,
body.page-id-457 .entry-title::after {
  display: block;
  max-width: none;
  box-sizing: border-box;
  margin-top: 12px;
  color: var(--sivit-auth-muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

body.page-id-450 .entry-title.sivit-auth-title-rendered::before,
body.page-id-457 .entry-title.sivit-auth-title-rendered::before {
  content: none;
  display: none;
}

body.page-id-450 .entry-content,
body.page-id-457 .entry-content,
body.page-id-450 #wppb-form-style-1-wrapper,
body.page-id-457 #wppb-form-style-1-wrapper,
body.page-id-450 #wppb-register-user,
body.page-id-457 #wppb-recover-password {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-450 .entry-content > p,
body.page-id-457 .entry-content > p {
  margin: 0 !important;
}

body.page-id-450 .entry-content strong {
  font-weight: inherit;
}

body.page-id-450 #wppb-register-user ul,
body.page-id-457 #wppb-recover-password ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-id-450 #wppb-register-user .ffc-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px !important;
  margin: 0 0 22px;
}

body.page-id-450 #wppb-register-user .wppb-default-about-yourself-heading + .ffc-wrapper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-id-450 #wppb-register-user .wppb-form-field,
body.page-id-457 #wppb-recover-password .wppb-form-field {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
}

body.page-id-450 .wppb-default-contact-info-heading,
body.page-id-450 .wppb-default-about-yourself-heading {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 16px !important;
  align-items: center !important;
  margin: 38px 0 0 !important;
  padding: 0 0 30px !important;
  border-top: 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  grid-column: 1 / -1 !important;
}

body.page-id-450 .wppb-default-contact-info-heading h4,
body.page-id-450 .wppb-default-about-yourself-heading h4 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  color: var(--sivit-auth-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap !important;
}

body.page-id-450 .wppb-default-contact-info-heading::after,
body.page-id-450 .wppb-default-about-yourself-heading::after {
  content: "" !important;
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  height: 1px !important;
  width: 100% !important;
  background: #dceaea !important;
}

body.page-id-450 .wppb-default-contact-info-heading .wppb-description-delimiter:empty {
  display: none !important;
}

body.page-id-450 .wppb-default-about-yourself-heading .wppb-description-delimiter {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  margin-top: 12px;
}

body.page-id-450 .wppb-default-contact-info-heading + .ffc-wrapper,
body.page-id-450 .wppb-default-about-yourself-heading + .ffc-wrapper {
  margin-top: 0 !important;
  padding-top: 26px !important;
}

body.page-id-450 .wppb-description-delimiter,
body.page-id-457 #wppb-recover-password p:first-child {
  color: var(--sivit-auth-muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

body.page-id-450 .wppb-password-field-container {
  display: block;
}

body.page-id-450 .wppb-send-credentials-checkbox {
  margin: 8px 0 0 !important;
}

body.page-id-450 .wppb-send-credentials-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #52616d;
  font-size: 0.92rem;
  font-weight: 700;
}

body.page-id-450 #register {
  max-width: none;
}

body.page-id-457 .wppb-block-container {
  margin: 0 !important;
}

body.page-id-457 #wppb-recover-password p:first-child {
  display: none;
}

body.page-id-457 #wppb-recover-password ul {
  margin-bottom: 22px;
}

body.page-id-450 #wppb-form-style-1-wrapper p.wppb-error:empty,
body.page-id-450 #wppb-form-style-1-wrapper p.wppb-warning:empty,
body.page-id-450 #wppb-form-style-1-wrapper p.wppb-success:empty,
body.page-id-457 #wppb-form-style-1-wrapper p.wppb-error:empty,
body.page-id-457 #wppb-form-style-1-wrapper p.wppb-warning:empty,
body.page-id-457 #wppb-form-style-1-wrapper p.wppb-success:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

body.page-id-450 #wppb-form-style-1-wrapper p.wppb-error,
body.page-id-450 #wppb-form-style-1-wrapper p.wppb-warning,
body.page-id-450 #wppb-form-style-1-wrapper p.wppb-success,
body.page-id-457 #wppb-form-style-1-wrapper p.wppb-error,
body.page-id-457 #wppb-form-style-1-wrapper p.wppb-warning,
body.page-id-457 #wppb-form-style-1-wrapper p.wppb-success {
  margin: 0 0 24px !important;
  border-radius: 14px !important;
}

body.page-id-450 .sivit-auth-return,
body.page-id-457 .sivit-auth-return {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #dceaea;
  text-align: center;
}

body.page-id-450 .sivit-auth-return-link,
body.page-id-457 .sivit-auth-return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #cfe4e5;
  border-radius: 999px;
  background: #fff;
  color: var(--sivit-auth-teal);
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

body.page-id-450 .sivit-auth-return-link:hover,
body.page-id-450 .sivit-auth-return-link:focus,
body.page-id-457 .sivit-auth-return-link:hover,
body.page-id-457 .sivit-auth-return-link:focus {
  border-color: var(--sivit-auth-teal);
  background: #f6fbfb;
  color: var(--sivit-auth-teal-dark);
}

@media (max-width: 960px) {
  body.page-id-376 {
    overflow: auto !important;
    overflow-x: hidden !important;
  }

  body.page-id-376 #primary,
  body.page-id-376 #main,
  body.page-id-376 article,
  body.page-id-376 .entry-content {
    height: auto;
    min-height: 100vh;
  }

  body.page-id-376 .entry-content .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    grid-template-columns: 1fr !important;
  }

  body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:first-of-type {
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    padding: 34px clamp(20px, 4vw, 52px) !important;
    overflow: visible;
  }

  body.page-id-376 .wppb-block-container,
  body.page-id-376 #wppb-form-style-1-wrapper,
  body.page-id-376 #wppb-login-wrap,
  body.page-id-376 #wppb-loginform,
  body.page-id-376 .wppb-form-field,
  body.page-id-376 .login-register-lost-password,
  body.page-id-376 .wppb-form-text-field input,
  body.page-id-376 .login-submit .button-primary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:nth-of-type(2) {
    display: none !important;
  }

  body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2 {
    max-width: 100%;
  }

  body.page-id-450 #wppb-register-user .ffc-wrapper,
  body.page-id-450 #wppb-register-user .wppb-default-about-yourself-heading + .ffc-wrapper {
    grid-template-columns: 1fr;
  }

  body.page-id-450 .wppb-default-contact-info-heading,
  body.page-id-450 .wppb-default-about-yourself-heading {
    margin-top: 26px !important;
  }
}

@media (max-width: 520px) {
  html,
  body.page-id-450,
  body.page-id-457 {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.page-id-450 #page,
  body.page-id-457 #page,
  body.page-id-450 .site-content,
  body.page-id-457 .site-content,
  body.page-id-450 .ast-container,
  body.page-id-457 .ast-container,
  body.page-id-450 .sivit-main-content,
  body.page-id-457 .sivit-main-content,
  body.page-id-450 #main,
  body.page-id-457 #main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.page-id-376 .entry-content .wp-block-columns > .wp-block-column:first-of-type {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 20px !important;
    box-sizing: border-box !important;
  }

  body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2,
  body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2::after,
  body.page-id-376 .wppb-block-container,
  body.page-id-376 #wppb-form-style-1-wrapper,
  body.page-id-376 #wppb-login-wrap,
  body.page-id-376 #wppb-loginform,
  body.page-id-376 .wppb-form-field,
  body.page-id-376 .login-register-lost-password,
  body.page-id-376 .wppb-form-text-field input,
  body.page-id-376 .login-submit .button-primary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.page-id-376 .entry-content .wp-block-site-logo img {
    width: 96px;
    max-width: 96px;
  }

  body.page-id-376 .wp-block-columns > .wp-block-column:first-of-type h2 {
    font-size: 1.9rem;
  }

  body.page-id-376 .login-register-lost-password {
    flex-direction: column;
    gap: 11px;
    text-align: center;
  }

  body.page-id-450 #primary,
  body.page-id-457 #primary {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 28px 20px !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow-x: hidden !important;
  }

  body.page-id-450 article,
  body.page-id-457 article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    overflow: hidden !important;
  }

  body.page-id-450 .entry-header,
  body.page-id-457 .entry-header,
  body.page-id-450 .entry-content,
  body.page-id-457 .entry-content,
  body.page-id-450 #wppb-form-style-1-wrapper,
  body.page-id-457 #wppb-form-style-1-wrapper,
  body.page-id-450 #wppb-register-user,
  body.page-id-457 #wppb-recover-password,
  body.page-id-450 #wppb-register-user ul,
  body.page-id-457 #wppb-recover-password ul,
  body.page-id-450 #wppb-register-user li,
  body.page-id-457 #wppb-recover-password li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }

  body.page-id-450 .entry-title::before,
  body.page-id-457 .entry-title::before {
    font-size: 1.75rem;
    line-height: 1.08;
    overflow-wrap: anywhere !important;
  }

  body.page-id-450 .entry-title::after,
  body.page-id-457 .entry-title::after {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.page-id-450 #register {
    max-width: none;
  }

  body.page-id-450 .wppb-default-contact-info-heading,
  body.page-id-450 .wppb-default-about-yourself-heading {
    column-gap: 12px;
  }

  body.page-id-450 .wppb-default-contact-info-heading h4,
  body.page-id-450 .wppb-default-about-yourself-heading h4 {
    font-size: 0.92rem;
  }
}

/* TOLGO MARIGNI ARTICOLI WORDPRESS + nav articoli */ 
    .entry-content[data-ast-blocks-layout] > * {
        max-width: var(--wp--custom--ast-content-width-size);
        margin-left: 0;
        margin-right: auto;
    }
    .ast-separate-container .post-navigation{
        display: none;
    }

/* Disattiva transizioni durante il bootstrap */
html.sivit-preload * { transition: none !important; }

/* Applica lo stato collapsed già al primo paint (desktop) */
@media (min-width: 801px) {
  html[data-sivit-collapsed="1"] .sivit-sidebar {
    width: var(--sidebar-collapsed);
    padding-left: 10px;
    padding-right: 10px;
  }
  html[data-sivit-collapsed="1"] .sivit-main-content { margin-left: var(--sidebar-collapsed); }
  html[data-sivit-collapsed="1"] .sivit-hamburger {
    color: #223746;
  }
  html[data-sivit-collapsed="1"] .sivit-hamburger span {
    transform: translateX(-1px) rotate(45deg);
  }

  /* Facoltativo: replica qualche stile già previsto per .collapsed */
  html[data-sivit-collapsed="1"] .sivit-logo img {
    max-width: 36px; margin: 0 auto; display: block;
  }
  html[data-sivit-collapsed="1"] .sivit-menu .label,
  html[data-sivit-collapsed="1"] .sivit-menu-secondary .label,
  html[data-sivit-collapsed="1"] .sivit-social {
    display: none !important;
  }
  html[data-sivit-collapsed="1"] .sivit-user {
    justify-content: center;
    min-height: 44px;
    padding: 4px;
  }
  html[data-sivit-collapsed="1"] .sivit-user .user-info,
  html[data-sivit-collapsed="1"] .sivit-user .user-menu {
    display: none !important;
  }
  html[data-sivit-collapsed="1"] .sivit-user .user-link {
    justify-content: center;
  }
  html[data-sivit-collapsed="1"] .sivit-user img,
  html[data-sivit-collapsed="1"] .sivit-user .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    margin-right: 0 !important;
  }
}

/* Se vuoi evitare di duplicare, puoi “accoppiare” i selettori esistenti: */
@media (min-width: 801px) {
  html[data-sivit-collapsed="1"] .sivit-sidebar,
  .sivit-sidebar.collapsed { width: var(--sidebar-collapsed); }

  html[data-sivit-collapsed="1"] .sivit-sidebar ~ .sivit-main-content,
  .sivit-sidebar.collapsed ~ .sivit-main-content { margin-left: var(--sidebar-collapsed); }
}
