
html {
    max-width: 100%;
    overflow-x: hidden;
}

.full {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    align-items: center;
}


html {
    overflow-x: hidden;
    max-width: 100%;
}

.hfeed.full {
    height: 100vh;
}


  .full--background-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .full video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh;
    object-fit: cover;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;              
    clip-path: inset(0 0 100% 0);   
    animation: vid-reveal 1.8s forwards cubic-bezier(0.77,0,0.175,1);
    will-change: clip-path;
  }

  @keyframes vid-reveal {
    to { clip-path: inset(0 0 0 0); }
  }

  .full .opakowane {
    position: relative;
    z-index: 1;
    max-width: 1920px;
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .header-top .logo img {
    max-height: 60px;
    height: auto;
    width: auto;
  }

  .header-top nav.main-menu-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
  }

  .header-top nav.main-menu-ul li {
    display: inline-block;
  }

  .header-top nav.main-menu-ul li a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
  }

  .header-content h1 {
    font-size: 12.8rem;
    font-weight: 300;
    margin-bottom: 15px;
  }

  .header-content .row > .col-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .header-content p {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #fff;
}

  .header-content .btn-primary:hover {
    background-color: var(--green);
    color: #fff;
    text-decoration: none;
  }



nav li {
    display: inline;
    padding: 12px;
    font-size: 16px;
}

nav span {
    color: var(--black);
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 400;
}
.home nav span {
    color: var(--white);
}








.video-container {
  position: relative;
  width: 100%;
  height: 100vh; /* lub inna wysokość nagłówka */
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* półprzezroczyste czarne zacienienie */
  pointer-events: none; /* nie blokuje interakcji */
      display: block;
    object-fit: cover;              
    clip-path: inset(0 0 100% 0);   
    animation: vid-reveal 1.8s forwards cubic-bezier(0.77,0,0.175,1);
    will-change: clip-path;
}

.head .cta {
    padding-top: 4%;
    display: flex;
    flex-direction: column;
}

.cta p {
    width: 80%;
}

#mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.header-text-container h1 {
    font-size: 8rem;
    width: 90%;
    color: var(--black);
}
.header-content b {
    font-weight: 600;
}

body:not(.home, .error404) .full.head {
  height: 100vh;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  overflow: hidden;           /* ważne, by nie wystawało */
  /* start: wszystko ukryte poza wąskim pasem u góry */
  clip-path: inset(0 0 100% 0);
  animation: revealY 1.2s forwards cubic-bezier(0.77, 0, 0.175, 1);
}

.full.head.full--background-image {
  clip-path: inset(0 0 100% 0);
  animation: revealY 1.2s forwards cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes revealY {
  to {
    clip-path: inset(0 0 0 0); /* odsłonięte w 100% */
  }
}

body:not(.home) .header-text-container.opakowane {
    padding-bottom: 6%;
}
/*body:not(.home) ul#main-menu-ul span {
    color: var(--black);
}*/
/* Panel z prawej strony */
#mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -300px; /* startowo ukryty poza ekranem */
  width: 300px;
  height: 100vh; /* zawsze cała wysokość okna */
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 99999; /* zwiększyłem, aby przykrywał cały content */
  padding: 20px;
  overflow-y: auto; /* przewijanie jeśli menu jest długie */
}

/* Po otwarciu */
#mobile-menu-panel.active {
  right: 0;
}

/* Overlay */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(6px); /* efekt rozmycia */
  background-color: rgba(0, 0, 0, 0.3); /* półprzezroczyste przyciemnienie */
  z-index: 99; /* tak, aby było nad innymi elementami, ale pod menu */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* nie blokuje kliknięć gdy niewidoczna */
}

#menu-overlay.active {
  opacity: 1;
  pointer-events: auto; /* aktywny do klikania przy włączonym menu */
}



#menu-overlay.active {
  display: block;
}

/* Menu w panelu */
#mobile-menu-panel .main-menu-ul {
  list-style: none;
  padding: 0;
  margin: 50px 0 0; /* przesunięcie pod przycisk zamknięcia */
}

#mobile-menu-panel .main-menu-ul li {
  margin-bottom: 15px;
}

#mobile-menu-panel .main-menu-ul li a {
  display: block;
  font-size: 18px;
  text-decoration: none;
  color: #000;
}

#mobile-menu-panel .main-menu-ul li a:hover {
  color: var(--orange); 
}

::selection {
  background-color: var(--orange); 
  color: white;
}

/* Przycisk zamykania */
#mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  line-height: 1;
}
.color-text span {
  display: inline-block;
  color: #000;
  opacity: 0.4;
  transition: color 1.3s ease, opacity 1.3s ease;
}

.color-text span.colored {
  color: #000;
  opacity: 1;
}
.color-text.white span {
    color: white;
    opacity: 0.4;
}
.color-text.white span.colored {
  color: white;
  opacity: 1;
}
.error-image {
    width: 95%;
    margin-bottom: 15px;
    float: left;
}

.error-message {
    font-size: 6.4rem;
    font-weight: 300;
    margin-bottom: 35px;
    text-align: left;
    color: var(--white);
    line-height: 120%;
}

.error-btn {
  padding: 12px 32px;
  border-radius: 8px;
  text-transform: uppercase;
}
.full--error-background {
  position: relative; /* potrzebne do pozycjonowania pseudoelementu */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tlo-error::before {
  background-color: rgba(155, 34, 34, 0.4);
  pointer-events: none; /* pozwala na kliknięcia przez nakładkę */
  z-index: 1;
}
.error404 {
    background-color: var(--black);
}
.error404 nav span {
    color: var(--white);
}
.error-container {
    max-width: 70%;
    width: 70%;
    margin-top: 10%;
}
span.pomaranczka {
  color: var(--orange);
  font-weight: bold;
}
.header-content h1 {
    color: var(--white);
}
#mobile-menu-panel .main-menu-ul li a {
    color: var(--green);
}

nav.d-none.d-lg-block ul {
    display: flex;
    gap: 5rem;
}

li#menu-item-29.current-menu-item a span, li#menu-item-30.current-menu-item a span {
    color: var(--green);
}

div#mobile-menu-panel {
    overflow-y: hidden;
}

#mobile-menu-toggle {
    display: none;
}

.home .header-top .logo img {
    max-height: 160px;
}

.color-text strong.colored, .header-text-container strong {
    background-color: var(--orange);
}

.color-text strong.colored span, .header-text-container strong {
    color: white;
}

.color-text p{
    line-height: 1.3;
}

body.privacy-policy .full.head {
    height: inherit;
    min-height: 20vh;
}

.privacy-policy #container {
    max-width: 1200px;
}

.privacy-policy article {
    padding-left: 20px;
    padding-right: 20px;
}

.privacy-policy #wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1366px) {
body:not(.home, .error404) .full.head {
    display: flex;
    justify-content: space-between;
}
}


@media (max-width: 1025px) {
    .header-content h1 {
        font-size: 8.8rem;
    }
    
  .opakowane.header-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 80vh;
}
.header-content p {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #fff;
}
    .header-content .col-lg-6 {
        flex: 0 0 60%;
        width: 64%;
        height: auto;
    }
    .header-content .row {
    display: flex;
    height: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
}
body.menu-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none; /* opcjonalnie, blokuje scroll też na dotykowych urządzeniach */
}
.main-menu-ul {
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 90%;
        z-index: 99;
        text-transform: uppercase;
    }
  #mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-menu-ul.active {
    display: flex;
  }

  .error-message {
    font-size: 2.4rem;
}

#mobile-menu-close {
    color: var(--green);
    font-size: 4rem;
}

body.menu-open .header-text-container {
  display: none;
}

#mobile-menu-panel.active::before {
    content: "";
    position: absolute;
    top: 0;
    right: -20%;
    bottom: -3%;
    left: 0;
    background: url(../assets/LOGO_ALFA_FOOD_RGB_TRANSPARENT_4.png) no-repeat bottom right;
    background-size: 30rem;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

#mobile-menu-panel.active > * {
  position: absolute;
  z-index: 1;
}
button#mobile-menu-close {
    text-align: right;
}

#mobile-menu-panel .main-menu-ul .current-menu-item:not(:nth-last-child(-n+2)) > a,
#mobile-menu-panel .main-menu-ul .current_page_item:not(:nth-last-child(-n+2)) > a {
    color: var(--orange);
}
.full.head {
    height: 60vh;
}

.header-text-container h1 {
    font-size: 6rem;
}

}


@media (max-width: 768px) {

.header-content h1 {
    font-size: 3.8rem;
 }

.header-content p {
    font-size: 1.4rem;
}

.cta p {
    width: 100%;
}

.opakowane.header-content {
    padding-top: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

.opakowane.header-content .row {
    margin-bottom: 0;
}

.header-content .col-lg-6 {
        flex: 0 0 50%;
        width: 39%;
        height: auto;
    }

#mobile-menu-panel.active ~ .opakowane.header-content {
  display: none !important;
}
body.menu-open .opakowane.header-content {
  display: none !important;
}

.background-overlay {
    height: 75%;
    background: url(../assets/LOGO_ALFA_FOOD_RGB_TRANSPARENT_4.png) no-repeat right center;
    background-size: 60%;
    background-position: right;
}

.video-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.header-top .logo img {
    max-height: 50px;
}



body:not(.home, .error404) .header-top .logo img {
    max-height: 40px;
}

li#menu-item-29.current-menu-item:before, li#menu-item-30.current-menu-item:before {
    content: url(https://alfafoodgroup.pl/wp-content/themes/blankslate/assets/arrow-right.png);
}

li#menu-item-29.current-menu-item, li#menu-item-30.current-menu-item {
    display: flex;
    gap: 1rem;
    margin-left: -1rem;
}

ul#main-menu-ul {
    display: flex;
    gap: 3.2rem;
}


body:not(.home, .error404) .full.head {
    height: 60vh;
    background-position: -200px;
    overflow: visible;
}

body:not(.home, .error404) .header-top {
    background: #ffffffe6;
}

#mobile-menu-panel.active::before {
    background-size: 25rem;
}

li#menu-item-29.current-menu-item a span, li#menu-item-30.current-menu-item a span {
    color: var(--orange);
}

.kontakt a {
    text-decoration: none;
}

.home .header-top .logo img {
    max-height: 60px;
}

body.privacy-policy .full.head {
    height: inherit;
    min-height: 20vh;
}

}