/*
 Theme Name: Divi Child
 Theme URI: https://example.com
 Description: A child theme for the Divi theme
 Author: Your Name
 Author URI: https://example.com
 Template: Divi
 Version: 1.0
*/

:root{

	/**COLORS**/
--color-violet: #8A1E5D;
--color-pink: #F8A2A2;
--color-light: #FCF3F5;
--color-darkgrey: #4D4D4D;
--color-lightgrey: #B3B3B3;
--color-pink-rgb: 248, 162, 162;
--color-zapisz1: #ff8400fa;
--color-zapisz2: #ffca00fa;
}

	/**FONTS**/

h1, h2, h3, h4, h5, h6 {
	font-family: "all-round-gothic", sans-serif;
}

p, a, li{
	 font-family: noto-sans, sans-serif;
}

p, li{
	color: var(--color-darkgrey);
}

em.pg-opinia-tresc{
	color: var(--color-violet);
	font-size:16px;
}

p.pg-opinia-osoba{
	color: var(--color-pink)!important;
}


	/** MAIN HEADER **/
/* CHANGE BG COLOR */
.pg-header {
	background-color: var(--color-light);
	-webkit-transition: background-color 0.5s ease-out;
	-moz-transition: background-color 0.5s ease-out;
	-o-transition: background-color 0.5s ease-out;
	transition: background-color 0.5s ease-out;
}

.pg-fixed-header {
	/*border-bottom: 1px solid var(--color-violet);*/
	background-color: var(--color-violet)!important;
	-webkit-transition: background-color 0.5s ease-out;
	-moz-transition: background-color 0.5s ease-out;
	-o-transition: background-color 0.5s ease-out;
	transition: background-color 0.5s ease-out;
}
 /*CHANGE TEXT COLOR*/
.pg-header ul>li>a
{
	color: var(--color-darkgrey);
}

.pg-header ul>li.menu-zapisz>a
{
	color: var(--color-zapisz1);
	font-weight:800;
}

.pg-fixed-header ul>li.menu-zapisz>a{
	color: var(--color-zapisz2);
	font-weight:800;
}

.pg-header ul>li>a:hover
{
	color: var(--color-violet);
}

.pg-header ul>li.current-menu-item>a,
.pg-header ul>li.current-menu-parent>a,
.pg-header #menu-glowne > .pg-menu-active>a,
body.single-post .menu-item-547>a
{
	color: var(--color-violet);
}

.pg-fixed-header ul>li>a,
#pg-footer .vertical-menu a
{
	color: var(--color-light);
}
.pg-fixed-header ul>li>a:hover,
#pg-footer .vertical-menu a:hover{
	color: var(--color-pink);
}
.pg-fixed-header ul>li.current-menu-item>a,
.pg-fixed-header ul>li.current-menu-parent>a,
.pg-fixed-header #menu-glowne > .pg-menu-active>a,
#pg-footer .vertical-menu .current-menu-item a,
body.single-post .pg-fixed-header .menu-item-547>a{
	color: var(--color-pink);
}
.et-menu a:hover{
	opacity:1!important;
}
/*CHANGE LOGO AND ITS SIZE*/
.pg-fixed-header .et_pb_menu__logo img {
	content: url(https://pozytywniewrodzinie.pl/wp-content/uploads/2025/01/Logo-Kolor-3.svg);
}
.pg-header .et_pb_menu__logo img {
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}
.pg-fixed-header .et_pb_menu__logo img {
	max-width: 80%;
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}
/*CHANGE SPACING*/
.pg-header .et_pb_row {
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}
.pg-fixed-header .et_pb_row {
	padding: 0px 0;
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

/* WAVE UNDER MENU ITEMS */

/* For the current main menu item */
#menu-glowne > .menu-item.current-menu-item::after,
#menu-glowne > .menu-item.pg-menu-active::after,
#menu-glowne-podstrony > .menu-item.current-menu-item::after,
#menu-glowne-podstrony > .menu-item.current-menu-parent::after,
body.single-post #menu-glowne-podstrony .menu-item-547::after{
  content: '';
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0px) !important; /* Start slightly above */
  width: 40px; /* Adjust width for the wave */
  height: 20px; /* Adjust height for the wave */
  border-radius: 50%; /* Makes it a part of a circle */
  background: none;
  border: 3px solid var(--color-violet); /* Wave color */
  border-top-color: transparent; /* Hide the top half */
  border-left-color: transparent; /* Optional: Hide left quarter */
  border-right-color: transparent; /* Optional: Hide right quarter */
  opacity: 1 !important;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth animation */
  transform-origin: center;
}

/* For other main menu items */
#menu-glowne > .menu-item::after,
#menu-glowne-podstrony > .menu-item::after,
#menu-glowne > .menu-item.current-menu-item:not(.pg-menu-active)::after,
.pg-fixed-header #menu-glowne > .menu-item.pg-menu-active::after{
  content: '';
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-5px); /* Start slightly above */
  width: 40px; /* Adjust width for the wave */
  height: 20px; /* Adjust height for the wave */
  border-radius: 50%; /* Makes it a part of a circle */
  background: none;
  border: 3px solid var(--color-violet); /* Wave color */
  border-top-color: transparent; /* Hide the top half */
  border-left-color: transparent; /* Optional: Hide left quarter */
  border-right-color: transparent; /* Optional: Hide right quarter */
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth animation */
  transform-origin: center;
}

/* Fixed header styling */
.pg-fixed-header #menu-glowne > .menu-item::after,
.pg-fixed-header #menu-glowne-podstrony > .menu-item::after,
.pg-fixed-header #menu-glowne > .menu-item.current-menu-item::after,
.pg-fixed-header #menu-glowne-podstrony > .menu-item.current-menu-item::after,
.pg-fixed-header #menu-glowne > .menu-item.pg-menu-active::after,
body.single-post .pg-fixed-header #menu-glowne-podstrony .menu-item-547::after{
  border: 3px solid var(--color-pink); /* Wave color */
  border-top-color: transparent; /* Hide the top half */
  border-left-color: transparent; /* Optional: Hide left quarter */
  border-right-color: transparent; /* Optional: Hide right quarter */
}

/* Hover and active states for main menu items */
#menu-glowne > .menu-item:hover::after,
#menu-glowne-podstrony > .menu-item:hover::after,
#menu-glowne > .menu-item.current-menu-item::after,
#menu-glowne-podstrony > .menu-item.current-menu-item::after{
  transform: translateX(-50%) translateY(0); /* Move to center position */
  opacity: 1; /* Fade in */
}
/* Remove wave from current-menu-item when pg-menu-active is present */
#menu-glowne > .menu-item.current-menu-item:not(.pg-menu-active)::after {
  content: '';

}

/*.menu-item:not(:hover) ::after {
  transform: translateX(-50%) translateY(5px); /* Move slightly below */
 /* opacity: 0; /* Fade out */
/*}*/
/*Sub-menu*/
#menu-glowne .menu-item-has-children>a:first-child,
#menu-glowne-podstrony .menu-item-has-children>a:first-child{
	padding-right:0px!important;
}

#menu-glowne .menu-item-has-children>a:first-child:after,
#menu-glowne-podstrony .menu-item-has-children>a:first-child:after{
	right: calc(50% - 5px)!important;
	top:60%!important;
}

#menu-glowne .sub-menu,
#menu-glowne-podstrony .sub-menu{
	background-color: #ffffff!important;
	left: -100%;
    text-align: center;
	border-color: transparent;
	border-radius:20px;
}

#menu-glowne .sub-menu li a,
#menu-glowne-podstrony .sub-menu li a{
	color: var(--color-darkgrey);
}

#menu-glowne .sub-menu li a:hover,
#menu-glowne-podstrony .sub-menu li a:hover,
#menu-glowne .sub-menu li.current-menu-item a,
#menu-glowne-podstrony .sub-menu li.current-menu-item a
{
	background-color:transparent;
	color: var(--color-violet);
}
/**/
/**MOBILE MENU**/
	/*HAMBURGER ICON*/
		/*Hamburger icon - colors*/
.mobile_menu_bar:before{
	font-size: 50px;
	color: var(--color-violet)!important;
}
.pg-fixed-header .mobile_menu_bar:before{
	font-size: 50px;
	color: var(--color-light)!important;
}
		/*Hamburger icon - change icon to open*/
.mobile_nav.opened .mobile_menu_bar:before {
    content: '\4d';
}

		/*Hamburger icon - rotate on click*/
.mobile_menu_bar:before {
	transition: all .4s ease;
	transform: rotate(0deg);
	display: block;
}
.mobile_nav.opened .mobile_menu_bar::before {
	transition: all .4s ease;
	transform: rotate(90deg);
	display: block;
}
	/*/
	/*DROP-DOWN MENU*/
@media (max-width: 980px){
#mobile_menu1{
	border-top: none;
	background-color: var(--color-light)!important;
}
.pg-fixed-header #mobile_menu1{
	background-color: var(--color-violet)!important;
}
.et_pb_menu_inner_container{
	padding-left:10%;
	padding-right:10%;
}
	#mobile_menu1>li>a{
		text-align:center;
}
	.et_mobile_menu li a{
		border-bottom:none!important;
	}
/*SUB-MENU*/
	#mobile_menu1 li a:hover, #mobile_menu1 .menu-item-has-children>a{
		background-color:transparent!important;
	}
	
	#mobile_menu1 ul{
		text-align:center;
		padding-left:0px;

	}
	
	#mobile_menu1 .menu-item-has-children{
		margin-bottom:20px;
		border: 2px solid rgba(var(--color-pink-rgb), 0.2);
		border-radius:20px;
	}
	
	#mobile_menu1 .sub-menu li{
		padding-left:0px;
	}
/* WAVE UNDER MAIN MENU ITEMS ONLY */
/* For current main menu item */
#mobile_menu1 > .menu-item.current-menu-item > a::after,
body.single-post #mobile_menu1 > .menu-item-547 > a::after{
  content: '';
  position: relative;
  display: block;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(0px)!important; /* Start slightly above */
  width: 40px; /* Adjust width for the wave */
  height: 20px; /* Adjust height for the wave */
  border-radius: 50%; /* Makes it a part of a circle */
  background: none;
  border: 3px solid var(--color-violet); /* Wave color */
  border-top-color: transparent; /* Hide the top half */
  border-left-color: transparent; /* Optional: Hide left quarter */
  border-right-color: transparent; /* Optional: Hide right quarter */
  opacity: 1!important;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth animation */
  transform-origin: center;
}

/* For other main menu items (hovered state) */
#mobile_menu1 > .menu-item > a::after {
  content: '';
  position: relative;
  display: block;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-5px); /* Start slightly above */
  width: 40px; /* Adjust width for the wave */
  height: 20px; /* Adjust height for the wave */
  border-radius: 50%; /* Makes it a part of a circle */
  background: none;
  border: 3px solid var(--color-violet); /* Wave color */
  border-top-color: transparent; /* Hide the top half */
  border-left-color: transparent; /* Optional: Hide left quarter */
  border-right-color: transparent; /* Optional: Hide right quarter */
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth animation */
  transform-origin: center;
}

/* Fixed header styling */
.pg-fixed-header #mobile_menu1 > .menu-item > a::after {
  border: 3px solid var(--color-pink); /* Wave color */
  border-top-color: transparent; /* Hide the top half */
  border-left-color: transparent; /* Optional: Hide left quarter */
  border-right-color: transparent; /* Optional: Hide right quarter */
}

/* Hover and active states for main menu items */
#mobile_menu1 > .menu-item > a:hover::after,
#mobile_menu1 > .menu-item.current-menu-item > a::after {
  transform: translateX(-50%) translateY(0); /* Move to center position */
  opacity: 1; /* Fade in */
}

/* Ensure no wave under sub-menu items */
#mobile_menu1 .sub-menu .menu-item > a::after {
  content: none;
}

}
/**/	
/**PARRALAX**/
.pg-parallax-1 .et_parallax_bg_wrap .et_parallax_bg {
background-size: contain !important;
background-position: -25vw 50px !important
}
/**/
/*Inline buttons*/
.pg-inline-buttons .et_pb_button_module_wrapper {
    display: inline-block;
}

/*Blurb vertical align*/
.pg-blurb-align-1 .et_pb_blurb_container{
	vertical-align:middle;
}


/*Contact Form Button Center*/
.et_contact_bottom_container {
    float: none;
    text-align: center;
    display: block !important;
}

/*Divi popups close button size*/
#et-boc .area-outer-wrap .da-close{
	font-size:50px;
	height:50px;
	width:50px;
	line-height:50px;
}






/** BLURB CAROUSEL **/

/* Carousel container styles */
.custom-carousel {
  position: relative;
  overflow: hidden;
  width: 80%; /* Make the row 80% width on PC */
  max-width: 2400px; /* Set max-width */
  margin: 0 auto; /* Center the carousel */
}

/* Flex wrapper for Blurb Modules */
.custom-carousel .et_pb_column {
  display: flex; /* Use flexbox for horizontal alignment */
  flex-wrap: nowrap; /* Prevent wrapping */
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  padding: 0; /* Remove additional padding to ensure proper alignment */
}

/* Blurb Module styles for carousel items */
.custom-carousel .et_pb_blurb {
  flex: 0 0 calc(33.333% - 20px); /* Adjust width for 3 items per row */
  box-sizing: border-box; /* Include padding and borders in width */
  margin: 0 10px; /* Horizontal margin for spacing */
  padding: 20px; /* Inner padding for content */
  border: 1px solid #ccc; /* Ensure border is accounted for */
}

/* Navigation button styles */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  display: block; /* Ensure buttons are visible initially */
}

.carousel-nav.left {
  left: 10px;
}

.carousel-nav.right {
  right: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .custom-carousel .et_pb_blurb {
    flex: 0 0 calc(50% - 20px); /* 2 items per row on tablets */
  }
}

@media (max-width: 768px) {
  .custom-carousel .et_pb_blurb {
    flex: 0 0 calc(100% - 20px)!important; /* 1 item per row on mobile */
  }
}




/*Make the menu module display vertically*/
.vertical-menu nav ul li {
width: 100%;
display: block!important;

}
@media (max-width: 980px){
	.vertical-menu .et_pb_menu__menu {
		display: flex!important;
	}
	.vertical-menu .et_mobile_nav_menu {
		display: none!important;
	}
		.vertical-menu .et_pb_menu_inner_container  {;
		padding-left:0px;
	}
}



.blurb-carousel .et_pb_row {
    display: flex;
    overflow: hidden;
    align-items: center;
    width: 100%;
}

.blurb-carousel .et_pb_column {
    flex: 0 0 auto;
    width: 33.33%; /* Adjust for 3 items per view */
    max-width: 33.33%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

/* Navigation button styles */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.swiper-button-prev {
    left: -40px;
}

.swiper-button-next {
    right: -40px;
}

/* Swiper container and wrapper styles */
.swiper-container {
    overflow: hidden;
    width: 80%!important;
		padding-left:10px;
	padding-right:10px;
}
.swiper-wrapper {
    display: flex;
}
/* Adjust the width of each slide dynamically */
.swiper-slide {
    flex: 0 0 auto;
    width: 100%; /* Default for mobile */
    box-sizing: border-box;
}

/* Adjust slide width for larger screens */
@media (min-width: 1024px) {
    .swiper-slide {
        width: calc(33.33% - 30px); /* 3 slides per view with 30px spacing */
    }
}
.swiper-slide.et-last-child{
	margin-right:30px!important;
}
/* Optional: To adjust the left side for better centering */
.swiper-slide:first-child {
    padding-left: 15px;
}

/* Override margin-right for the last Swiper slide */
.et_pb_row.blurb-carousel .et_pb_column.et-last-child.swiper-slide {
    margin-right: 30px !important; /* Force margin for the last Swiper slide */
}

/* Adjust dynamically added Swiper styles */
.et_pb_row.blurb-carousel .swiper-slide:last-of-type {
    margin-right: 0 !important; /* Remove additional margin for the last duplicate slide */
}

/* Change the color of the navigation arrows */
.swiper-button-prev,
.swiper-button-next {
    color: var(--color-violet); /* Replace with your desired color */
}

/* Add hover effect for navigation arrows */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--color-pink); /* Replace with hover color */
}
