/* ==========================================================================
   SPISHOP / ECOLIFE – custom.css (curățat)
   - păstrează doar stilurile custom ale proiectului
   - eliminat blocul animat/animate.css care nu trebuie să fie în custom.css
   ========================================================================== */

.homepage-exigea .testimonials-container{
  background-image: url(/themes/theme_ecolife/assets/img/testimonials_banner.webp);
  background-repeat: no-repeat;
  background-size: cover;
}
/* === Fundal fix doar pentru pagina Form Builder === */
#module-gformbuilderpro-form #wrapper {
  /* dacă tema pune alt fundal, îl anulăm */
  background: none !important;
  position: relative;
  z-index: 0;
}

/* stratul de fundal fixat pe viewport (nu afectează formularul) */
#module-gformbuilderpro-form #wrapper::before {
  content: "";
  position: fixed;        /* rămâne fix la scroll */
  inset: 0;               /* acoperă tot ecranul */
  z-index: -1;            /* rămâne sub conținut */
  pointer-events: none;

  /* imagine + overlay pentru controlul “opacității” */
  background:
    linear-gradient(rgba(55,80,120,0.55), rgba(55,80,120,0.55)), /* ajustează 0.55 */
    url("/img/heatpump_digital_bg.webp") center / cover no-repeat;
  filter: blur(0px);      /* dacă vrei mai „soft”, crește la 2–4px */
}

/* ne asigurăm că formularul e pe alb solid, lizibil */
#module-gformbuilderpro-form .page-content.card {
  background: #fff;           /* alb curat */
  backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* poți face overlay-ul puțin mai puternic pe mobil */
@media (max-width: 768px) {
  #module-gformbuilderpro-form #wrapper::before {
    background:
      linear-gradient(rgba(55,80,120,0.65), rgba(55,80,120,0.65)),
      url("/img/heatpump-digital-bg-2560x1440.webp") center / cover no-repeat;
  }
}

/* === Form Builder Pro (pagina formularului) === */
body#module-gformbuilderpro-form h2.oh-title,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > h1,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > h2,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > h3,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > span:first-child {
  /* identic cu .h3 / h3 din tema */
  font-size: 1.125rem !important;
  line-height: 1.1 !important;
  margin-bottom: 0.5rem !important;
  font-family: inherit !important;
  color: inherit !important;
  display: block;            /* pentru <span> ca să se comporte ca heading */
}

/* dacă ai subtitluri imediat după titlu, dă-le un mic spacing */
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > * + p {
  margin-top: .25rem;
}

/* opțional: întărește ușor greutatea fontului pentru vizibilitate */
body#module-gformbuilderpro-form h2.oh-title,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > h1,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > h2,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > h3,
body#module-gformbuilderpro-form .gformbuilderpro_form .html_box > span:first-child {
  font-weight: 600; /* sau lasă inherit dacă preferi exact ca în temă */
}

/* ===== Banner pentru paginile generate de Form Builder Pro ===== */
body#module-gformbuilderpro-form .page-title-wrapper {
  /* imaginea ta de banner */
  background-image: url('/themes/theme_ecolife/assets/img/forms/pdc-header.jpg');
  background-repeat: no-repeat;
  background-size: cover !important;
  background-position: center !important;

  /* înălțime + aliniere conținut */
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* overlay ușor pentru lizibilitate breadcrumb/titlu */
body#module-gformbuilderpro-form .page-title-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25));
  pointer-events: none;
}

/* asigură-te că textul rămâne vizibil peste banner */
body#module-gformbuilderpro-form .page-title-wrapper .container,
body#module-gformbuilderpro-form .breadcrumb,
body#module-gformbuilderpro-form .breadcrumb a,
body#module-gformbuilderpro-form .page-title-wrapper h1 {
  position: relative;
  color: #fff !important;
}

/* h1 e gol pe această pagină — nu-l afișăm ca să nu lase spații */
body#module-gformbuilderpro-form .page-title-wrapper h1:empty {
  display: none;
}

/* Spațiere corectă a breadcrumb-ului pe banner */
body#module-gformbuilderpro-form .page-title-wrapper .breadcrumb {
  margin: 0;
  padding: 12px 0;
  font-weight: 600;
}

/* Cardul formularului: mică umbră + margine sus, ca să nu se lipească de banner */
body#module-gformbuilderpro-form #content.page-content.card.card-block {
  margin-top: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  border-radius: 8px;
}

/* Mobile tuning */
@media (max-width: 767.98px) {
  body#module-gformbuilderpro-form .page-title-wrapper {
    min-height: 220px;
  }
  body#module-gformbuilderpro-form .page-title-wrapper .breadcrumb {
    font-size: 14px;
  }
}

/* (opțional) text de titlu sintetic dacă vrei să apară pe banner fără să modifici .tpl
   — de-comentează doar dacă îți dorești asta
*/
/*
body#module-gformbuilderpro-form .page-title-wrapper .page-header::before {
  content: "Cerere de ofertă pentru o pompă de căldură";
  display: block;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
*/
/* === Ascunde banner page-title-wrapper pe Calculator Radiator, Comandă rapidă B2B, Feed B2B === */
body#module-radiatorcalc-calc .page-title-wrapper,
body#module-quickorder-quickorder .page-title-wrapper,
body#module-b2bquickorder-quickorder .page-title-wrapper,
body#module-b2bfeed-info .page-title-wrapper {
  display: none !important;
}

/* css header pagina*/
.responsive-header {
    background: url('{$urls.theme_assets}img/cms_bg.webp') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    width: 100%;
}

@media (max-width: 768px) {
    .responsive-header {
        min-height: 150px;
    }
}
/*end header pagina*/

/*css cariere*/
.responsive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.content-section {
  margin-bottom: 20px;
}

.content-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Media queries pentru mobil */
@media (max-width: 768px) {
  .responsive-container {
    padding: 0 10px; /* Redu padding-ul pe mobil */
  }

  .content-section h2 {
    font-size: 1.5em; /* Redu dimensiunea titlurilor pe mobil */
  }
}

.elementor img {
    height: auto;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Stiluri pentru ecrane cu lățimea maximă de 768px (telefoane mobile) */
@media (max-width: 768px) {
    .elementor img {
        /* Ajustează dimensiunile imaginilor pentru ecranele mobile */
        max-width: 100%; /* Ocupă întreaga lățime a ecranului */
        height: auto; /* Păstrează proporțiile imaginii */
        /* Alte stiluri specifice pentru mobil, dacă este necesar */
        margin: 10px 0; /* Adaugă margine pentru spațiere */
    }

    /* Dacă ai și alte elemente în interiorul .elementor care necesită ajustări pentru mobil */
    .elementor .element-section { /* Exemplu: ajustarea secțiunilor */
        padding: 10px; /* Redu padding-ul pentru a economisi spațiu */
    }

    .elementor .element-heading { /* Exemplu: ajustarea titlurilor */
        font-size: 1.5em; /* Redu dimensiunea fontului titlurilor */
    }
}

/* Stiluri pentru ecrane cu lățimea între 769px și 1024px (tablete) */
@media (min-width: 769px) and (max-width: 1024px) {
    .elementor img {
        /* Ajustează dimensiunile imaginilor pentru tablete */
        max-width: 100%; /* Ocupă întreaga lățime a ecranului */
        height: auto; /* Păstrează proporțiile imaginii */
        /* Alte stiluri specifice pentru tablete, dacă este necesar */
    }
}

/*end cariere*/

.list-bigger-image .style_product_list .img_block{
  max-width: 170px;
}

.has-section-inner .elementor-widget-wrap{
  display: block !important;
}
.elementor-widget-wrap > section{
  width: 100% !important;
}
.elementor-editor-active .elementor.elementor-edit-mode .elementor-top-column .elementor-widget-wrap .elementor-inner-section{
  margin-top: 0;
}
/* ===== B2B header bar (one-line, responsive, click dropdown) ===== */

/* ===== B2B topbar: one line + dropdown click ===== */

.b2b-header-inline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-right:10px;
  white-space:nowrap;
  flex-wrap:nowrap;
}

.b2b-welcome{
  font-size:13px;
  white-space:nowrap;
  line-height:1;

  /* nu rupe randul daca numele e lung */
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.b2b-dropdown{
  display:inline-flex;
  align-items:center;
}

.b2b-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:14px;
  font-size:12px;
  font-weight:800;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  line-height:1;
}

.b2b-ico{
  font-size:13px;
}

/* dropdown-ul sa arate bine (folosim theme classes: dropdown-menu pos-dropdown-menu) */
.b2b-dropdown-menu{
  min-width:220px;
}

/* Mobil: pastreaza o singura linie */
@media (max-width: 768px){
  .b2b-welcome{
    max-width:140px;
    font-size:12px;
  }
}

/* Mobil foarte mic: ascunde welcome, ramane doar icon + B2B */
@media (max-width: 520px){
  .b2b-welcome{ display:none; }
}

@import url('custom-fonts.css');
