.t4-section-inner.container:has(.module-historia-freguesia){
    padding: 0px;
}
.t4-section-inner.container:has(.module-historia-freguesia) .t4-col{
    padding: 0px;
}

.t4-wrapper .jf-historia__inner{
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: radial-gradient(circle at 18% 25%, rgba(15, 23, 42, 0.08), transparent 58%), radial-gradient(circle at 85% 70%, rgba(15, 23, 42, 0.05), transparent 62%), linear-gradient(180deg, #eef2f7 0%, #ffffff 100%);
    overflow: hidden;
}

/* textura tipo "papel" por cima, leve mas visível */
.t4-wrapper .jf-historia__inner::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(15, 23, 42, 0.028) 0,
      rgba(15, 23, 42, 0.028) 1px,
      transparent 1px,
      transparent 7px
    );

  opacity: 0.55;
}

/* garante que o conteúdo fica acima da textura */
.t4-wrapper .jf-historia__inner > *{
  position: relative;
  z-index: 1;
}

/* Header */
.t4-wrapper .jf-historia__header{
  margin-bottom: 1.25rem;
}

.t4-wrapper .jf-historia__title{
  margin: 0 0 .35rem;
  font-weight: 900;
  line-height: 1.1;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: #0b2b5a;
}

.t4-wrapper .jf-historia__lead{
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.80);
  max-width: 70ch;
}

/* Layout */
.t4-wrapper .jf-historia__grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: start;
}

.t4-wrapper .jf-historia__p{
  margin: 0 0 1rem;
  color: rgba(15, 23, 42, 0.85);
}

/* Lista */
.t4-wrapper .jf-historia__bullets{
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: rgba(15, 23, 42, 0.85);
}

.t4-wrapper .jf-historia__bullets li{
  margin: .45rem 0;
}

.t4-wrapper .jf-historia__bullets li::marker{
  color: #0b2b5a;
}

/* Botões (força estilo, evita heranças do template) */
.t4-wrapper .jf-historia__actions{
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.t4-wrapper .jf-historia__btn{
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  padding: .75rem 1.15rem;
  border-radius: .8rem;

  font-weight: 800;
  text-decoration: none;

  color: #fff;
  background: linear-gradient(180deg, #0b2b5a, #133e78);

  box-shadow: 0 10px 20px rgba(11,43,90,0.35);
}

.t4-wrapper .jf-historia__btn:hover{
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.t4-wrapper .jf-historia__btn:focus-visible{
  outline: 3px solid rgba(11, 43, 90, 0.35);
  outline-offset: 3px;
}

.t4-wrapper .jf-historia__btn--ghost{
  background: #ffffff;
  color: #0b2b5a;
  border: 1px solid rgba(11,43,90,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.t4-wrapper .jf-historia__btn--ghost:hover{
  background: #f8fafc;
  color: #0b2b5a;
  filter: none;
}

/* Card Destaque (mais “editorial” como imagem 2) */
.t4-wrapper .jf-historia__card{
  background: linear-gradient(180deg, #f7efe3 0%, #f2e6d4 100%);
  border: 1px solid rgba(120, 90, 40, 0.25);
  border-radius: 1rem;
  padding: 1.25rem;

  box-shadow:
    0 18px 30px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.t4-wrapper .jf-historia__kicker{
  margin: 0 0 .75rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.75);
}

/* imagem */
.t4-wrapper .jf-historia__media{
    overflow: hidden;
    background: #ddd;
    margin-bottom: 1rem;
}

.t4-wrapper .jf-historia__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* frase */
.t4-wrapper .jf-historia__quote{
  margin: 0 0 .5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.45;
  font-style: italic;
  color: #2b2b2b;
}

.t4-wrapper .jf-historia__meta{
  margin: 0;
  font-weight: 800;
  color: #8a6b2f;
}

.t4-wrapper .jf-historia__text {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.t4-wrapper .jf-historia__actions {
  margin-top: auto;
}

.t4-wrapper .jf-historia__grid {
  align-items: stretch;
}

/* Responsivo */
@media (max-width: 991.98px) {
  .t4-wrapper .jf-historia__grid {
    grid-template-columns: 1fr;
  }

  /* Destaque (foto) passa para cima */
  .t4-wrapper .jf-historia__highlight {
    order: -1;
  }

  /* Texto fica abaixo */
  .t4-wrapper .jf-historia__text {
    order: 1;
  }
}
