/*
Theme Name: PIX7
Theme URI: https://pixup.pl
Author: pixUp
Author URI: https://pixup.pl
Description: PIX7 v.01.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pix7
*/


/* Globalne ustawienia, zapobiegające poziomemu scrollowaniu */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: sans-serif;
    background:#fff;
    max-width: 1700px;
    margin: 0 auto;
}

html {
    scroll-behavior: smooth;
  }


  .site-wrapper {
  
    background: #fff;
}



/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1700px;
    background: none;
    /* Usunięto obramowanie */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
}
header .logo img {
    max-width: 140px;
    height: auto; 
}
header .logo {
    margin-left: 100px; /* margines dla desktopu */
}

header .menu {
    margin-right: 100px; /* margines dla desktopu */
}

.blogname {
    font-size: 28px;
    font-weight: 800;
}

/* Menu główne */
.nav-menu {
    list-style: none; /* usuwa punktory */
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin: 0 10px;
    position: relative; /* wymagane dla submenu */
}

/* Dodajemy strzałkę do elementów menu posiadających submenu */
.nav-menu li.menu-item-has-children > a:after {
    content: "\2193";
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: middle;
}

/* Linki menu */
.nav-menu li a {
    display: block;
    padding: 5px 10px;
    color: #fff;
}

/* Submenu dropdown – desktop */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 10px 0;
    list-style: none;
    margin: 0;
    min-width: 150px;
    z-index: 1000;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu li ul li {
    margin: 0;
}

.nav-menu li ul li a {
    padding: 5px 15px;
    white-space: nowrap;
}

.nav-menu li ul li a:hover {
    background: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 35px;
    margin-top: -4px;
}

button.mobile-menu-close {
    display: none;
}


/* Podstawowe style dla elementów tekstowych */
p, h1, h2, h3, h4, h5, h6, ul, li, a, span {
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: #333;
    line-height: 1.2;
	letter-spacing: 1px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
	letter-spacing:2px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
}

a:hover {
    color: #0073aa;
}

/* Tytuły widgetów jako span z dodatkowym odstępem od góry */
.widget-title {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Główny kontener na 80% szerokości ekranu (desktop) */
.container {
    width: 70%;
    margin: 0 auto;
    padding-top:125px;
}

/* Jeśli tytuł jest wyświetlony – padding-top: 120px */
.container.has-title {
    padding-top: 170px;
}

/* Jeśli tytuł nie jest wyświetlony – padding-top: 55px */
.container.no-title {
    padding-top: 0px;
}


/* Stopka z widgetami (desktop) */
.footer-widgets {
    display: flex;
    justify-content: space-between;
    background: #345E73;
    padding: 20px;
    padding-top:40px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.footer-widget {
    width: 100%;
}
.footer-widgets {
	padding:60px 120px;
}
/* Marginesy boczne dla widgetów na desktop */
.footer-widgets .footer-widget:first-child {
    margin-left: 0px;
}
.footer-widgets .footer-widget:last-child {
    margin-right: 0px;
}

/* Styl sidebaru */
.sidebar {
    background: #f0f0f0;
    padding: 20px;
    margin-top: 20px;
}

/* Ustawienie marginesu górnego dla stopki, obniżającego ją o 60px względem kontenera */
footer {
    margin-top: 60px;
}

/* Wrapper zawierający treść i sidebar – na desktop wyświetlamy w wierszu */
.content-sidebar-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Jeśli sidebar jest aktywny – wrapper z klasą .has-sidebar */
.content-sidebar-wrapper.has-sidebar .content {
    flex: 0 0 75%;
}

.content-sidebar-wrapper.has-sidebar .sidebar {
    flex: 0 0 25%;
    top: 80px;
}

/* Jeśli sidebar nie jest aktywny – wrapper z klasą .no-sidebar */
.content-sidebar-wrapper.no-sidebar .content {
    width: 100%;
}


.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}



/* Ustawienie paddingu dla kolumn */
.wp-block-columns {
    margin: 30px 0;
}

.wp-block-column p {
	padding: 18px 30px 20px 30px;
}
.wp-block-column h2, .wp-block-column h3, .wp-block-column h4 {
	padding: 30px 30px 0 30px
}

 Ustawienie paddingu dla grupy bloków 
.wp-block-group {
    padding: 20px;
    margin-bottom: 40px;
}

.wp-block-button {
    margin-bottom: 30px !important;
}

.footer-logo img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top:20px;
}
.footer-widget ul li  {
    list-style-type: none;
    padding: 2px 0;
}
.footer-widgets, .footer-widgets span, .footer-widgets p, .footer-widgets a, .footer-widgets ul, .footer-widgets li {
    color:#f8f8f8;
}

.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.archive-item {
    background: #f8f8f8;  
    padding: 30px;
}

.archive-thumb img {
    width: 100%;
    height: auto;
    display: block;
}


.entry-header {
    text-align: center;
    margin-top: 12px;
}
.entry-meta {
    font-size: 13px;
}

.daniel {
    margin-top: -18px;
    margin-bottom: 40px;
}

.top-m h1 {
    padding-top:30px;
	margin-bottom:-40px;
}

.dbutton {
    margin-top: 30px !important;
}


.kolumny .wp-block-image {
    padding-bottom: 20px;
}

.margin-minus {
    margin-top: -85px;
}


/* Responsywność – układ mobilny */

@media (max-width: 768px) {
	
	.top-m h1 {
    padding-top:90px;
}
    header .menu {
        display: block;
    }
    header .logo {
        margin-left: 10px; /* mniejszy margines na mobilce */
    }
    header .logo img {
        max-width: 80px;
        height: auto;
    }

    button.mobile-menu-close {
        display: block;
    }
    button.mobile-menu-toggle {
        right: 2px;
        position: absolute;
        color: #222;
    }

     /* Ukrywamy standardowy układ menu (desktopowy) – stylizujemy menu jako pełnoekranowe off-screen */
     #main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-sizing: border-box;
        z-index: 99999;
    }
    /* Gdy menu ma klasę 'open', przesuwamy je na ekran */
    #main-menu.open {
        left: 0;
    }
    /* Wyświetlamy przycisk toggle – jest domyślnie ukryty na desktopie */
    .mobile-menu-toggle {
        display: block;
    }
    /* Dodatkowo możesz ustawić mobilne submenu – przykładowo: */
    .nav-menu {
        flex-direction: column;
        
    }
    .nav-menu li {
        margin: 10px 0;
    }
    .nav-menu li ul {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 5px;
    }
    .nav-menu li a {
        padding: 5px 10px;
        color: #333!important;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        padding-top: 0;
        display: block;
    }
    .nav-menu li ul li a {
        padding: 20px;
    }
    
    /* Po kliknięciu (przez JS dodamy klasę "open" do li) submenu będą wyświetlane */
    .nav-menu li.open > ul {
        display: block;
    }
    /* Przycisk otwierający mobilne menu jest widoczny */
    .mobile-menu-toggle {
        display: block;
    }
    /* Przycisk zamykający mobilne menu */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
    }
    /* Układ widgetów stopki w mobilce */
    .footer-widgets {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        background: #345E73;
    }
    .footer-widget {
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
        text-align: center;
    }
    .footer-widgets, .footer-widgets span, .footer-widgets p, .footer-widgets a, .footer-widgets ul, .footer-widgets li {
        color:#f8f8f8;
    }
    
    .footer-widgets .footer-widget:first-child,
    .footer-widgets .footer-widget:last-child {
         margin-left: 0;
         margin-right: 0;
    }

    .container {
        width: 90%;
    }
    /* Układ treści i sidebaru – elementy jeden pod drugim */
    .content-sidebar-wrapper {
        display: block;
    }
    .content,
    .content-sidebar-wrapper .sidebar {
        width: 100%;
    }
    .content-sidebar-wrapper .sidebar {
        position: static;
        top: auto;
        margin-top: 20px;
    }
    

 /* Domyślnie podmenu jest ukryte */
#main-menu .nav-menu li ul {
    display: none;
}
/* Gdy rodzic ma klasę "open", podmenu jest widoczne */
#main-menu .nav-menu li.open > ul {
    display: block;
}

.archive-item {
    margin-bottom: 60px;

}


.archive-posts-grid {
    display: block;
}

nav#main-menu a {
    color: #444;
    font-weight: 100;
}
.margin-minus {
    margin-top: -85px;
}

.dbutton {
    width: 100% !important;
    text-align: center;
}
.mobileout {
    margin-top:-100px;
}
	ul.sub-menu {
    background: #fff !important;
}

    
}
