.tz-pj {
    --tz-pj-navy: #07375f;
    --tz-pj-deep: #052b48;
    --tz-pj-teal: #009fbe;
    --tz-pj-sky: #4fc3e8;
    --tz-pj-ink: #33475b;
    color: var(--tz-pj-ink);
}
.tz-pj *, .tz-pj *::before, .tz-pj *::after { box-sizing: border-box; }
.tz-pj-partners { max-width: 1280px; margin: 0 auto; padding: 24px 24px 8px; background: #fff; }
.tz-pj .tz-pj-partners h2 { margin: 0; color: var(--tz-pj-navy); font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; text-align: center; }
.tz-pj h1 { margin: 0; color: #fff; }
.tz-pj ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- Hero ---------------- */

.tz-pj-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(300px, 26vw, 400px);
    overflow: hidden;
    background: var(--tz-pj-deep);
    margin-bottom: clamp(18px, 2.5vw, 34px);
}
.tz-pj-hero--nophoto {
    background: linear-gradient(115deg, #041f36 0%, #06395f 52%, #0a6f93 100%);
}
.tz-pj-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}
/* Veu azul: mantem a foto legivel ao fundo e garante contraste do texto branco. */
.tz-pj-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 30, 52, .94) 0%, rgba(5, 40, 68, .88) 34%, rgba(6, 60, 95, .66) 62%, rgba(8, 92, 126, .52) 100%),
        linear-gradient(180deg, rgba(4, 27, 45, .45) 0%, rgba(4, 27, 45, 0) 45%);
}
.tz-pj-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(34px, 3.8vw, 56px) 24px clamp(64px, 7vw, 100px);
}
.tz-pj-hero__eyebrow {
    position: relative;
    display: inline-block;
    margin: 0 0 18px;
    padding-left: 40px;
    color: #cfeaf6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.tz-pj-hero__eyebrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 26px;
    height: 2px;
    background: var(--tz-pj-sky);
}
.tz-pj-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.02em;
}
.tz-pj-hero__text {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.62;
}
.tz-pj-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 3.4vw, 56px);
    margin-top: clamp(18px, 2.2vw, 28px);
}
.tz-pj-hero__stats li { max-width: 200px; }
.tz-pj-hero__stats strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: clamp(19px, 1.6vw, 23px);
    font-weight: 800;
    letter-spacing: -.01em;
}
.tz-pj-hero__stats span {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.45;
}
.tz-pj-wave {
    position: absolute;
    z-index: 2;
    bottom: -1px;
    left: 0;
    display: block;
    width: 100%;
    height: clamp(56px, 6vw, 88px);
}

/* ---------------- Projetos ---------------- */

.tz-pj-projects {
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) 24px clamp(20px, 3vw, 40px);
}
.tz-pj-eyebrow {
    margin: 0 0 12px;
    color: #12a37a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.tz-pj-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(24px, 4vw, 60px);
    margin-bottom: clamp(28px, 3.5vw, 44px);
}
.tz-pj-intro h2 {
    max-width: 480px;
    margin: 0;
    color: var(--tz-pj-navy);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.tz-pj-intro__text {
    max-width: 440px;
    margin: 0 0 8px;
    color: var(--tz-pj-ink);
    font-size: 15px;
    line-height: 1.7;
}
.tz-pj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(28px, 3.5vw, 44px);
}
.tz-pj-filter {
    padding: 9px 20px;
    border: 1px solid #bfe3ef;
    border-radius: 999px;
    background: #fff;
    color: #12688c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.tz-pj-filter:hover { border-color: var(--tz-pj-teal); color: var(--tz-pj-navy); }
.tz-pj-filter.is-active {
    border-color: #1074a8;
    background: #1074a8;
    color: #fff;
}
.tz-pj-filter:focus-visible { outline: 3px solid #ffe078; outline-offset: 2px; }
.tz-pj-empty {
    margin: 0 0 32px;
    color: var(--tz-pj-ink);
    font-size: 15px;
}
.tz-pj-group { margin-bottom: clamp(32px, 4vw, 52px); }
.tz-pj-group__title {
    margin: 0 0 18px;
    color: var(--tz-pj-navy);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: -.01em;
}
.tz-pj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 26px);
}
.tz-pj-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6eef3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(7, 55, 95, .07);
}
.tz-pj-card__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #dbe9f0;
}
.tz-pj-card__thumb--empty {
    background: linear-gradient(130deg, #0a4f74, #14a2c4);
}
.tz-pj-card__thumb img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Estes dois arquivos incluem uma faixa branca dentro da própria imagem. */
.tz-pj-card__thumb img[src*="comunidades-pelo-clima."],
.tz-pj-card__thumb img[src*="rede-nacional-foruns."] {
    transform: translateY(-7%) scale(1.06, 1.12);
}
.tz-pj-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 22px;
}
.tz-pj-card__eyebrow {
    margin: 0 0 8px;
    color: #12a37a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.tz-pj-card h4 {
    margin: 0 0 10px;
    color: var(--tz-pj-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}
.tz-pj-card__text {
    margin: 0;
    color: #4a6377;
    font-size: 14px;
    line-height: 1.6;
}
.tz-pj-card__more {
    align-self: flex-start;
    margin-top: auto;
    padding: 18px 0 0;
    border: 0;
    background: transparent;
    color: #075b8a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.tz-pj-card__more:hover { color: #009fbe; }
.tz-pj-card__more:focus-visible { outline: 3px solid #ffe078; outline-offset: 4px; }

/* Galeria em modal do primeiro projeto. */
body.tz-pj-modal-open { overflow: hidden; }
.tz-pj .tz-pj-modal {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 22px 26px 24px;
    overflow-y: auto;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--tz-pj-navy);
    box-shadow: 0 30px 90px rgba(0, 20, 40, .3);
}
.tz-pj .tz-pj-modal::backdrop, .tz-pj .tz-pj-modal__lightbox::backdrop { background: rgba(5, 28, 50, .82); }
.tz-pj-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.tz-pj .tz-pj-modal__header h2 { margin: 0; color: var(--tz-pj-navy); font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; }
.tz-pj-modal__header-actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.tz-pj-modal__count { font-size: 15px; }
.tz-pj-modal__close, .tz-pj-modal__lightbox-close { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #e8edf2; color: var(--tz-pj-navy); font-size: 32px; line-height: 1; cursor: pointer; }
.tz-pj-modal__stage { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; }
.tz-pj-modal__figure { position: relative; height: min(49dvh, 470px); min-height: 260px; margin: 0; overflow: hidden; border-radius: 8px; background: #eaf2f6; }
.tz-pj-modal__main-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.tz-pj-modal--many .tz-pj-modal__figure { height: min(56dvh, 520px); }
.tz-pj-modal--many .tz-pj-modal__main-image { object-fit: contain; }
#tz-pj-comunidades-modal .tz-pj-modal__figure { height: min(56dvh, 520px); background: #0b2945; }
#tz-pj-comunidades-modal .tz-pj-modal__main-image { object-fit: contain; }
#tz-pj-comite-modal .tz-pj-modal__figure { height: min(56dvh, 520px); background: #0b2945; }
#tz-pj-comite-modal .tz-pj-modal__main-image { object-fit: contain; }
#tz-pj-lagunar-modal .tz-pj-modal__main-image { object-fit: cover; }
.tz-pj-modal--grid .tz-pj-modal__figure { height: min(46dvh, 480px); }
#tz-pj-rede-foruns-modal .tz-pj-modal__figure { height: min(52dvh, 500px); }
.tz-pj-modal__arrow { display: grid; width: 50px; height: 50px; place-items: center; padding: 0 0 5px; border: 0; border-radius: 50%; background: #0b3556; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.tz-pj-modal__expand { position: absolute; right: 12px; bottom: 12px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(5, 36, 61, .78); color: #fff; font-size: 25px; cursor: pointer; }
.tz-pj-modal__filmstrip { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 10px; margin-top: 16px; }
.tz-pj-modal__thumbs { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
#tz-pj-lagunar-modal .tz-pj-modal__thumbs { scrollbar-width: none; }
#tz-pj-lagunar-modal .tz-pj-modal__thumbs::-webkit-scrollbar { display: none; }
.tz-pj-modal__thumb { flex: 0 0 max(140px, calc((100% - 40px) / 6)); height: 92px; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 8px; background: #eaf2f6; cursor: pointer; scroll-snap-align: start; }
.tz-pj-modal--many .tz-pj-modal__thumb { flex-basis: max(110px, calc((100% - 56px) / 8)); }
.tz-pj-modal--grid .tz-pj-modal__thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; overflow: visible; }
#tz-pj-foruns-modal .tz-pj-modal__thumbs,
#tz-pj-rede-foruns-modal .tz-pj-modal__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tz-pj-modal--grid .tz-pj-modal__thumb { width: 100%; height: 78px; }
.tz-pj-modal__thumb.is-active { border-color: #119bd2; }
#tz-pj-produtora-jovem-modal .tz-pj-modal__thumbs { display: flex; overflow-x: auto; scrollbar-width: none; }
#tz-pj-produtora-jovem-modal .tz-pj-modal__thumbs::-webkit-scrollbar { display: none; }
#tz-pj-produtora-jovem-modal .tz-pj-modal__thumb { width: auto; height: 100px; }
#tz-pj-produtora-jovem-modal .tz-pj-modal__figure { height: min(49dvh, 500px); background: #fff; }
#tz-pj-produtora-jovem-modal .tz-pj-modal__main-image { cursor: zoom-in; }
#tz-pj-educacao-digital-modal .tz-pj-modal__main-image { object-fit: contain; cursor: zoom-in; }
#tz-pj-educacao-digital-modal .tz-pj-modal__thumbs { justify-content: safe center; }
.tz-pj-modal__hint { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 16px; text-align: center; }
.tz-pj-modal__hint span { font-size: 30px; }
.tz-pj-modal__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tz-pj-modal__strip-arrow { display: grid; width: 34px; height: 34px; place-items: center; padding: 0 0 3px; border: 1px solid #dce8ee; border-radius: 50%; background: #fff; color: var(--tz-pj-navy); font-size: 27px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(7, 55, 95, .12); }
.tz-pj-modal button:focus-visible, .tz-pj-modal__lightbox button:focus-visible { outline: 3px solid #009fbe; outline-offset: 3px; }
.tz-pj .tz-pj-modal__lightbox { width: min(1200px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 56px 12px 12px; overflow: hidden; border: 0; border-radius: 10px; background: #fff; }
.tz-pj-modal__lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 96px); width: auto; height: auto; margin: auto; object-fit: contain; }
.tz-pj-modal__lightbox-close { position: absolute; top: 7px; right: 8px; }

/* ---------------- Impacto ---------------- */

.tz-pj-impact {
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 36px) 24px clamp(36px, 4vw, 56px);
}
.tz-pj-impact__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 3.5vw, 52px);
    padding: clamp(26px, 3vw, 40px);
    border-radius: 16px;
    background: #f2f8fb;
}
.tz-pj-impact h2 {
    max-width: 320px;
    margin: 0 0 14px;
    color: var(--tz-pj-navy);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
}
.tz-pj-impact__copy p {
    margin: 0;
    color: var(--tz-pj-ink);
    font-size: 14px;
    line-height: 1.65;
}
.tz-pj-impact__numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px);
}
.tz-pj-impact__numbers li {
    padding: 18px 20px;
    border: 1px solid #dcebf2;
    border-radius: 12px;
    background: #fff;
}
.tz-pj-impact__numbers strong {
    display: block;
    margin-bottom: 4px;
    color: #12a37a;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -.02em;
}
.tz-pj-impact__numbers span {
    color: var(--tz-pj-ink);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1023px) {
    .tz-pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tz-pj-card__thumb { height: 180px; }
    .tz-pj-impact__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .tz-pj-hero { min-height: 400px; }
    .tz-pj-hero__photo { object-position: 62% center; }
    .tz-pj-hero::after {
        background: linear-gradient(180deg, rgba(4, 27, 45, .9) 0%, rgba(4, 30, 52, .86) 55%, rgba(6, 60, 95, .7) 100%);
    }
    .tz-pj-hero__content { padding: 52px 22px 96px; }
    .tz-pj-hero h1 { font-size: clamp(30px, 8vw, 42px); }
    .tz-pj-hero__stats { gap: 22px; }
    .tz-pj-hero__stats li { max-width: none; flex: 1 1 100%; }
    .tz-pj-projects, .tz-pj-impact { padding-left: 20px; padding-right: 20px; }
    .tz-pj-intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .tz-pj-intro h2 { max-width: none; }
    .tz-pj-grid { grid-template-columns: minmax(0, 1fr); }
    .tz-pj-card__thumb { height: auto; aspect-ratio: 16 / 9; }
    .tz-pj-impact__numbers { grid-template-columns: minmax(0, 1fr); }
    .tz-pj-impact h2 { max-width: none; }
    .tz-pj .tz-pj-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 16px 12px 18px; border-radius: 12px; }
    .tz-pj-modal__header { gap: 10px; }
    .tz-pj-modal__header-actions { gap: 10px; }
    .tz-pj-modal__close { width: 38px; height: 38px; }
    .tz-pj-modal__stage { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 4px; }
    .tz-pj-modal__figure { height: min(42dvh, 330px); min-height: 180px; }
    .tz-pj-modal--many .tz-pj-modal__figure { height: min(42dvh, 330px); }
    #tz-pj-rede-foruns-modal .tz-pj-modal__figure { height: min(42dvh, 330px); }
    .tz-pj-modal--grid .tz-pj-modal__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #tz-pj-foruns-modal .tz-pj-modal__thumbs,
    #tz-pj-rede-foruns-modal .tz-pj-modal__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tz-pj-modal--grid .tz-pj-modal__thumb { height: 68px; }
    .tz-pj-modal__arrow { width: 34px; height: 34px; padding-bottom: 4px; font-size: 30px; }
    .tz-pj-modal__filmstrip { gap: 4px; margin-top: 12px; }
    .tz-pj-modal__thumb { flex-basis: 120px; height: 76px; }
    .tz-pj-modal--many .tz-pj-modal__thumb { flex-basis: 120px; }
    #tz-pj-produtora-jovem-modal .tz-pj-modal__figure { height: min(42dvh, 330px); }
    #tz-pj-produtora-jovem-modal .tz-pj-modal__thumb { height: 76px; }
    .tz-pj-modal__hint { font-size: 13px; margin-top: 12px; }
}
.tz-pj-group {
    scroll-margin-top: 120px;
}
