.c2pb-bando-dettaglio-v2 .c2pb-v2-title{
  margin-bottom: 18px;
}

.c2pb-bando-dettaglio-v2 .c2pb-v2-top-pills{
  margin-bottom: 26px;
}

.c2pb-bando-dettaglio-v2 .c2pb-v2-pills-row{
  margin-bottom: 8px;
}

.c2pb-v2-layout{
  display: flex;
  flex-wrap: nowrap;
  gap: 64px;
  align-items: flex-start;
  max-width: 95%;
}

.c2pb-v2-col-left{
  flex: 0 0 66%;
  max-width: 66%;
  min-width: 0;
}

.c2pb-v2-col-right{
  flex: 0 0 34%;
  max-width: 34%;
  min-width: 0;
}

.c2pb-v2-intro{
  margin-bottom: 22px;
  /*font-size: 14px;*/
  line-height: 1.5;
  color: #333;
}

.c2pb-v2-intro p{
  margin: 0 0 10px 0;
}

.c2pb-v2-accordion-wrap{
  margin-top: 8px;
}

.c2pb-v2-topbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-bottom:20px;
}

.c2pb-v2-icons{
  display:flex;
  align-items:center;
  gap:10px;
}

.c2pb-v2-financing-label{
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: #0074C5;
  /*text-align: right;*/
  text-align: left;
}

.c2pb-v2-budget-box{
  background: #fff;
  border-radius: 0;
  padding: 0 0 14px 0;
  border-bottom: 3px solid #F0B323;
  margin-bottom: 18px;
}

.c2pb-v2-budget-value{
  color: #0074C5;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 400;
  /*text-align: right;*/
  text-align: left;
}

.c2pb-v2-actions{
  margin-bottom: 20px;
}

.c2pb-v2-deadline{
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.4;
  color: #333;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.c2pb-v2-deadline-main{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.c2pb-v2-deadline-date{
  color: #333;
  font-weight: 400;
}

.c2pb-v2-deadline-note{
  color: #666;
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}

.c2pb-v2-docs{
  margin-top: 8px;
}

.c2pb-v2-banner-wide{
  margin-top: 28px;
  margin-bottom: 8px;
}

.c2pb-v2-banner-wide .c2pb-detail-banner{
  margin-bottom: 0;
}

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

@media (max-width: 991px){
  .c2pb-v2-layout{
    flex-direction: column;
  }

  .c2pb-v2-col-left,
  .c2pb-v2-col-right{
    flex: 0 0 100%;
    max-width: 100%;
  }

  .c2pb-v2-budget-value{
    font-size: 40px;
  }
}
@media (max-width: 767px){

  .c2pb-bando-dettaglio-v2 h2.c2pb-v2-title{
    margin-top: 33px;  /* spazio sopra */
    font-size: 1.8rem;
  }

  .c2pb-v2-deadline{
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* 👉 niente spazio automatico */
  }

  .c2pb-v2-deadline-note{
    width: 100%;
    
    margin-top: 2px;     /* attaccato alla data */
    margin-bottom: 6px; /* spazio sotto (importante) */

    white-space: normal;
    text-align: right;
  }

}



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

.c2pb-bando-dettaglio-v2 .c2pb-detail-btn__chevrons::before,
.c2pb-bando-dettaglio-v2 .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-bando-dettaglio-v2 .c2pb-detail-btn__chevrons::before{
  top: 0;
}

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

.c2pb-bando-dettaglio-v2 .c2pb-detail-btn{
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.c2pb-bando-dettaglio-v2 .c2pb-detail-btn:hover{
  background-color: #005a3c !important;
  border-color: #005a3c !important;
}

/* PREVIEW TESTO (2 righe) */
.c2pb-accordion-preview-text{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
   /*font-size: 14px;*/
  line-height: 1.5;
  color: #333;
}

/* Wrapper preview */
.c2pb-accordion-preview{
  margin-top: 10px;
}

/* Leggi di più */
.c2pb-accordion-readmore{
  text-align: right;
  margin-top: 4px;
}

.c2pb-readmore-trigger{
  font-size: 15px;
  color: #f05a28 !important;
  text-decoration: none;
}

.c2pb-readmore-trigger:hover{
  text-decoration: underline;
}

.c2pb-accordion-preview-text,
.c2pb-detail-accordion-content {
  font-size: 16px;
  line-height: 1.6;
  color: #1f1f1f;
}

.c2pb-accordion-preview-text p,
.c2pb-detail-accordion-content p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.c2pb-accordion-preview-text p:empty,
.c2pb-detail-accordion-content p:empty {
  display: none;
}

.c2pb-accordion-preview-text h3,
.c2pb-detail-accordion-content h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #0b5cab;
}

.c2pb-accordion-preview-text ul,
.c2pb-detail-accordion-content ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.c2pb-accordion-preview-text li,
.c2pb-detail-accordion-content li {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.6;
}

.c2pb-accordion-preview-text a,
.c2pb-detail-accordion-content a {
  text-decoration: underline;
}

.c2pb-accordion-preview-text strong,
.c2pb-detail-accordion-content strong {
  font-weight: 700;
}

.c2pb-accordion-preview-text em,
.c2pb-detail-accordion-content em {
  font-style: italic;
}

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

/* =========================
   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-btn.is-success {
  background: #31C192 !important;
  color: #fff;
}

.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;
}

/* Dettaglio bando v2 - compattazione scadenze e bottoni */
.c2pb-bando-dettaglio-v2 .c2pb-v2-deadline {
  margin-bottom: 6px !important;
  line-height: 1.6;
}

.c2pb-bando-dettaglio-v2 .c2pb-v2-actions {
  margin-top: 26px;
  margin-bottom: 26px;
}

.c2pb-bando-dettaglio-v2 .c2pb-detail-actions {
  gap: 10px;
}

.c2pb-bando-dettaglio-v2 .c2pb-detail-btn--contact {
  border: none !important;
}

.c2pb-bando-dettaglio-v2 .c2pb-detail-btn--contact:hover {
  background-color: rgb(126, 0, 0) !important;
  border-color: transparent !important;
}

/* H1 titolo bando */
.c2pb-bando-dettaglio-v2 h1.c2pb-v2-title {
  font-size: 2.5rem; /* puoi anche aumentare se vuoi più impatto */
  font-weight: 500;
}

/* H2 sezioni (es. In Sintesi) */
.c2pb-bando-dettaglio-v2 h2.c2pb-v2-title {
  font-size: 1.6rem;
  font-weight: 500;
}
@media (max-width: 767px){

  .c2pb-bando-dettaglio-v2 h1.c2pb-v2-title{
    font-size: 22px;
    line-height: 1.25;
  }

  .c2pb-bando-dettaglio-v2-mobile p,
  .c2pb-bando-dettaglio-v2-mobile ul,
  .c2pb-bando-dettaglio-v2-mobile ol,
  .c2pb-bando-dettaglio-v2-mobile li{
    /*color: red !important;*/
    font-size: 1.4rem !important;
    line-height: 1.4!important;
  }

}

.c2pb-status--fase-bando{
  background: #0074C5;
}

@media (max-width: 767px){

  .c2pb-bando-dettaglio-v2-mobile .c2pb-detail-doc-item,
  .c2pb-bando-dettaglio-v2-mobile .c2pb-detail-doc-item a,
  .c2pb-bando-dettaglio-v2-mobile .c2pb-detail-doc-item strong{
    font-size: 1.4rem !important;
    line-height: 1.4;
  }

  .c2pb-bando-dettaglio-v2-mobile .c2pb-mobile-actions{
  display: flex;
  justify-content: center;
  width: 100%;
}

.c2pb-bando-dettaglio-v2-mobile .c2pb-mobile-actions .c2pb-detail-btn{
  width: auto;
  min-width: 220px;
  justify-content: center;
}

}

/* Accordion speciale: L'esperto consiglia */
.c2pb-detail-accordion-item--expert .c2pb-detail-accordion-toggle {
  background: #FFF3D6 !important;
}

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

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

/* FAQ dentro "L'esperto consiglia" */
.c2pb-detail-accordion-item--expert .c2pb-expert-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-item {
  border: 1px solid #E3F1FB;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-question {
  position: relative;
  width: 100%;
  cursor: pointer;
  border: 0;
  background: #ffffff;
  padding: 14px 44px 14px 16px;
  color: #0b5cab;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #F66D51;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transition: transform .5s ease;
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-item.is-open .c2pb-expert-faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
  transition:
    max-height .8s cubic-bezier(.22,1,.36,1),
    padding .8s cubic-bezier(.22,1,.36,1),
    opacity .45s ease;
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-item.is-open .c2pb-expert-faq-answer {
  max-height: 500px;
  padding: 0 16px 16px 16px;
  opacity: 1;
}

.c2pb-detail-accordion-item--expert .c2pb-expert-faq-answer p {
  margin: 0 0 10px 0;
}
