/* =========================================================
   NEXA HEADER – WHMCS SAFE (FULL FILE)
   - Header Nexa sopra
   - Navbar WHMCS sotto
   - Navbar WHMCS sticky sotto l'header Nexa
   - Fix spazio bianco del wrapper #header.header
   ========================================================= */

/* ---- Config ---- */
:root{
  /* Altezza reale dell'header Nexa (regola se serve) */
  --nexa-header-h: 110px;

  --nexa-bg: #0b0b0b;
  --nexa-text: #ffffff;
  --nexa-muted: #cccccc;
  --nexa-accent: #1e90ff;

  --nexa-sub-bg: #111;
  --nexa-sub-hover-bg: rgba(30, 144, 255, 0.15);

  --nexa-radius: 8px;
}

/* =========================================================
   FIX WRAPPER TEMPLATE WHMCS
   (lo spazio bianco enorme è quasi sempre padding/min-height)
   ========================================================= */
#header.header{
  padding: 0 !important;
  margin: 0 !important;
  min-height: unset !important;
  height: auto !important;
}

/* Se il template usa anche #header senza .header */
#header{
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   NEXA HEADER BASE
   ========================================================= */
#header .nexa-header{
  background: var(--nexa-bg);
  position: relative;
  z-index: 6000;
  width: 100%;
}

/* Logo */
#header .nexa-header .nexa-logo-img{
  width: auto;
  display: block;
}

/* =========================================================
   MENU DESKTOP
   ========================================================= */
#header .nexa-header .nexa-main-header{
  display: flex;
  justify-content: flex-end;
}

#header .nexa-header .nexa-menu{
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* items */
#header .nexa-header .nexa-menu-item{
  position: relative;
  display: flex;
  align-items: center;
}

/* link principali */
#header .nexa-header .nexa-menu-link,
#header .nexa-header .nexa-menu-item > a{
  color: var(--nexa-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
  line-height: 1;
  white-space: nowrap;
}

#header .nexa-header .nexa-menu-link:hover,
#header .nexa-header .nexa-menu-item > a:hover{
  color: var(--nexa-accent);
}

/* icone */
#header .nexa-header i{
  font-size: 14px;
}

/* =========================================================
   SUBMENU
   ========================================================= */
#header .nexa-header .nexa-has-submenu > .nexa-submenu{
  position: absolute;
  top: 130%;
  left: 0;
  background: var(--nexa-sub-bg);
  border-radius: var(--nexa-radius);
  padding: 10px 0;
  min-width: 240px;
  margin: 0;
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 7000;
}

#header .nexa-header .nexa-has-submenu:hover > .nexa-submenu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#header .nexa-header .nexa-submenu li{
  list-style: none;
}

#header .nexa-header .nexa-submenu a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #e5e5e5;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

#header .nexa-header .nexa-submenu a:hover{
  background: var(--nexa-sub-hover-bg);
  color: var(--nexa-accent);
}

/* =========================================================
   CARRELLO (solo hover colore icona – badge è bootstrap)
   ========================================================= */
#header .nexa-header .nexa-cart i{
  color: var(--nexa-text);
  transition: color 0.25s ease;
}

#header .nexa-header .nexa-cart:hover i{
  color: var(--nexa-accent);
}

/* =========================================================
   HELP / CONTATTI
   ========================================================= */
#header .nexa-header .nexa-help{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 15px;
}

#header .nexa-header .nexa-help-icon img{
  width: 32px;
  height: auto;
  display: block;
}

#header .nexa-header .nexa-help-text p{
  margin: 0;
  font-size: 13px;
  color: var(--nexa-muted);
  line-height: 1.2;
}

#header .nexa-header .nexa-help-text a{
  font-size: 14px;
  color: var(--nexa-accent);
  font-weight: 600;
  text-decoration: none;
}

#header .nexa-header .nexa-help-text a:hover{
  text-decoration: underline;
}

/* =========================================================
   MOBILE
   - nascondiamo menu desktop < 992px
   ========================================================= */
#header .nexa-header .nexa-mobile-menu{
  justify-content: flex-end;
}

#header .nexa-header .nexa-mobile-menu img{
  width: 38px;
  cursor: pointer;
  display: block;
}

@media (max-width: 991px){
  #header .nexa-header .nexa-main-header{
    display: none;
  }
}

/* =========================================================
   NAVBAR WHMCS SOTTO + STICKY SOTTO HEADER NEXA
   ========================================================= */

/* Navbar WHMCS normale (sotto header Nexa) */
#header #theme-navbar{
  position: relative;
  z-index: 3000;
  margin-top: 0 !important;
}

/* Quando il template rende la navbar sticky/fixed:
   la posizioniamo sotto il Nexa header */
#header #theme-navbar.float-navbar,
#header #theme-navbar.is-sticky,
#header #theme-navbar.sticky,
#header #theme-navbar.navbar-sticky,
#header #theme-navbar.fixed,
#header #theme-navbar.fixed-top{
  top: var(--nexa-header-h) !important;
  z-index: 5000;
}

/* Alcuni template applicano le classi sticky al selettore .theme-navbar */
#header .theme-navbar.float-navbar,
#header .theme-navbar.is-sticky,
#header .theme-navbar.sticky,
#header .theme-navbar.navbar-sticky,
#header .theme-navbar.fixed,
#header .theme-navbar.fixed-top{
  top: var(--nexa-header-h) !important;
  z-index: 5000;
}

/* =========================================================
   OPTIONAL: se vuoi più compatto su schermi larghi
   ========================================================= */
@media (min-width: 1200px){
  #header .nexa-header .nexa-menu{
    gap: 26px;
  }
}


/* Secondo livello dropdown (submenu dentro submenu) */
#header .nexa-header .nexa-has-submenu-2 { position: relative; }

#header .nexa-header .nexa-submenu-2{
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--nexa-sub-bg);
  border-radius: var(--nexa-radius);
  padding: 10px 0;
  min-width: 240px;
  margin: 0;
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 8000;
}

#header .nexa-header .nexa-has-submenu-2:hover > .nexa-submenu-2{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#header .nexa-header .nexa-submenu-divider{
  height: 1px;
  margin: 8px 12px;
  background: rgba(255,255,255,0.12);
}

/* Freccetta dropdown con Font Awesome (solo sui menu con submenu) */
#header .nexa-header .nexa-has-submenu > .nexa-menu-link{
  position: relative;
  padding-right: 18px; /* spazio freccia */
}

#header .nexa-header .nexa-has-submenu > .nexa-menu-link::after{
  content: "\f078"; /* fa-chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%) rotate(0deg);
  transition: transform .2s ease, opacity .2s ease;
  opacity: .85;
  font-size: 12px;
}

/* Hover: ruota la freccia */
#header .nexa-header .nexa-has-submenu:hover > .nexa-menu-link::after{
  transform: translateY(-52%) rotate(180deg);
}
    
/* Icone dentro dropdown (SVG WHMCS + FA) */
#header .nexa-header .nexa-submenu-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
}

#header .nexa-header .nexa-submenu-ico svg{
  width: 18px;
  height: 18px;
  display: block;
}

#header .nexa-header .nexa-submenu-link{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Freccia secondo livello */
#header .nexa-header .nexa-dd-arrow-2{
  margin-left: auto;
  font-size: 11px;
  opacity: .7;
}

.mil-footer-bg {
    position: absolute;
    top: 0px;
    left: 0;
    object-fit: contain;
    object-position: top;
    width: 100%;
    height: 100%;
    opacity: .05;
    pointer-events: none;
}
.mil-deco.mil-deco-accent {
    background-image: url(https://nexasuite.it/assets/images/deco-2.8cba2eb2.svg);
    z-index: 1;
}


/* =========================
   NEXA FOOTER
   ========================= */

footer.nexa-footer {
  background-color: #121820;
  position: relative;
  padding-top: 50px;
}

/* background mappa */
footer.nexa-footer .nexa-footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  opacity: 0.05;
  pointer-events: none;
}

/* colonna logo + testo */
.nexa-footer-first {
  text-align: left;
}

.nexa-footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nexa-footer-logo img {
  max-width: 241px;
  width: 100%;
  height: auto;
}

.nexa-footer-first p {
  color: #b5b5b5;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
}

/* titoli colonne */
.nexa-footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}

/* colonna esplora */
.nexa-footer-explore ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nexa-footer-explore a {
  text-decoration: none;
  color: #b5b5b5;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nexa-footer-explore a:hover {
  color: var(--color-primary);
}

/* colonna contatti */
.nexa-footer-contact a {
  color: #b5b5b5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nexa-footer-contact a:hover {
  color: var(--color-primary);
}

.nexa-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #b5b5b5;
  font-size: 14px;
}

.nexa-footer-contact-item i {
  font-size: 20px;
  color: var(--color-primary);
}

/* colonna newsletter */
.nexa-footer-news p {
  color: #b5b5b5;
  font-size: 14px;
  margin-bottom: 12px;
}

.nexa-footer-news form {
  position: relative;
}

.nexa-footer-news input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 60px 0 16px;
  border: 0;
  border-radius: 8px;
  background-color: #162b3b;
  color: #fff;
}

.nexa-footer-news input::placeholder {
  color: rgba(255,255,255,0.6);
}

.nexa-footer-news button {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 18px;
}

/* social */
.nexa-footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
}

.nexa-footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  transition: background 0.2s ease;
  text-decoration: none;
}

.nexa-footer-social a:hover {
  background-color: var(--color-primary);
}

/* divider */
.nexa-footer-divider {
  width: 100%;
  height: 2px;
  background-color: rgba(255,255,255,0.10);
  margin: 16px 0;
}

/* copyright */
.nexa-footer-copy {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 0;
}


.nexa-footer-explore a {
    text-decoration: none;
    color: #b5b5b5;
    font-size: 14px;
    transition: color .3s ease-in;
}

.nexa-footer-explore a:hover {
    color: var(--color-primary);
}


/* =========================
   NEXA FOOTER – EXPLORE LINKS
   ========================= */

.nexa-footer-explore ul li {
    position: relative;
    padding-left: 18px;
}

.nexa-footer-explore ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.nexa-footer-explore a {
    text-decoration: none;
    color: #b5b5b5;
    font-size: 14px;
    transition: color .25s ease;
}

.nexa-footer-explore li:hover::before {
    transform: translateX(4px);
}

.nexa-footer-explore a:hover {
    color: #ffffff;
}


/* =========================
   NEXA MENU inside THEME NAVBAR
   ========================= */
#theme-navbar .links .nexa-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:22px;
}

#theme-navbar .links .nexa-menu > li{ position:relative; margin:0; padding:0; }

#theme-navbar .links .nexa-menu > li > a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#fff;
  font-weight:600;
  font-size:14px;
  line-height:1;
  padding:10px 0;
  white-space:nowrap;
}

/* dropdown Nexa */
#theme-navbar .links .nexa-submenu{
  list-style:none;
  margin:0;
  padding:10px;
  min-width:260px;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  background:#121820;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:.2s ease;
  z-index:2000;
}

#theme-navbar .links .nexa-has-submenu:hover > .nexa-submenu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

#theme-navbar .links .nexa-submenu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  color:#cfd6dd;
  text-decoration:none;
  font-size:14px;
  white-space:nowrap;
}

#theme-navbar .links .nexa-submenu a:hover{
  background:rgba(255,255,255,.06);
  color:#fff;
}

.nexa-header ul,
.nexa-header li{ margin:0; padding:0; list-style:none; }

.nexa-header a{ text-decoration:none; }
/* =========================
   NEXA HEADER
   ========================= */
.nexa-header { position: relative; z-index: 3000; }

/* Desktop menu */
.nexa-menu{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:22px;
}
.nexa-menu > li{ position:relative; margin:0; padding:0; }
.nexa-menu-link{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none;
  color:#fff; font-weight:600; font-size:14px;
  line-height:1; padding:10px 0; white-space:nowrap;
}

/* Dropdown desktop */
.nexa-submenu{
  list-style:none; margin:0; padding:10px;
  min-width:260px;
  position:absolute; top:calc(100% + 10px); left:0;
  background:#121820;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  opacity:0; visibility:hidden;
  transform:translateY(6px);
  transition:.2s ease;
  z-index:4000;
}
.nexa-has-submenu:hover > .nexa-submenu{
  opacity:1; visibility:visible; transform:translateY(0);
}
.nexa-submenu a{
  display:flex; align-items:center; gap:10px;
  padding:10px 10px; border-radius:10px;
  color:#cfd6dd; text-decoration:none; font-size:14px;
}
.nexa-submenu a:hover{ background:rgba(255,255,255,.06); color:#fff; }

/* Help block */
.nexa-help{ display:flex; align-items:center; gap:10px; }
.nexa-help-icon img{ width:34px; height:34px; object-fit:contain; }
.nexa-help-text p{ margin:0; color:rgba(255,255,255,.75); font-size:12px; line-height:1.1; }
.nexa-help-text a{ color:#fff; font-weight:700; font-size:13px; text-decoration:none; }

/* Mobile bar */
.nexa-mobilebar { padding: 10px 0; }
.nexa-burger{
  width:44px; height:38px;
  border:0; background:transparent;
  display:inline-flex; flex-direction:column;
  justify-content:center; gap:6px;
}
.nexa-burger span{
  display:block; height:2px; width:26px;
  background:#fff; border-radius:2px;
}

/* =========================
   NEXA DRAWER (mobile)
   ========================= */
.nexa-no-scroll { overflow: hidden; }

.nexa-drawer{
  position:fixed; inset:0;
  pointer-events:none;
  z-index: 6000;
}
.nexa-drawer.is-open{ pointer-events:auto; }

.nexa-drawer-overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  opacity:0; transition:.25s ease;
}
.nexa-drawer.is-open .nexa-drawer-overlay{ opacity:1; }

.nexa-drawer-panel{
  position:absolute; top:0; right:0; bottom:0;
  width: 340px; max-width: 92vw;
  background:#121820;
  border-left:1px solid rgba(255,255,255,.08);
  transform: translateX(100%);
  transition:.25s ease;
  padding: 16px;
  outline: none;
}
.nexa-drawer.is-open .nexa-drawer-panel{ transform: translateX(0); }

.nexa-drawer-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nexa-drawer-brand img{ max-height:40px; width:auto; }
.nexa-drawer-close{
  width:36px; height:36px;
  border:0; border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#fff; font-size:22px; line-height:1;
}

.nexa-drawer-menu{
  list-style:none; margin:0; padding:14px 0 0;
  display:flex; flex-direction:column; gap:8px;
}
.nexa-drawer-menu a{
  display:flex; align-items:center; gap:10px;
  padding:10px 10px;
  border-radius:10px;
  color:#cfd6dd;
  text-decoration:none;
  font-weight:600;
}
.nexa-drawer-menu a:hover{ background:rgba(255,255,255,.06); color:#fff; }

.nexa-drawer-divider{
  height:1px;
  background:rgba(255,255,255,.08);
  margin: 8px 0;
}

.nexa-drawer-acc{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#cfd6dd;
  font-weight:700;
  text-align:left;
}
.nexa-drawer-acc:hover{ background:rgba(255,255,255,.06); color:#fff; }

.nexa-acc-ico{
  width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  color:#fff;
}

.nexa-drawer-sub{
  list-style:none;
  margin: 0 0 0 10px;
  padding: 0;
  overflow:hidden;
  transition: max-height .25s ease;
  border-left: 1px solid rgba(255,255,255,.08);
}
.nexa-drawer-sub a{
  font-weight:600;
  padding: 9px 10px;
  color:#b5b5b5;
}

.nexa-drawer-has-sub.is-open .nexa-acc-ico{ transform: rotate(45deg); }


/* =========================
   FIX CARRELLO NEXA HEADER
   ========================= */

.nexa-cart-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: #ffffff;          /* ICONA VISIBILE */
  font-size: 18px;
  line-height: 1;
}

.nexa-cart-link i {
  color: #ffffff;          /* forza colore icona */
  font-size: 20px;
}

/* badge numero */
.nexa-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #dc3545; /* rosso bootstrap */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
}

/* hover */
.nexa-cart-link:hover i {
  color: var(--color-primary);
}


/* MENU: font e spaziatura (desktop) */
.nexa-header .nexa-menu-link,
.nexa-header .nexa-menu > li > a {
  font-size: 16px;               /* ↑ da 14 */
  font-weight: 700;              /* più “pieno” */
  line-height: 1.2;
  padding: 12px 0;               /* più alto */
}

/* distanza tra le voci */
.nexa-header .nexa-menu {
  gap: 28px;                     /* ↑ da 22 */
}

/* icone vicino alle voci (FA) */
.nexa-header .nexa-menu i {
  font-size: 16px;               /* allineate al testo */
  transform: translateY(1px);    /* micro allineamento */
}

/* caret/freccette se le hai (dropdown) */
.nexa-header .nexa-menu .fa-chevron-down,
.nexa-header .nexa-menu .fa-angle-down {
  font-size: 12px;
}

/* dropdown: anche lì spesso risultava piccolo */
.nexa-header .nexa-submenu a {
  font-size: 15px;               /* ↑ da 14 */
  padding: 12px 12px;
}

/* blocco "Hai delle domande?" (a destra) */
.nexa-header .nexa-help-text p {
  font-size: 13px;               /* ↑ */
}

.nexa-header .nexa-help-text a {
  font-size: 15px;               /* ↑ */
}

/* carrello un pelo più grande */
.nexa-cart-link i,
.nexa-header .nexa-cart-link i {
  font-size: 22px;
}

/* badge più leggibile */
.nexa-cart-badge {
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  top: -7px;
  right: -11px;
}

#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields {
	text-align: center;
	background-color: var(--background) !important;
}


.cc-input-container{
    /*  background-color: var(--background) !important;  */
    padding-bottom: 1rem;
    padding-top: 1rem;
    text-align: center;
}


.InputElement .is-invalid .Input {
    position: absolute;
    color: #fff !important;
    top: 0;
}

.InputContainer .InputElement {
    position: absolute;
    top: 0;
    color: #fff !important;
}




.InputElement {
    color: #ffffff !important;
}

.InputElement::placeholder {
    color: #9a9a9a !important;
    opacity: 1;
}

/* Firefox */
.InputElement::-moz-placeholder {
    color: #9a9a9a !important;
}

/* Edge / IE */
.InputElement:-ms-input-placeholder {
    color: #9a9a9a !important;
}
.InputElement {
  position: absolute;
  top: 0;
  color: #fff !important;
}
