/* ================================================= EXTERNAL STRUCTURE ================================================= */

/* KROK 1: Resetujemy blokady przewijania (zostawiamy to dla bezpieczeństwa) */
html, body, .wp-site-blocks, .site-container {
    overflow-y: visible !important; 
}

/* KROK 2: Magia - Namierzamy CAŁY nagłówek, który zawiera twoje menu */
.wp-block-template-part:has(.sticky-menu) {
    position: -webkit-sticky !important;
    position: sticky !important;
    
    /* Ujemna wartość "top" równa wysokości fioletowego paska */
    top: -50px !important; 
    
    z-index: 10000;
    transition: top 0.3s ease;
}

/* KROK 3: Wygląd białego paska menu */
.sticky-menu {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Obsługa paska administratora (gdy jesteś zalogowany) */
.admin-bar .wp-block-template-part:has(.sticky-menu) {
    top: -18px !important; 
}

@media screen and (max-width: 782px) {
    .admin-bar .wp-block-template-part:has(.sticky-menu) {
        top: -4px !important;
    }
}

/* ================================================= MENU DESKTOP ================================================= */

/* Odstępy między elementami menu na komputerach */
@media screen and (min-width: 783px) {
    .sticky-menu .wp-block-navigation-item {
        margin-left: 20px !important; 
        margin-right: 20px !important;
    }

    .sticky-menu .wp-block-navigation-item:first-child {
        margin-left: 0 !important;
    }

    .sticky-menu .wp-block-navigation-item:last-child {
        margin-right: 0 !important;
    }
}

/* ================================================= MENU MOBILNE (OVERLAY) ================================================= */

/* Poprawka widoku po kliknięciu w hamburger menu */
@media screen and (max-width: 782px) {
    /* Kontener wewnętrzny menu mobilnego */
    .wp-block-navigation__responsive-container-content {
        padding-left: 30px !important;   /* Odstęp od lewej krawędzi ekranu */
        padding-right: 30px !important;  /* Odstęp od prawej krawędzi ekranu */
        padding-top: 60px !important;    /* Odstęp od góry (miejsce na X) */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Wyrównanie linków do lewej */
    }

    /* Elementy menu na telefonie */
    .sticky-menu .wp-block-navigation-item {
        margin-left: 0 !important;       /* Zerujemy marginesy poziome na mobile */
        margin-right: 0 !important;
        padding-top: 12px !important;    /* Odstęp między linkami pionowo */
        padding-bottom: 12px !important;
        width: 100% !important;
    }
    
    /* Przycisk zamknięcia (X) w menu mobilnym */
    .wp-block-navigation__responsive-container-close {
        top: 20px !important;
        right: 20px !important;
    }
}





.wp-block-latest-posts__list li{
	line-height:1.6;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
}
a:link, a:visited{
	color: #000;
	text-decoration:none;
}
a:hover{
	color: #0D93FF;
	text-decoration:none;
}
p{line-height:1.5;}

.casestudy-button a.wp-block-post-excerpt__more-link{
	color: #fdfdfd;
    background: #000000;
    border-top-left-radius: 99px;
    border-top-right-radius: 99px;
    border-bottom-right-radius: 99px;
    border-bottom-left-radius: 99px;
	font-size: .9rem;
	padding:10px 20px;
	margin-top:20px;
}

@media (max-width: 767px) {
  html {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
}

.border-radius img{
	border-radius:20px !important;
}
.no-margin{
	margin:0 !important;
}

.grecaptcha-badge { 
    visibility: hidden !important; 
}

/
#backToTop {
  display: none; /* Ukryty domyślnie */
  position: fixed; /* Zawsze w tym samym miejscu */
  bottom: 15px; /* Odległość od dołu */
  right: 15px; /* Odległość od prawej */
  z-index: 99; /* Musi być nad innymi elementami */
  border: none;
  outline: none;
  background-color: #000; /* Kolor tła - dopasuj do brandingu 2heads */
  color: white;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 50%; /* Okrągły kształt */
  font-size: 18px;
  transition: opacity 0.3s, background-color 0.3s;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}
#backToTop:hover {
  background-color: #0D93FF; /* Kolor po najechaniu myszką */
}

/* Styl dla słowa "ludzi" */
.moj-kolorowy-naglowek strong:first-of-type {
    color: #0d93ff;
    font-weight: bold;
}

/* Styl dla słowa "motoryzacji" */
.moj-kolorowy-naglowek strong:last-of-type {
    color: #ff0013;
    font-weight: bold;
}