/* macOS/iOS têm a Helvetica clássica instalada nativamente, por isso
   entra logo aí. No Windows não existe nem Helvetica nem Helvetica
   Neue, por isso carregamos a Nimbus Sans (via Bunny Fonts) como
   substituta visualmente muito próxima da Helvetica Neue — evita
   cair no Arial, que tem métricas ligeiramente diferentes. */
@import url('https://fonts.bunny.net/css?family=nimbus-sans:400,500,700,900');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Helvetica, 'Nimbus Sans', Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    padding: 1.5rem 0;
}

/* Forçar hamburger menu em 1024px (tablet) */
@media (max-width: 1024px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }

    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    .navbar-expand-lg .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-expand-lg .navbar-toggler {
        display: block !important;
    }
}

.navbar>.container-fluid {
    padding: 0 2rem;
}

.navbar-brand {
    position: relative;
    width: 105px;
    height: 34px;
    display: block;
}

.logo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 34px;
    transition: .35s;
}

.logo-img.hover-branco {
    opacity: 1;
}

.logo-img.hover-preto {
    opacity: 0;
}

/* direita */
body.zone-right .logo-img.hover-branco {
    opacity: 0;
}

body.zone-right .logo-img.hover-preto {
    opacity: 1;
}

body:not(.zone-left):not(.zone-right) .logo-img.hover-branco {
    opacity: 0;
}

body:not(.zone-left):not(.zone-right) .logo-img.hover-preto {
    opacity: 1;
}

.navbar-nav {
    gap: 1.4rem;
}

.navbar-nav .nav-link {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #000;
    transition: .3s;
}

body.zone-right .nav-link {
    color: #fff;
}

body.zone-left .nav-link {
    color: #000;
}

body:not(.zone-left):not(.zone-right) .nav-link {
    color: #000;
}

.nav-link:hover {
    color: darkred !important;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,1)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.zone-right .navbar-toggler-icon {
    filter: invert(1);
}

.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)), url("/imagens/homepage.webp");
    background-size: cover;
    background-position: top right;
    display: flex;
    align-items: flex-end;
}

.pb-hero {
    padding-bottom: 6rem;
}

.hero-title {
    font-size: clamp(3.8rem, 8vw, 5.8rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.04em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.hero-subtitle {
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    max-width: 520px;
}

.split-page {
    min-height: 100vh;
}

.split-halves {
    display: flex;
    min-height: 100vh;
}

.split-half {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: .35s;
}

.split-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    color: #000;
    transition: .35s;
}

@media (min-width: 1025px) {

    .split-half.is-active,
    .split-half:hover {
        background: #000;
    }

    .split-half.is-active .split-button,
    .split-half:hover .split-button {
        color: #fff;
    }
}

@media(max-width:1024px) {
    .navbar-collapse {
        background: #000;
        padding: 1rem;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        color: #fff !important;
        text-align: right;
        padding: .7rem 0;
    }

    .split-halves {
        flex-direction: column;
    }

    .split-half {
        width: 100%;
        min-height: 50vh;
    }

    .split-left {
        background: #fff;
    }

    .split-right {
        background: #000;
    }

    .split-left .split-button {
        color: #000;
    }

    .split-right .split-button {
        color: #fff;
    }
}

@media(max-width:768px) {
    .hero-title {
        font-size: 3.4rem;
    }

    .split-button {
        font-size: 2.2rem;
    }
}

.scroller {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* ============================================================
   WORK — texto fixo (sticky) + imagens com scroll (DESKTOP)
   ============================================================ */
.work-flow {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.work-text-col {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-end;
    padding: 4rem 8vw;
    background: #fff;
    color: #000;
}

.work-text-inner {
    width: 100%;
}

.work-text-block {
    display: none;
    pointer-events: none;
}

.work-text-block.active {
    display: block;
    pointer-events: auto;
}

.work-index {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    opacity: .5;
    margin-bottom: 1.2rem;
}

.work-title {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.03em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.work-role {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .55;
    margin-bottom: 2.5rem;
}

.work-tasks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem 2rem;
    max-width: 470px;
}

.work-tasks span {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .2;
    white-space: nowrap;
}

.work-tasks span.task-active {
    opacity: 1;
}

.work-images-col {
    width: 50%;
    background: #fff;
}

.work-project {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 6vw, 4rem) 4rem;
    position: relative;
    color: #000;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.work-project .frame {
    width: 460px;
    height: 613px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    margin: 0 auto;
}

/* Responsivo a partir de ecrãs grandes (monitores externos, 1600px+).
   Antes só entrava em ação a partir de 2560px, o que deixava uma
   "zona morta" em monitores comuns (ex: ~2400-2480px de largura CSS)
   onde a imagem ficava presa em 460px dentro de uma coluna muito mais
   larga. Agora cresce de forma gradual a partir de 1600px. */
@media (min-width: 1600px) {
    .work-project .frame {
        width: clamp(460px, 30vw, 640px);
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

.work-project .frame img {
    /* Antes só tinha max-width:100%, que preserva a proporção original
       da imagem — se essa proporção não bater certo com a da moldura
       (460x613px fixo, ou aspect-ratio:3/4 em ecrãs grandes), sobra
       espaço vazio dentro do .frame. width/height:100% + object-fit:cover
       garante que a imagem preenche sempre a moldura inteira, cortando
       o excesso em vez de deixar "letterboxing". */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.work-project:hover .frame img {
    transform: scale(1.02);
}

.work-project .work-caption {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    font-size: .62rem;
    opacity: .45;
    letter-spacing: .03em;
}

.work-project .see-projects {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: 460px;
    text-align: right;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: inherit;
    border-bottom: none;
    padding-bottom: 2px;
    transition: opacity .3s ease, color .3s ease;
}

/* Acompanha a largura da imagem no mesmo breakpoint acima */
@media (min-width: 1600px) {
    .work-project .see-projects {
        width: clamp(460px, 30vw, 640px);
    }
}

.work-project .see-projects:hover {
    color: darkred;
}

/* ==========================================
   FIX ESPECÍFICO PARA WINDOWS (ex: Lenovo Legion 5)
   A classe "os-windows" só é adicionada ao <body> pelo JS
   (deteção de sistema operativo) — o Mac NUNCA recebe esta
   classe, logo estas regras nunca o afetam, em nenhuma
   circunstância.

   No Windows a imagem fica sempre mais pequena que no Mac
   (380x507px em vez de 460x613px, mesma proporção 3:4) —
   tamanho fixo, não depende da altura do ecrã.
   ========================================== */
body.os-windows .work-project .frame {
    width: 380px;
    height: 507px;
}

body.os-windows .work-project .see-projects {
    width: 380px;
}



.work-title,
.work-role,
.work-index,
.work-caption {
    user-select: none;
}

/* ---------- Footer da página Work: risca preta com botão UX/UI ---------- */
.work-footer {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2.5rem 4vw;
    scroll-snap-align: start;
}

.work-footer-btn {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .3s ease;
}

.work-footer-btn:hover {
    color: darkred;
}

.contact-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.contact-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 10rem 5vw 3rem;
    display: flex;
    align-items: stretch;
    /* stretch (em vez de flex-start) garante que o .container-fluid
       herda uma altura real do .contact-page, para o h-100 do
       Bootstrap ter sempre uma base de cálculo consistente — em
       flex-start, a altura do container era "automática" e o h-100
       ficava dependente da altura efetiva do ecrã, variando entre
       resoluções/escalas (ex: Lenovo Legion 5 vs Mac). */
}

.contact-page .container-fluid {
    width: 100%;
}

.contact-left {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 4rem
}

.contact-left h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.05em;
    text-transform: uppercase;
    margin: 0;
}

.contact-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 470px;
}

.contact-form-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.service-selector {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.service-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, .45);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .3s;
}

.service-btn:hover {
    color: #fff;
}

.service-btn.active {
    color: #fff;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-input {
    width: 100%;
    height: 46px;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 12px;
    color: #fff !important;
    font-size: .95rem;
    padding: 0 1rem;
    font-family: Helvetica, 'Nimbus Sans', Arial, sans-serif;
    transition: .3s;
    box-shadow: none !important;
}

.contact-input:focus {
    border-color: #fff;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, .45);
    font-size: .95rem;
}

.contact-message {
    resize: none;
    height: 180px;
    padding-top: 1rem;
}

.form-select.contact-input {
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.form-select.contact-input option {
    background: #fff;
    color: #000;
}

.contact-submit {
    align-self: flex-end;
    margin-top: .8rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.02em;
    cursor: pointer;
    transition: .3s;
    padding: 0;
}

.contact-submit:hover {
    color: darkred;
}

/* INPUTS COM ERRO */
.contact-input.error {
    border-color: darkred !important;
}

.navbar-contact .nav-link {
    color: #fff !important;
}

.navbar-contact .nav-link:hover {
    color: darkred !important;
}

.navbar-contact .logo-img.hover-branco {
    opacity: 1 !important;
}

.navbar-contact .logo-img.hover-preto {
    opacity: 0 !important;
}

.navbar-contact .navbar-toggler-icon {
    filter: invert(1);
}

@media (max-width:1024px) {
    .contact-page {
        padding: 7rem 2rem 3rem;
    }

    .contact-left {
        height: auto;
        justify-content: center;
        margin-bottom: 3rem;
    }

    .contact-left h1 {
        text-align: center;
        font-size: 4.5rem;
    }

    .contact-right {
        justify-content: center;
    }

    .contact-form-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-form-wrapper h2 {
        text-align: center;
    }

    .service-selector {
        gap: 1.5rem;
        justify-content: center;
    }

    .contact-input {
        height: 42px;
        font-size: .9rem;
    }

    .contact-message {
        height: 140px;
    }

    .contact-submit {
        font-size: 1.15rem;
    }
}

@media (max-width:768px) {
    .service-selector {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-btn {
        font-size: .8rem;
    }

    .contact-form-wrapper h2 {
        font-size: 2rem;
    }

    .contact-left h1 {
        font-size: 3.2rem;
    }

    .contact-input {
        height: 38px;
        font-size: .8rem;
        padding: 0 .8rem;
    }

    .contact-input::placeholder {
        font-size: .8rem;
    }

    #contactForm {
        gap: .7rem;
    }

    .contact-message {
        height: 120px;
        padding-top: .6rem;
    }

    .contact-submit {
        font-size: 1.05rem;
    }
}

.text-white {
    color: #fff !important;
}

.bg-black {
    background: #000 !important;
}

.bg-white {
    background: #fff !important;
}

.hidden {
    display: none !important;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade {
    opacity: 0;
    transition: opacity .5s ease;
}

.fade.show {
    opacity: 1;
}

.service-btn {
    transition: color .3s ease;
}

.service-btn:hover {
    color: darkred !important;
}

.service-btn.active {
    color: #fff;
}

button {
    font-family: inherit;
}

.button-work,
.split-button {
    border: none;
    outline: none;
}

.button-work:focus,
.split-button:focus {
    outline: none;
    box-shadow: none;
}

a {
    transition: color .3s ease, opacity .3s ease;
}

a:hover {
    text-decoration: none;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #555 #000;
}

.container-fluid {
    max-width: 1920px;
}

textarea {
    resize: none;
}

input,
textarea,
select {
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: none;
}

.nav-link,
.logo-img,
.split-half,
.split-button,
.service-btn,
.contact-submit,
.contact-input {
    transition: .3s ease;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 700;
}

.black {
    font-weight: 900;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

@media print {

    .navbar,
    .scroll-cue {
        display: none !important;
    }
}

.project-modal-dialog {
    max-width: 1050px;
    width: 92vw;
}

.project-modal-content {
    position: relative;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 24px;
    padding: 3.5rem 5rem;
    overflow: hidden;
}

.project-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 20;
    background: none;
    border: none;
    color: #000;
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    transition: color .3s ease;
}

.project-modal-close:hover {
    color: darkred;
}

.project-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    border: none;
    color: #000;
    font-size: 2.4rem;
    line-height: 1;
    padding: .5rem;
    cursor: pointer;
    transition: color .3s ease;
}

.project-arrow-prev {
    left: 1rem;
}

.project-arrow-next {
    right: 1rem;
    left: auto;
}

.project-arrow:hover {
    color: darkred;
}

.project-slide {
    display: flex;
    align-items: flex-end;
}

.project-slide-text {
    flex: 0 0 46%;
    max-width: 46%;
}

.project-slide-title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.project-slide-image {
    flex: 1;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: right;
    overflow: hidden;
}

.project-slide-image img {
    width: 70%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .project-modal-content {
        padding: 4.5rem 1.5rem 2rem;
        border-radius: 16px;
    }

    .project-slide {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-slide-text {
        flex: 1 1 auto;
        max-width: 100%;
        order: 2;
    }

    .project-slide-image {
        order: 1;
        height: 45vh;
    }

    .project-slide-image img {
        height: 100%;
        max-height: 45vh;
    }

    .project-arrow {
        font-size: 1.8rem;
    }

    .project-arrow-prev {
        left: .5rem;
    }

    .project-arrow-next {
        right: .5rem;
        left: auto;
    }

    .project-modal-close {
        top: 1rem;
        right: 1.2rem;
    }
}

/* ---------- Overlay do modal (fica por cima da página, não a substitui) ---------- */
.modal-backdrop {
    background-color: #000;
}

.modal-backdrop.show {
    opacity: .6;
}

.modal {
    z-index: 1055;
}

.project-modal-content .carousel-item {
    transition: none !important;
}

.project-modal-content .carousel-item-next,
.project-modal-content .carousel-item-prev,
.project-modal-content .carousel-item.active {
    transition: none !important;
}

.project-modal-content .carousel-fade .carousel-item {
    transition: none !important;
}

/* ============================================================
   ABOUT PAGE — foto à esquerda (preto) / texto à direita (branco)
   ============================================================ */
.about-page {
    display: flex;
    min-height: 100vh;
}

.about-left {
    width: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.about-photo-frame {
    width: 100%;
    max-width: 350px;
}

.about-photo-frame img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.about-right {
    width: 50%;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6vw;
}

.about-title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: .85;
    margin-bottom: 2.5rem;
}

.about-bio p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

/* Navbar desta página: logo sempre a branco (fica sobre o lado preto) */
.navbar-about .logo-img {
    opacity: 1;
}

/* Ícone do hamburger também a branco: no breakpoint de tablet/mobile
   o .about-page empilha e o .about-left (fundo preto) passa a ficar
   em cima, por baixo do navbar fixo — sem isto o ícone (preto por
   defeito) ficava invisível sobre esse fundo. */
.navbar-about .navbar-toggler-icon {
    filter: invert(1);
}

/* ---------- Tablet (769px–1024px): breakpoint alinhado com o resto do site ---------- */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-page {
        flex-direction: column;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-left {
        padding: 7rem 6vw 3rem;
        min-height: 55vh;
    }

    .about-photo-frame {
        max-width: 480px;
    }

    .about-right {
        padding: 3rem 8vw 4rem;
    }

    /* "Rodrigo Martins" numa linha só, sem quebra */
    .about-title-break {
        display: none;
    }

    .about-title {
        white-space: nowrap;
        font-size: clamp(1.8rem, 5.5vw, 3.2rem);
    }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
    .about-page {
        flex-direction: column;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-left {
        padding: 6.5rem 6vw 4rem;
        min-height: 50vh;
    }

    .about-right {
        padding: 2.5rem 6vw 4rem;
    }

    /* "Rodrigo Martins" numa linha só, sem quebra */
    .about-title-break {
        display: none;
    }

    .about-title {
        white-space: nowrap;
        font-size: clamp(1.5rem, 7vw, 2.8rem);
    }
}

/* ============================================================
   UTILITÁRIOS DESKTOP / MOBILE
   ============================================================ */
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .scroller {
        display: none;
    }

}

/* ============================================================
   WORK — galeria simplificada para tablet/mobile
   (só imagem + título por baixo; cada cartão é um "botão" clicável
   para outra página, ou para abrir o popup de projetos)
   ============================================================ */
.work-mobile-gallery {
    padding: 6.5rem 6vw 3rem;
    background: #fff;
    color: #000;
}

@media (max-width: 1024px) {

    .work-mobile-gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem 1.5rem;
    }

}

@media (max-width: 600px) {

    .work-mobile-gallery {
        gap: 1.5rem 1rem;
    }

}

.work-mobile-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.work-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
    cursor: pointer;
    transition: opacity .3s ease;
}

.work-mobile-item:hover {
    opacity: .8;
}

.work-mobile-item .frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 1rem;
}

.work-mobile-item .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.work-mobile-item:hover .frame img {
    transform: scale(1.04);
}



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

body {
    font-family: Helvetica, 'Nimbus Sans', Arial, sans-serif;
    background: #fff;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===================== GRELHA (index) ===================== */

.catalogo {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
}

.item {
    display: flex;
    flex-direction: column;
}

.item-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #e9e7e2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.item:hover .item-frame img {
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .catalogo-grid {
        column-gap: 1rem;
        row-gap: 1rem;
    }

    .see-more {
        font-size: .85rem;
    }
}

/* ===================== PÁGINA DE PRODUTO ===================== */

.produto-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.voltar {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: .9rem;
    color: #666;
}

.voltar:hover {
    color: #111;
}

.produto-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #e9e7e2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.produto-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-title {
    font-size: 2 rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.produto-price {
    font-size: 1.1rem;
    color: #444;
}

.produto-titulo {
    /* Antes tinha white-space: nowrap, que impedia qualquer quebra de
       linha — títulos curtos cabiam, mas títulos longos (ex: "Camo
       Eclipse Shell Jacket") ficavam cortados no limite do ecrã em
       mobile em vez de passarem para a linha seguinte. */
    font-size: clamp(1.1rem, 7vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    padding-bottom: 20px;
    padding-top: 20px;
}
.produto-info{
    padding-top: 20px;
    padding-bottom: 20px;
}

.produto-tasks.work-tasks {
    /* minmax(0, 1fr) em vez de só 1fr: sem isto, o Grid não deixa as
       colunas encolherem abaixo da largura do conteúdo (que aqui tem
       white-space: nowrap), e o texto acaba a sair para fora da
       imagem/container em ecrãs estreitos. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
    gap: .4rem .8rem;
}

.produto-tasks.work-tasks span {
    font-size: .62rem;
    opacity: .35;
}

.produto-tasks.work-tasks span.task-active {
    opacity: 1;
}

/* Mobile pequeno: 2 colunas em vez de 3, e permite quebra de linha
   para labels longas (ex: "FACTORY COMMUNICATION") caberem dentro
   da largura da imagem/container. */
@media (max-width: 480px) {
    .produto-tasks.work-tasks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem .6rem;
    }

    .produto-tasks.work-tasks span {
        white-space: normal;
        line-height: 1.3;
        font-size: .6rem;
    }
}

.produto-imagem{
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 20px;
}


 .catalogo-header {
            text-align: center;
            padding: 2rem 1rem 1.5rem;
        }

        .catalogo-header .titulo {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 800;
            letter-spacing: 0.05em;
            margin: 0;
            line-height: 1;
        }

        .catalogo-header .subtitulo {
            font-size: clamp(0.9rem, 1.5vw, 1.1rem);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            margin-top: 0.5rem;
            opacity: 0.7;
        }

        .go-back-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
            margin-top: 40px;
        }

        .go-back-btn,
        .next-project-btn {
            border: none;
            background-color: #fff;
            font-weight: 900;
            color: #000;
            padding: 0;
            cursor: pointer;
            transition: color .3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .go-back-btn:hover,
        .next-project-btn:hover {
            color: darkred;
        }

        .non-disc{
            font-size: .62rem;
             opacity: .45;
            letter-spacing: .03em;
            text-align: center;
        }

        .season{
             font-size: 15px;
             font-weight: 600;
        }