/*
Theme Name: Stroligut Pur
Theme URI: https://stroligut.cat
Author: Stroligut Team
Description: Tema Mestre v77.0 - Estil Autor Definitiu (Bio Dalt, Nom Cursiva, Línia Alta)
Version: 77.0
Requires PHP: 8.2
*/

/* ================================================================== */
/* 1. VARIABLES I FONTS                                               */
/* ================================================================== */

@font-face { 
    font-family: 'Manrope'; 
    src: url('https://stroligut.cat/wp-content/themes/stroligut-pur/fonts/Manrope.woff2') format('woff2'); 
    font-weight: 200 800; 
    font-display: swap; 
}

@font-face { 
    font-family: 'EB Garamond'; 
    src: url('https://stroligut.cat/wp-content/themes/stroligut-pur/fonts/EBGaramond.woff2') format('woff2'); 
    font-weight: 400 800; 
    font-style: normal; 
    font-display: swap; 
}

@font-face { 
    font-family: 'EB Garamond'; 
    src: url('https://stroligut.cat/wp-content/themes/stroligut-pur/fonts/EBGaramond-Italic.woff2') format('woff2'); 
    font-weight: 400 800; 
    font-style: italic; 
    font-display: swap; 
}

:root {
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Manrope', sans-serif;
    --c-text-dark: #111111;      
    --c-body: #4a4a4a;              
    --c-link: #2a9185; 
    --c-link-hover: #4b6367;
    --c-bg: #FDFBF8;         
    --c-bg-alt: #ffffff;
    --c-border: #cccccc;
    --c-accent: #2a9185;
    --color-category-hover: #BDD9D3;
    --container-width: 1230px; 
    --header-width: 1180px; 
}

/* ================================================================== */
/* 2. BASE I TIPOGRAFIA                                               */
/* ================================================================== */

*, *::before, *::after { 
    box-sizing: border-box; 
}

body {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.007em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.75;
    color: var(--c-body);
    background-color: var(--c-bg);
    overflow-x: hidden;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

strong, b, .bold { 
    font-weight: 700; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.2s ease; 
}

a:hover { 
    color: var(--c-link-hover); 
}

.entry-content a { 
    color: var(--c-link); 
    text-decoration: none !important; 
    border-bottom: none; 
}

.entry-content a:hover { 
    color: var(--c-link-hover); 
}

/* ENCAPÇALAMENTS */
h1, h2, h3 { 
    font-weight: 400; 
    margin-top: 0; 
    line-height: 1.2; 
    color: var(--c-text-dark); 
}

h4, h5, h6 { 
    font-weight: 700; 
    margin-top: 0; 
    line-height: 1.2; 
    color: var(--c-text-dark); 
}


h1 { 
    font-size: 44px; 
    margin-bottom: 0.8em; 
}

h2 { 
    font-size: 40px; 
    margin-bottom: 0.6em; 
    margin-top: 1.4em; 
}

h3 { 
    font-size: 28px; 
    margin-bottom: 0.5em; 
    margin-top: 1.2em; 
}

h4 { 
    font-size: 24px; 
    margin-bottom: 0.5em; 
}

h5 { 
    font-size: 20px; 
}

blockquote { 
    font-size: 21px; 
    font-weight: 400; 
    border-left: 4px solid var(--c-link); 
    padding-left: 1.5em; 
    margin-left: 0; 
    margin-bottom: 1.5em; 
    font-style: italic; 
    color: #666; 
}

/* ================================================================== */
/* 3. CAPÇALERA DUAL (SISTEMA ATLANTIC) - SUBMENÚ MÉS ALT             */
/* ================================================================== */

.site-header { 
    margin: 0 !important; 
    padding: 0 !important; 
    border: 0 !important; 
    width: 100%; 
    background: var(--c-bg);
}

/* 3.1 CAPÇALERA DE MARCA */
body .main-header {
    padding: 20px 0;
    background: var(--c-bg);
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
}

body .main-logo-big svg {
    height: 24px !important; 
    width: auto;
    margin: 0 auto;
    display: block;
    fill: #0EAE9C !important;
}

body.is-scrolled .main-header {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* 3.2 SUBCAPÇALERA STICKY (NAVEGACIÓ) - ARA MÉS ALTA */
body .sub-header {
    height: 65px; /* Augmentat de 50px a 65px per donar més aire */
    background: var(--c-bg);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    width: 100%;
}

body .sub-header .container-narrow {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: var(--header-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* LOGO STICKY */
body .sticky-logo-wrap {
    justify-self: start;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

body .sticky-logo svg {
    height: 20px; /* Una mica més gran per acompanyar l'alçada */
    width: auto;
    fill: #0EAE9C !important;
}

body.is-scrolled .sticky-logo-wrap {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* MENÚ CENTRAT */
body .nav-menu-wrap { 
    justify-self: center;
    display: flex;
    align-items: center;
}

body .nav-menu {
    display: flex;
    gap: 30px; /* Més separació entre paraules */
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

body .nav-menu a {
    font-family: var(--font-sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #333;
    font-weight: 300;
    display: block;
    line-height: 65px; /* Coincideix amb l'alçada del pare per centrar-se */
}

/* LUPA */
body .nav-search-wrap { justify-self: end; }

body .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    padding: 10px; /* Més àrea de clic ara que hi ha espai */
}

/* BARRA DE LECTURA */
#reading-progress {
    position: absolute;
    bottom: 0; /* Ajustat al final de la barra alta */
    left: 0;
    width: 0%;
    height: 3px;Z
    background: var(--c-link);
    z-index: 1001;
}
/* ================================================================== */
/* 4. OVERLAYS I MÒBIL                                                */
/* ================================================================== */

body .nav-mobile-wrap { display: none; }

body .menu-overlay, 
body .search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

body .menu-overlay.active, 
body .search-overlay.active { 
    display: flex !important; 
    opacity: 1 !important; 
}

body .menu-overlay { background: rgba(14, 174, 156, 0.98); }
body .search-overlay { background: rgba(255, 255, 255, 0.98); }

/* Botons de tancar */
body .close-btn, body .close-search {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

@media (max-width: 1024px) {
    body .main-header { display: none !important; }
    body .sub-header { height: 65px; }
    body .sub-header .container-narrow { grid-template-columns: auto 1fr auto; }
    body .nav-menu-wrap { display: none; }
    body .nav-mobile-wrap { display: block !important; }
    body .sticky-logo-wrap { opacity: 1; transform: none; pointer-events: auto; justify-self: center; }
}


/* ================================================================== */
/* 4. HERO HEADER                                                     */
/* ================================================================== */

.hero-header { 
    position: relative; 
    height: 70vh; 
    min-height: 500px; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center; 
    max-width: var(--header-width); 
    margin: 0 auto 40px auto; 
    border-radius: 4px; 
    overflow: hidden; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 800px; 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-top: -30px; 
}

a.hero-cat { 
    background: transparent !important; 
    padding: 0 !important; 
    border-radius: 0 !important; 
    color: #ffffff !important; 
    font-family: var(--font-sans); 
    font-weight: 700 !important; 
    font-size: 11px !important; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: inline-block; 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--c-link); 
    text-decoration: none !important; 
    line-height: 2; 
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8); 
    transition: all 0.3s ease; 
}

a.hero-cat:hover { 
    color: #ffffff !important; 
    border-bottom-color: #ffffff; 
    opacity: 1; 
}

.hero-title { 
    font-family: var(--font-serif); 
    font-weight: 400; 
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); 
    line-height: 1.1; 
    margin-bottom: 0; 
    color: #fff; 
    text-shadow: 0 1px 15px rgba(0,0,0,0.5); 
    width: 100%; 
    text-align: center; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero-share { 
    display: none; 
}

/* ================================================================== */
/* 5. SINGLE GRID                                                     */
/* ================================================================== */

.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 30px; 
}

.single-content-grid { 
    display: grid; 
    grid-template-columns: 120px 1fr 300px; 
    gap: 60px; 
    padding-bottom: 80px; 
    align-items: start; 
}

.entry-content > *:first-child { 
    margin-top: 0; 
}

/* AUTOR (Dins Single) */
.author-column { 
    text-align: center; 
    position: sticky; 
    top: 120px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.author-link-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 20px; 
}

.author-avatar img { 
    width: 72px; 
    height: 72px; 
    border-radius: 50%; 
    margin-bottom: 15px; 
}

.author-name { 
    font-family: var(--font-serif); 
    font-weight: 400; 
    font-style: normal; 
    font-size: 20px; 
    color: #212121; 
    margin: 0; 
    text-align: center; 
    line-height: 1; 
}

/* ================================================================== */
/* SHARE SIDEBAR                                                      */
/* ================================================================== */

.share-vertical-wrapper { 
    margin-top: 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative; 
    width: 100%; 
    z-index: 10; 
}

button.share-trigger { 
    width: 50px !important; 
    height: 50px !important; 
    border-radius: 50% !important; 
    background-color: #F4F1EA !important; 
    border: 1px solid #E5E0D8 !important; 
    cursor: pointer; 
    color: #777 !important; 
    padding: 0; 
    margin: 0 auto; 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    z-index: 2; 
    appearance: none; 
    -webkit-appearance: none; 
}

button.share-trigger svg { 
    width: 20px !important; 
    height: 20px !important; 
    fill: currentColor; 
    display: block; 
    margin: 0; 
}

button.share-trigger:hover, 
button.share-trigger.active { 
    background-color: var(--c-link) !important; 
    border-color: var(--c-link) !important; 
    color: #ffffff !important; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(42, 145, 133, 0.2); 
}

.share-list { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    align-items: center; 
    overflow: hidden; 
    background: none !important; 
    border: none !important; 
    opacity: 0; 
    visibility: hidden; 
    max-height: 0; 
    width: 50px; 
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); 
}

.share-list.visible { 
    opacity: 1; 
    visibility: visible; 
    max-height: 500px; 
    padding-top: 30px; 
    padding-bottom: 10px; 
}

.share-list a { 
    opacity: 0; 
    transform: translateY(-15px); 
    transition: all 0.3s ease; 
}

.share-list.visible a { 
    opacity: 1; 
    transform: translateY(0); 
}

.share-icon-side { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 30px; 
    height: 30px; 
    color: #555555; 
    transition: all 0.3s ease; 
}

.share-icon-side svg { 
    width: 22px; 
    height: auto; 
    fill: currentColor; 
}

@media (max-width: 900px) {
    .share-vertical-wrapper { 
        margin-top: 20px; 
        margin-bottom: 20px; 
    }
    
    .share-list { 
        width: auto !important; 
        max-width: 90vw; 
    }
    
    .share-list.visible { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 20px; 
        padding: 15px 20px; 
        background-color: #F4F1EA !important; 
        border-radius: 30px; 
        border: 1px solid #E5E0D8 !important; 
    }
    
    .share-list.visible a { 
        transition-delay: 0s !important; 
    }
}

/* ================================================================== */
/* CONTINGUT                                                          */
/* ================================================================== */

.entry-content p { 
    margin-bottom: 1.6em; 
}

.caplletra::first-letter { 
    float: left; 
    font-size: 7rem; 
    line-height: 0.5; 
    margin: 0.1em 0.2em 0.2em 0; 
    font-family: var(--font-serif); 
    font-weight: 500; 
    color: var(--c-link); 
}

.entry-content figcaption, 
.wp-block-image figcaption, 
.wp-caption-text { 
    font-family: var(--font-sans); 
    font-size: 16px; 
    text-align: center; 
    color: #666; 
    margin-top: 12px; 
    line-height: 1.3; 
}

.credits { 
    line-height: 1.3; 
}

/* ================================================================== */
/* SIDEBAR & WIDGETS                                                  */
/* ================================================================== */

.sidebar-column { 
    position: sticky; 
    top: 120px; 
}

.sidebar-column > div, 
.sidebar-column > section, 
.widget { 
    margin-bottom: 60px; 
}

.widget-title { 
    font-family: var(--font-serif); 
    font-weight: 700; 
    font-style: italic; 
    font-size: 22px; 
    margin-bottom: 15px; 
    text-align: center; 
    border-bottom: none; 
    padding-bottom: 10px; 
    display: block; 
    color: #444444; 
    text-transform: lowercase; 
}

.cat-drawer { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 55px; 
    background: transparent; 
    border: 1px solid var(--c-border); 
    border-radius: 1px; 
    margin-bottom: 10px; 
    transition: all 0.3s ease; 
    text-decoration: none !important; 
}

.cat-drawer .cat-label { 
    font-family: var(--font-serif); 
    font-weight: 500; 
    font-style: italic; 
    font-size: 22px; 
    color: var(--c-text-dark); 
    text-transform: lowercase; 
    line-height: 1; 
}

.cat-drawer:hover { 
    background-color: var(--color-category-hover); 
    border-color: transparent; 
}

.entry-footer { 
    margin-top: 50px; 
    border-top: 1px solid #eee; 
    padding-top: 30px; 
    text-align: center; 
}

.sidebar-tags-wrapper { 
    margin-bottom: 60px; 
    text-align: left; 
    padding: 0; 
}

.sidebar-tag-cloud { 
    display: block; 
    line-height: 1.6; 
}

.sidebar-tag-cloud a, 
.entry-tags a { 
    display: inline; 
    background: transparent !important; 
    border: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    font-family: var(--font-sans); 
    font-size: 11px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #888888 !important; 
    border-bottom: 1px solid transparent; 
    hyphens: manual; 
    white-space: normal; 
    transition: all 0.2s ease; 
    text-decoration: none !important; 
}

.sidebar-tag-cloud a:hover, 
.entry-tags a:hover { 
    color: var(--c-link) !important; 
    border-bottom: 1px solid var(--c-link); 
}

a.primary-cat-item { 
    color: #111111 !important; 
    font-weight: 800 !important; 
    border-bottom: 1px solid transparent; 
}

a.primary-cat-item:hover { 
    border-bottom-color: #111111; 
}

.tag-sep { 
    display: inline-block; 
    margin: 0 6px; 
    font-size: 13px !important; 
    color: #000000; 
}

.desktop-tags { 
    display: none; 
}

.mobile-tags { 
    display: block; 
}

@media (min-width: 1025px) { 
    .desktop-tags { 
        display: block; 
    } 
    
    .mobile-tags { 
        display: none; 
    } 
}

/* ================================================================== */
/* LOGO INLINE                                                        */
/* ================================================================== */

.brand-inline-wrapper { 
    display: inline-block; 
    vertical-align: baseline; 
    line-height: 0; 
    position: relative; 
    top: 2px; 
    margin: 0 2px; 
    color: #0EAE9C; 
}

.brand-inline-wrapper svg { 
    height: 0.66em; 
    width: auto; 
    fill: currentColor; 
}

/* ================================================================== */
/* ETIQUETES DESTACADES                                               */
/* ================================================================== */

.sidebar-tag-cloud a[href*="/arxiu/la-segona-periferia"],
.sidebar-tag-cloud a[href*="/arxiu/godall"],
.sidebar-tag-cloud a[href*="/arxiu/altra"],
.sidebar-tag-cloud a[href*="/arxiu/quaderns-crema"] { 
    color: #E05A00 !important; 
}

.sidebar-tag-cloud a[href*="/arxiu/la-segona-periferia"]:hover,
.sidebar-tag-cloud a[href*="/arxiu/godall-edicions"]:hover,
.sidebar-tag-cloud a[href*="/arxiu/laltra-editorial"]:hover,
.sidebar-tag-cloud a[href*="/arxiu/quaderns-crema"]:hover { 
    color: #ff6600 !important; 
    border-bottom: 1px solid #ff6600; 
}

/* ================================================================== */
/* ESTILS ATLANTIC (CAPÇALERES D'ARXIU GENERAL)                       */
/* ================================================================== */

.atlantic-header-wrap { 
    background-color: transparent; 
    width: 100%; 
    padding-top: 60px; 
    padding-bottom: 30px; 
    border-bottom: 1px solid var(--color-category-hover); 
    margin-bottom: 30px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.atlantic-title { 
    font-family: 'EB Garamond', serif; 
    font-style: italic; 
    font-size: 3.8rem; 
    font-weight: 400; 
    color: #111111; 
    margin: 0; 
    line-height: 1; 
    letter-spacing: -0.02em; 
}

.atlantic-title.is-archive::before, 
.atlantic-title.is-page::before { 
    content: none !important; 
    display: none; 
}

.atlantic-desc { 
    font-family: 'Manrope', sans-serif; 
    font-size: 1.15rem; 
    font-weight: 300; 
    color: #444; 
    max-width: 680px; 
    margin: 20px auto 0 auto; 
    line-height: 1.6; 
}

@media (max-width: 768px) { 
    .atlantic-title { 
        font-size: 3rem; 
    } 
    
    .atlantic-header-wrap { 
        padding-top: 60px; 
        padding-bottom: 30px; 
    } 
}

/* ================================================================== */
/* GRID TEXTOS (PER A ARXIUS NO-AUTOR)                                */
/* ================================================================== */

.textos-grid-layout { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px 25px; 
    margin-bottom: 80px; 
    margin-top: 0; 
}

.grid-item-textos { 
    display: flex; 
    flex-direction: column; 
}

.post-thumbnail-textos { 
    position: relative; 
    margin-bottom: 15px; 
    overflow: hidden; 
    border-radius: 3px !important; 
    transform: translateZ(0); 
}

.post-thumbnail-textos img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 3/2; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease; 
}

.post-thumbnail-textos:hover img { 
    transform: scale(1.05); 
}

.cat-label-floating { 
    position: absolute; 
    top: 15px !important; 
    left: 20px !important; 
    background-color: transparent !important; 
    padding: 0 !important; 
    border-radius: 0 !important; 
    box-shadow: none !important; 
    color: #ffffff !important; 
    font-family: var(--font-sans); 
    font-weight: 700 !important; 
    font-size: 9px !important; 
    text-transform: uppercase; 
    letter-spacing: 2px !important; 
    border-bottom: 2px solid var(--c-link) !important; 
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8) !important; 
    z-index: 10; 
    text-decoration: none !important; 
}

.cat-label-floating:hover { 
    background-color: transparent !important; 
    color: #ffffff !important; 
    border-bottom-color: #ffffff !important; 
}

.textos-post-title { 
    font-family: var(--font-serif); 
    font-size: 1.35rem; 
    line-height: 1.2; 
    margin: 0 0 6px 0; 
    font-weight: 400; 
}

.textos-post-title a { 
    color: #111; 
    text-decoration: none; 
    transition: color 0.2s; 
}

.textos-post-title a:hover { 
    color: #0EAE9C; 
}

@media (max-width: 1200px) { 
    .textos-grid-layout { 
        grid-template-columns: repeat(3, 1fr); 
    } 
}

@media (max-width: 900px) { 
    .textos-grid-layout { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}

@media (max-width: 600px) { 
    .textos-grid-layout { 
        grid-template-columns: 1fr; 
    } 
}

/* ================================================================== */
/* SPINNER                                                            */
/* ================================================================== */

#loading-spinner { 
    text-align: center; 
    padding: 30px; 
    display: none; 
    width: 100%; 
    clear: both; 
}

.spinner-circle { 
    display: inline-block; 
    width: 30px; 
    height: 30px; 
    border: 2px solid rgba(42, 145, 133, 0.2); 
    border-radius: 50%; 
    border-top-color: var(--c-link); 
    animation: spin 0.8s ease-in-out infinite; 
}

@keyframes spin { 
    to { 
        transform: rotate(360deg); 
    } 
}

/* ================================================================== */
/* 7. FOOTER                                                          */
/* ================================================================== */

.site-footer {
    background-color: var(--c-bg);
    border-top: 1px solid var(--color-category-hover);
    padding: 80px 20px 40px 20px;
    margin-top: 100px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: block;
    margin-bottom: 10px;
    color: #0EAE9C;
    transition: color 0.3s ease;
}

.footer-logo svg {
    height: 28px;
    width: auto;
    display: block;
}

.footer-logo:hover {
    color: #0b9787;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    font-weight: 400;
    margin: 0;
    max-width: 500px;
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--c-link);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.footer-credits {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 300;
    color: #aaa;
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 30px 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-text {
        font-size: 16px;
    }
    
    .footer-nav {
        gap: 15px;
    }
}

#back-to-top { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 45px; 
    height: 45px; 
    background: var(--c-link); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px); 
    transition: all 0.3s ease; 
    z-index: 99999; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

#back-to-top.visible { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* ================================================================== */
/* BARRA D'EINES (3 FILTRES)                                          */
/* ================================================================== */

.archive-toolbar { 
    margin-bottom: 50px; 
    padding-bottom: 0; 
    border-bottom: none; 
    width: 100%; 
}

.toolbar-form { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    justify-content: flex-start; 
    flex-wrap: wrap; 
}

.toolbar-group { 
    position: relative; 
    display: flex; 
    align-items: center; 
    background: #ffffff; 
    border: 1px solid #dddddd; 
    border-radius: 4px; 
    transition: border-color 0.2s; 
    flex: 1; 
    min-width: 200px; 
}

.toolbar-group:hover { 
    border-color: #bbb; 
}

.search-group { 
    flex: 2; 
    min-width: 220px; 
}

.search-group input { 
    border: none !important; 
    background: transparent !important; 
    padding: 12px 10px; 
    width: 100%; 
    font-family: var(--font-sans); 
    font-size: 14px; 
    font-weight: 300 !important; 
    outline: none; 
    color: #333; 
    box-shadow: none !important; 
}

.toolbar-group select { 
    appearance: none !important; 
    -webkit-appearance: none !important; 
    -moz-appearance: none !important; 
    background-color: #ffffff !important; 
    border: none !important; 
    border-radius: 4px; 
    padding: 12px 35px 12px 15px !important; 
    font-family: var(--font-sans); 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    font-weight: 300 !important; 
    color: #444; 
    cursor: pointer; 
    outline: none; 
    width: 100%; 
    box-shadow: none !important; 
}

.toolbar-group select:hover { 
    color: var(--c-link); 
    background-color: #fafafa !important; 
}

.toolbar-icon { 
    color: #999; 
    display: flex; 
    align-items: center; 
    padding-left: 10px; 
    pointer-events: none; 
}

.select-arrow { 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    pointer-events: none; 
    font-size: 10px; 
    color: #999; 
}

@media (max-width: 900px) { 
    .toolbar-form { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
    } 
    
    .toolbar-group, 
    .search-group { 
        width: 100%; 
        flex: auto; 
    } 
}

/* ================================================================== */
/* ESTILS PÀGINA D'AUTORS (AMPLADA COMPLETA, 3 COLUMNES, CURSIVA)    */
/* Version: v53.1                                                     */
/* ================================================================== */

.authors-directory-full { 
    max-width: 1100px; 
    margin: 0 auto 100px auto; 
    display: flex; 
    flex-direction: column; 
    gap: 60px; 
}

.author-group-full { 
    display: grid; 
    grid-template-columns: 80px 1fr; 
    gap: 40px; 
    align-items: start; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    padding-top: 40px; 
}

.author-group-full:first-child { 
    border-top: none; 
    padding-top: 0; 
}

.author-letter-big { 
    font-family: var(--font-sans); 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: var(--c-link); 
    opacity: 0.15; 
    margin: 0; 
    line-height: 0.8; 
    transition: opacity 0.3s ease; 
}

.author-group-full:hover .author-letter-big { 
    opacity: 0.4; 
}

.author-list-three { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px 30px; 
}

.author-list-three li { 
    margin: 0; 
}

.author-link { 
    font-family: var(--font-serif); 
    font-size: 1.4rem; 
    font-style: italic; 
    color: var(--c-text-dark); 
    text-decoration: none; 
    display: inline-block; 
    line-height: 1.4; 
    position: relative; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.author-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background-color: var(--c-link); 
    transition: width 0.3s ease; 
}

.author-link:hover { 
    color: var(--c-link); 
    transform: translateY(-3px); 
}

.author-link:hover::after { 
    width: 100%; 
}

@media (max-width: 1024px) { 
    .author-list-three { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}

@media (max-width: 768px) { 
    .author-group-full { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding-top: 30px; 
    } 
    
    .author-letter-big { 
        font-size: 2.5rem; 
        opacity: 1; 
        color: var(--c-link); 
        padding-bottom: 10px; 
        border-bottom: 1px solid #eee; 
    } 
    
    .author-list-three { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    } 
    
    .author-link { 
        font-size: 1.3rem; 
    } 
}

/* ================================================================== */
/* ESTILS AUTOR INDIVIDUAL (V85.0 - ALINEAT AL LOGO)                  */
/* Bio Dalt, Nom Cursiva, Línia Full Width, Alineació exacta al logo  */
/* ================================================================== */

.container-narrow {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

/* CAPÇALERA COMPACTA */
.archive-style-header {
    max-width: 850px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    padding: 60px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 1. BIO: Més petita i fina */
.header-bio-row {
    width: 100%;
    text-align: left;
}

.atlantic-profile-bio {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    font-weight: 200;
    margin: 0;
    max-width: 750px;
}

/* 2. FILA TÍTOL + BOLA */
.header-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

/* NOM: Estil Arxiu */
.archive-italic-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 3.8rem;
    font-weight: 400;
    color: #111;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.atlantic-subtitle {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 1rem;
    color: #888;
    vertical-align: middle;
    letter-spacing: 1px;
}

/* BOLA WEB (Inline) */
.web-ball-link-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--c-link);
    transition: all 0.3s ease;
    border: 1px solid var(--c-link);
    margin-top: 6px;
}

.web-ball-link-inline:hover {
    background-color: var(--c-link);
    color: #fff;
    transform: translateY(-2px);
}

.web-ball-link-inline svg {
    width: 18px;
    height: 18px;
}

/* SEPARADOR FULL WIDTH */
.atlantic-separator-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
    height: 1px;
    background: var(--color-category-hover);
    margin-bottom: 50px;
    margin-top: 0;
}

/* LLISTA D'ARTICLES (ESTIL NET) */
.atlantic-feed {
    max-width: 850px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.atlantic-item {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.atlantic-item:last-child { 
    border-bottom: none; 
}

.atlantic-content {
    flex: 1; 
    padding-right: 20px;
}

/* CATEGORIA CLICABLE */
a.atlantic-cat-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--c-link);
    margin-bottom: 8px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a.atlantic-cat-label:hover {
    border-bottom-color: var(--c-link);
    opacity: 0.8;
}

/* TÍTOL ENTRADA */
.atlantic-item-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.1;
    margin: 0;
    font-weight: 400;
}

.atlantic-item-title a { 
    color: #111; 
    text-decoration: none; 
}

.atlantic-item-title a:hover { 
    color: var(--c-link); 
}

/* IMATGE */
.atlantic-thumbnail {
    flex: 0 0 200px;
    width: 200px;
}

.atlantic-thumbnail img {
    width: 100%;
    height: 130px; 
    object-fit: cover;
    border-radius: 2px;
}

/* RESPONSIVE AUTOR */
@media (max-width: 768px) {
    .container-narrow {
        padding-left: 20px;
        padding-right: 20px;
    }

    .archive-style-header,
    .atlantic-feed {
        max-width: 100%;
    }

    .archive-style-header {
        padding-top: 60px;
        text-align: left;
    }
    
    .header-title-row {
        flex-wrap: wrap;
    }
    
    .archive-italic-title {
        font-size: 2.8rem;
    }
    
    .atlantic-item {
        flex-direction: column-reverse; 
        align-items: flex-start;
        gap: 15px;
    }
    
    .atlantic-content { 
        padding-right: 0; 
    }
    
    .atlantic-thumbnail { 
        flex: auto; 
        width: 100%; 
    }
    
    .atlantic-thumbnail img { 
        height: auto; 
        aspect-ratio: 16/9; 
    }
    
    .atlantic-separator-full { 
        width: 100%; 
        left: 0; 
        margin-left: 0; 
        margin-right: 0; 
    }
}

/* ================================================================== */
/* PÀGINA RESULTATS DE CERCA                                          */
/* ================================================================== */

.no-results-content { 
    max-width: 500px; 
    margin: 0 auto 100px auto; 
    text-align: center; 
    padding: 0 20px; 
}

.no-results-content .tags-list-inline { 
    gap: 10px 15px; 
    line-height: 1.4; 
}

.no-results-content .tags-list-inline a { 
    font-size: 14px; 
}

.search-form-inline { 
    position: relative; 
    width: 100%; 
    margin: 0 auto; 
}

.search-field-inline { 
    width: 100%; 
    background: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    padding: 12px 45px 12px 15px; 
    font-family: var(--font-sans); 
    font-size: 15px; 
    font-weight: 300; 
    color: #333; 
    outline: none; 
    text-align: left; 
    box-shadow: none; 
    transition: border-color 0.2s; 
}

.search-field-inline:focus { 
    border-color: #999; 
}

.search-field-inline::placeholder { 
    color: #999; 
}

.search-submit-inline { 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: #999; 
    padding: 0; 
    display: flex; 
    align-items: center; 
}

.search-submit-inline:hover { 
    color: var(--c-link); 
}

/* ================================================================== */
/* RESPONSIVE / VERSIÓ MÒBIL I TAULETA                                */
/* ================================================================== */

/* 1. CAPÇALERA MÒBIL (Simplificada i Apilada) */
@media (max-width: 1024px) {
    .site-header {
        padding: 15px 0;
        height: auto; 
    }

    .header-inner {
        flex-direction: column; 
        gap: 20px;
        height: auto;
    }

    .site-branding {
        margin: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .main-navigation {
        width: 100%;
        text-align: center;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px 20px;
        padding: 0;
    }

    .nav-menu li { 
        margin: 0; 
    }
    
    .nav-menu a {
        padding: 5px 0;
        font-size: 14px; 
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 2. CONTINGUT DE L'ENTRADA (SINGLE) */
@media (max-width: 1100px) {
    .container {
        padding: 0 20px; 
        width: 100%;
    }

    .single-content-grid {
        display: flex; 
        flex-direction: column;
        gap: 40px;
        padding-bottom: 40px;
    }

    /* COLUMNA 1: AUTOR */
    .author-column {
        position: static; 
        top: auto;
        width: 100%;
        flex-direction: row; 
        justify-content: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 0;
    }
    
    .author-avatar img {
        width: 50px;
        height: 50px;
        margin-bottom: 5px; 
    }
    
    .author-name { 
        font-size: 16px; 
    }

    /* COLUMNA 2: EL TEXT */
    .entry-content {
        width: 100%;
        margin: 0 auto;
    }
    
    .entry-content p {
        font-size: 18px; 
        line-height: 1.6;
        text-align: left; 
    }
    
    h1 { 
        font-size: 32px; 
    } 
    
    h2 { 
        font-size: 26px; 
    }

    /* COLUMNA 3: SIDEBAR */
    .sidebar-column {
        position: static;
        width: 100%;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 40px;
        text-align: center;
    }
    
    .sidebar-column .widget {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* ================================================================== 
   FIX ÍNDEX ALFABÈTIC (Centrat Perfecte i Una Fila)
   ================================================================== */

/* 1. CONTENIDOR MENÚ DE LLETRES */
.authors-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    
    /* ESPAIAT VERTICAL SIMÈTRIC */
    margin: 0 auto 50px auto; /* 50px és l'espai cap al contingut de sota */
    padding-top: 0;           /* Dalt ja tenim els 30px del títol anterior */
    padding-bottom: 30px;     /* IGUALEM A BAIX: 30px exactes per centrar */
    
    border-bottom: 1px solid #eee;
    max-width: 100%;
}

/* 2. ESTIL DE LES LLETRES */
.alpha-link, 
.alpha-disabled {
    font-family: var(--font-sans);
    font-weight: 700; 
    font-size: 1.15rem; 
    line-height: 1;
    display: inline-block;
    text-decoration: none;
    padding: 10px 2px;
    vertical-align: middle;
    position: relative; 
    top: -1px; /* Petit ajust òptic per la línia base de la font */
}

/* LLETRA ACTIVA */
.alpha-link {
    color: var(--c-link);
    opacity: 0.6;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* HOVER */
.alpha-link:hover {
    opacity: 1;
    transform: scale(1.4);
    text-shadow: 0 0 1px rgba(42, 145, 133, 0.3);
    z-index: 10;
}

/* LLETRA DESACTIVADA */
.alpha-disabled {
    color: #e0e0e0;
    cursor: default;
    font-weight: 400;
    font-size: 1rem;
}

/* 3. FLETXETA DE RETORN */
.letter-sticky-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.back-to-index {
    font-family: var(--font-sans);
    font-size: 24px;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    line-height: 1;
}

.back-to-index:hover {
    color: var(--c-link);
}

/* MÒBIL */
@media (max-width: 900px) {
    .authors-alphabet-nav {
        justify-content: center;
        gap: 5px 15px;
        padding-bottom: 20px; /* Al mòbil reduïm una mica l'aire */
    }
    .alpha-link, .alpha-disabled {
        font-size: 1.3rem;
        padding: 5px;
    }
}

/* ================================================================== 
   7. FOOTER (Ajust de distància i colors originals v97.0)
   ================================================================== */

.site-footer {
    background-color: var(--c-bg);
    border-top: 1px solid var(--color-category-hover);
    padding: 50px 20px 60px 20px; /* Reduït de 100px a 50px dalt */
    margin-top: 80px;
    text-align: center;
}

/* LOGO: Mantenim el verd però ajustem el marge */
.footer-logo-link {
    display: block;
    margin: 0 auto 50px auto; /* Distància intencionada però més recollida */
    max-width: 150px;
    line-height: 0;
}

.footer-logo-link svg {
    display: block;
    width: 100% !important;
    height: 22px !important;
    margin: 0 auto;
    fill: #0EAE9C !important;
}

.footer-logo-link svg path {
    fill: #0EAE9C !important;
}

/* NAV: Bloc central */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-nav a {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: #0EAE9C;
}

/* XARXES: Recuperem l'estat original sense filtres de color */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-bottom: 50px;
}

.footer-social img {
    /* No toquem el color, deixem l'original del fitxer */
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social a:hover img {
    opacity: 1;
}

/* COPYRIGHT */
.site-info {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #bbb;
    text-transform: lowercase;
    border-top: 1px solid #f2f2f2;
    padding-top: 15px; /* Reduït de 25px a 15px */
    display: inline-block;
    min-width: 200px;
}