.retex-funding-bar {
  background: #fff;
  padding: 12px 0 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e6e6e6;
}

.retex-funding-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.retex-logo {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.retex-logo--ue {
  height: 88px;
}

.retex-logo--gov,
.retex-logo--regio {
  height: 72px;
}

@media screen and (max-width: 767px) {
  .retex-funding-bar {
    padding: 8px 0 14px;
  }

  .retex-funding-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .retex-logo--ue {
    height: 64px;
    flex: 1 1 100%;
  }

  .retex-logo--gov,
  .retex-logo--regio {
    height: 56px;
  }
}

.retex-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
}

.retex-page h1,
.retex-page h2 {
  color: #111;
  line-height: 1.3;
}

.retex-page h1 {
  font-size: 28px;
  margin: 8px 0 16px;
}

.retex-page h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #003399;
}

.retex-kicker {
  margin: 0 0 8px;
  color: #003399;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.retex-lead {
  margin: 0 0 18px;
  font-size: 17px;
}

.retex-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 16px;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: #f6f8fc;
  border: 1px solid #d9e1f2;
}

.retex-meta dt {
  margin: 0;
  font-weight: 700;
  color: #003399;
}

.retex-meta dd {
  margin: 0;
}

.retex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.retex-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none !important;
}

.retex-btn--primary {
  color: #111 !important;
  background: #ffcc00;
}

.retex-btn--primary:hover {
  background: #e6b800;
}

.retex-btn--ghost {
  color: #003399 !important;
  background: #fff;
  border: 1px solid #003399;
}

.retex-btn--ghost:hover {
  color: #fff !important;
  background: #003399;
}

.retex-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.retex-page li {
  margin-bottom: 8px;
}

.retex-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.retex-product {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e3e3e3;
}

.retex-product h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #003399;
}

.retex-product p {
  margin: 0;
}

.retex-facts {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
}

.retex-facts th,
.retex-facts td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3e3e3;
  text-align: left;
  vertical-align: top;
}

.retex-facts th {
  width: 38%;
  color: #003399;
  font-weight: 700;
  background: #f6f8fc;
}

.retex-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  background: #f6f8fc;
  border-left: 4px solid #003399;
}

.retex-note a {
  color: #003399;
  font-weight: 700;
}

.retex-status {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #fff8e1;
  border: 1px solid #ffe082;
}

@media screen and (max-width: 767px) {
  .retex-page {
    padding: 12px 12px 40px;
    font-size: 15px;
  }

  .retex-page h1 {
    font-size: 22px;
  }

  .retex-page h2 {
    font-size: 19px;
    margin-top: 24px;
  }

  .retex-meta {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .retex-meta dt {
    margin-top: 8px;
  }

  .retex-facts th,
  .retex-facts td {
    display: block;
    width: 100%;
  }

  .retex-facts th {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media print {
  @page {
    margin: 12mm;
    size: A4;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  #information-proiect-re-tex,
  #information-comunicat-presa,
  #information-proiect-re-tex *,
  #information-comunicat-presa * {
    visibility: visible;
  }

  #information-proiect-re-tex,
  #information-comunicat-presa {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .breadcrumb,
  .retex-actions,
  .whatsapp-chat-button {
    display: none !important;
  }

  .retex-funding-bar {
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #ccc !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .retex-funding-bar__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .retex-logo--ue {
    height: 52px !important;
    flex: 0 1 auto !important;
  }

  .retex-logo--gov,
  .retex-logo--regio {
    height: 44px !important;
  }

  .retex-page {
    max-width: none !important;
    padding: 0 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    color: #111 !important;
  }

  .retex-page h1 {
    font-size: 16pt !important;
    margin: 0 0 10px !important;
    page-break-after: avoid;
  }

  .retex-page h2 {
    font-size: 13pt !important;
    margin: 14px 0 8px !important;
    padding-bottom: 4px !important;
    page-break-after: avoid;
  }

  .retex-meta,
  .retex-facts,
  .retex-status,
  .retex-note,
  .retex-product {
    background: #fff !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .retex-meta {
    grid-template-columns: 140px 1fr !important;
    gap: 4px 12px !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
  }

  .retex-facts th,
  .retex-facts td {
    display: table-cell !important;
    width: auto !important;
    padding: 6px 8px !important;
  }

  .retex-facts th {
    width: 38% !important;
  }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }

  a[href]::after {
    content: none !important;
  }
}
