/* Bootstrap Accordion SCSS Styles */
.accordion {
  --bs-accordion-color: var(--bs-body-color);
  --bs-accordion-bg: var(--bs-body-bg);
  --bs-accordion-transition: color 0.15s ease-in-out,
    background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
  --bs-accordion-border-color: var(--bs-border-color);
  --bs-accordion-border-width: var(--bs-border-width);
  --bs-accordion-border-radius: var(--bs-border-radius);
  --bs-accordion-inner-border-radius: calc(
    var(--bs-border-radius) - (var(--bs-border-width))
  );
  --bs-accordion-btn-padding-x: 1.25rem;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-btn-color: var(--bs-body-color);
  --bs-accordion-btn-bg: var(--bs-accordion-bg);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon-width: 1.25rem;
  --bs-accordion-btn-icon-transform: rotate(-180deg);
  --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-focus-border-color: #86b7fe;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-body-padding-y: 1rem;
  --bs-accordion-active-color: var(--bs-primary-text-emphasis);
  --bs-accordion-active-bg: var(--bs-primary-bg-subtle);
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
  font-size: 1rem;
  color: var(--bs-accordion-btn-color);
  text-align: left;
  background-color: var(--bs-accordion-btn-bg);
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: var(--bs-accordion-transition);
}

.accordion-button:not(.collapsed) {
  color: var(--bs-accordion-active-color);
  background-color: var(--bs-accordion-active-bg);
  box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0
    var(--bs-accordion-border-color);
}

.accordion-button:not(.collapsed)::after {
  background-image: var(--bs-accordion-btn-active-icon);
  transform: var(--bs-accordion-btn-icon-transform);
}

.accordion-button::after {
  flex-shrink: 0;
  width: var(--bs-accordion-btn-icon-width);
  height: var(--bs-accordion-btn-icon-width);
  margin-left: auto;
  content: "";
  background-image: var(--bs-accordion-btn-icon);
  background-repeat: no-repeat;
  background-size: var(--bs-accordion-btn-icon-width);
  transition: var(--bs-accordion-btn-icon-transition);
}

.accordion-button:hover {
  z-index: 2;
}

.accordion-button:focus {
  z-index: 3;
  border-color: var(--bs-accordion-btn-focus-border-color);
  outline: 0;
  box-shadow: var(--bs-accordion-btn-focus-box-shadow);
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-item {
  color: var(--bs-accordion-color);
  background-color: var(--bs-accordion-bg);
  border: var(--bs-accordion-border-width) solid
    var(--bs-accordion-border-color);
}

.accordion-item:first-of-type {
  border-top-left-radius: var(--bs-accordion-border-radius);
  border-top-right-radius: var(--bs-accordion-border-radius);
}

.accordion-item:first-of-type .accordion-button {
  border-top-left-radius: var(--bs-accordion-inner-border-radius);
  border-top-right-radius: var(--bs-accordion-inner-border-radius);
}

.accordion-item:not(:first-of-type) {
  border-top: 0;
}

.accordion-item:last-of-type {
  border-bottom-right-radius: var(--bs-accordion-border-radius);
  border-bottom-left-radius: var(--bs-accordion-border-radius);
}

.accordion-item:last-of-type .accordion-button.collapsed {
  border-bottom-right-radius: var(--bs-accordion-inner-border-radius);
  border-bottom-left-radius: var(--bs-accordion-inner-border-radius);
}

.accordion-item:last-of-type .accordion-collapse {
  border-bottom-right-radius: var(--bs-accordion-border-radius);
  border-bottom-left-radius: var(--bs-accordion-border-radius);
}

.accordion-body {
  padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
}

.accordion-flush .accordion-collapse {
  border-width: 0;
}

.accordion-flush .accordion-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.accordion-flush .accordion-item:first-child {
  border-top: 0;
}

.accordion-flush .accordion-item:last-child {
  border-bottom: 0;
}

.accordion-flush .accordion-item .accordion-button,
.accordion-flush .accordion-item .accordion-button.collapsed {
  border-radius: 0;
}

/* Custom project accordion overrides */
.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-icon img {
  margin-right: 50px;
  max-width: 75px;
  object-fit: contain;
}

.accordion-arrow {
  transition: transform 0.2s;
}

.accordion-button:not(.collapsed) .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-header .title-accordion {
  font-size: 33px;
  color: #626262;
  font-weight: bold;
  font-family: "Lato";
}

.accordion-header h3 {
  margin: 0 !important;
}

/*.accordion-header{
	padding-top: 36px;
	padding-bottom: 36px;
}*/

.accordion-values .accordion-item {
  border: 0;
  border-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.accordion-values .accordion-item:first-of-type .accordion-button {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Custom project accordion styles */
.accordion-values .accordion-button {
  border-radius: 0;
  border-top: 0.5px solid #a4a4a470;
  padding: 36px 20px;
  background-color: transparent;
}

.accordion-values .accordion-button:not(.collapsed) {
  background-color: transparent;
  border-bottom: 1px solid #a4a4a470;
  outline: 0;
  color: var(--bs-accordion-active-color, #626262);
}

.accordion-values .accordion-body img {
  padding-top: 30px;
  padding-bottom: 30px;
}

.accordion-values .accordion-button:focus {
  z-index: 3;
  border-color: #a4a4a470;
  outline: 0;
  box-shadow: none;
}

.accordion-values .accordion-button:hover {
  z-index: 2;
  background-color: rgba(164, 164, 164, 0.05);
}

/* Custom accordion icon override */
.accordion-values .accordion-button::after {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-left: auto;
  content: "";
  background-image: url("/wp-content/plugins/progetti-impact-manager/assets/icons/accordian-arrow.png");
  background-repeat: no-repeat;
  background-size: cover;
  transition: var(--bs-accordion-btn-icon-transition);
  transform: rotate(0deg);
}

.accordion-values .accordion-button:not(.collapsed)::after {
  background-image: url("/wp-content/plugins/progetti-impact-manager/assets/icons/accordian-arrow.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 60px;
  height: 60px;
  transform: rotate(90deg);
}

/* Smooth accordion collapse animation */
.accordion-collapse {
  transition: height 0.35s ease;
}

.accordion-collapse:not(.show) {
  height: 0;
  overflow: hidden;
}

.accordion-collapse.show {
  height: auto;
}
.body-title {
  text-transform: capitalize;
  font-size: 19px;
  font-weight: 700;
  margin-top: 30px;
}

.metriche-wrapper {
  margin-top: 10px;
}

.metriche-bar {
  width: 100%;
  height: 20px;
  background: #e6e6e6;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.metriche-progress {
  height: 100%;
  width: 0%; /* start empty */
  background: var(--metriche-fill, #7b61ff);
  border-radius: 20px;
}

.metriche-desc,
.indicatori-desc {
  font-size: 14px;
  color: #444;
}
.br-right {
  border-right: 1px solid #a4a4a470;
}
.br-left {
  border-left: 1px solid #a4a4a470;
}
@media only screen and (max-width: 767px) {
  .accordion-icon img {
    margin-right: 10px;
    max-width: 40px;
  }
  .accordion-button::after,
  .accordion-button:not(.collapsed)::after {
    width: 30px;
    height: 30px;
  }
  .br-right,
  .br-left {
    border: unset;
  }
}

.chart-svg {
  width: 200px;
  height: 200px;
  position: relative;
}

.chart-svg circle {
  fill: none;
  stroke-width: 8;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.chart-svg .chart-background {
  stroke: #d3d3d3;
}

.chart-svg .chart-progress {
  stroke: var(--chart-fill-color, #626262);
  stroke-linecap: round;
  stroke-dasharray: 251.327; /* 2 * PI * 40 */
  stroke-dashoffset: 251.327; /* Initially hidden */
  transition: stroke-dashoffset 1s ease-out;
}

.accordion-collapse.show .chart-progress {
  stroke-dashoffset: var(--dash-offset-target);
}

.chart-svg .chart-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--chart-fill-color, #7b61ff);
  fill: currentColor;
  font-family: "Lato";
}

/* Stili per le barre di progresso (Metriche Bar) */
.metriche-bar {
  width: 100%;
  height: 20px;
  background: #e6e6e6;
  border-radius: 20px;
  overflow: hidden;
}

.metriche-progress {
  height: 100%;
  width: 0%; /* Start empty */
  background-color: var(--metriche-fill, #7b61ff);
  border-radius: 20px;
  transition: width 1s ease-out; /* Add CSS transition for animation */
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-button::after {
  content: "";
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-left: auto;
  background-image: url("/wp-content/plugins/progetti-impact-manager/assets/icons/accordian-arrow.png");
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.2s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
}
.accordion-icon img {
  margin-right: 50px;
  max-width: 75px;
  object-fit: contain;
}
.accordion-header .title-accordion {
  font-size: 33px;
  color: #626262;
  font-weight: bold;
  font-family: "Lato";
}
.accordion-header h3 {
  margin: 0 !important;
}
.accordion-values .accordion-item {
  border: 0;
  border-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.accordion-values .accordion-item:first-of-type .accordion-button {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.accordion-values .accordion-button {
  border-radius: 0;
  border-top: 0.5px solid #a4a4a470;
  padding: 36px 20px;
}
.accordion-values .accordion-button:not(.collapsed) {
  background-color: transparent;
  border-bottom: 1px solid #a4a4a470;
  outline: 0;
}
.accordion-values .accordion-body img {
  padding-top: 30px;
  padding-bottom: 30px;
}
.accordion-values .accordion-button:focus {
  z-index: 3;
  border-color: #a4a4a470;
  outline: 0;
  box-shadow: none;
}
.body-title {
  text-transform: capitalize;
  font-size: 19px;
  font-weight: 700;
  margin-top: 30px;
}
.br-right {
  border-right: 1px solid #a4a4a470;
}
.br-left {
  border-left: 1px solid #a4a4a470;
}

.chart-svg {
  width: 200px;
  height: 200px;
  position: relative;
}
.chart-svg circle {
  fill: none;
  stroke-width: 10;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.chart-svg .chart-background {
  stroke: #d3d3d3;
}
.chart-svg .chart-progress {
  stroke: var(--chart-fill-color, #7b61ff);
  stroke-linecap: round;
  stroke-dasharray: 251.327;
  stroke-dashoffset: 251.327;
  transition: stroke-dashoffset 1s ease-out;
}
.accordion-collapse.show .chart-progress {
  stroke-dashoffset: var(--dash-offset-target);
}
.chart-svg .chart-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--chart-fill-color, #7b61ff);
  fill: currentColor;
  font-family: "Lato";
}
@media only screen and (max-width: 767px) {
  .accordion-icon img {
    margin-right: 10px;
    max-width: 40px;
  }
  .accordion-button::after,
  .accordion-button:not(.collapsed)::after {
    width: 30px;
    height: 30px;
  }
  .br-right,
  .br-left {
    border: unset;
  }
}

/* Stili per il titolo "Risultati finali" */
.results-title {
  font-size: 50px;
  color: #626262;
  font-weight: bold;
  font-family: "Alfa Slab One", Sans-serif;
  text-align: center;
  margin-bottom: 40px;
}

/* Contenitore per tutte le barre del grafico orizzontale */
.horizontal-chart-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 100px;
  background-color: #f9f9f9; /* Colore di sfondo del contenitore, se desiderato */
  border-radius: 10px;
}

/* Stile per ogni singola riga del grafico (etichetta, barra, valore) */
.chart-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Etichetta del grafico (es. "Economica", "Salute") */
.chart-label {
  flex: 0 0 400px; /* Larghezza fissa per le etichette, adattala se necessario */
  font-size: 18px;
  color: #626262;
  font-weight: 600;
}

/* Contenitore della barra di riempimento */
.chart-bar-wrapper {
  flex: 1; /* Occupa lo spazio rimanente */
  height: 15px;
  background-color: #e6e6e690; /* Colore di sfondo della barra vuota */
  border-radius: 20px;
  overflow: hidden;
}

/* La barra di riempimento colorata */
.chart-bar-line {
  height: 100%;
  border-radius: 20px;
}

/* Il valore numerico alla fine della barra */
.chart-value {
  flex: 0 0 20px; /* Larghezza fissa per il valore */
  font-size: 18px;
  font-weight: bold;
  color: #626262;
  text-align: right;
}

.chart-bar-line {
  height: 100%;
  border-radius: 20px;
  transition: width 1s ease-out; /* Assicurati che ci sia questa linea per l'animazione */
}

/* Stili specifici per il grafico finale */
.final-score-chart-svg {
  width: 200px;
  height: 200px;
}

.final-score-chart-svg .chart-text {
  font-size: 28px;
  font-weight: 600;
  fill: #626262; /* Colore del testo finale */
}

/* Modifica il contenitore per allineare correttamente il grafico e il testo */
.final-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 30px;
  padding: 100px;
  background-color: #f8f8f8;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

.final-score-label {
  font-size: 33px;
  color: #626262;
  font-weight: bolder;
  /*font-family: "Alfa Slab One", Sans-serif;*/
  text-align: start;
}

.final-score-value {
  display: none; /* Nascondiamo questo span perchÃƒÂ© il valore sarÃƒÂ  nell'SVG */
}

.final-score-num {
  font-size: 50px;
  color: #626262;
  font-weight: bolder;
  font-family: "Alfa Slab One", Sans-serif;
  text-align: start;
}

.final-score-chart-wrapper .chart-progress {
  stroke: #626262 !important;
}

/* Stile per il bordo superiore tra gli indicatori */
.inner-indicator-row.border-top {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem !important;
  margin-top: 1.5rem !important;
}

/* Rimuovi il bordo superiore dal primo elemento se ne avesse uno (non ÃƒÂ¨ il caso ma ÃƒÂ¨ una buona pratica) */
.inner-indicator-row:first-child.border-top {
  border-top: none;
  padding-top: initial;
  margin-top: initial;
}

/* ========================================
   STILI CONTENUTO RICH TEXT NELLE TAB
   ======================================== */

.pim-rich-content {
  line-height: 1.6;
}

.pim-rich-content h1,
.pim-rich-content h2,
.pim-rich-content h3,
.pim-rich-content h4,
.pim-rich-content h5,
.pim-rich-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #333;
}

.pim-rich-content h1 {
  font-size: 2em;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 0.3em;
}

.pim-rich-content h2 {
  font-size: 1.5em;
  color: #0073aa;
}

.pim-rich-content h3 {
  font-size: 1.3em;
}

.pim-rich-content p {
  margin-bottom: 1em;
  color: #555;
}

.pim-rich-content ul,
.pim-rich-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.pim-rich-content li {
  margin-bottom: 0.5em;
  color: #555;
}

.pim-rich-content a {
  color: #0073aa;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.pim-rich-content a:hover {
  color: #005177;
  text-decoration: none;
}

.pim-rich-content strong,
.pim-rich-content b {
  font-weight: 600;
  color: #333;
}

.pim-rich-content em,
.pim-rich-content i {
  font-style: italic;
  color: #666;
}

.pim-rich-content blockquote {
  border-left: 4px solid #0073aa;
  background: #f8f9fa;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  font-style: italic;
  color: #666;
}

.pim-rich-content code {
  background: #f1f1f1;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: Monaco, "Lucida Console", monospace;
  font-size: 0.9em;
}

.pim-rich-content pre {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
}

.pim-rich-content pre code {
  background: none;
  padding: 0;
}

.pim-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

.pim-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  border: 1px solid #ddd;
}

.pim-rich-content th,
.pim-rich-content td {
  padding: 0.75em;
  border: 1px solid #ddd;
  text-align: left;
}

.pim-rich-content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.pim-rich-content tr:nth-child(even) {
  background: #fafafa;
}

/* Stili specifici per link come pulsanti nel contenuto rich */
.pim-rich-content .button,
.pim-rich-content .btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, #0073aa, #005177);
  color: white !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0.5em 0.5em 0.5em 0;
}

.pim-rich-content .button:hover,
.pim-rich-content .btn:hover {
  background: linear-gradient(135deg, #005177, #003d56);
  transform: translateY(-1px);
}

/* ========================================
   LIMITAZIONI LARGHEZZA CONTENUTO RICH
   ======================================== */

/* Limitazioni larghezza per contenuto rich text nelle tab */
.pim-rich-content h1,
.pim-rich-content h2,
.pim-rich-content h3,
.pim-rich-content h4,
.pim-rich-content h5,
.pim-rich-content h6 {
  max-width: 700px;
  word-wrap: break-word;
  hyphens: auto;
}

.pim-rich-content p {
  max-width: 650px;
  word-wrap: break-word;
  hyphens: auto;
  text-align: justify;
}

.pim-rich-content ul,
.pim-rich-content ol {
  max-width: 650px;
}

.pim-rich-content li {
  word-wrap: break-word;
  hyphens: auto;
}

/* Contenuto delle tab */
.pim-tab-content {
  max-width: 100%;
}

.pim-tab-content h1,
.pim-tab-content h2,
.pim-tab-content h3,
.pim-tab-content h4 {
  max-width: 700px;
  word-wrap: break-word;
  hyphens: auto;
}

.pim-tab-content p {
  max-width: 650px;
  word-wrap: break-word;
  hyphens: auto;
  text-align: justify;
}

.pim-tab-content ul,
.pim-tab-content ol {
  max-width: 650px;
}

.pim-tab-content li {
  word-wrap: break-word;
  hyphens: auto;
}

/* ========================================
   FINE NUOVE SEZIONI CSS
   ======================================== */

/* ========================================
   CONTAINER PERSONALIZZATO 1280PX
   ======================================== */

/* Container personalizzato da 1280px che diventa full-width sotto quella dimensione */
.pim-custom-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Sopra 1280px: container fisso da 1280px centrato */
@media (min-width: 1281px) {
  .pim-custom-container {
    width: 1280px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Sotto 1280px: full-width con 20px di padding laterale */
@media (max-width: 1280px) {
  .pim-custom-container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ========================================
   LIMITAZIONI LARGHEZZA TESTO
   ======================================== */

/* Regole generali per la leggibilitÃƒÂ  del testo */
.pim-custom-container h1,
.pim-custom-container h2,
.pim-custom-container h3,
.pim-custom-container h4,
.pim-custom-container h5,
.pim-custom-container h6 {
  word-wrap: break-word;
  hyphens: auto;
}

.pim-custom-container p,
.pim-custom-container div,
.pim-custom-container span {
  /* max-width: 700px; */
  word-wrap: break-word;
  hyphens: auto;
  /* line-height: 1.6; */
}

/* Eccezioni per elementi che devono mantenere larghezza piena */
.pim-custom-container .row,
.pim-custom-container .col-md-6,
.pim-custom-container .pim-relazioni-grid,
.pim-custom-container .pim-storie-tabs-container,
.pim-custom-container .accordion,
.pim-custom-container .horizontal-chart-container,
.pim-custom-container .final-score-container {
  max-width: none;
}

/* Specifica per la Hero section */
.pim-hero-content-left h1,
.pim-hero-content-left p {
  max-width: 600px;
  word-wrap: break-word;
  hyphens: auto;
}

/* Specifica per le sezioni storie */
.pim-storie-title {
  max-width: 700px;
  word-wrap: break-word;
  hyphens: auto;
}

.pim-storie-description {
  max-width: 650px;
  word-wrap: break-word;
  hyphens: auto;
}

/* ========================================
   AGGIORNAMENTI LAYOUT HERO
   ======================================== */

/* Container interno della hero per gestire il posizionamento */
.pim-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* ========================================
   STILI ACCORDION ORIGINALI
   ======================================== */

/* SEZIONE HERO - Stile secondo le specifiche fornite */
.pim-hero-section {
  position: relative;
  height: 60vh;
  min-height: 500px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  border-radius: 0;
  overflow: hidden;
}

.pim-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

/* Contenuto testuale a sinistra */
.pim-hero-content-left {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
  color: white;
  max-width: 60%;
}

.pim-hero-title {
  color: #ffffff;
  font-family: "Alfa Slab One", Sans-serif;
  font-size: 50px;
  font-weight: normal;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pim-hero-description {
  /* Utilizza gli stili di default del sito */
  color: white;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Freccia scroll a destra */
.pim-hero-scroll-right {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
  cursor: pointer;
}

.pim-scroll-arrow {
  width: 50px;
  height: 50px;
  opacity: 0.9;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.pim-scroll-arrow:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* SEZIONE STORIE CON TABS */
.pim-storie-tabs-section {
  padding: 60px 0;
  /* background: #f8f9fa; */
}

.pim-storie-main {
  margin-bottom: 3rem;
}

.pim-storie-title {
  color: #626262;
  font-family: "Lato", Sans-serif;
  font-size: 33px;
  font-weight: 700;
}

.pim-storie-description {
  font-size: 1.1rem;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.pim-storie-image img {
  border-radius: 10px;
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: auto;
}

.pim-storie-image:hover img {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Sistema di Tab */
.pim-storie-tabs-container {
  overflow: hidden;
}

.pim-tabs-nav {
  display: flex;
}

.pim-tab-button {
  flex: 1;
  padding: 20px 30px;
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 19px;
}

.pim-tab-button:hover {
  background: #4cb576;
  color: white;
  transform: scale(0.8);
}

.pim-tab-button.active {
  border-bottom: 3px solid #4cb576;
}

.pim-tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #4cb576;
}

/* Contenuto Tab */
.pim-tabs-content {
  position: relative;
}

.pim-tab-panel {
  display: none;
  padding: 40px;
  min-height: 300px;
  animation: fadeIn 0.5s ease-in-out;
}

.pim-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pim-tab-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
}

/* Stili per contenuto Rich Text (Risultati Attesi) */
.pim-tab-content h1,
.pim-tab-content h2,
.pim-tab-content h3,
.pim-tab-content h4 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pim-tab-content h1 {
  font-size: 1.8rem;
}
.pim-tab-content h2 {
  font-size: 1.6rem;
}
.pim-tab-content h3 {
  font-size: 1.4rem;
}
.pim-tab-content h4 {
  font-size: 1.2rem;
}

.pim-tab-content ul,
.pim-tab-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.pim-tab-content li {
  margin-bottom: 0.5rem;
}

.pim-tab-content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6c757d;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

/* Stili per File Download */
.pim-file-description {
  margin-bottom: 2rem;
}

.pim-file-download {
  margin-top: 2rem;
}

.pim-download-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pim-download-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f4e79);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  color: white;
  text-decoration: none;
}

.pim-documenti ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pim-documenti li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.pim-documenti li:last-child {
  border-bottom: none;
}

.pim-documenti a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.pim-documenti a:hover {
  text-decoration: underline;
}

/* SEZIONE INFORMAZIONI GENERALI CON MAPPA - Design come screenshot */
.pim-info-map-section {
  padding: 60px 0;
  background-color: white;
}

/* ROW CON ALTEZZA UGUALE */
.pim-info-map-section .row {
  min-height: 600px;
}

/* MAPPA A SINISTRA */
.pim-map-container {
  height: 100%;
  min-height: 600px;
}

.pim-google-map {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 600px;
}

.pim-google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 15px;
}

.pim-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 600px;
  background: #f8f9fa;
  text-align: center;
  color: #6c757d;
}

.pim-map-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.pim-map-placeholder p {
  margin: 10px 0 20px 0;
  font-size: 16px;
}

/* INFO A DESTRA */
.pim-info-details {
  padding-left: 40px;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* RIGHE INFO CON PADDING VERTICALE */
.pim-info-row {
  padding: 25px 0;
}

.pim-info-row:first-child {
  padding-top: 0;
}

.pim-info-row:last-child {
  padding-bottom: 0;
}

/* LINEE DIVISORIE */
.pim-divider {
  width: 100%;
  height: 1px;
  background-color: #e9ecef;
  margin: 0;
}

/* RIGHE INFO GENERICHE */
.pim-info-row {
  display: block;
  padding: 25px 0;
}

/* PRIMA RIGA: DATA E STATO SULLA STESSA RIGA */
.pim-info-row.pim-first-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pim-info-row.pim-location-row {
  display: block;
}

.pim-info-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pim-info-label {
  color: #626262;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
}

.pim-date-display {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pim-date-badge {
  background-color: #ececec;
  font-family: "Roboto", Sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: #626262;
  color: #626262;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #ececec;
  border-radius: 50px 50px 50px 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
}

.pim-status-badge {
  font-family: "Roboto", Sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: #ffffff;
  color: #ffffff;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #ececec;
  border-radius: 50px 50px 50px 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
}

.pim-status-pianificazione {
  background-color: #fff3cd;
  color: #856404;
}

.pim-status-attivo {
  background-color: #4caf50;
  color: white;
}

.pim-status-completato {
  background-color: #2196f3;
  color: white;
}

.pim-status-sospeso {
  background-color: #f44336;
  color: white;
}

/* SEZIONI INFORMAZIONI */
.pim-info-section {
  margin-bottom: 25px;
}

/* SEZIONE LOCATION CON ICONA PIN */
.pim-location-section {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.pim-location-icon {
}

.pim-pin-icon {
  width: 18px;
  height: 18px;
  fill: #666;
}

.pim-location-content {
  flex: 1;
  max-width: 400px;
}

.pim-location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pim-location-tag {
  color: #626262;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #626262;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Roboto", Sans-serif;
  display: inline-flex;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
  gap: 8px;
  align-items: center;
}

.pim-location-tag .pim-location-icon {
  width: 9px;
  height: 13px;
  fill: #626262;
  flex-shrink: 0;
}

/* TITOLI SEZIONI */
.pim-section-title {
  color: #a4a4a4;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.2px;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

/* CONTENITORE TAG CON LARGHEZZA LIMITATA */
.pim-tags-container {
  max-width: 400px;
}

/* GRIGLIA TAG */
.pim-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* TAG POLICY GOALS - Colorati come nello screenshot */
.pim-policy-tag {
  background-color: #ececec;
  font-family: "Roboto", Sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: #626262;
  color: #626262;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #ececec;
  border-radius: 50px 50px 50px 50px;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
}

/* TAG SHARED STEWARDSHIP - Grigi come nello screenshot */
.pim-stewardship-tag {
  background-color: #ececec;
  font-family: "Roboto", Sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: #626262;
  color: #626262;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #ececec;
  border-radius: 50px 50px 50px 50px;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
}

/* SEZIONE RELAZIONI A 3 COLONNE */
.pim-relazioni-columns-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.pim-relazioni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.pim-relazioni-column {
  padding: 40px 30px;
  min-height: 300px;
  position: relative;
}

.pim-relazioni-column:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: #e9ecef;
}

.pim-relazioni-group {
  margin-bottom: 30px;
}

.pim-relazioni-group:last-child {
  margin-bottom: 0;
}

.pim-relazioni-title {
  color: #a4a4a4;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 10px;
}

.pim-relazioni-tags {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

/* Stili per i diversi tipi di tag */
.pim-responsabile-tag,
.pim-referente-tag {
  background-color: #00000000;
  font-family: "Roboto", Sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: #626262;
  color: #626262;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #626262;
  border-radius: 50px 50px 50px 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
  text-align: center;
}

.pim-responsabile-tag:hover,
.pim-referente-tag:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pim-partner-tag {
  background: #666666;
  color: white;
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
}

.pim-partner-tag:hover {
  background: #555555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pim-proponente-tag {
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: white;
  transition: all 0.3s ease;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  vertical-align: middle;
}

/* Colori diversi per i proponenti */
.pim-proponente-tag:nth-child(1) {
  background: #7dd3fc;
} /* Azzurro chiaro - PUBLIC */
.pim-proponente-tag:nth-child(2) {
  background: #f87171;
} /* Rosso - LOCAL COMMUNITY */
.pim-proponente-tag:nth-child(3) {
  background: #c084fc;
} /* Viola - NOT-FOR-PROFIT */
.pim-proponente-tag:nth-child(4) {
  background: #4ade80;
} /* Verde */
.pim-proponente-tag:nth-child(5) {
  background: #fb923c;
} /* Arancione */
.pim-proponente-tag:nth-child(6) {
  background: #60a5fa;
} /* Blu */

.pim-proponente-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .pim-hero-section {
    height: 50vh;
    min-height: 400px;
  }

  .pim-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pim-hero-content-left {
    padding-bottom: 20px;
    max-width: 90%;
    order: 1;
  }

  .pim-hero-title {
    font-size: 36px;
  }

  .pim-hero-description {
    font-size: 16px;
  }

  .pim-hero-scroll-right {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-bottom: 20px;
    order: 2;
  }

  .pim-scroll-arrow {
    width: 40px;
    height: 40px;
  }

  .pim-section-title {
    /* font-size: 28px; */
    text-align: center;
    /* margin-bottom: 40px; */
  }

  .pim-storie-section,
  .pim-info-map-section,
  .pim-relazioni-columns-section {
    padding: 40px 0;
  }

  /* Sezione mappa responsive */
  .pim-info-map-section .row {
    min-height: auto;
  }

  .pim-info-details {
    padding-left: 0;
    margin-top: 30px;
    min-height: auto;
  }

  .pim-info-row {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 20px 0;
    gap: 20px !important;
  }

  .pim-info-row:first-child {
    padding-top: 0;
  }

  .pim-map-container {
    min-height: 300px;
  }

  .pim-google-map {
    height: 300px;
    min-height: 300px;
  }

  .pim-map-placeholder {
    height: 300px;
    min-height: 300px;
  }

  .pim-tags-container {
    max-width: 100%;
  }

  .pim-location-content {
    max-width: 100%;
  }

  .pim-policy-tag,
  .pim-stewardship-tag {
    padding: 8px 12px;
    font-size: 11px;
  }

  .pim-location-tag {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Responsive relazioni columns */
  .pim-relazioni-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pim-relazioni-column {
    padding: 30px 20px;
    border-bottom: 1px solid #e9ecef;
  }

  .pim-relazioni-column:last-child {
    border-bottom: none;
  }

  .pim-relazioni-column::after {
    display: none;
  }

  .pim-responsabile-tag,
  .pim-referente-tag,
  .pim-partner-tag,
  .pim-proponente-tag {
    padding: 10px 14px;
    font-size: 12px;
  }
}
@media only screen and (max-width: 768px) {
  .horizontal-chart-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9; /* Colore di sfondo del contenitore, se desiderato */
    border-radius: 10px;
  }

  .chart-label {
    flex: 0 0 100px; /* Larghezza fissa per le etichette, adattala se necessario */
    font-size: 14px;
    color: #626262;
    font-weight: 600;
  }

  .chart-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .final-score-container {
    padding: 50px;
  }

  .final-score-label {
    text-align: center;
  }

  .accordion-header .title-accordion {
    font-size: 20px;
  }

  /* Storie Tabs Responsive */
  .pim-tabs-nav {
    flex-direction: column;
  }

  .pim-tab-button {
    text-align: center;
    padding: 15px 20px;
  }

  .pim-tab-panel {
    padding: 25px 20px;
  }

  .pim-storie-title {
    font-size: 2rem;
  }

  .pim-download-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Regolazioni larghezza testo per mobile */
  .pim-custom-container h1,
  .pim-custom-container h2,
  .pim-custom-container h3,
  .pim-custom-container h4,
  .pim-custom-container h5,
  .pim-custom-container h6 {
    max-width: 100%;
  }

  .pim-custom-container p,
  .pim-custom-container div,
  .pim-custom-container span {
    max-width: 100%;
  }

  .pim-hero-content-left h1,
  .pim-hero-content-left p {
    max-width: 100%;
  }

  .pim-storie-title {
    max-width: 100%;
  }

  .pim-storie-description {
    max-width: 100%;
  }
}
body.postid-10340 .site-content {
  padding: 0;
}
