/*
Theme Name: Dimavj_2026_V.03
Theme URI: https://www.dima-vj.com
Description: Child theme de Twenty Twenty-Four amb l'estètica del template Artisteer original
Author: Dima-VJ
Template: twentytwentyfour
Version: 1.0
*/

/* === COLORS I TIPOGRAFIA === */
body {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Sans-Serif;
    font-size: 13px;
    color: #279153;
    background-color: #09120D;
    background-image: url('Bottom_texture.jpg');
    background-repeat: repeat;
    background-attachment: fixed;
    line-height: 1.6;
}

/* === CAPÇALERA === */
.wp-block-template-part header,
.site-header {
    background-image: url('header.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 177px;
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    background-color: transparent;
}

/* Espai per compensar el header fix */
body {
    padding-top: 220px;
}

.site-title,
.wp-block-site-title a {
    color: #FF4400 !important;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Sans-Serif;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px;
    display: inline-block;
}

.site-title a:hover,
.wp-block-site-title a:hover {
    color: #FF6622 !important;
}

/* === ENLLAÇOS === */
a {
    color: #01C144;
    text-decoration: none;
}

a:hover {
    color: #283E27;
    text-decoration: underline;
}

a:visited {
    color: #1E7B3F;
}

/* === TÍTOLS === */
h1, h2, h3, h4, h5, h6 {
    color: #279153;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Sans-Serif;
    text-transform: uppercase;
    font-weight: normal;
}

h1 {
    font-size: 26px;
    margin: 10px 0;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

/* Ocultar títol de pàgina HOME i altres */
.wp-block-post-title,
.entry-title.page-title,
h1.entry-title,
.page .entry-title {
    display: none !important;
}

/* === CONTINGUT === */
.entry-content,
.wp-block-post-content,
.wp-block-group.has-background {
    background-color: rgba(9, 18, 13, 0.85);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(39, 145, 83, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Eliminar espai superior del contingut */
.wp-site-blocks {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* === NAVEGACIÓ === */
.wp-block-navigation,
nav.wp-block-navigation {
    background-color: rgba(9, 18, 13, 0.9);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(39, 145, 83, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wp-block-navigation a,
.wp-block-navigation-item a {
    color: #01C144 !important;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

.wp-block-navigation a:hover,
.wp-block-navigation-item a:hover {
    color: #fff !important;
    background-color: rgba(40, 62, 39, 0.5);
    border-radius: 6px;
}

/* Submenús desplegables */
.wp-block-navigation__submenu-container,
.wp-block-navigation .wp-block-navigation__submenu-container {
    background-color: rgba(9, 18, 13, 0.95) !important;
    border: 1px solid rgba(39, 145, 83, 0.6) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.wp-block-navigation__submenu-container a {
    color: #01C144 !important;
}

.wp-block-navigation__submenu-container a:hover {
    background-color: rgba(40, 62, 39, 0.5) !important;
    color: #fff !important;
    border-radius: 4px !important;
}

/* === SIDEBAR === */
.wp-block-group,
.widget,
.sidebar-widget {
    background-color: rgba(9, 18, 13, 0.85) !important;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(39, 145, 83, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.widget-title {
    color: #279153;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(39, 145, 83, 0.4);
    padding-bottom: 10px;
}

/* Miniatures de vídeos en sidebar */
.wp-block-latest-posts__featured-image img,
.widget img {
    border-radius: 8px;
    border: 1px solid rgba(39, 145, 83, 0.3);
}

.wp-block-latest-posts.has-thumbnails li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(39, 145, 83, 0.2);
}

.wp-block-latest-posts.has-thumbnails li:last-child {
    border-bottom: none;
}

/* === FOOTER === */
footer,
.wp-block-template-part footer {
    background-color: rgba(9, 18, 13, 0.95);
    color: #279153;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

/* === POSTS === */
article.post,
.wp-block-post {
    background-color: rgba(9, 18, 13, 0.85);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid rgba(39, 145, 83, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.entry-title,
.wp-block-post-title {
    color: #279153 !important;
}

.entry-title a,
.wp-block-post-title a {
    color: #279153 !important;
    text-decoration: none;
}

.entry-title a:hover,
.wp-block-post-title a:hover {
    color: #01C144 !important;
}

/* Imatges destacades dins posts */
.wp-block-post-featured-image img,
.post-thumbnail img {
    border-radius: 8px;
    border: 1px solid rgba(39, 145, 83, 0.3);
}

/* Totes les imatges amb vores arrodonides */
img {
    border-radius: 8px;
    border: 1px solid rgba(39, 145, 83, 0.3);
}

/* === BOTONS === */
.wp-block-button__link,
button,
input[type="submit"] {
    background-color: #279153;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Sans-Serif;
    text-transform: uppercase;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #01C144;
    color: #09120D;
}

/* === LLISTES === */
ul, ol {
    color: #279153;
}

ul li::marker {
    color: #01C144;
}

/* === RESPONSIVE === */

/* Contenidor principal fluid */
.wp-site-blocks > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Tablets i pantalles mitjanes (768px - 1024px) */
@media (max-width: 1024px) {
    body {
        font-size: 13px;
    }
    
    .wp-site-blocks > * {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .site-header {
        min-height: 150px;
    }
    
    /* Columnes més estretes */
    .wp-block-columns {
        gap: 20px !important;
    }
}

/* Tablets petites i mòbils grans (481px - 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        min-width: auto;
    }
    
    .site-header {
        min-height: 120px;
    }
    
    .site-title,
    .wp-block-site-title a {
        font-size: 20px;
        padding: 15px;
    }
    
    /* Columnes en vertical */
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
    }
    
    /* Menú més compacte */
    .wp-block-navigation {
        padding: 8px 15px;
    }
    
    .wp-block-navigation a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Caixes amb menys padding */
    article.post,
    .wp-block-post,
    .entry-content,
    .wp-block-group,
    .widget {
        padding: 15px;
    }
}

/* Mòbils petits (fins 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .site-header {
        min-height: 100px;
        background-size: cover;
    }
    
    .site-title,
    .wp-block-site-title a {
        font-size: 18px;
        padding: 10px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    .wp-site-blocks > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    article.post,
    .wp-block-post,
    .entry-content {
        padding: 12px;
    }
    
    .wp-block-navigation {
        padding: 5px 10px;
    }
    
    .wp-block-navigation a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* === LAYOUT AMB SIDEBAR === */
.wp-site-blocks > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenidor principal amb sidebar */
.is-layout-constrained > .alignfull {
    max-width: none;
}

/* Forçar layout de dues columnes quan hi ha sidebar */
body.has-sidebar .wp-block-group.is-layout-flow,
body.has-sidebar .wp-block-group.is-layout-constrained {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.has-sidebar .wp-block-group.is-layout-flow,
    body.has-sidebar .wp-block-group.is-layout-constrained {
        grid-template-columns: 1fr;
    }
}

/* === AJUSTAMENTS ESPECÍFICS TWENTY TWENTY-FOUR === */
.wp-site-blocks {
    background-color: transparent;
}

.wp-block-group.has-background {
    background-color: rgba(9, 18, 13, 0.8) !important;
}
