/* ============================================================
   Dablion Services Grid — single.css
   Single page via shortcode [service_single] para Elementor
   ============================================================ */

:root {
    --dsg-accent: #c8a96e;
}

/* ── Wrapper principal ───────────────────────────────────── */
.dsg-single {
    background: #000000;
    color: #ffffff;
    font-family: 'NeuePower', 'Neue Power', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Remove padding do Elementor se necessário */
    margin-left: calc(-1 * var(--e-con-boxed-padding-inline, 0px));
    margin-right: calc(-1 * var(--e-con-boxed-padding-inline, 0px));
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.dsg-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #111 var(--dsg-hero-img) center center / cover no-repeat;
    overflow: hidden;
}

.dsg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1)  0%,
        rgba(0,0,0,0.0)  25%,
        rgba(0,0,0,0.55) 65%,
        rgba(0,0,0,0.95) 100%
    );
}

/* Nav (topo) */
.dsg-hero__nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 32px 64px;
    z-index: 10;
}

.dsg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.dsg-back-btn:hover { color: #ffffff; }

.dsg-back-btn__arrow {
    font-size: 1.2rem;
    transition: transform 0.2s;
    display: inline-block;
}

.dsg-back-btn:hover .dsg-back-btn__arrow {
    transform: translateX(-4px);
}

/* Conteúdo hero (base) */
.dsg-hero__content {
    position: relative;
    z-index: 5;
    padding: 0 64px 72px;
    max-width: 1280px;
    width: 100%;
}

/* Tags hero */
.dsg-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.dsg-hero__tag {
    background: var(--dsg-accent);
    color: #000;
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.dsg-hero__tag:hover { opacity: 0.8; }

/* Título hero */
.dsg-hero__title {
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 36px;
    max-width: 900px;
}

/* Metadados hero */
.dsg-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 28px;
}

.dsg-meta-item {
    display: flex;
    flex-direction: column;
    padding-right: 48px;
    margin-right: 48px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.dsg-meta-item:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.dsg-meta-item--scope { flex: 1; min-width: 200px; }

.dsg-meta-item__label {
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 900;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dsg-accent);
    margin-bottom: 5px;
}

.dsg-meta-item__value {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   SEÇÕES DE CONTEÚDO
   ══════════════════════════════════════════════════════════ */
.dsg-content-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 48px;
    display: flex;
    flex-direction: column;
}

.dsg-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 56px;
    padding: 56px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: start;
}

.dsg-section:first-child { padding-top: 0; }
.dsg-section:last-child  { border-bottom: none; }

.dsg-section__label {
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 900;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dsg-accent);
    padding-top: 4px;
    position: sticky;
    top: 24px;
    line-height: 1.5;
}

.dsg-section__body {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.78;
}

.dsg-section__body p { margin: 0 0 18px; }
.dsg-section__body p:last-child { margin-bottom: 0; }

/* Conteúdo editor */
.dsg-editor-content h1, .dsg-editor-content h2,
.dsg-editor-content h3, .dsg-editor-content h4 {
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 40px 0 14px;
}

.dsg-editor-content h2 { font-size: 1.8rem; }
.dsg-editor-content h3 { font-size: 1.3rem; }

.dsg-editor-content a {
    color: var(--dsg-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dsg-editor-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px auto;
}

.dsg-editor-content blockquote {
    border-left: 3px solid var(--dsg-accent);
    margin: 0;
    padding: 14px 28px;
    background: rgba(255,255,255,0.03);
    font-style: italic;
    color: #e0e0e0;
}

.dsg-editor-content ul, .dsg-editor-content ol {
    padding-left: 24px;
    color: rgba(255,255,255,0.8);
}

.dsg-editor-content li { margin-bottom: 8px; }

/* ══════════════════════════════════════════════════════════
   GALERIA
   ══════════════════════════════════════════════════════════ */
.dsg-gallery-section {
    background: #080808;
    width: 100%;
}

.dsg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.dsg-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111;
    aspect-ratio: 4/3;
    text-decoration: none;
}

.dsg-gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.dsg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.35s ease;
}

.dsg-gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.dsg-gallery-item__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 100;
    color: #fff;
    opacity: 0;
    background: rgba(0,0,0,0.2);
    transition: opacity 0.25s;
    pointer-events: none;
}

.dsg-gallery-item:hover .dsg-gallery-item__zoom {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   RODAPÉ DO PROJETO
   ══════════════════════════════════════════════════════════ */
.dsg-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 64px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 20px;
}

.dsg-back-btn--footer {
    color: rgba(255,255,255,0.55);
}

.dsg-ext-btn {
    display: inline-block;
    background: var(--dsg-accent);
    color: #000;
    font-family: 'NeuePower', 'Neue Power', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    transition: opacity 0.2s;
}

.dsg-ext-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .dsg-hero__nav,
    .dsg-hero__content { padding-left: 32px; padding-right: 32px; }

    .dsg-hero__meta {
        flex-direction: column;
        gap: 20px;
    }

    .dsg-meta-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 0 0 20px;
        margin: 0;
    }

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

    .dsg-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dsg-section__label { position: static; }

    .dsg-content-wrap { padding: 60px 28px; }

    .dsg-gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .dsg-gallery-item--wide { grid-column: span 2; }

    .dsg-project-footer {
        padding: 36px 28px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .dsg-hero { min-height: 65vh; }

    .dsg-gallery-grid { grid-template-columns: 1fr; }
    .dsg-gallery-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
}
