/* ── Default banner (no field_title_slide) ── */
.page-noutati__banner {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}

.page-noutati__banner-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-noutati__banner--default {
  height: 420px;
  background-size: cover;
  background-position: center;
}

.asp-noutati-full__figure {
  max-width: 320px;
  margin-bottom: 1rem;
}

.asp-noutati-full__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ── Banner-1 & Banner-2: desktop overlay layout ── */
.page-noutati__banner-1,
.page-noutati__banner-2 {
  position: relative;
  height: 420px;
  max-height: none;
  overflow: hidden;
}

.page-noutati__banner-1 .page-noutati__banner-inner,
.page-noutati__banner-2 .page-noutati__banner-inner {
  position: relative;
  height: 100%;
}

.page-noutati__banner-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1280px;
  height: 420px;
}

.page-noutati__banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-noutati__banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.page-noutati__banner-title {
  color: #fff;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.64px;
  word-break: break-word;
}

.page-noutati__banner-title h1,
.page-noutati__banner-title h2,
.page-noutati__banner-title h3,
.page-noutati__banner-title h4,
.page-noutati__banner-title p {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}


.slider-title{font-size: 32px!important; line-height: 40px!important;}
.slider-subtitle{font-size: 18px!important; line-height: 20px!important;}

.slider-title-sm{font-size: 36px!important; line-height: 42px!important;}
.slider-subtitle-sm{font-size: 20px!important; line-height: 24px!important;}

.slider-title-md{font-size: 40px!important; line-height: 48px!important;}
.slider-subtitle-md{font-size: 22px!important; line-height: 28px!important;}

.slider-title-lg{font-size:48px!important; line-height:56px!important;}
.slider-subtitle-lg{font-size:32px!important; line-height:42px!important;}

@media (max-width: 1290px) {
.page-noutati__banner-title{padding: 0 16px;}
}

@media (max-width: 1000px) {
.slider-title-sm{font-size: 32px!important; line-height: 40px!important;}
.slider-subtitle-sm{font-size: 18px!important; line-height: 20px!important;}

.slider-title-md{font-size: 36px!important; line-height: 42px!important;}
.slider-subtitle-md{font-size: 20px!important; line-height: 24px!important;}

.slider-title-lg{font-size: 38px!important; line-height: 48px!important;}
.slider-subtitle-lg{font-size: 20px!important; line-height: 28px!important;}
}


@media (max-width: 800px) {
  .page-noutati__banner-2 { max-height: 480px; }

  .page-noutati__banner-1 .page-noutati__banner-content,
  .page-noutati__banner-2 .page-noutati__banner-content {
    text-align: center;
    padding: 16px;
  }

  /* Banner-1: stacked — title on top, image below; bg from field_cod_serviciu */
  .page-noutati__banner-1 {
    background: var(--mobile-bg) !important;
    border-bottom: 1px solid #d9d9d9;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .page-noutati__banner-1 .page-noutati__banner-inner {
    order: 0;
    height: auto;
  }
  .page-noutati__banner-1 .page-noutati__banner-content {
    height: auto;
  }
  .page-noutati__banner-1 .page-noutati__banner-bg {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 1;
    width: 100%;
    height: auto;
  }
  .page-noutati__banner-1 .page-noutati__banner-bg img {
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 416;
  }

  /* Banner-2: image bottom-center, top-aligned text */
  .page-noutati__banner-2 {
    height: 480px;
  }
  .page-noutati__banner-2 .page-noutati__banner-content {
    justify-content: flex-start;
  }
  .page-noutati__banner-2 .page-noutati__banner-bg {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
  .page-noutati__banner-2 .page-noutati__banner-bg img {
    width: auto;
    height: 100%;
  }
  
.noutati-slider-image__inner{padding: 0;}
.page-noutati__banner-1 h2, .page-noutati__banner-2 h2{font-size: 32px!important; line-height: 40px!important;}
.page-noutati__banner-1 p, .page-noutati__banner-2 p{font-size: 18px!important; line-height: 20px!important;}
}

/* ── Mobile ≤767px ── */
@media (max-width: 560px) {
  .page-noutati__banner-2 { max-height: 360px; }

  .asp-noutati-full__figure {
    float: none !important;
    max-width: 100%;
    margin-left: 0 !important;
  }

  /* Banner-1: smaller font sizes */
  .page-noutati__banner-1 .page-noutati__banner-title {
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.36px;
  }
  .page-noutati__banner-1 .page-noutati__banner-title > :nth-child(n+2) {
    margin-top: 6px;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.6px;
  }

  /* Banner-2: shorter height, border, smaller fonts */
  .page-noutati__banner-2 {
    border-bottom: 1px solid #d9d9d9;
  }
  .page-noutati__banner-2 {
    height: 360px;
  }
  .page-noutati__banner-2 .page-noutati__banner-title {
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.36px;
  }
  .page-noutati__banner-2 .page-noutati__banner-title > :nth-child(n+2) {
    margin-top: 6px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.28px;
  }
  
.page-noutati__banner-1 h2, .page-noutati__banner-2 h2{font-size: 22px!important; line-height: 26px!important;}
.page-noutati__banner-1 p, .page-noutati__banner-2 p{font-size: 16px!important; line-height: 20px!important;}

.page-noutati__banner-1 p.m-fs18, .page-noutati__banner-2 p.m-fs18{font-size: 18px!important; line-height: 22px!important;}
.page-noutati__banner-1 p.m-fs20, .page-noutati__banner-2 p.m-fs20{font-size: 20px!important; line-height: 24px!important;}

.page-noutati__banner-1 h2.m-fs24, .page-noutati__banner-2 h2.m-fs24{font-size: 24px!important; line-height: 28px!important;}
.page-noutati__banner-1 h2.m-fs26, .page-noutati__banner-2 h2.m-fs26{font-size: 26px!important; line-height: 30px!important;}
.page-noutati__banner-1 h2.m-fs28, .page-noutati__banner-2 h2.m-fs28{font-size: 28px!important; line-height: 32px!important;}
}
