/*
 Theme Name:     Divi 5 Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi 5 Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0005
*/


/* =Theme customization starts here
------------------------------------------------------- */

/********  GLOBALNE  ********/

#page_title_header {
		width: 95%;
	}

p:not(:last-child) {
    padding-bottom: 1em !important; 
}

.et_pb_text li {
	margin-bottom: 5px;
}

#cookie-notice {
	box-shadow: 2px 2px 10px rgb(0 0 0 / 25%);
}

.btn-cookie {
	color: #fff;
	border-radius: 20px;
	border: none;
	padding: 10px 20px;
	background: #000;
}

.entry-content tr td {
	border-top: none; 
}


.et_pb_button {
 line-height: 1.2 !important;
 text-align: center;
}

.dnxt-button-wrapper a {
 white-space: normal !important;
}

#footer_global .et_pb_widget li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Definicja animacji przybliżania i oddalania */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15); /* Przybliżenie o 15% */
    }
    100% {
        transform: scale(1);
    }
}

/* Nałożenie animacji na kontener tła w sliderze */
.et_pb_slide  {
    overflow: hidden; /* Zapobiega wystawaniu zdjęcia poza slider */
}


/* Celujemy bezpośrednio w warstwę tła */


.et_pb_slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pobiera tło z ustawień slajdu */
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Ustawienia animacji: 20 sekund, płynnie, w pętli */
    animation: zoomInOut 20s ease-in-out infinite;
}



/******** MODERNIZACJA MENU MOBILNEGO DIVI ********/

@media (max-width: 980px) {
.et_pb_section_0_tb_header .et_pb_row_0_tb_header {
    width: 100% !important;
}

.et_pb_row_0_tb_header .et_pb_menu_inner_container {
    padding-left: 5% !important; 
    padding-right: 5% !important;
}
    
    ul.et_mobile_menu {
        min-height: 100vh;
    }
    
/* 1. Ukrywamy podmenu siłowo */
    #menu_glowne .et_mobile_menu .menu-item-has-children .sub-menu {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 2. Pokazujemy podmenu tylko gdy nasza klasa jest aktywna */
    #menu_glowne .et_mobile_menu li.otwarte > .sub-menu {
        display: block !important;
    }

    /* 3. Dodajemy znak PLUS */
    #menu_glowne .et_mobile_menu .menu-item-has-children > a {
        position: relative !important;
    }

    #menu_glowne .et_mobile_menu .menu-item-has-children > a:after {
        content: '+' !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-family: Arial, sans-serif !important;
        font-size: 26px !important;
        font-weight: bold !important;
        color: #333 !important;
        pointer-events: none; /* Kliknięcie przechodzi przez plusa do linku */
    }

    /* 4. Zmiana na MINUS */
    #menu_glowne .et_mobile_menu li.otwarte > a:after {
        content: '\2212' !important; /* Symbol minusa */
    }
    
    /* 5. Zapobieganie miganiu menu Divi */
    #menu_glowne .et_mobile_menu li a {
        background: transparent !important;
    }
    
    
}

li.second-level a {
	font-weight: 400 !important;
	line-height: 1.3;
	text-transform: none !important;
}

/******** LOADER GWAREK MEDIA ********/

#gwarekmedia-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-line {
    width: 100px;
    height: 2px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #000; /* Złoty kolor marki */
    animation: line-load 1.5s infinite ease-in-out;
}

@keyframes line-load {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}






/******** MEDIA QUERY ********/


@media (max-width: 980px) {
	
}


@media (max-width: 767px) {

}


@media (max-width: 480px) {
	#footer_global .et_pb_column .et_pb_widget { margin-bottom: 0;
		
	}
}
