/*========================================================
  GRID (vista elenco campagne)
========================================================*/
.nexo-campaign-grid {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 2rem 0;
}


/*========================================================
  CARD (wrapper)
========================================================*/
.nexo-campaign-card {
    background: #ffffffd6;
    border-radius: 0.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex
;
    flex-direction: column;
    height: 100%;
}

.nexo-campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}


/*========================================================
  THUMBNAIL
========================================================*/
.nexo-campaign-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.nexo-single-campaign .nexo-campaign-thumb img {
  height: 400px;
  object-fit: cover;
  margin-bottom: 30px;
}


/*========================================================
  BODY COMUNE (lista e single)
========================================================*/
.nexo-campaign-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}


/*========================================================
  TITOLI E SOTTOTITOLI
========================================================*/
.nexo-campaign-body h3 {
    margin: 0 0 .5rem;
    font-size: 1.6rem
25.6px
;
    color: #22396c;
    font-weight: 700;
    font-family: Anton;
}

.nexo-single-campaign .nexo-campaign-body h3 {
  font-size: 2.5rem;
  color: #080808;
  font-weight: 700;
  font-family: 'Anton';
  margin-bottom: 0;
}
.nexo-campaign-subtitle {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
}


/*========================================================
  DESCRIZIONE
========================================================*/
.nexo-campaign-desc {
  font-size: .95rem;
  color: #374151;
  margin-bottom: 0;
  overflow: hidden;
font-weight: 400;
}
.nexo-single-campaign .nexo-campaign-desc-video {
  flex: 0 0 45%;
  max-width: 70%;
  font-size: .95rem;
  color: #000;
  margin-bottom: 0;
  overflow: hidden;
  text-align: justify;
  margin-right: 60px;
  line-height: 22px;
    font-weight: 400;

}


/*========================================================
  PROGRESS BAR & STATS
========================================================*/
.nexo-progress-container {
  background: #e5e7eb;
  border-radius: 9999px;
  height: 45px;
  margin: .75rem 0;
  overflow: hidden;
  position: relative;
}
.nexo-progress-bar {
    background: linear-gradient(135deg, #b86c14, #f4bc19);
    height: 100%;
}
.nexo-progress-label {
  position: absolute;
  left: 50%;
  margin-top: 7px;
  font-weight: 600;
  color: #0000003d;
  pointer-events: none;
}

/* STATS (lista) */
.nexo-campaign-stats {
  display: flex;
  justify-content: space-between;
  font-weight: 300;
  color: #111827;
  margin-bottom: 1rem;
  font-size: 14px;
}
/* STATS (home alternativa) */
.nexo-campaign-stats-home {
  display: grid;
  justify-content: space-between;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
  font-size: 14px;
  margin-top: 15px;
  gap: 5px;
}

/* STATS TITOLO (single) */
.nexo-single-campaign .nexo-campaign-stats {
  display: flex;
  justify-content: space-between;

  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
  font-size: 17px;
  margin-top: 15px;
  gap: 15px;
}

.nexo-single-campaign .nexo-campaign-statstit {
  display: flex;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
  font-size: 17px;
  margin-top: 15px;
  gap: 15px;
}


/*========================================================
  IMPORTO E SIMBOLO €
========================================================*/
.nexo-campaign-body label {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: #000;
  font-weight: 400;
  font-family: Poppins;
  margin-top: 30px;
}
.nexo-campaign-body input[type="number"] {
  width: 100px;
  padding: .8em .5rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  margin-right: .5rem;
  font-size: 20px;
}
.nexo-amt-wrap {
  position: relative;
  display: inline-block;
}
.nexo-amt-wrap input {
  padding-right: 2.2rem;
  width: 120px;
}
.nexo-amt-wrap .nexo-euro {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  pointer-events: none;
  color: #374151;
  font-size: 1rem;
}


/*========================================================
  BOTTONE DONA / SCOPRI
========================================================*/
.nexo-start-checkout,
.nexo-start-checkout, .nexo-scopri {
    display: flex
;
    flex-direction: column;
    align-items: center;
    background: #f6ca00;
    color: #fff !important;
    padding: .75rem 1.5rem;
    margin-top: 0px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: .2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.nexo-start-checkout:hover,
.nexo-scopri:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.nexo-start-checkout[disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.nexo-start-checkout .checkout-text {
  font-size: 1rem;
  font-weight: 600;
}


/*========================================================
  ICONE PAGAMENTO
========================================================*/
.nexo-payment-icons {
  display: flex;
  justify-content: center;
  gap: .2rem;
  flex-wrap: wrap;
  margin-top: .5rem;
  color: #000;
}
.nexo-payment-icons i {
  display: inline-block;
  margin: 0 .4rem;
  font-size: 1.4rem;
  vertical-align: middle;
  color: #4f4cae;
}
.fa-google-pay,
.fa-google + .gp-text {
  font-size: 1.2rem;
  color: #4285f4;
}
.gp-text {
  font-weight: bold;
  margin-left: .2rem;
}


/*========================================================
  REWARDS (lista e single)
========================================================*/
.nexo-rewards-title {
    margin: .5rem 0 .5rem;
    font-size: 1.9rem;
    color: #000;
    font-weight: 700;
    margin-top: 50px;
    font-family: 'Anton';
}

.nexo-reward-btn {
    display: inline-block;
    margin: .25rem .25rem 0 0;
    padding: .8rem .8rem;
    background: linear-gradient(135deg, #ffffff8a 0%, #ececec82 100%);
    border-radius: .5rem;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: .15s;
    font-family: Poppins;
    border-width: .1em;
}

.nexo-reward-btn:hover,
.nexo-reward-btn.active {
  background: #ffc700;
  color: #fff;
}
/* single: larghezza fissa e testo a capo */
.nexo-single-campaign .nexo-reward-btn {
    width: 350px;
    height: 100%;
    /* display: inline-flex
; */
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    white-space: normal;
    overflow: visible;
    font-family: Roboto;
    line-height: 23px;
    border-width: .1em;
}

.nexo-rew-amt {
  font-size: 1.5rem;
margin-bottom: 20px;
}

.nexo-rew-desc {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}


.nexo-reward-btn .rw-amt {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}
.nexo-reward-btn .rw-title {
  font-size: .90rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}
.nexo-reward-btn .rw-content {
  font-size: .75rem;
  line-height: 1.25;
}
.nexo-reward-btn .rw-content p {
  margin: 0;
}

.nexo-reward-box { display:inline-block; margin:0.5rem; }
.nexo-reward-meta {
  display: flex;
  gap: 0.5rem;
  justify-content: left;
  margin-top: 0.5rem;
}
.nexo-reward-meta small {
    background-color: #ca8416;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    line-height: 2;
    gap: 0.5rem;
}

/* bottone reward disabilitato */
.nexo-reward-btn:disabled,
.nexo-reward-btn.sold-out {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* opzionale: visivamente distinguere il sold-out */
.nexo-reward-btn.sold-out {
  border: 2px solid #c0392b;
}

/*========================================================
  LAYOUT SINGOLA CAMPAGNA
========================================================*/
.nexo-single-campaign .nexo-campaign-card {
  width: 100%;
}
.nexo-single-campaign .nexo-start-checkout,
.nexo-single-campaign .nexo-payment-icons {
  width: 100%;
}
.nexo-campaign-main {
  flex: 0 0 70%;
}
.nexo-campaign-rewards {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}


/*========================================================
  SPLIT DESCRIZIONE & VIDEO (single)
========================================================*/
.nexo-desc-video {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.nexo-campaign-video {
  flex: 0 0 48%;
  max-width: 48%;
  margin-top: 0;
}
@media (max-width: 768px) {
  .nexo-campaign-video {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/*========================================================
  MOBILE RESPONSIVE
========================================================*/
@media (max-width: 768px) {
  .nexo-single-campaign .nexo-campaign-body {
    flex-direction: column;
  }
  .nexo-campaign-main,
  .nexo-campaign-rewards {
    flex: 1 1 100%;
  }
  .nexo-single-campaign .nexo-campaign-desc-video {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: justify;
  }
  .nexo-progress-bar {
    background: linear-gradient(135deg,#14b8a6,#059669);
    height: 100%;
  }

.nexo-single-campaign .nexo-campaign-stats {
    display: grid
;
    justify-content: space-between;
    font-weight: 500;
    color: #111827;
    margin-bottom: 1rem;
    font-size: 17px;
    margin-top: 15px;
    gap: 10px;
}

.nexo-single-campaign .nexo-reward-btn {
    width: 100%;
    height: 100%;
    /* display: inline-flex
; */
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    white-space: normal;
    overflow: visible;
    font-family: Roboto;
    line-height: 23px;
    border-width: .1em;
}

}
