/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/platform-specific.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Funding Activities Table Styles */
.funding-activities-table-container {
  padding: 2rem;
  border-radius: 8px;
}

.funding-activities-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funding-activities-table {
  width: 100%;
  border-collapse: collapse;
  /* background: white; */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.funding-activities-table thead {
  border-bottom: 1px solid #DDDDDD;
  text-align: center;
}

.funding-activities-table th {
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #333333;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funding-activities-table th:first-child {
  text-align: left;
}

.funding-activities-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #cbcbcb;
  vertical-align: middle;
  text-align: center;
}

.funding-activities-table td:first-child {
  text-align: left;
}

.funding-activities-table tr {
  /* border-bottom: 1px solid #f0f0f0 !important;  */
}

.funding-activities-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.funding-activities-table tfoot {}

.funding-activities-table tfoot td {
  padding: 1rem 0.75rem;
  font-weight: 600;
  color: #333333;
  text-align: center;
}

.funding-activities-table tfoot td:first-child {
  text-align: left;
}

/* Program item styling */
.program-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333333;
}

.color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.color-indicator.horizon {
  background-color: #345B8B;
}

.color-indicator.interreg {
  background-color: #5B8BB4;
}

.color-indicator.tecnonidi {
  background-color: #4A8B8B;
}

.color-indicator.trasformazioni {
  background-color: #6BB4B4;
}

.color-indicator.reti {
  background-color: #8BCACA;
}

/* Value container styling */
.value-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funding-activities-table-container .main-value {
  font-weight: 500;
  color: #333333;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funding-activities-table-container .percentage {
  font-size: 0.8rem;
  color: #666666;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .funding-activities-table-container {
    padding: 1rem;
  }

  .funding-activities-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .funding-activities-table th,
  .funding-activities-table td {
    padding: 0.75rem 0.5rem;
  }

  .funding-activities-table-container .main-value {
    font-size: 0.9rem;
  }

  .funding-activities-table-container .percentage {
    font-size: 0.75rem;
  }
}

/* Funding Sources Table Styles */
.funding-sources-table,
.funding-programs-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.table-header {
  display: grid;
  grid-template-columns: 1.8fr 3.2fr 0.8fr 0.8fr;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0;
  align-items: stretch;
}

.header-cell {
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.header-cell:last-child {
  border-right: none;
}

.table-row {
  display: grid;
  grid-template-columns: 1.8fr 3.2fr 0.8fr 0.8fr;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

/* .table-row:hover {
  background-color: #f9fafb;
} */

.table-row:last-child {
  border-bottom: none;
}

/* Row background colors */
.row-light-provinciali {
  background-color: rgba(138, 190, 27, 0.1);
  /* Light provinciali */
}

.row-light-provinciali:hover {
  background-color: rgba(138, 190, 27, 0.2);
}

.row-light-coesione {
  background-color: rgba(195, 216, 27, 0.1);
  /* Light coesione */
}

.row-light-coesione:hover {
  background-color: rgba(195, 216, 27, 0.2);
}

.row-light-nazionali {
  background-color: rgba(0, 146, 70, 0.1);
  /* Light nazionali */
}

.row-light-nazionali:hover {
  background-color: rgba(0, 146, 70, 0.2);
}

.row-light-europei {
  background-color: rgba(var(--primary-rgb), 0.1);
  /* Light europei */
}

.row-light-europei:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
}

.row-light-misti {
  background-color: rgba(206, 43, 54, 0.1);
  /* Light misti */
}

.row-light-misti:hover {
  background-color: rgba(206, 43, 54, 0.2);
}

.source-cell,
.program-cell {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-right: 1px solid #e5e7eb;
}

.source-icon,
.program-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-provinciali {
  background-color: #8abe1b;
  /* Provinciali */
}

.icon-coesione {
  background-color: #c3d81b;
  /* Politica di Coesione */
}

.icon-nazionali {
  background-color: #009246;
  /* Nazionali */
}

.icon-europei {
  background-color: var(--primary);
  /* Europei */
}

.icon-misti {
  background-color: #ce2b36;
  /* Misti */
}

.source-content,
.program-content {
  flex: 1;
}

.source-name,
.program-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.program-subtitle {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.program-subtitle div {
  margin-bottom: 4px;
}

.program-link a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.program-link a:hover {
  text-decoration: underline;
}

.description-cell {
  padding: 20px;
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.5;
  border-right: 1px solid #e5e7eb;
}

.finanziati-cell,
.investment-cell,
.data-cell {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
  font-weight: 600;
  color: #1f2937;
  font-size: 1.05rem;
}

.finanziati-cell:last-child,
.investment-cell:last-child,
.data-cell:last-child {
  border-right: none;
}

/* Legend Styles */
.legend {
  margin-bottom: 2rem;
}

.legend-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Roboto Mono', monospace;
  text-transform: uppercase;
  color: #6E7880 !important;
  fill: #6E7880 !important;
}

.legend-grid {
  display: flex;
  gap: 1rem;
  /* wrap*/
  flex-wrap: wrap;
}

.legend-item-text {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

/* Subdivision Section Styles */
.subdivision-section {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.subdivision-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.subdivision-description {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Responsive design */
@media (max-width: 1200px) {

  .table-header,
  .table-row {
    grid-template-columns: 1.8fr 3.2fr 0.8fr;
  }
}

@media (max-width: 992px) {

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
  }

  .header-cell,
  .source-cell,
  .program-cell,
  .description-cell,
  .finanziati-cell,
  .investment-cell,
  .data-cell {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .header-cell:last-child,
  .source-cell:last-child,
  .program-cell:last-child,
  .description-cell:last-child,
  .finanziati-cell:last-child,
  .investment-cell:last-child,
  .data-cell:last-child {
    border-bottom: none;
  }

  .table-header {
    display: none;
  }

  .table-row {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .source-cell,
  .program-cell {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
  }

  .description-cell {
    padding: 15px 20px;
    background: #ffffff;
  }

  .finanziati-cell,
  .investment-cell,
  .data-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    padding: 15px 20px;
  }

  .finanziati-cell::before,
  .investment-cell::before,
  .data-cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
  }
}

/* Actors Diagram Styles */
.actors-diagram-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.actors-diagram-image {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.actors-diagram-overlay {
  position: absolute;
  /* background-color: rgba(0, 0, 0, 0.1); */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  /* Center circles on (left, top) and use % size so they scale 1:1 with the image */
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  height: auto;
}

/*.actors-diagram-overlay:hover {
  background-color: rgba(var(--primary-rgb), 0.3);
  border: 2px solid rgba(var(--primary-rgb), 0.5);
}*/

/* Overlay positions and sizes in % of container (matches image; 1:1 mapping on resize) */
#uni-trento {
  top: 82.5%;
  left: 31.5%;
  width: 12%;
}

#fbk {
  top: 62.5%;
  left: 6.5%;
  width: 12%;
}

#fem {
  top: 22%;
  left: 27%;
  width: 12%;
}

#apss {
  top: 15%;
  left: 50%;
  width: 11%;
}

#trentino-sviluppo {
  top: 80%;
  left: 74%;
  width: 13%;
}

#muse {
  top: 23%;
  left: 73%;
  width: 11%;
}

#hit {
  top: 48%;
  left: 95%;
  width: 12%;
}

@media (max-width: 768px) {
  .actors-diagram-overlay {
    border-radius: 50%;
  }
}

/* S3 Numbers Section Styles */
.s3-number-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.5rem;
  min-height: 240px;
  background: #ffffff;
  border: 1px solid rgba(13, 71, 161, 0.08);
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.04);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  color: inherit;
  height: 100%;
}

.s3-number-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.12);
  border-color: rgba(13, 71, 161, 0.2);
}

.s3-number-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s3-number-icon svg {
  width: 100%;
  height: 100%;
}

.s3-number-card-projects .s3-number-icon {
  color: #43A047;
}

.s3-number-card-funding .s3-number-icon {
  color: #EF6C00;
}

.s3-number-card-actors .s3-number-icon {
  color: #F9A825;
}

.s3-number-value {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary, #0D47A1);
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.s3-number-label {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--primary, #0D47A1);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

@media (max-width: 992px) {
  .s3-number-card {
    min-height: 220px;
    padding: 2rem 1.25rem;
    margin-bottom: 1rem;
  }

  .s3-number-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }

  .s3-number-value {
    font-size: 2.25rem;
  }

  .s3-number-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .s3-number-card {
    min-height: 200px;
    padding: 1.75rem 1rem;
  }

  .s3-number-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
  }

  .s3-number-value {
    font-size: 2rem;
  }

  .s3-number-label {
    font-size: 0.8rem;
  }
}
