/* ==========================================================================
   PORTAL AARCA
   SINGLE-PROJETO.CSS
   Versão 2.0 — Mobile First
   ========================================================================== */


/* ==========================================================================
   1. VARIÁVEIS LOCAIS
   ========================================================================== */

.single-project-page {
    --project-green-dark: #17351d;
    --project-green: #2e7d32;
    --project-green-hover: #256628;
    --project-green-light: #e8f5e9;
    --project-bg: #f7faf7;
    --project-text: #4f5f54;
    --project-text-soft: #6f7d73;
    --project-border: rgba(23, 53, 29, 0.10);
    --project-shadow:
        0 16px 40px rgba(23, 53, 29, 0.08);
    --project-shadow-hover:
        0 24px 56px rgba(23, 53, 29, 0.13);

    width: 100%;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbf8 100%
        );
}

.single-project-page .container {
    width: min(92%, 1200px);
    margin: 0 auto;
}


/* ==========================================================================
   2. BREADCRUMB
   ========================================================================== */

.project-breadcrumb {
    padding: 14px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(23, 53, 29, 0.06);
}

.project-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.project-breadcrumb .container::-webkit-scrollbar {
    display: none;
}

.project-breadcrumb a,
.project-breadcrumb span {
    flex: 0 0 auto;
    color: var(--project-text-soft);
    font-size: 13px;
    line-height: 1.4;
}

.project-breadcrumb a {
    color: var(--project-green);
    font-weight: 700;
    text-decoration: none;
}

.project-breadcrumb a:hover {
    color: var(--project-green-hover);
    text-decoration: underline;
}

.project-breadcrumb [aria-current="page"] {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   3. HERO
   ========================================================================== */

.single-project-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 38px;
    text-align: center;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(76, 175, 80, 0.13),
            transparent 38%
        ),
        radial-gradient(
            circle at 88% 0%,
            rgba(255, 193, 7, 0.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #f8fbf8,
            #eef7ef
        );
}

.single-project-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.045);
    pointer-events: none;
}

.single-project-hero::after {
    content: "";
    position: absolute;
    bottom: -75px;
    left: -75px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.04);
    pointer-events: none;
}

.single-project-hero .container {
    position: relative;
    z-index: 2;
}

.single-project-hero-content {
    max-width: 930px;
    margin: 0 auto;
}

.single-project-hero .section-badge,
.project-featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.single-project-hero .section-badge {
    border: 1px solid rgba(46, 125, 50, 0.12);
    background: var(--project-green-light);
    color: var(--project-green);
}

.project-featured-badge {
    border: 1px solid rgba(255, 193, 7, 0.25);
    background: #fff7da;
    color: #8b6500;
    box-shadow:
        0 8px 20px rgba(140, 100, 0, 0.08);
}

.single-project-hero h1 {
    max-width: 900px;
    margin: 0 auto 16px;
    color: var(--project-green-dark);
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.single-project-excerpt,
.single-project-lead,
.single-project-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--project-text);
    font-size: 16px;
    line-height: 1.72;
}

.project-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    margin-top: 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.project-status-em-andamento {
    background: #e3f5e6;
    color: #247431;
}

.project-status-concluido {
    background: #e8f1ff;
    color: #275d9f;
}

.project-status-planejamento {
    background: #fff3d3;
    color: #8d6800;
}

.project-status-suspenso {
    background: #ffe5e5;
    color: #b12c2c;
}


/* ==========================================================================
   4. CONTEÚDO PRINCIPAL
   ========================================================================== */

.single-project-content {
    padding: 34px 0 68px;
}


/* ==========================================================================
   5. IMAGEM PRINCIPAL
   ========================================================================== */

.single-project-image {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 34px;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 22px;
    background: #eef4ef;
    box-shadow:
        0 20px 48px rgba(23, 53, 29, 0.12);
}

.single-project-image img,
.single-project-cover {
    display: block;
    width: 100%;
    height: clamp(260px, 70vw, 520px);
    object-fit: cover;
    object-position: center;
}


/* ==========================================================================
   6. BLOCO DE INFORMAÇÕES
   ========================================================================== */

.project-information {
    max-width: 1100px;
    margin: 0 auto 44px;
}

.project-information-heading {
    margin-bottom: 22px;
    text-align: center;
}

.project-information-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-information-heading h2 {
    margin: 0;
    color: var(--project-green-dark);
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.project-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    min-height: 92px;
    padding: 17px;
    border: 1px solid var(--project-border);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f6faf6
        );
    box-shadow:
        0 10px 26px rgba(23, 53, 29, 0.055);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 125, 50, 0.18);
    box-shadow:
        0 16px 34px rgba(23, 53, 29, 0.08);
}

.project-info-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--project-green-light);
    font-size: 21px;
    line-height: 1;
}

.project-info-content {
    min-width: 0;
}

.project-info-label {
    display: block;
    margin-bottom: 5px;
    color: var(--project-text-soft);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.project-info-content strong {
    display: block;
    color: var(--project-green-dark);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.project-info-card-partners {
    grid-column: 1 / -1;
}

.project-partners-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-partners-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: var(--project-green);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}


/* ==========================================================================
   7. TEXTO DO PROJETO
   ========================================================================== */

.single-project-text {
    max-width: 850px;
    margin: 0 auto;
    color: var(--project-text);
    font-size: 16px;
    line-height: 1.82;
}

.single-project-text > *:first-child {
    margin-top: 0;
}

.single-project-text > *:last-child {
    margin-bottom: 0;
}

.single-project-text p {
    margin: 0 0 20px;
}

.single-project-text h2,
.single-project-text h3,
.single-project-text h4 {
    color: var(--project-green-dark);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.single-project-text h2 {
    margin: 38px 0 18px;
    font-size: clamp(26px, 7vw, 34px);
}

.single-project-text h3 {
    margin: 30px 0 15px;
    font-size: clamp(22px, 6vw, 28px);
}

.single-project-text ul,
.single-project-text ol {
    padding-left: 22px;
    margin: 0 0 22px;
}

.single-project-text li {
    margin-bottom: 8px;
}

.single-project-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 16px;
}

.single-project-text blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--project-green);
    border-radius: 0 14px 14px 0;
    background: #f5faf5;
    color: #405647;
}


/* ==========================================================================
   8. COMPARTILHAMENTO
   ========================================================================== */

.project-share {
    max-width: 850px;
    margin: 42px auto 0;
    padding: 22px;
    border: 1px solid var(--project-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 12px 30px rgba(23, 53, 29, 0.06);
}

.project-share h2 {
    margin: 0 0 16px;
    color: var(--project-green-dark);
    font-size: 21px;
    line-height: 1.25;
}

.project-share-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.project-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 15px;
    border: 1px solid rgba(46, 125, 50, 0.16);
    border-radius: 13px;
    background: #f7fbf7;
    color: var(--project-green);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.project-share-button:hover,
.project-share-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--project-green);
    background: var(--project-green);
    color: #ffffff;
}


/* ==========================================================================
   9. AÇÕES
   ========================================================================== */

.single-project-actions {
    max-width: 850px;
    margin: 22px auto 0;
}

.single-project-actions .btn {
    width: 100%;
    min-height: 50px;
    text-align: center;
}


/* ==========================================================================
   10. PROJETOS RELACIONADOS
   ========================================================================== */

.related-projects {
    padding: 58px 0 72px;
    background:
        linear-gradient(
            180deg,
            #f6faf6,
            #eef6ef
        );
    border-top: 1px solid rgba(23, 53, 29, 0.06);
}

.related-projects .section-title {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.related-projects .section-title > span {
    display: block;
    margin-bottom: 7px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.related-projects .section-title h2 {
    margin: 0 0 12px;
    color: var(--project-green-dark);
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.related-projects .section-title p {
    margin: 0;
    color: var(--project-text);
    font-size: 15px;
    line-height: 1.7;
}

.related-projects-action {
    margin-top: 30px;
    text-align: center;
}

.related-projects-action .btn {
    min-height: 50px;
}


/* ==========================================================================
   11. CELULARES MUITO PEQUENOS
   ========================================================================== */

@media (max-width: 359px) {

    .single-project-hero h1 {
        font-size: 31px;
    }

    .project-info-card {
        padding: 15px;
    }

    .project-info-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .project-share {
        padding: 18px;
    }

}


/* ==========================================================================
   12. CELULAR GRANDE
   ========================================================================== */

@media (min-width: 521px) {

    .single-project-hero {
        padding: 54px 0 44px;
    }

    .project-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .project-share-buttons {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================================================
   13. TABLET
   ========================================================================== */

@media (min-width: 769px) {

    .project-breadcrumb {
        padding: 16px 0;
    }

    .project-breadcrumb a,
    .project-breadcrumb span {
        font-size: 14px;
    }

    .project-breadcrumb [aria-current="page"] {
        max-width: 420px;
    }

    .single-project-hero {
        padding: 70px 0 58px;
    }

    .single-project-hero h1 {
        font-size: clamp(44px, 6vw, 60px);
    }

    .single-project-excerpt,
    .single-project-lead,
    .single-project-hero p {
        font-size: 18px;
    }

    .single-project-content {
        padding: 52px 0 86px;
    }

    .single-project-image {
        margin-bottom: 46px;
        border-radius: 26px;
    }

    .single-project-image img,
    .single-project-cover {
        height: 580px;
    }

    .project-information {
        margin-bottom: 56px;
    }

    .project-info-grid {
        gap: 16px;
    }

    .project-info-card {
        min-height: 104px;
        padding: 20px;
    }

    .single-project-text {
        font-size: 17px;
        line-height: 1.86;
    }

    .project-share {
        padding: 26px;
    }

    .single-project-actions .btn {
        width: auto;
        min-width: 240px;
    }

    .related-projects {
        padding: 76px 0 92px;
    }

}


/* ==========================================================================
   14. DESKTOP
   ========================================================================== */

@media (min-width: 1024px) {

    .single-project-hero {
        padding: 78px 0 64px;
    }

    .project-info-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .project-info-card-partners {
        grid-column: span 3;
    }

}


/* ==========================================================================
   15. DESKTOP GRANDE
   ========================================================================== */

@media (min-width: 1280px) {

    .single-project-image img,
    .single-project-cover {
        height: 620px;
    }

}


/* ==========================================================================
   16. ACESSIBILIDADE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .project-info-card,
    .project-share-button {
        transition: none;
    }

    .project-info-card:hover,
    .project-share-button:hover,
    .project-share-button:focus-visible {
        transform: none;
    }

}


/* ==========================================================================
   17. IMPRESSÃO
   ========================================================================== */

@media print {

    .single-project-page {
        background: #ffffff;
    }

    .project-breadcrumb,
    .project-share,
    .single-project-actions,
    .related-projects {
        display: none;
    }

    .single-project-image,
    .project-info-card {
        box-shadow: none;
    }

    .project-info-card,
    .single-project-image {
        break-inside: avoid;
    }

}
/* ==========================================================================
   18. GALERIA PREMIUM DO PROJETO
   Sprint 7.4.2
   ========================================================================== */


/* ==========================================================================
   SEÇÃO
   ========================================================================== */

.project-gallery-section {
    width: 100%;
    max-width: 1100px;
    margin: 52px auto 0;
    padding-top: 44px;
    border-top: 1px solid var(--project-border);
}


/* ==========================================================================
   CABEÇALHO
   ========================================================================== */

.project-gallery-header {
    max-width: 720px;
    margin: 0 auto 26px;
    text-align: center;
}

.project-gallery-header > span {
    display: block;
    margin-bottom: 7px;

    color: var(--project-green);

    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-gallery-header h2 {
    margin: 0 0 12px;

    color: var(--project-green-dark);

    font-size: clamp(27px, 8vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.project-gallery-header p {
    max-width: 620px;
    margin: 0 auto;

    color: var(--project-text);

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================================
   GRID — MOBILE FIRST
   ========================================================================== */

.project-gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


/* ==========================================================================
   ITEM
   ========================================================================== */

.project-gallery-item {
    position: relative;

    display: block;

    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;

    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 15px;

    background: #edf4ee;

    box-shadow:
        0 8px 22px rgba(23, 53, 29, 0.08);

    cursor: zoom-in;

    appearance: none;
    -webkit-appearance: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-gallery-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(23, 53, 29, 0.14);
}

.project-gallery-item:focus-visible {
    outline: 3px solid rgba(46, 125, 50, 0.32);
    outline-offset: 3px;
}


/* ==========================================================================
   IMAGEM
   ========================================================================== */

.project-gallery-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.45s ease;
}

.project-gallery-item:hover
.project-gallery-image {
    transform: scale(1.055);
}


/* ==========================================================================
   OVERLAY
   ========================================================================== */

.project-gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    padding: 10px;

    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(10, 25, 14, 0.38) 100%
        );

    pointer-events: none;
}


/* ==========================================================================
   ÍCONE DE AMPLIAR
   ========================================================================== */

.project-gallery-zoom {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);

    color: var(--project-green-dark);

    font-size: 19px;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* ==========================================================================
   PRIMEIRA FOTO EM DESTAQUE NO CELULAR
   ========================================================================== */

.project-gallery-item:first-child {
    grid-column: 1 / -1;

    aspect-ratio: 16 / 10;
}


/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.project-gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        max(18px, env(safe-area-inset-top))
        14px
        max(18px, env(safe-area-inset-bottom));

    background:
        rgba(5, 13, 8, 0.94);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.project-gallery-lightbox.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* ==========================================================================
   CONTEÚDO DO LIGHTBOX
   ========================================================================== */

.project-gallery-lightbox-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: min(100%, 1200px);
    height: 100%;
}

.project-gallery-lightbox-content img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: calc(100dvh - 130px);

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.38);

    user-select: none;
    -webkit-user-drag: none;
}


/* ==========================================================================
   CONTADOR
   ========================================================================== */

.project-gallery-lightbox-counter {
    margin-top: 14px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
}


/* ==========================================================================
   FECHAR
   ========================================================================== */

.project-gallery-lightbox-close {
    position: absolute;

    top: max(12px, env(safe-area-inset-top));
    right: 12px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font: inherit;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.project-gallery-lightbox-close:hover,
.project-gallery-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}


/* ==========================================================================
   ANTERIOR / PRÓXIMA
   ========================================================================== */

.project-gallery-lightbox-prev,
.project-gallery-lightbox-next {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 54px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;

    background: rgba(0, 0, 0, 0.34);

    color: #ffffff;

    font: inherit;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        background 0.25s ease;
}

.project-gallery-lightbox-prev {
    left: 8px;
}

.project-gallery-lightbox-next {
    right: 8px;
}

.project-gallery-lightbox-prev:hover,
.project-gallery-lightbox-next:hover,
.project-gallery-lightbox-prev:focus-visible,
.project-gallery-lightbox-next:focus-visible {
    background: rgba(46, 125, 50, 0.82);
}


/* ==========================================================================
   BLOQUEIA ROLAGEM DA PÁGINA
   ========================================================================== */

body.project-gallery-open {
    overflow: hidden;
}


/* ==========================================================================
   CELULAR MUITO PEQUENO — 320 A 359px
   ========================================================================== */

@media (max-width: 359px) {

    .project-gallery-section {
        margin-top: 42px;
        padding-top: 36px;
    }

    .project-gallery-grid {
        gap: 8px;
    }

    .project-gallery-item {
        border-radius: 12px;
    }

    .project-gallery-header {
        margin-bottom: 22px;
    }

    .project-gallery-header h2 {
        font-size: 27px;
    }

    .project-gallery-header p {
        font-size: 14px;
    }

    .project-gallery-zoom {
        width: 32px;
        height: 32px;

        font-size: 17px;
    }

    .project-gallery-lightbox {
        padding-left: 8px;
        padding-right: 8px;
    }

    .project-gallery-lightbox-prev,
    .project-gallery-lightbox-next {
        width: 40px;
        height: 50px;

        font-size: 30px;
    }

    .project-gallery-lightbox-prev {
        left: 4px;
    }

    .project-gallery-lightbox-next {
        right: 4px;
    }

}


/* ==========================================================================
   CELULAR GRANDE
   ========================================================================== */

@media (min-width: 521px) {

    .project-gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .project-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;

        aspect-ratio: auto;
        min-height: 100%;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 769px) {

    .project-gallery-section {
        margin-top: 64px;
        padding-top: 54px;
    }

    .project-gallery-header {
        margin-bottom: 34px;
    }

    .project-gallery-header p {
        font-size: 16px;
    }

    .project-gallery-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 16px;
    }

    .project-gallery-item {
        aspect-ratio: 4 / 3;

        border-radius: 18px;
    }

    .project-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;

        aspect-ratio: auto;
    }

    .project-gallery-overlay {
        padding: 14px;

        opacity: 0;

        transition:
            opacity 0.3s ease;
    }

    .project-gallery-item:hover
    .project-gallery-overlay,
    .project-gallery-item:focus-visible
    .project-gallery-overlay {
        opacity: 1;
    }

    .project-gallery-zoom {
        width: 42px;
        height: 42px;

        font-size: 21px;
    }

    .project-gallery-lightbox {
        padding:
            28px
            82px;
    }

    .project-gallery-lightbox-content img {
        max-height:
            calc(100dvh - 110px);

        border-radius: 14px;
    }

    .project-gallery-lightbox-close {
        top: 22px;
        right: 24px;

        width: 50px;
        height: 50px;
    }

    .project-gallery-lightbox-prev,
    .project-gallery-lightbox-next {
        width: 54px;
        height: 64px;

        font-size: 40px;
    }

    .project-gallery-lightbox-prev {
        left: 20px;
    }

    .project-gallery-lightbox-next {
        right: 20px;
    }

}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 1024px) {

    .project-gallery-grid {
        gap: 18px;
    }

    .project-gallery-item {
        border-radius: 20px;
    }

    .project-gallery-lightbox-prev {
        left: 32px;
    }

    .project-gallery-lightbox-next {
        right: 32px;
    }

}


/* ==========================================================================
   ACESSIBILIDADE — REDUZIR MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .project-gallery-item,
    .project-gallery-image,
    .project-gallery-overlay,
    .project-gallery-lightbox,
    .project-gallery-lightbox-close,
    .project-gallery-lightbox-prev,
    .project-gallery-lightbox-next {
        transition: none;
    }

    .project-gallery-item:hover {
        transform: none;
    }

    .project-gallery-item:hover
    .project-gallery-image {
        transform: none;
    }

}


/* ==========================================================================
   IMPRESSÃO
   ========================================================================== */

@media print {

    .project-gallery-lightbox {
        display: none !important;
    }

    .project-gallery-section {
        break-inside: avoid;
    }

    .project-gallery-item {
        box-shadow: none;
    }

}
/* ==========================================================================
   19. VÍDEO PREMIUM DO PROJETO
   Sprint 7.4.3-C
   ========================================================================== */


/* ==========================================================================
   SEÇÃO
   ========================================================================== */

.project-video-section {
    width: 100%;
    max-width: 1100px;

    margin: 52px auto 0;
    padding-top: 44px;

    border-top: 1px solid var(--project-border);
}


/* ==========================================================================
   CABEÇALHO
   ========================================================================== */

.project-video-header {
    max-width: 720px;

    margin: 0 auto 26px;

    text-align: center;
}

.project-video-header > span {
    display: block;

    margin-bottom: 7px;

    color: var(--project-green);

    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-video-header h2 {
    margin: 0 0 12px;

    color: var(--project-green-dark);

    font-size: clamp(27px, 8vw, 38px);
    line-height: 1.15;

    letter-spacing: -0.03em;
}

.project-video-header p {
    max-width: 620px;

    margin: 0 auto;

    color: var(--project-text);

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================================
   PLAYER
   ========================================================================== */

.project-video-player {
    position: relative;

    width: 100%;
    max-width: 100%;

    aspect-ratio: 16 / 9;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 16px;

    background: #101810;

    box-shadow:
        0 14px 34px rgba(23, 53, 29, 0.14);
}


/* ==========================================================================
   IFRAME — YOUTUBE / VIMEO
   ========================================================================== */

.project-video-player iframe {
    position: absolute;

    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0;

    border: 0;
}


/* ==========================================================================
   COMPATIBILIDADE COM O OEMBED DO WORDPRESS
   ========================================================================== */

.project-video-player > div,
.project-video-player .wp-video,
.project-video-player .wp-block-embed,
.project-video-player .wp-block-embed__wrapper {
    width: 100%;
    height: 100%;

    margin: 0;
}

.project-video-player .wp-block-embed__wrapper {
    position: absolute;

    inset: 0;
}


/* ==========================================================================
   CELULAR MUITO PEQUENO — ATÉ 359px
   ========================================================================== */

@media (max-width: 359px) {

    .project-video-section {
        margin-top: 42px;
        padding-top: 36px;
    }

    .project-video-header {
        margin-bottom: 22px;
    }

    .project-video-header h2 {
        font-size: 27px;
    }

    .project-video-header p {
        font-size: 14px;
        line-height: 1.65;
    }

    .project-video-player {
        border-radius: 12px;

        box-shadow:
            0 10px 24px rgba(23, 53, 29, 0.12);
    }

}


/* ==========================================================================
   CELULAR
   ========================================================================== */

@media (min-width: 360px) and (max-width: 520px) {

    .project-video-player {
        border-radius: 14px;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 769px) {

    .project-video-section {
        margin-top: 64px;
        padding-top: 54px;
    }

    .project-video-header {
        margin-bottom: 34px;
    }

    .project-video-header p {
        font-size: 16px;
    }

    .project-video-player {
        border-radius: 20px;

        box-shadow:
            0 18px 42px rgba(23, 53, 29, 0.15);
    }

}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 1024px) {

    .project-video-player {
        max-width: 1000px;
    }

}


/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

.project-video-player:focus-within {
    outline: 3px solid rgba(46, 125, 50, 0.25);
    outline-offset: 4px;
}


/* ==========================================================================
   IMPRESSÃO
   ========================================================================== */

@media print {

    .project-video-section {
        display: none;
    }

}
/* ==========================================================================
   20. RESULTADOS E IMPACTO
   Sprint 7.5.2-B
   ========================================================================== */

.project-impact {
    width: 100%;
    max-width: 1100px;
    margin: 56px auto;
    padding: 48px 0;

    border-top: 1px solid var(--project-border);
    border-bottom: 1px solid var(--project-border);
}


/* ==========================================================================
   CABEÇALHO
   ========================================================================== */

.project-impact-header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.project-impact-header > span {
    display: block;
    margin-bottom: 8px;

    color: var(--project-green);

    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.project-impact-header h2 {
    margin: 0 0 12px;

    color: var(--project-green-dark);

    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.15;

    letter-spacing: -0.03em;
}

.project-impact-header p {
    max-width: 620px;
    margin: 0 auto;

    color: var(--project-text);

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.project-impact-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 18px;

    width: 100%;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.project-impact-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 170px;
    padding: 28px 20px;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f5faf5 100%
        );

    border: 1px solid rgba(46, 125, 50, 0.13);
    border-radius: 18px;

    box-shadow:
        0 10px 28px rgba(23, 53, 29, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* DETALHE DECORATIVO */

.project-impact-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 54px;
    height: 4px;

    transform: translateX(-50%);

    background: var(--project-green);

    border-radius: 0 0 8px 8px;
}


/* ==========================================================================
   VALOR
   ========================================================================== */

.project-impact-value {
    display: block;

    margin-bottom: 10px;

    color: var(--project-green-dark);

    font-size: clamp(30px, 7vw, 44px);
    font-weight: 850;
    line-height: 1;

    letter-spacing: -0.04em;

    overflow-wrap: anywhere;
}


/* ==========================================================================
   DESCRIÇÃO
   ========================================================================== */

.project-impact-label {
    display: block;

    max-width: 220px;

    color: var(--project-text);

    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}


/* ==========================================================================
   DESKTOP — INTERAÇÃO
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

    .project-impact-card:hover {
        transform: translateY(-5px);

        border-color:
            rgba(46, 125, 50, 0.25);

        box-shadow:
            0 18px 38px rgba(23, 53, 29, 0.13);
    }

}


/* ==========================================================================
   CELULAR
   ========================================================================== */

@media (max-width: 520px) {

    .project-impact {
        margin: 44px auto;
        padding: 38px 0;
    }

    .project-impact-header {
        margin-bottom: 26px;
    }

    .project-impact-header h2 {
        font-size: 29px;
    }

    .project-impact-header p {
        font-size: 14px;
        line-height: 1.65;
    }

    .project-impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-impact-card {
        min-height: 135px;
        padding: 24px 18px;

        border-radius: 15px;
    }

    .project-impact-value {
        font-size: 36px;
    }

    .project-impact-label {
        font-size: 14px;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 521px) and (max-width: 768px) {

    .project-impact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 1024px) {

    .project-impact {
        margin-top: 70px;
        margin-bottom: 70px;
        padding: 58px 0;
    }

    .project-impact-grid {
        gap: 22px;
    }

    .project-impact-card {
        min-height: 185px;
        padding: 32px 24px;
    }

}


/* ==========================================================================
   IMPRESSÃO
   ========================================================================== */

@media print {

    .project-impact-card {
        break-inside: avoid;

        box-shadow: none;
    }

}