/*
Theme Name: Altercom21
Author: Altercom21
Description: Tema personalitzat per a Altercom21
Version: 1.0
License: GPL v2 or later
Text Domain: altercom21
*/

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

:root {
    --navy: #223827;
    --teal: #2b4a36;
    --teal-light: #3a6349;
    --teal-pale: #e2f0e6;
    --bg: #f5f6f8;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #e9eaec;
    --text: #1a2332;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}


#altercom21-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#altercom21-root > nav,
#altercom21-root > footer { flex-shrink: 0; }
#altercom21-root > *:not(nav):not(footer) { flex: 1; }

/* ===== NAVEGACIÓ ===== */
#altercom21-root nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6%; min-height: 68px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: box-shadow .3s; flex-wrap: wrap;
}
body.admin-bar #altercom21-root nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar #altercom21-root nav { top: 46px; } }

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 110px;   /* ajusta este valor a tu gusto */
    width: auto;
    display: block;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: wrap; }
.nav-links li { position: relative; }
.nav-links a { display: block; padding: 8px 16px; font-size: .92rem; font-weight: 500; color: var(--navy); text-decoration: none; border-radius: 8px; transition: background .2s, color .2s; white-space: nowrap; }
.nav-links a:hover { background: var(--teal-pale); color: var(--teal); }

.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: calc(100% - 4px); left: 0;
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: 14px; padding: 8px; min-width: 230px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1); list-style: none; z-index: 101;
}
.dropdown::after { content: ''; position: absolute; top: calc(100% - 8px); left: 0; width: 100%; height: 16px; background: transparent; z-index: 100; }
.dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; }
.dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: .9rem; color: var(--navy); white-space: nowrap; }
.dropdown-menu li a:hover { background: var(--teal-pale); color: var(--teal); }

.dmicon { width: 32px; height: 32px; background: var(--teal-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }

.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 9px 22px !important; border-radius: 30px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--teal) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Submenú nivell 2 */
.dropdown-sub { position: relative; }
.dropdown-toggle-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dropdown-menu-sub {
    position: absolute; top: 0; left: 100%;
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: 14px; padding: 8px; min-width: 200px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1); list-style: none; z-index: 102;
}
.dropdown-sub:hover .dropdown-menu-sub { opacity: 1; pointer-events: all; }

/* ===== PEU DE PÀGINA ===== */
#altercom21-root footer { background: var(--navy); padding: 36px 6% 24px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.footer-logo { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.3rem; color: white; text-decoration: none; }
.footer-logo span { color: var(--teal-light); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== BLOG - LLISTAT ===== */
.blog-header { background: var(--white); padding: 140px 6% 60px; text-align: center; }
.blog-header h1 { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.5px; }
.blog-header p { font-size: 1.1rem; color: var(--gray); max-width: 600px; margin: 0 auto; }
.blog-grid { padding: 20px 6% 80px; background: var(--bg); }
.blog-container { max-width: 900px; margin: 0 auto; }
.blog-post-item { background: var(--white); border-radius: 20px; padding: 30px; margin-bottom: 30px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.blog-post-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.blog-post-date { font-size: 0.85rem; color: var(--teal); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; display: block; }
.blog-post-title { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 15px; }
.blog-post-title a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
.blog-post-title a:hover { color: var(--teal); }
.blog-post-excerpt { font-size: 1rem; color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
.blog-post-excerpt p { margin: 0; }
.read-more { color: var(--teal); font-weight: 500; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.read-more:hover { color: var(--navy); }
.no-posts { text-align: center; color: var(--gray); padding: 60px 0; }

/* Paginació */
.blog-pagination { margin-top: 40px; text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers { padding: 8px 16px; border-radius: 8px; background: var(--white); color: var(--navy); text-decoration: none; font-size: .9rem; border: 1px solid var(--gray-light); transition: all .2s; }
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== ARTICLE INDIVIDUAL ===== */
.post-container { max-width: 900px; margin: 0 auto; padding: 130px 6% 80px; }
.post-header { margin-bottom: 30px; }
.post-date { font-size: 0.85rem; color: var(--teal); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; display: block; }
.post-title { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.post-content { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.post-content p { margin-bottom: 20px; }
.post-content h2 { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--navy); margin: 30px 0 15px; }
.post-content ul, .post-content ol { margin: 15px 0 20px 30px; }
.post-content li { margin-bottom: 8px; }
.back-to-blog { display: inline-block; margin-top: 40px; color: var(--teal); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.back-to-blog:hover { color: var(--navy); }

/* ===== PÀGINES DE SERVEIS ===== */
.service-page-container { max-width: 1000px; margin: 0 auto; padding: 140px 6% 80px; background: var(--white); }
.service-header h1 { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 30px; border-left: 5px solid var(--teal); padding-left: 20px; }
.service-image { margin: 20px 0 35px 0; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.service-image img { width: 100%; height: auto; display: block; }
.service-content { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.service-content p { margin-bottom: 20px; }
.service-content h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 30px 0 15px; }
.service-content ul, .service-content ol { margin: 15px 0 20px 30px; }
.service-content li { margin-bottom: 8px; }

/* ===== PÀGINA NOSALTRES ===== */
.about-container { max-width: 1000px; margin: 0 auto; padding: 140px 6% 80px; background: var(--white); }
.about-header h1 { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 30px; border-left: 5px solid var(--teal); padding-left: 20px; }
.about-content { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.about-content p { margin-bottom: 20px; }
.about-content h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 30px 0 15px; }
.about-image { margin: 30px 0; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.about-image img { width: 100%; height: auto; display: block; }

/* ===== PÀGINA LEGAL / COOKIES ===== */
.legal-container { max-width: 1100px; margin: 0 auto; padding: 110px 6% 80px; background: var(--white); }
.legal-container h1 { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 30px; border-left: 5px solid var(--teal); padding-left: 20px; }
.legal-content { font-size: 1rem; line-height: 1.65; color: var(--text); }
.legal-content h2 { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--navy); margin: 28px 0 12px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 12px 0 20px 30px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--teal); text-decoration: underline; }

/* ===== KIT DIGITAL ===== */
.kit-page-container { max-width: 1200px; margin: 0 auto; padding: 140px 6% 80px; }
.kit-header { text-align: center; margin-bottom: 40px; }
.kit-header h1 { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.kit-header p { font-size: 1.1rem; color: var(--gray); max-width: 700px; margin: 0 auto; }
.kit-content { background: var(--white); border-radius: 20px; padding: 40px; }
.kit-content h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 30px 0 15px; }
.kit-content p { font-size: 1.05rem; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.kit-content ul, .kit-content ol { margin: 15px 0 20px 30px; }
.kit-content li { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.kit-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
.kit-content th { background: var(--navy); color: white; padding: 12px 15px; text-align: left; }
.kit-content td { padding: 10px 15px; border-bottom: 1px solid var(--gray-light); color: var(--text); }
.kit-content tr:nth-child(even) td { background: var(--bg); }

/* ===== CONTACTE ===== */
.contact-header { background: var(--white); padding: 140px 6% 60px; text-align: center; }
.contact-header h1 { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-header p { font-size: 1.1rem; color: var(--gray); max-width: 600px; margin: 0 auto; }
.contact-section { padding: 40px 6% 80px; background: var(--bg); }
.contact-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info { background: var(--white); border-radius: 20px; padding: 35px; }
.contact-info h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: 25px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-icon { width: 40px; height: 40px; background: var(--teal-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-detail h3 { font-size: 0.85rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 0.95rem; color: var(--text); text-decoration: none; line-height: 1.5; }
.contact-detail a:hover { color: var(--teal); }
.contact-form { background: var(--white); border-radius: 20px; padding: 35px; }
.contact-form h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: 25px; }
.form-group { margin-bottom: 18px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 120px; resize: vertical; }
.captcha-container { margin-bottom: 20px; }
.captcha-question { font-size: 0.9rem; color: var(--gray); margin-bottom: 8px; font-weight: 500; }
.captcha-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light); border-radius: 10px; font-size: 0.95rem; outline: none; }
.captcha-input:focus { border-color: var(--teal); }
.btn-submit { width: 100%; padding: 14px; background: var(--navy); color: white; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.btn-submit:hover { background: var(--teal); transform: translateY(-1px); }
.form-response { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; display: none; }
.form-response.success { display: block; background: #d1fae5; color: #065f46; }
.form-response.error { display: block; background: #fee2e2; color: #991b1b; }
.map-container { max-width: 1200px; margin: 30px auto 0; border-radius: 20px; overflow: hidden; height: 350px; }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hamburger { display: flex; }

.nav-links {
    display: none;
}

.nav-links.open {
        display: flex;
    }

.nav-logo img {
    height: 70px;
}

#altercom21-root nav {
    min-height: 70px;
}

.nav-links {
    top: 70px;
}

    .nav-links {
        position: fixed; top: 68px; left: 0; width: 100%;
        background: var(--white); flex-direction: column; align-items: stretch;
        padding: 20px; gap: 8px; border-top: 1px solid var(--gray-light);
        transform: translateY(-120%); transition: transform 0.3s ease;
        box-shadow: 0 12px 24px rgba(0,0,0,0.1); z-index: 99;
    }
    .nav-links.open { transform: translateY(0); }
    .dropdown::after { display: none; }
    .dropdown-menu { position: static; opacity: 1; pointer-events: all; display: none; box-shadow: none; padding-left: 20px; }
    .dropdown:hover .dropdown-menu { display: block; }
    .dropdown-menu-sub { position: static; opacity: 1; pointer-events: all; display: none; box-shadow: none; padding-left: 30px; margin-top: 5px; }
    .dropdown-sub:hover .dropdown-menu-sub { display: block; }
    .blog-post-title { font-size: 1.3rem; }
    .post-title { font-size: 1.7rem; }
    .service-page-container, .about-container { padding: 120px 5% 60px; }
    .service-header h1, .about-header h1 { font-size: 1.7rem; }
    .kit-page-container { padding: 120px 5% 60px; }
    .kit-content { padding: 25px; }
    .contact-header { padding: 120px 5% 40px; }
    .legal-container { padding: 100px 5% 60px; }
}

#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 110px 6% 70px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
#hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -120px;
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(43,74,54,0.07) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-text { animation: fadeUp .75s ease both; }
.hero-tag {
    display: inline-block;
    background: var(--teal-pale);
    color: var(--teal);
    font-size: .78rem; font-weight: 700;
    padding: 5px 14px; border-radius: 30px;
    margin-bottom: 22px; letter-spacing: .6px; text-transform: uppercase;
}
.hero-text h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 3.3rem);
    font-weight: 700; color: var(--navy);
    line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-text h1 em { font-style: normal; color: var(--teal); }
.hero-text p { font-size: 1.05rem; color: var(--gray); line-height: 1.72; max-width: 460px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
    background: var(--navy); color: var(--white);
    padding: 14px 28px; border-radius: 50px;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--navy);
    padding: 13px 28px; border-radius: 50px;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    border: 2px solid var(--gray-light);
    transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.hero-card {
    animation: fadeUp .85s .15s ease both;
    background: var(--bg); border-radius: 24px;
    padding: 38px 36px; display: flex; flex-direction: column; gap: 18px;
}
.hero-card h2 { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); text-align: center; }

/* Formulari hero */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input {
    width: 100%; padding: 14px 18px;
    border: 1.5px solid var(--gray-light); border-radius: 12px;
    font-family: 'DM Sans', sans-serif; font-size: .95rem;
    background: var(--white); outline: none; transition: border-color .2s;
}
.contact-form input:focus { border-color: var(--teal); }
.privacy-check {
    display: flex; flex-direction: row; align-items: center;
    justify-content: flex-start; gap: 8px;
    font-size: .84rem; color: var(--gray); cursor: pointer; width: 100%;
}
.privacy-check input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.privacy-check span { flex: 1; text-align: left; }
.privacy-check a { color: var(--teal); text-decoration: underline; white-space: nowrap; }

/* ===== SECCIÓ SERVEIS (grid) ===== */
#serveis { padding: 80px 6%; background: var(--bg); }
.strip-header { text-align: center; margin-bottom: 48px; }
.section-label { display: block; font-size: .78rem; font-weight: 700; color: var(--teal); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Sora', sans-serif; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; color: var(--navy); letter-spacing: -0.5px; }
.section-sub { font-size: 1rem; color: var(--gray); line-height: 1.7; max-width: 520px; margin: 12px auto 0; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
    background: var(--white); border-radius: 20px; padding: 30px 26px;
    text-decoration: none; color: inherit; display: block;
    border: 1.5px solid transparent;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.08); border-color: rgba(43,74,54,0.2); }
.service-icon { width: 50px; height: 50px; background: var(--navy); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.4rem; }
.service-card h3 { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: .88rem; color: var(--gray); line-height: 1.65; }

/* ===== SECCIÓ DIFFERENTS ===== */
#differents { padding: 80px 6%; background: var(--white); }
.diff-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.diff-card { background: var(--bg); border-radius: 20px; padding: 32px 24px; text-align: center; transition: transform .2s, box-shadow .2s; }
.diff-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); }
.diff-icon { width: 56px; height: 56px; background: var(--navy); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 18px; }
.diff-card h3 { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.diff-card p { font-size: .88rem; color: var(--gray); line-height: 1.65; }

/* ===== ANIMACIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 900px) {
    #hero { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .services-grid, .diff-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .privacy-check { flex-wrap: wrap; gap: 6px; }
    .privacy-check a { white-space: normal; }
    .privacy-check span { flex: auto; }
}
/* ===== IMATGES AL CONTINGUT (Nosaltres i altres pàgines) ===== */
.about-content img,
.about-content figure,
.about-content .wp-block-image {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    display: block;
}
.about-content figure figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== HERO IMAGE (substitueix el hero-text) ===== */
.hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: stretch;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 900px) {
    .hero-image {
        min-height: 280px;
        width: 100%;
    }
}

/* ===== BLOG GRID 2 COLUMNES ===== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.blog-post-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    margin-bottom: 0;
}
.blog-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
}
.blog-post-thumb {
    display: block;
    overflow: hidden;
    max-height: 200px;
}
.blog-post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.blog-post-item:hover .blog-post-thumb img {
    transform: scale(1.04);
}
.blog-post-body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-post-excerpt {
    flex: 1;
}
.read-more {
    margin-top: 16px;
    display: inline-block;
}

@media (max-width: 700px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PRIVACY CHECK - més separació ===== */
.privacy-check {
    margin-top: 8px;
}

/* ===== FIX NAV BLOG - assegura que el nav sempre apareix ===== */
#altercom21-root nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
}
body.admin-bar #altercom21-root nav {
    top: 32px !important;
}
@media (max-width: 782px) {
    body.admin-bar #altercom21-root nav {
        top: 46px !important;
    }
}

/* ===== PAGINACIÓ BLOG (paginate_links llista) ===== */
.blog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.blog-pagination ul { display: flex; list-style: none; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; }
.blog-pagination ul li a,
.blog-pagination ul li span {
    display: inline-block; padding: 8px 16px;
    border-radius: 8px; background: var(--white); color: var(--navy);
    text-decoration: none; font-size: .9rem; font-weight: 500;
    border: 1px solid var(--gray-light); transition: all .2s;
}
.blog-pagination ul li span.current,
.blog-pagination ul li a:hover {
    background: var(--navy); color: var(--white); border-color: var(--navy);
}
