.c2pb-page-title{
  margin: 0 0 24px 0;
  color: #0074C5;      /* blu C2 */
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.c2pb-page-description{
  margin-top: 20px;
  margin-bottom: 30px;
}
.c2pb-page-introricerca{
  margin-top: 20px;
  margin-bottom: 50px;
}
.c2pb-page-introricerca p{
  margin: 0 0 10px 0;
  /*font-size: 13px;*/
  line-height: 1.45;
  color: #333;
}
.c2pb-banditest-subtitle{
  margin: 0 0 24px 0;
  color: #0074C5;      /* blu C2 */
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.c2pb-page-description p{
  margin: 0 0 10px 0;
  /*font-size: 13px;*/
  line-height: 1.45;
  color: #333;
}

.c2pb-page-description ul{
    list-style-type: disc;
    padding: 0.6rem 0.6rem 0.6rem 2rem;
}

.c2pb-hero{
  margin-top: 10px;
  margin-bottom: 20px;
}

/* ============================
   C2PONBANDI - Pills (listing)
   Scope: solo pagina bandi
   ============================ */

.c2pb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.c2pb-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.1;
  white-space: nowrap;
}

/* Pill principali (prima riga) */
.c2pb-pill--primary {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.c2pb-pill--beneficiari {
  background: #003E87;
}

.c2pb-pill--obiettivo {
  background: #0074C5;
}

/* Pill secondari (sotto) */
.c2pb-pills--secondary .c2pb-pill {
  background: #DFF1FF;
  color: #6b6b6b;
  font-weight: 500;
  font-size: 13px; /* leggermente più piccolo */
}


/* ============================
   Badge Stato Bando
   ============================ */

.c2pb-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 15px;      /* più grande dei pill */
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.c2pb-status--attivo {
  background: #31C192;
}

.c2pb-status--inarrivo {
  background: #F66D51;
}

.c2pb-status--scaduto {
  background: #ee0606;
}

/* ============================
   Card bando: layout sx/dx + area destra (icone + immagine)
   ============================ */

.c2pb-bando-row{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:66px;
}

.c2pb-bando-left{
  flex:1;
  min-width:0;
}

/* colonna destra */
.c2pb-bando-right{
  width:200px;
  max-width:40%;
  display:flex;
  flex-direction:column;
  gap:10px;
}

@media (max-width: 991px){
  .c2pb-bando-row{ flex-direction:column; }
  .c2pb-bando-right{ width:100%; max-width:100%; }
}

/* riga alta destra: stato + icone */
.c2pb-right-top{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* bottoni icone (campanella / condividi) */
.c2pb-iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:6px;              /* coerente con il tuo stile (6px) */
  background:#fff;
  border:1px solid #e6e6e6;
  color:#6b6b6b;
  cursor:pointer;
  padding:0;
}

.c2pb-iconbtn:hover{
  border-color:#cfdff0;
  color:#003E87;
}



/* box immagine (al posto del box blu) */
.c2pb-bando-thumb{
  width:100%;
  border-radius:18px;
  overflow:hidden;
  background:#DFF1FF;             /* fallback in stile azzurro */
  border:1px solid #eaf4ff;
}

.c2pb-bando-thumb img{
  display:block;
  width:198px;
  height:144px;                   /* puoi alzare/abbassare qui */
  object-fit:cover;
}

/* ============================
   Card bando - stile dedicato
   ============================ */

.c2pb-card {
  background: #F6FBFF !important;
  border-radius: 18px !important;
  border: 1px solid #E3F1FB !important;
  padding: 18px !important;
}

.c2pb-card-bianco {
  background: white !important;
  border-radius: 18px !important;
  border: 1px solid #E3F1FB !important;
  padding: 18px !important;
}

.c2pb-card-grigio {
  background: #F2F5F8 !important;
  border-radius: 18px !important;
  border: 1px solid #E3F1FB !important;
  padding: 18px !important;
}

.c2pb-card-vuoto {
 
  border-radius: 18px !important;
  
  padding: 18px !important;
}

/* SVG icons in buttons */
.c2pb-iconbtn .c2pb-svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* Campanella: grigia di default */
.c2pb-iconbtn--notify{
  color: #9AA3AE; /* grigio */
}

/* Campanella: stato attivo (esempio blu) */
.c2pb-iconbtn--notify.is-active{
  color: #003E87;
}

/* Se vuoi: hover blu */
.c2pb-iconbtn--notify:hover{
  color: #003E87;
}

.c2pb-iconbtn--notify.is-active:hover{
  color: #d90000;
}

.c2pb-iconbtn--notify.is-active:hover .c2pb-svg,
.c2pb-iconbtn--notify.is-active:hover svg,
.c2pb-iconbtn--notify.is-active:hover svg path{
  color: #d90000;
  fill: #d90000;
}

.c2pb-favorite-message{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.c2pb-favorite-message.is-success{
  color: #2e7d32;
}

.c2pb-favorite-message.is-error{
  color: #c62828;
}

.c2pb-bando-right .c2pb-favorite-message{
  text-align: right;
  min-height: 18px;
}

/* ============================
   Icon button "ghost" (solo icona, ma è un vero <button>)
   ============================ */

.c2pb-iconbtn--ghost{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9AA3AE; /* grigio icona */
}

/* dimensione SVG */
.c2pb-iconbtn--ghost .c2pb-svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* hover */
.c2pb-iconbtn--ghost:hover{
  color: #003E87;
}

/* focus da tastiera: importante */
.c2pb-iconbtn--ghost:focus{
  outline: none;
}
.c2pb-iconbtn--ghost:focus-visible{
  outline: 2px solid #003E87;
  outline-offset: 4px;
  border-radius: 6px;
}

/* stato attivo dinamico */
.c2pb-iconbtn--notify.is-active{
  color: #003E87;
}

/* Share icon */
.c2pb-iconbtn--share{
  color:#9AA3AE;
}

.c2pb-iconbtn--share:hover{
  color:#003E87;
}

.c2pb-iconbtn--share.is-active{
  color:#003E87;
}


/* ============================
   Sidebar filtri (stile mock)
   ============================ */

.c2pb-filters{
  background: transparent;
}

.c2pb-filters__title{
  font-weight: 600;
  color: #0074C5;
  margin: 0 0 12px 0;
}

/* ogni sezione */
.c2pb-filter-group{
  border-bottom: 1px solid #E3F1FB;
  padding: 10px 0;
}

.c2pb-filter-toggle{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #0074C5;
  font-weight: 600;
}

.c2pb-filter-label{
  display:inline-flex;
  align-items:center;
}

/* freccina (CSS) */
.c2pb-filter-arrow{
  width: 18px;
  height: 18px;
  position: relative;
}

.c2pb-filter-arrow::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0074C5;
  border-bottom: 2px solid #0074C5;
  transform: rotate(45deg); /* freccia giù */
  transition: transform .15s ease;
}


/* contenuto (checkbox) - animato */
.c2pb-filter-content{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-left: 2px;
  transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease;
}

/* aperto */
.c2pb-filter-group.is-open .c2pb-filter-content{
  opacity: 1;
  margin-top: 10px;
}
.c2pb-filter-group.is-open .c2pb-filter-arrow::before{
  transform: rotate(-135deg); /* freccia su */
}

/* checkbox list */
.c2pb-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin: 0 0 8px 0;
  font-weight: 400;
  font-size: 14px;       /* più piccolo */
  line-height: 1.3;
  color: #4a4a4a;
}

/* testo blu quando checkbox selezionata */
.c2pb-check input:checked + span{
  color: #0074C5;
  font-weight: 500;
}

.c2pb-check input{
  margin-top: 3px;
}

/* ============================
   Beneficiari - Tree / Indent
   ============================ */

.c2pb-tree-item{ margin: 0; }

.c2pb-tree-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

/* figli collassabili */
.c2pb-tree-children{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .25s ease, opacity .2s ease;
}

.c2pb-tree-item.is-open > .c2pb-tree-children{
  opacity:1;
}

/* indentazioni */
.c2pb-check--lvl1{ padding-left: 0; }
.c2pb-check--lvl2{ padding-left: 16px; }
.c2pb-check--lvl3{ padding-left: 32px; }

/* toggle a destra: + / - */
.c2pb-tree-toggle{
  background:transparent;
  border:0;
  padding:0;
  margin-top:2px;
  cursor:pointer;
  color:#0074C5;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.c2pb-tree-ic{
  width:14px;
  height:14px;
  position:relative;
  display:block;
}
.c2pb-tree-ic::before,
.c2pb-tree-ic::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0; bottom:0;
  margin:auto;
  background:#0074C5;
}
.c2pb-tree-ic::before{ width:12px; height:2px; } /* trattino */
.c2pb-tree-ic::after{ width:2px; height:12px; } /* più */

/* quando aperto: diventa "-" */
.c2pb-tree-item.is-open > .c2pb-tree-row .c2pb-tree-ic::after{
  display:none;
}


/* ============================
   Dettaglio bando
   ============================ */

.c2pb-bando-dettaglio{
  max-width: 1280px;
}

.c2pb-detail-layout{
  align-items: flex-start;
}

.c2pb-detail-col-left,
.c2pb-detail-col-right{
  min-width: 0;
}

@media (min-width: 992px){
  .c2pb-detail-layout{
    display: flex;
    flex-wrap: nowrap;
    column-gap: 68px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .c2pb-detail-layout > .c2pb-detail-col-left,
  .c2pb-detail-layout > .c2pb-detail-col-right{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .c2pb-detail-layout > .c2pb-detail-col-left{
    flex: 0 0 calc(58% - 34px);
    max-width: calc(58% - 34px);
  }

  .c2pb-detail-layout > .c2pb-detail-col-right{
    flex: 0 0 calc(42% - 34px);
    max-width: calc(42% - 34px);
  }
}

@media (max-width: 991px){
  .c2pb-bando-dettaglio{
    max-width: 100%;
  }
}

.c2pb-detail-hero{
  margin:0;
  padding:0;
}

.c2pb-detail-hero img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
}

.c2pb-detail-pills{
  margin-top:18px;
}

.c2pb-detail-budget{
  background:#0074C5;
  border-radius:10px;
  padding:22px 28px;
  text-align:right;
}

.c2pb-detail-budget-label{
  font-size:14px;
  line-height:1.25;
  color:#ffffff;
  margin-bottom:8px;
}

.c2pb-detail-budget-value{
  font-size:40px;
  line-height:1.05;
  font-weight:400;
  color:#ffffff;
}

.c2pb-detail-divider{
  width:100%;
  border-top:3px solid #F0B323;
  margin:24px 0 28px 0;
}

.c2pb-detail-description{
  margin-bottom:28px;
}

.c2pb-detail-description p{
  margin:0 0 10px 0;
  font-size:13px;
  line-height:1.45;
  color:#333;
}

.c2pb-detail-deadline{
  margin-bottom:30px;
  font-size:18px;
  line-height:1.3;
}

.c2pb-detail-deadline strong{
  color:#0074C5;
  font-weight:600;
}

.c2pb-detail-deadline-note{
  margin-left:28px;
}

.c2pb-detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:38px;
}

.c2pb-detail-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:14px 28px;
  border-radius:12px;
  color:#fff !important;
  font-size:18px;
  font-weight:500;
  text-decoration:none !important;
}

.c2pb-detail-btn--contact{
  background:#F66D51;
}

.c2pb-detail-btn--products{
  background:#31C192;
}

.c2pb-detail-docs{
  margin-top:0;
}

.c2pb-detail-docs-title{
  color:#0074C5;
  font-size:28px;
  font-weight:500;
  margin:0 0 10px 0;
}

.c2pb-detail-docs-divider{
  width:130px;
  border-top:3px solid #F0B323;
  margin:0 0 18px 0;
}

.c2pb-detail-doc-item{
  margin-bottom:6px;
  line-height:1.6;
}

.c2pb-detail-doc-item strong{
  color:#0074C5;
  font-weight:600;
}

.c2pb-detail-left-below{
  margin-top:32px;
}

.c2pb-detail-banner{
  margin-bottom:28px;
}

.c2pb-detail-banner img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
}

.c2pb-detail-accordion{
  background:#0B4B99;
  color:#fff;
  border-radius:10px;
  padding:18px 20px;
  margin-bottom:14px;
}

.c2pb-detail-accordion-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.c2pb-detail-accordion-title{
  font-size:20px;
  font-weight:400;
  color:#fff;
}

.c2pb-detail-products{
  margin-top:80px;
  text-align:center;
  max-width: 94%;
}

.c2pb-detail-products-title{
  color:#0074C5;
  font-size:34px;
  margin:0 0 18px 0;
}

.c2pb-detail-products-divider{
  width:285px;
  border-top:3px solid #F0B323;
  margin:0 auto 28px auto;
}

@media (max-width: 991px){
  .c2pb-detail-deadline-note{
    display:block;
    margin-left:0;
    margin-top:6px;
  }
}

.c2pb-detail-hero .c2pb-card-vuoto{
  padding:0 !important;
}

.c2pb-detail-top-actions{
  margin-bottom: 18px;
}

.c2pb-detail-accordion-item{
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.c2pb-detail-accordion-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #0B4B99;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
}

.c2pb-detail-accordion-toggle:focus{
  outline: none;
}

.c2pb-detail-accordion-toggle:focus-visible{
  outline: 2px solid #0074C5;
  outline-offset: 3px;
}

.c2pb-detail-accordion-title{
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
}

.c2pb-detail-accordion-title--help {
  background: #DFF1FF;
}

.c2pb-detail-accordion-icon{
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.c2pb-detail-accordion-icon::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.c2pb-detail-accordion-item.is-open .c2pb-detail-accordion-icon::before{
  transform: rotate(-135deg);
}

.c2pb-detail-accordion-content{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #ffffff;
  border: 1px solid #E3F1FB;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 0 20px;
  transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
}

.c2pb-detail-accordion-item.is-open .c2pb-detail-accordion-content{
  opacity: 1;
  padding: 18px 20px;
}



.c2pb-detail-btn__chevrons{
  position: relative;
  display: inline-block;
  width: 12px;
  height: 16px;
  margin-left: 10px;
  vertical-align: middle;
}

.c2pb-detail-btn__chevrons::before,
.c2pb-detail-btn__chevrons::after{
  content: "";
  position: absolute;
  left: 1px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.c2pb-detail-btn__chevrons::before{
  top: 0;
}

.c2pb-detail-btn__chevrons::after{
  top: 5px;
}

.c2pb-results {
  position: relative;
}

.c2pb-results.is-loading {
  opacity: .55;
  transition: opacity .2s ease;
  pointer-events: none;
}

.c2pb-no-results {
  margin-top: 10px;
}

/* ============================
   Dettaglio bando - Prodotti
   ============================ */

.c2pb-detail-products{
  margin-top: 80px;
  text-align: center;
}

.c2pb-detail-products-tabs{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 42px 0;
}

.c2pb-detail-products-tab{
  appearance: none;
  background: #ffffff;
  border: 1px solid #0074C5;
  border-radius: 6px;
  padding: 5px 16px;
  font-size: 13px;
  line-height: 1.2;
  color: #0074C5;
  cursor: pointer;
  transition: all .2s ease;
}

.c2pb-detail-products-tab:hover,
.c2pb-detail-products-tab.is-active{
  background: #0074C5;
  color: #ffffff;
}

.c2pb-detail-products-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: left;
}

.c2pb-detail-product-card{
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.c2pb-detail-product-thumb{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  margin-bottom: 14px;
  text-decoration: none !important;
}

.c2pb-detail-product-thumb img{
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
}

.c2pb-detail-product-body{
  text-align: left;
}

.c2pb-detail-product-brand{
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.2;
  color: #6f6f6f;
}

.c2pb-detail-product-name{
  margin: 0 0 10px 0;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 500;
}

.c2pb-detail-product-name a{
  color: #0074C5;
  text-decoration: none;
}

.c2pb-detail-product-name a:hover{
  text-decoration: underline;
}

.c2pb-detail-product-code{
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.2;
  color: #8b8b8b;
}

.c2pb-detail-product-code a{
  color: #0074C5;
  text-decoration: underline;
}

.c2pb-detail-product-price{
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.15;
  color: #F66D51;
  font-weight: 500;
}

.c2pb-detail-product-price span{
  font-size: 12px;
  font-weight: 400;
  color: #F66D51;
}

.c2pb-detail-product-stock{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.2;
}

.c2pb-detail-product-stock-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #f7b32b;
}

.c2pb-detail-product-stock--orange{
  color: #222222;
}

.c2pb-detail-product-actions{
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.c2pb-detail-product-iconbtn{
  width: 80px;
  height: 40px;
  border-radius: 4px;
  background: #EEF2F5;
  color: #0B4B99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 22px;
  transition: opacity .2s ease, transform .2s ease;
}

.c2pb-detail-product-iconbtn:hover{
  opacity: .9;
  transform: translateY(-1px);
}

.c2pb-detail-product-iconbtn--cart{
  color: #F66D51;
}

@media (max-width: 1199px){
  .c2pb-detail-products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px){
  .c2pb-detail-products{
    margin-top: 56px;
  }

  .c2pb-detail-products-title{
    font-size: 28px;
  }

  .c2pb-detail-products-divider{
    width: 180px;
    margin-bottom: 22px;
  }

  .c2pb-detail-products-tabs{
    gap: 8px;
    margin-bottom: 28px;
  }

  .c2pb-detail-products-tab{
    font-size: 1.2rem;
    padding: 5px 12px;
  }

  .c2pb-detail-products-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .c2pb-detail-product-thumb{
    min-height: 180px;
  }

  .c2pb-detail-product-thumb img{
    max-height: 170px;
  }
}

.c2pb-active-filters__title{
  color:#0074C5;
  font-size:22px;
  font-weight:500;
}

.c2pb-active-filters__row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.c2pb-active-filters__pills{
  margin:0;
}

.c2pb-pill--removable{
  gap:8px;
}

.c2pb-pill__text{
  display:inline-block;
}

.c2pb-pill__remove{
  appearance:none;
  border:0;
  background:transparent;
  color:currentColor;
  font-size:16px;
  line-height:1;
  padding:0;
  margin:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.c2pb-pill__remove:hover{
  opacity:.8;
}

.c2pb-pill__remove:focus{
  outline:none;
}

.c2pb-pill__remove:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
  border-radius:4px;
}

.c2pb-active-filters__reset{
  appearance:none;
  border:1px solid #0074C5;
  background:#fff;
  color:#0074C5;
  border-radius:6px;
  padding:6px 12px;
  font-size:13px;
  line-height:1.2;
  font-weight:500;
  cursor:pointer;
}

.c2pb-active-filters__reset:hover{
  background:#0074C5;
  color:#fff;
}

@media (max-width: 767px){
  .c2pb-active-filters__title{
    font-size:20px;
  }

  .c2pb-active-filters__row{
    align-items:stretch;
  }
}

.c2pb-pill--summary-secondary{
  background: #DFF1FF;
  color: #6b6b6b;
  font-weight: 500;
  font-size: 13px;
}

/* Hover rosso per tutti i pill del riepilogo "Stai cercando" */
.c2pb-active-filters .c2pb-pill{
  transition: all .2s ease;
}

.c2pb-active-filters .c2pb-pill:hover{
  background: #d90000;
  color: #ffffff;
}

.c2pb-active-filters .c2pb-pill:hover .c2pb-pill__remove{
  color: #ffffff;
}

.c2pb-results-head{
  margin-bottom:15px;
}

.c2pb-results-head__titlewrap{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.c2pb-results-head__title{
  margin:0;
  color:#0074C5;
}

.c2pb-results-head__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:6px 14px;
  border-radius:8px;
  background:#F66D51;
  color:#ffffff;
  font-size:16px;
  line-height:1.1;
  font-weight:600;
  white-space:nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Override pill conteggio bandi → solo testo arancione */
/* Conteggio bandi → versione testo semplice */
.c2pb-results-head__count {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important; /* ← rimuove ombra */
  
  display: inline !important; /* ← evita comportamento pill */
  min-height: auto !important;

  color: #ff7a00 !important;
  font-weight: 600;

  font-size: 18px !important; /* ← aumenta dimensione */
  line-height: 1.2;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Marca */
.product-brand {
  margin-bottom: 2px;
  font-size: 13px;
  color: #777;
}

/* Titolo */
.product-title {
  margin-bottom: 6px;
  line-height: 1.3;
}

/* Codice prodotto */
.product-reference {
  margin-bottom: 2px;
  font-size: 12px;
  color: #9aa3ad; /* grigio tenue */
}

.product-reference a {
  color: #9aa3ad;
}

/* Prezzo */
.product-price-and-shipping {
  margin-top: 4px;
  margin-bottom: 6px;
}

/* Stock */
.c2-stock-badge {
  margin-top: 4px;
}

/* Bottoni */
.product-functional-buttons {
  margin-top: 8px !important;
}

.c2pb-detail-products-more{
  width: 100%;
  text-align: center;
  margin-top: 28px;
}

.c2pb-detail-products-more-link{
  display: inline-block;
  color: #F66D51 !important;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none !important;
  transition: color .2s ease;
}

.c2pb-detail-products-more-link:hover{
  color: #0074C5 !important;
  text-decoration: none !important;
}

#c2pb-detail-products-results.is-loading{
  opacity: .55;
  transition: opacity .2s ease;
  pointer-events: none;
}

.c2pb-detail-accordion-item--help .c2pb-detail-accordion-toggle {
  background: #DFF1FF !important;
}

.c2pb-detail-accordion-item--help .c2pb-detail-accordion-title {
  color: #0b5cab;
}

.c2pb-detail-accordion-item--help .c2pb-detail-accordion-icon::before,
.c2pb-detail-accordion-item--help .c2pb-detail-accordion-icon::after {
  color: #0b5cab !important;
  border-color: #0b5cab !important;
}

.c2pb-page-description-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease;
}

.c2pb-page-description-more.is-open {
  opacity: 1;
}

.c2pb-page-description-toggle-wrap {
  margin-top: 6px;
  margin-bottom: 44px;
  margin-right: 100px;
  text-align: left;
}

.c2pb-page-description-toggle {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  color: #f58220 !important; /* arancione */
}

.c2pb-page-description-toggle:hover,
.c2pb-page-description-toggle:focus {
  text-decoration: underline;
  color: #0074C5; /* arancione più scuro hover */
}

/* =========================
   POPUP SHARE BANDO
   ========================= */

#c2pb-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

#c2pb-share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 650px;
  max-width: 95%;
}

.c2pb-share-box {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.c2pb-share-header {
  background: #0B4B99;
  padding: 30px;
  text-align: center;
  position: relative;
}

.c2pb-share-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.c2pb-share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: red;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.c2pb-share-close span {
  position: absolute;
  width: 20px;
  height: 3px;
  background: #fff;
  top: 20px;
  left: 12px;
}

.c2pb-share-close span:first-child {
  transform: rotate(45deg);
}
.c2pb-share-close span:last-child {
  transform: rotate(-45deg);
}

.c2pb-share-body {
  padding: 25px;
}

.c2pb-share-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.c2pb-share-input {
  flex: 1;
  height: 50px;
  border-radius: 12px;
  border: 2px solid #DFF1FF;
  padding: 10px;
}

.c2pb-share-btn {
  background: #F66D51;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
}

.c2pb-share-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.c2pb-share-or {
  color: #333;
}

.c2pb-share-whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c2pb-share-whatsapp {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.c2pb-share-whatsapp-icon {
  width: 50px;
  height: 50px;
  background: #25D366 url("/modules/addtocartfromurl/views/img/whatsapp.png") center center no-repeat;
  background-size: 50px 50px;
  border-radius: 10px;
}

/* Lista bandi - trattino blu invece del pallino */
.c2pb-banditest-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.c2pb-banditest-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.c2pb-banditest-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: #0074c5;
  font-weight: 600;
}
.c2pb-status--fase-bando{
  background: #0074C5;
}

.c2pb-bando-row{
  align-items: flex-start;
}

.c2pb-bando-left{
  padding-right: 16px;
}

.c2pb-bando-row{
  align-items: flex-start;
  gap: 36px;
}

.c2pb-bando-left{
  flex: 1 1 auto;
  min-width: 0;
}

.c2pb-bando-right{
  flex: 0 0 210px;
  width: 210px;
  max-width: 210px;
  align-items: flex-end;
}

.c2pb-right-top{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.c2pb-right-top .c2pb-status{
  flex: 0 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 14px;
}

.c2pb-bando-thumb{
  width: 200px;
  align-self: flex-end;
}

/* ============================
   Mobile off-canvas filtri bandi
   Solo mobile
   ============================ */

@media (max-width: 767px){

  .c2pb-mobile-filter-toggle{
    position: fixed;
    right: 0;
    top: 45%;
    z-index: 9996;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    background: #0074C5;
    color: #fff;
    border: 0;
    border-radius: 6px 0 0 6px;
    padding: 12px 8px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .c2pb-mobile-filter-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9997;
  }

  .c2pb-mobile-filter-panel{
    position: fixed;
    top: 0;
    right: 0;
    width: 88vw;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 18px;
    overflow-y: auto;
  }

  body.c2pb-mobile-filters-open .c2pb-mobile-filter-panel{
    transform: translateX(0);
  }

  body.c2pb-mobile-filters-open .c2pb-mobile-filter-overlay{
    display: block;
  }

  .c2pb-mobile-filter-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 600;
  }

  .c2pb-mobile-filter-close{
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
  }

  .c2pb-mobile-filter-footer{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 14px;
  }

  .c2pb-mobile-filter-apply{
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #F66D51;
    color: #fff;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 600;
  }
}

/* Desktop: nasconde solo gli elementi mobile */
@media (min-width: 768px){

  .c2pb-mobile-filter-toggle,
  .c2pb-mobile-filter-overlay,
  .c2pb-mobile-filter-header,
  .c2pb-mobile-filter-footer{
    display: none !important;
  }

  .c2pb-mobile-filter-panel{
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
  }
}

.c2pb-card.is-scaduto {
  opacity: .72;
}

.c2pb-card.is-scaduto:hover {
  opacity: .90;
}

@media (max-width: 767px){

  .c2pb-real-list .c2pb-bando-row{
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .c2pb-real-list .c2pb-bando-right{
    order:-1;
    flex:0 0 auto !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 0 6px 0 !important;
    align-items:flex-start !important;
  }

  .c2pb-real-list .c2pb-right-top{
    justify-content:flex-start !important;
    width:100%;
    gap:8px;
  }

  .c2pb-real-list .c2pb-bando-thumb{
    display:none !important;
  }

  .c2pb-real-list .c2pb-bando-left{
    width:100%;
    padding-right:0 !important;
  }

  .c2pb-real-list .ybc_title_block{
    display:block;
    font-size:1.55rem !important;
    line-height:1.25;
    margin-bottom:8px;
  }

  .c2pb-real-list .c2pb-pill{
      font-size:13px !important;
      padding:2px 7px !important;
      border-radius:5px;
  }

  .c2pb-real-list .bando-deadline{
    font-size:1.25rem !important;
    line-height:1.4;
  }

  .c2pb-page-description p{

  font-size: 15px;
  
}
.c2pb-real-list .ybc_title_block{
  display:block;
  font-size:1.9rem !important;
  line-height:1.25;
  margin-bottom:8px;
}
.c2pb-real-list .c2pb-bando-left div[style*="font-size:13px"]{
      font-size:15px !important;
      line-height:1.5 !important;
  }
}