/* =========================================
   MOBILE RESPONSIVE FIXES (Max-width 768px)
   ========================================= */

@media only screen and (max-width: 768px) {

    /* 1. LAYOUT & GRID SYSTEM */
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .column,
    .grid-column,
    div[class*="column"],
    div[data-xl-width] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }

    /* 2. MEDIA */
    img,
    video,
    svg {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .masonry-item,
    .thumb,
    .thumb-inner {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 40px !important;
        transform: none !important;
    }

    /* 3. TYPOGRAPHY */
    h1,
    .post-title,
    .thumb-hover-meta .title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
    }

    h2,
    h3,
    .title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    p,
    .description,
    span,
    .category {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* IA CREATION TITLE FIX */
    .page-ia-creation .content-block p {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
    }

    /* 4. NAVIGATION */
    nav.standard,
    .desktop-nav {
        display: none !important;
    }

    .hamburger,
    .menu-icon {
        display: block !important;
        z-index: 1000 !important;
        position: relative;
    }

    header.semplice-navbar,
    .navbar-inner {
        padding: 15px 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo svg,
    .logo img {
        width: 140px !important;
        height: auto !important;
    }

    /* 5. SPACING */
    section,
    .content-block {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .spacer,
    .empty-space {
        height: 30px !important;
    }

    .masonry,
    .content-wrapper {
        margin: 0 !important;
    }

    .column:empty {
        display: none !important;
    }

    /* --- ABOUT PAGE FIXES (Mobile Only) --- */

    /* Reduced spacing DRASTICALLY as requested (80% less) */
    /* --- ABOUT PAGE FIXES (Mobile Only) --- */

    /* Reduced spacing DRASTICALLY as requested (ZERO SPACE) */
    .about-container {
        padding-top: 0 !important;
        margin-top: -4rem !important;
        /* Aggressive pull up */
        position: relative;
    }

    /* FIX TYPOGRAPHY: Restore size for Clients/Contact labels */
    .capabilities-list,
    .capabilities-list span {
        font-size: 1.4rem !important;
        /* Larger than the global 16px fix */
        line-height: 1.2 !important;
    }

    /* Ensure vertical stacking */
    .bio-wrapper {
        position: relative;
        display: block !important;
    }

    /* Image Background */
    .bio-image-wrapper {
        position: absolute !important;
        right: -15px !important;
        top: 60px !important;
        /* Moved up to match new padding */
        width: 80% !important;
        max-width: 300px;
        z-index: 0 !important;
        opacity: 0.6;
    }

    .bio-text {
        position: relative !important;
        z-index: 10 !important;
        margin-top: 0 !important;
    }

    /* TYPOGRAPHY - Strict Reference */
    .giant-title {
        font-family: 'terminal-grotesque', sans-serif !important;
        font-size: 4.222rem !important;
        line-height: 2.833rem !important;
        color: #000 !important;
        margin-left: -2px !important;
        margin-bottom: 30px !important;
        word-break: break-word !important;
        /* Prevent horizontal overflow */
        padding-right: 10px;
        /* Safety padding */
    }

    .bio-text p {
        font-size: 1.222rem !important;
        line-height: 0.944rem !important;
        color: #000 !important;
    }

    /* Angel Image */
    .page-about .video-full {
        margin-top: 5rem !important;
        margin-bottom: -5rem !important;
    }

    .page-about .video-full img {
        width: 90% !important;
        margin-left: -20px !important;
    }

    /* CORNER NAV to TOP BAR */
    nav.corner-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #ddd !important;
    }

    nav.corner-nav a {
        position: relative !important;
        margin: 5px 10px !important;
        color: #000000 !important;
        font-size: 14px !important;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    /* HEADER FIXED */
    header.simple-navbar,
    header.semplice-navbar,
    .nav_th8wb1r4m {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        z-index: 99999 !important;
        padding: 10px 0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .hamburger,
    .menu-icon {
        display: block !important;
        cursor: pointer;
    }

    .menu-icon span {
        background-color: #000000 !important;
        height: 2px !important;
    }

    body {
        padding-top: 70px !important;
    }

    /* FOOTER VISIBILITY */
    .semplice-next-prev {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        margin-top: 30px !important;
        padding-bottom: 50px !important;
    }

    .semplice-next-prev .container {
        display: block !important;
        visibility: visible !important;
    }

    .np-label,
    .np-label-above {
        color: #000 !important;
        opacity: 1 !important;
    }

    #content-holder {
        overflow-x: hidden !important;
        width: 100% !important;
    }

}

/* Close ONE SINGLE Media Query */

/* UNIVERSAL MOBILE HEADER HIDE */
#mobile-header,
#mobile-menu-overlay {
    display: none;
}