/*
Theme Name: CREA Budownictwo
Author: Printomato
Description: Child them for CREA
Version: 1.0
Template: Divi

This is the child theme for Divi theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* SEARCH ICON */
#et_search_icon:before {
    transform: scaleX(-1);
    content: "\55";
    font-weight: 600;
    font-size: 18px;
    left: 0;
    position: absolute;
    top: -6px;
    transition: all 0,2s ease-in-out;
}

#et_search_icon:hover::before {
    font-size: 20px;
    font-weight: 400;
    color: #ff8224!important;
    transition: all 0,2s ease-in-out;
}

.et_pb_menu__search-button:after {
    transform: scaleX(-1);
}

/* MENU TOP*/
.et_pb_menu .et-menu>li {
    padding: 0 10px;
}

.et-menu-nav {
    padding: 0 20px;
}

/* SLIDER */
.et-pb-slider-arrows a.et-pb-arrow-prev, 
.et-pb-slider-arrows a.et-pb-arrow-next {
    opacity: 1;
}

.et-pb-slider-arrows a.et-pb-arrow-prev {
    left: 22px;
}

.et_pb_slider .et-pb-controllers a {
    background-color: #ffffff !important;
    border: solid #ff8224 1px!important;
    opacity: 1;
    border-radius: 0 !important;
    width: 25px !important;
    height: 25px !important;
    font-weight: 200;
    font-size: 120px;
}

.et_pb_slider .et-pb-controllers .et-pb-active-control {
    background-color: #050505 !important;
}

/* Pozycjonowanie tekstu slidera */
.custom-slider-layout .et_pb_slide > .et_pb_container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;  /* tytuł mniej więcej w połowie slidera */
    height: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;      /* punkt odniesienia dla absolutnego caption */
}

.custom-slider-layout .et_pb_slide_description {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    /* position: static — caption będzie pozycjonowany względem .et_pb_container */
    position: static !important;
    /* Blokujemy animację na opisie — transform z fadeBottom robiłby z niego
       tymczasowy containing block dla absolutnie pozycjonowanego caption */
    animation: none !important;
    transform: none !important;
}

/* Tytuł – wyrównany do lewej + animacja fadeBottom przeniesiona z opisu */
.custom-slider-layout .et_pb_slide_title {
    text-align: left !important;
}

/* Przenieś animację fadeBottom na sam tytuł (bez naruszania pozycji caption) */
.custom-slider-layout .et-pb-active-slide .et_pb_slide_title {
    animation-duration: 0.7s !important;
    animation-delay: 0.9s !important;
    animation-timing-function: ease-in-out !important;
    animation-fill-mode: both !important;
    animation-name: fadeBottom !important;
}

/* Caption (opis z ikonką) – absolutnie przy górze, wyrównany do prawej krawędzi */
.custom-slider-layout .et_pb_slide_content {
    position: absolute !important;
    top: 40px !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: right !important;
    order: 0 !important;
}

/* Target the slider arrows container */
.et-pb-slider-arrows {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px; /* Adjust this value as needed */
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Ensures only arrows are clickable */
  z-index: 10;
  font-size: 100px !important;
}

/* Target the individual arrows */
.et-pb-slider-arrows a.et-pb-arrow-prev,
.et-pb-slider-arrows a.et-pb-arrow-next {
  position: static !important; /* Remove default absolute positioning */
  pointer-events: auto;
  opacity: 1;
}

.et-pb-arrow-next, .et-pb-arrow-prev {
    font-size: 120px !important;
    font-weight: 100 !important;
}

.et_pb_slider .et_pb_slide > .et_pb_container {
    width: 90% !important;
    max-width: 90% !important;
}

.et_pb_slide_title {
    width: 60% !important;
    max-width: 60% !important;
}

@media only screen and (min-width: 768px) and (max-width: 980px) {
.et_pb_slide_title {
    width: 80% !important;
    max-width: 80% !important;
}
}
@media only screen and (max-width: 767px){
.et_pb_slide_title {
    width: 90% !important;
    max-width: 90% !important;
}

}


/* MOBILE: caption bliżej górnej krawędzi */
@media only screen and (max-width: 767px) {
    .custom-slider-layout .et_pb_slide_content {
        top: 20px !important;
    }
}

.custom-slider-layout .et_pb_slide_content p::before {
  content: url('/wp-content/themes/crea-budownictwo/images/banner_ico.png');
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px; /* Optional: space between image and text */;
}

/* Zbudowalismy */
.statistics_box {
-webkit-clip-path: polygon(0% 0%, 95% 0%, 100% 10%, 100% 100%, 0% 100%);
clip-path: polygon(0% 0%, 95% 0%, 100% 10%, 100% 100%, 0% 100%);                 
}

/* Widok kategorii strona główna */
.projects_category .et_pb_heading_container {
    position: absolute;
    bottom: 24px;
    max-width: 200px !important;
}


/* flip box */
@media (min-width:1100px){
.flip-box-row {
  background-color: transparent;
  width: 400px;
  height: 580px;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}
.flip-box-back .et_pb_blurb_description {
    font-size: 16px !important;
}
}

@media (min-width:981px) and (max-width:1099px){
.flip-box-row {
  background-color: transparent;
  max-width: 310px;
  height: 580px;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}
.flip-box-front .et_pb_module_header {
    font-size: 26px !important;
}

}

@media (min-width:768px) and (max-width:980px){
.flip-box-row {
  background-color: transparent;
  width: 100%;
  height: 620px;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}
.flip-box-front .et_pb_module_header {
    font-size: 26px !important;
}
}

@media (min-width:980px) {
.flip-box-column {
  position: relative;
  width:100%;
  height: 100%;
  -webkit-transition: transform 0.8s;
  transition: transform 0.8s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
 
.flip-box-row:hover .flip-box-column {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
 
.flip-box-front, .flip-box-back{
  position: absolute;
   width:100%;
  height: 100%;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
 
.flip-box-back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.flip-box-back .et_pb_main_blurb_image {
    margin-bottom: 10px !important;
}

.flip-box-back {
    font-size: 16px;
      line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
}
}

/* Back to Top */

/*replace the back to top button icon*/
body .et_pb_scroll_top:before {
	content: "\21" !important;
	color: rgb(255, 255, 255);
	position: relative;
    font-size: 32px !important;
	top: 3px;
}
/*style and position the back to top button*/
body .et_pb_scroll_top {
	background-color: #EE6C00 !important;
	color: rgb(237, 240, 0) !important;
	padding: 10px !important;
	right: 15px !important;
	bottom: 125px !important;
	border-radius: 0px !important;
    box-shadow: #050505;
    clip-path: polygon(0% 0%, 75% 0%, 100% 20%, 100% 100%, 0% 100%);
}

/* Oferta */
.ico_oferta {
    display: block;
    float: left;
}


/* ikonki CREA w O NAS */
.crea-icon {
  margin-right: 15px;
  vertical-align: middle;
}

/* Aktualności */
/* SLIDER */
.news .et_pb_slide_title, .news .et_pb_slide_content, .news .et_pb_button_wrapper {
  border-left: #ff8224 solid 1px;
  padding-left: 25px;
}

.news .et_pb_post_slider.et_pb_bg_layout_dark .post-meta, .et_pb_post_slider.et_pb_bg_layout_dark .post-meta {
  color: black !important;

}

.news .et_pb_post .post-meta span:not(.published) {
    display: none;
}

.news .et_pb_slider .et-pb-controllers a {
    background-color: #C9C9C9 !important;
    border: solid #ffffff 4px!important;
    opacity: 1;
    border-radius: 0 !important;
    width: 20px !important;
    height: 20px !important;
    font-weight: 200;
    font-size: 120px;
}

.news .et_pb_slider .et-pb-controllers .et-pb-active-control {
    background-color: #ff8224 !important;
}

.et_pb_blog_grid  {
    margin-right: 20px; /* odstęp pod każdym postem */
}

/* ////////// SIATKA BLOG DLA WYNIKÓW WYSZUKIWANIA */
.et_pb_blog_grid .et_pb_salvattore_content .column {
  padding: 0 7.5px;
  box-sizing: border-box;
}
.et_pb_blog_grid .et_pb_salvattore_content {
  margin: 0 -7.5px;
}
.et_pb_blog_grid .et_pb_post {
  margin-bottom: 15px !important;
}


/* ////////// REALIZACJE ///////////// */

.realizacje_tytul::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g id="Group_655" data-name="Group 655" transform="translate(-288 -3064)"><rect id="Rectangle_192" data-name="Rectangle 192" width="8" height="8" transform="translate(304 3080)"/><rect id="Rectangle_193" data-name="Rectangle 193" width="8" height="40" transform="translate(288 3064)" fill="%23ee6c00"/><rect id="Rectangle_196" data-name="Rectangle 196" width="8" height="40" transform="translate(328 3064) rotate(90)" fill="%23ee6c00"/><rect id="Rectangle_194" data-name="Rectangle 194" width="8" height="40" transform="translate(320 3064)" fill="%23ee6c00"/><rect id="Rectangle_195" data-name="Rectangle 195" width="8" height="40" transform="translate(328 3096) rotate(90)" fill="%23ee6c00"/></g></svg>');
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.realizacje_data::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="38" height="38" viewBox="0 0 38 38"><defs><clipPath id="clip-path"><rect id="Rectangle_139" data-name="Rectangle 139" width="38" height="38" transform="translate(-0.002)" fill="none" stroke="%23000" stroke-width="1"/></clipPath></defs><g id="Group_536" data-name="Group 536" transform="translate(0.002 0)"><g id="Group_535" data-name="Group 535" transform="translate(0 0)" clip-path="url(%23clip-path)"><path id="Path_1374" data-name="Path 1374" d="M1.5,26.282V3.733A2.234,2.234,0,0,1,3.734,1.5H33.707A2.234,2.234,0,0,1,35.94,3.733V33.706a2.234,2.234,0,0,1-2.233,2.234H7.294" transform="translate(0.28 0.28)" fill="none" stroke="%23000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3"/><line id="Line_132" data-name="Line 132" x1="34.44" transform="translate(1.78 11.236)" fill="none" stroke="%23000" stroke-miterlimit="10" stroke-width="2"/></g></g></svg>');
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

/* Ukrywa wszystkie elementy galerii powyżej 4-tego */
.galeria-limit-4 .et_pb_gallery_item:nth-child(n+5) {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Opcjonalnie: ukrywa paginację tekstową na dole, jeśli się pojawi */
.galeria-limit-4 .et_pb_gallery_pagination {
    display: none;
}

/* 1. Wymuś na wierszu, aby rozciągnął kolumnę na pełną wysokość sekcji */
.et_pb_row_0_tb_body {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Rozciąga kolumnę do wysokości wiersza */
}

/* 2. Ustaw kolumnę jako kontener elastyczny (Flexbox) */
.et_pb_column_0_tb_body {
    display: flex;
    flex-direction: column;
    height: 100%;     /* Kolumna zajmie całą dostępną wysokość */
    justify-content: flex-start;
}

/* 3. Wypchnij białą ramkę na sam dół */
/* Dodanie automatycznego marginesu dolnego do nagłówka sprawi, 
   że zajmie on całą wolną przestrzeń, spychając wszystko pod nim na dół */
.et_pb_heading_0_tb_body {
    margin-bottom: auto !important;
}

/* 4. Sklej dwa moduły Blurb w jedną wizualną "ramkę" */
/* Górna część ramki (tytuł) - usuwamy dolny margines */
.et_pb_blurb_0_tb_body {
    margin-bottom: 0 !important;
    padding-bottom: 5px !important; /* Opcjonalna korekta odstępu wewnątrz */
}

/* Dolna część ramki (data) - usuwamy górny margines i auto-pozycjonowanie */
.et_pb_blurb_1_tb_body {
    margin-top: 0 !important;
    padding-top: 5px !important; /* Opcjonalna korekta odstępu wewnątrz */
}

/* --- Stylizacja Nawigacji (Wersja FontAwesome) --- */

/* Reset i układ */
.crea-nav-prev a,
.crea-nav-next a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-transform: uppercase;
    color: #333 !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Stylizacja Ikon */
.crea-nav-prev a::before,
.crea-nav-next a::before {
    font-family: "FontAwesome" !important; /* Zmiana czcionki */
    font-weight: 900 !important;           /* Wymagane dla ikon Solid */
    font-size: 64px;
    color: #ff8224;
    margin-bottom: 10px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Wybór ikon (KODY DO PODMIANY) */

/* Strzałka w LEWO */
.crea-nav-prev a::before {
    content: "\f060"; /* fa-arrow-left */
}

/* Strzałka w PRAWO */
.crea-nav-next a::before {
    content: "\f061"; /* fa-arrow-right */
}

/* Efekty najechania */
.crea-nav-prev a:hover::before { transform: translateX(-10px); }
.crea-nav-next a:hover::before { transform: translateX(10px); }
.et_pb_post_nav_0_tb_body { display: none; }

/* Ukrycie strzałki systemowej */
.crea-nav-next .meta-nav, .crea-nav-prev .meta-nav {
    display: none;
}