/**
 * Studio524 — responsivo
 * Apenas @media (max-width). Desktop aprovado (≥992px) não é alterado aqui.
 */

/* ─── Tablet e mobile (≤991px) ─── */
@media (max-width: 991px) {
  /* Evita tipografia gigante em celular na horizontal (vw muito largo) */
  html {
    font-size: clamp(14px, calc(16 * (min(100vw, 30rem) / 390)), 17px);
  }

  .page-padding {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }

  .main-wrapper,
  .page-wrapper {
    overflow-x: clip;
  }

  /* ── Cabeçalho mobile: logo | hambúrguer, linha ~15px abaixo do logo ── */
  .nav.w-nav {
    height: auto;
    min-height: 0;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }

  .nav-container {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
  }

  .nav-logo {
    order: 1;
    flex: 0 1 auto;
    width: 11rem !important;
    max-width: calc(100% - 3.5rem);
    z-index: 6;
    transform: translateY(10px);
  }

  .nav-logo .logo__img {
    display: block;
    width: 100%;
    height: auto;
  }

  .nav__menu-wrap.w-nav-menu {
    order: 2;
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100% !important;
    max-width: none;
    float: none !important;
    z-index: 5;
  }

  .burger.w-nav-button {
    order: 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    background: transparent !important;
    color: #fff !important;
    z-index: 6;
    -webkit-tap-highlight-color: transparent;
  }

  .burger__box {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    right: 0 !important;
    position: relative;
    flex-shrink: 0;
  }

  .burger__open,
  .burger__close {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
  }

  .burger__open svg,
  .burger__close svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
  }

  .burger.w-nav-button .burger__open {
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .burger.w-nav-button .burger__close {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .burger.w-nav-button.w--open .burger__open {
    opacity: 0;
  }

  .burger.w-nav-button.w--open .burger__close {
    opacity: 1;
  }

  .nav-line {
    order: 4;
    flex: 0 0 100%;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none;
    height: 1px;
    margin-top: 15px;
    margin-bottom: 0;
    opacity: 1 !important;
    pointer-events: none;
  }

  .header.is-scrolled .nav-line {
    opacity: 1 !important;
  }

  .btn.nav-btn {
    display: none !important;
  }

  .header.menu-open .nav-overlay {
    opacity: 1;
  }

  .nav__menu-wrap.w-nav-menu[data-nav-menu-open],
  .nav__menu-wrap.w-nav-menu.w--nav-menu-open {
    background-color: #121717;
    padding-top: calc(5.5rem + 1rem);
    padding-bottom: 2rem;
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__menu {
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }

  .nav__list-item {
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
    font-size: 1.25rem;
  }

  /* Imagens desktop/mobile */
  .is-desktop,
  [data-hero='img'].is-desktop,
  .full-bg-wrap.in-cta .is-desktop,
  #nossa-essencia .our-beliefs-img .is-desktop {
    display: none !important;
  }

  .is-mobile,
  .full-bg-wrap.in-cta .is-mobile,
  #nossa-essencia .our-beliefs-img .is-mobile {
    display: block !important;
  }

  /* Hero */
  section.hero .wrap.hero-wrap {
    padding-bottom: clamp(4rem, 12vh, 6rem);
  }

  .heading.hero-heading {
    gap: 0.65rem !important;
  }

  [data-hero='title'] .hero-char-mask {
    padding-top: 28px !important;
    margin-top: -28px !important;
  }

  [data-hero='title'] .hero-letter-img {
    height: clamp(3rem, 14vw, 4.25rem);
  }

  [data-hero='title'] .hero-letter-img--dot {
    height: clamp(0.65rem, 2.8vw, 1rem);
  }

  .hero-title-stack {
    gap: 0.5rem;
  }

  .heading.hero-heading [data-hero='title'].hero-title {
    margin-top: -14px !important;
    margin-bottom: 0.35rem !important;
  }

  .heading.hero-heading [data-hero='title-min'] {
    margin-top: 0.25rem !important;
    font-size: 22px !important;
    line-height: 1.2;
  }

  .hero-scroll-indicator {
    bottom: clamp(1.25rem, 5vh, 2.5rem);
  }

  [data-hero='title'] .hero-char-mask--dot {
    margin-left: 0.15rem;
    margin-right: 0.15rem;
  }

  [data-hero='title'] .char-mask,
  [data-hero='title'] .hero-char-mask {
    left: 0 !important;
    margin-right: -0.35rem;
  }

  section.hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  /* Sobre em diante: sobe o bloco ~30px (só layout; a âncora compensa no scroll) */
  #sobre {
    margin-top: -30px;
  }

  /* Sobre — coluna única (não usar grid 768–991 do inline) */
  #sobre .about-info {
    padding-bottom: 2rem !important;
  }

  #sobre .about-left {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: none;
  }

  #sobre .about-heading {
    min-height: 0 !important;
    max-width: none;
    width: 100%;
  }

  #sobre .about-heading h2 {
    margin-top: 0.75rem !important;
    padding-top: 0;
    font-size: 24px !important;
    line-height: 1.15;
  }

  /* Âncora mais baixa no scroll: (SOBRE) fica no topo certo após o header */
  #sobre-foco {
    scroll-margin-top: calc(clamp(4.25rem, 11vw, 5.5rem) + 30px);
  }

  #sobre .page-padding {
    padding-top: 0;
  }

  #sobre .about-img {
    width: 100%;
    max-width: none;
    height: auto !important;
    max-height: min(70vh, 28rem);
    min-height: 16rem;
  }

  #sobre .about-img img,
  #sobre .about-img [data-anim='img-paralax'] {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
  }

  #sobre .about-text-box {
    margin-top: 0;
    max-width: none;
    width: 100%;
  }

  .stats {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .stats .stats-row-1,
  .stats .stats-row-2,
  .stats .stats-row-3 {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 0 !important;
  }

  .stats .stats-box {
    width: 100%;
    max-width: 22rem;
  }

  /* Ambientes */
  section#ambientes.projects {
    padding-top: clamp(1.25rem, 4vh, 2rem);
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 2;
  }

  /* (1) / (2) acima das imagens — só desktop */
  #ambientes .projects-top-pagination {
    display: none !important;
  }

  #ambientes .projects-wrap,
  #ambientes .projects-slider.splide {
    overflow: visible;
  }

  #ambientes .projects-heading {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    transform: translateY(-20px);
  }

  #ambientes .projects-track-shell {
    height: min(58vh, 26rem);
    min-height: min(52vh, 22rem);
  }

  #ambientes .projects-track-shell .project-titles {
    transform: translate(-50%, 0);
    top: 0.5rem;
    max-width: calc(100% - 1.5rem);
  }

  #ambientes .projects-track-shell .project-titles h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    white-space: normal;
    text-align: center;
  }

  /* Grid 1×1: altura = maior dos dois textos (evita Nossa essência sobre o 2º “Saiba mais”) */
  #ambientes .project-texts {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 30px;
    padding: 0;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
  }

  #ambientes .project-text {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    padding: 0;
    margin: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
  }

  #ambientes .project-text.is-active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    z-index: 2;
  }

  #ambientes .project-text > p.b1 {
    font-size: 0.9375rem;
    line-height: 1.5;
    justify-self: stretch;
  }

  #ambientes .project-text .btn.in-project {
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    max-width: 14rem;
  }

  #ambientes .projects-slider-ui {
    margin-top: 1rem;
  }

  /* Nossa essência — 30px abaixo do “Saiba mais” (folga no bloco ativo de Ambientes) */
  section#nossa-essencia.our-beliefs {
    padding-top: clamp(1.25rem, 4vh, 2rem);
    padding-bottom: 3rem;
    height: auto;
    margin-top: 20px;
    position: relative;
    z-index: 1;
  }

  #nossa-essencia .our-beliefs-heading {
    margin-top: 0;
    margin-right: 0;
    max-width: none;
    align-items: flex-start;
    grid-row-gap: 1rem;
    row-gap: 1rem;
  }

  #nossa-essencia .our-beliefs-heading h2.h4,
  #nossa-essencia .our-beliefs-heading h2.mob-h7 {
    font-size: 24px !important;
    line-height: 1.15;
  }

  #nossa-essencia .our-beliefs-img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    inset: auto !important;
    margin-top: 1.25rem;
  }

  #nossa-essencia .our-beliefs-img .full-bg-inner,
  #nossa-essencia .our-beliefs-img img {
    width: 100%;
    height: auto;
    min-height: 14rem;
    max-height: min(70vh, 28rem);
    object-fit: cover;
  }

  #nossa-essencia .our-beliefs-text-box {
    margin-top: 1.5rem !important;
    margin-right: 0;
    max-width: none;
    width: 100%;
  }

  /* Crenças / para quem — lista vertical no mobile */
  section.beliefs {
    padding-top: 6.25rem;
  }

  section.beliefs .beliefs-media {
    margin-top: 100px;
    padding-bottom: 20px;
  }

  section.beliefs .beliefs-para-quem-heading {
    margin-bottom: 0;
    margin-right: 0;
    align-items: flex-start;
  }

  section.beliefs .wrap.beliefs-wrap {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-right: 0;
  }

  .wrap.beliefs-wrap > .beliefs-item {
    width: 100% !important;
    max-width: none !important;
    grid-area: auto !important;
    justify-self: stretch !important;
  }

  .beliefs-item {
    min-height: 0;
  }

  .beliefs-item > .b4 {
    display: none !important;
  }

  .nav__link::after,
  .nav__list-item::after,
  .nav__link .phenomenon-icon,
  .nav__link > .w-embed:not(:first-child) {
    content: none !important;
    display: none !important;
  }

  .beliefs-card {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 12.5rem;
    padding: 1.75rem 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    isolation: isolate;
  }

  .beliefs-card-heading {
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
  }

  /* Esfumado: clip-path do desktop desalinha em largura total — preenche o card */
  .beliefs-card-bg {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    border-radius: 0;
    margin: 0;
  }

  /* FAQ — sem parallax pesado no tablet/mobile */
  .faq-relative {
    min-height: 0;
  }

  .faq-spacer {
    height: auto;
    min-height: 0;
  }

  .faq {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
  }

  .faq .faq-wrap {
    transform: none !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* FAQ — acordeão: pergunta 24px + ícone “+” (vira × ao abrir) */
  .faq-list {
    width: 100%;
    gap: 0;
  }

  .faq-dropdown {
    display: block;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .faq-dropdown:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .faq-dropdown > .b1.text-color-white-50 {
    display: none !important;
  }

  .faq-dropdown::before,
  .faq-dropdown::after {
    display: none !important;
  }

  .faq-dropdown-toggle {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem 0;
    margin: 0;
    pointer-events: auto !important;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .faq-dropdown-toggle h3,
  .faq-dropdown-toggle .h6 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 18px !important;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: normal;
    text-align: left;
  }

  .faq-dropdown-toggle::after {
    content: '+';
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .faq-dropdown.active .faq-dropdown-toggle::after {
    transform: rotate(45deg);
  }

  .faq-dropdown-list {
    display: none;
    overflow: hidden;
    padding: 0 0 1.25rem;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    will-change: auto;
  }

  .faq-dropdown.active .faq-dropdown-list {
    display: block;
  }

  .faq-dropdown-box {
    padding: 0;
  }

  .faq-dropdown-box .b1 {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
  }

  /* CTA / Reserva */
  section#book-a-visit.cta {
    margin-top: 0 !important;
    min-height: 0;
    padding-top: clamp(3rem, 8vh, 4.5rem);
    padding-bottom: clamp(3rem, 8vh, 4.5rem);
  }

  .wrap.cta-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .cta-heading {
    max-width: none;
    width: 100%;
  }

  .form-wrap,
  .form-block {
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  #book-a-visit .form-heading-logo-inline {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    height: auto;
    margin-top: 10px;
  }

  #book-a-visit .heading.form-heading > p.b1.text-color-white-70 {
    font-size: 12px !important;
    line-height: 1.45;
    margin-top: 0;
  }

  .heading.form-heading {
    gap: 0.65rem !important;
    row-gap: 0.65rem !important;
  }

  #book-a-visit .form-block {
    min-height: 0;
  }

  #book-a-visit .form,
  section#book-a-visit .form {
    padding: clamp(1.5rem, 4vh, 2.25rem) clamp(1rem, 4vw, 1.5rem) !important;
    padding-top: max(0.75rem, calc(clamp(1.5rem, 4vh, 2.25rem) - 20px)) !important;
    padding-bottom: max(0.5rem, calc(clamp(1.5rem, 4vh, 2.25rem) - 50px)) !important;
    padding-left: clamp(0.75rem, 3vw, 1.15rem) !important;
    padding-right: clamp(0.75rem, 3vw, 1.15rem) !important;
  }

  #book-a-visit .form-heading-title.h5,
  #book-a-visit h2.form-heading-title {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  #book-a-visit .form .inputs,
  section#book-a-visit .form .inputs {
    margin-top: max(0.5rem, calc(1rem - 30px)) !important;
    margin-bottom: 1.25rem !important;
    gap: max(0px, calc(0.35rem - 20px)) !important;
    row-gap: max(0px, calc(0.35rem - 20px)) !important;
  }

  #book-a-visit .form-bottom,
  section#book-a-visit .form-bottom {
    gap: 0.65rem !important;
    row-gap: 0.65rem !important;
    margin-top: 0.35rem;
  }

  #book-a-visit .form-btn,
  section#book-a-visit .form-btn {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
  }

  .form-bottom-text {
    max-width: 100%;
  }

  #book-a-visit .form-bottom-text {
    width: 100%;
    max-width: none;
  }

  #book-a-visit .form-bottom-text p {
    white-space: normal !important;
    text-wrap: wrap !important;
    text-align: center;
    font-size: clamp(0.5625rem, 2.8vw, 0.75rem) !important;
    line-height: 1.35;
    margin: 0;
  }

  #book-a-visit .form-privacy-br {
    display: block;
  }

  /* Webflow: .text-link-light-50 é display:flex — força inline no texto legal */
  #book-a-visit .form-bottom-text .form-privacy-link.text-link-light-50 {
    display: inline !important;
    width: auto !important;
    max-width: none;
    vertical-align: baseline;
    white-space: normal;
  }

  .full-bg-wrap.in-cta {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  section#book-a-visit .page-padding {
    position: relative;
    z-index: 1;
  }

  /* Rodapé */
  .footer .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
  }

  .footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .footer-top > .footer-col:first-child .footer-logo {
    width: 11rem !important;
  }

  .footer-address-lines span {
    white-space: normal;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
  }

  .footer-bottom .footer-right.in-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .footer .contact-box a .h6 {
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  }

  :root {
    --studio-nav-scroll-offset: clamp(4.5rem, 12vw, 5.75rem);
  }

  /* Modal de projeto: galeria principal (sem miniaturas) + tela cheia */
  #projectModal.modal--mobile-gallery .modal-layout {
    display: flex !important;
    flex-direction: column;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    height: auto;
    min-height: 100%;
  }

  #projectModal.modal--mobile-gallery .modal-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  #projectModal.modal--mobile-gallery .modal-info,
  #projectModal.modal--mobile-gallery .modal-slider-wrap,
  #projectModal.modal--mobile-gallery .modal-slide-info-wrap,
  #projectModal.modal--mobile-gallery [id^='w-node'] {
    grid-area: unset !important;
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    flex: 0 0 auto;
    inset: auto !important;
  }

  #projectModal.modal--mobile-gallery .modal-info {
    margin-bottom: 1.5rem;
  }

  #projectModal.modal--mobile-gallery .modal-slide-info {
    padding: 1rem 1.25rem 2rem;
  }

  #projectModal.modal--mobile-gallery .modal-bg-images {
    display: none !important;
  }

  #projectModal.modal--mobile-gallery .modal-slider-wrap {
    min-height: clamp(12rem, 42vw, 18rem);
    overflow: visible;
    padding-bottom: 0.5rem;
    order: 2;
  }

  #projectModal.modal--mobile-gallery .modal-slide-info-wrap {
    order: 3;
  }

  #projectModal.modal--mobile-gallery .modal-thumb-slider.modal-gallery-main {
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
  }

  #projectModal.modal--mobile-gallery .modal-thumb-slider .splide__track {
    overflow: hidden;
  }

  #projectModal.modal--mobile-gallery .modal-thumb-slider .splide__slide {
    border: none !important;
    cursor: default;
    width: 100% !important;
    max-width: 100%;
    flex-shrink: 0;
  }

  #projectModal.modal--mobile-gallery .modal-gallery-slide-img {
    display: block;
    width: 100%;
    height: clamp(12rem, 48vw, 20rem);
    object-fit: cover;
    cursor: zoom-in;
  }

  #projectModal.modal--mobile-gallery.is-open .modal-thumb-slider {
    animation: fadeInCss 0.5s ease 0.35s both;
  }

  .modal-gallery-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10050;
    width: 100%;
    height: 100%;
    height: 100dvh;
    box-sizing: border-box;
    pointer-events: none;
  }

  .modal-gallery-fullscreen[hidden] {
    display: none !important;
  }

  .modal-gallery-fullscreen__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.94);
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .modal-gallery-fullscreen__stage {
    position: absolute;
    z-index: 1;
    inset: clamp(3.25rem, 11vw, 4.5rem) clamp(3rem, 10vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .modal-gallery-fullscreen__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    user-select: none;
    -webkit-user-drag: none;
  }

  .modal-gallery-fullscreen__close,
  .modal-gallery-fullscreen__nav {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .modal-gallery-fullscreen__close {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .modal-gallery-fullscreen__nav--prev {
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    top: 50%;
    transform: translateY(-50%);
  }

  .modal-gallery-fullscreen__nav--next {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
  }

  #projectModal.modal-gallery-fullscreen-open .modal-content {
    overflow: hidden;
  }
}

/* ─── Mobile (≤767px) ─── */
@media (max-width: 767px) {
  #ambientes .projects-track-shell {
    height: min(50vh, 22rem);
    min-height: min(46vh, 20rem);
  }

  #ambientes .projects-track-shell .project-titles h2 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  .projects-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  #nossa-essencia .our-beliefs-img img {
    min-height: 12rem;
    max-height: 24rem;
  }

  .nxwhats_content {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ─── Celular na horizontal (altura baixa / landscape) ─── */
@media (max-width: 991px) and (orientation: landscape),
  (max-width: 991px) and (max-height: 32rem) {
  html {
    font-size: 15px;
  }

  .nav-logo {
    width: 8.5rem !important;
    max-width: 38vw;
  }

  .nav-line {
    margin-top: 10px;
  }
}

/* ─── Mobile pequeno (≤479px) ─── */
@media (max-width: 479px) {
  html {
    font-size: clamp(14px, calc(16 * (min(100vw, 24rem) / 375)), 17px);
  }

  .nav-logo {
    width: 9.5rem !important;
  }

  .heading.hero-heading [data-hero='title'] .hero-title-row--digits {
    justify-content: flex-start;
  }

  .hero-letter-img {
    max-height: 2.75rem;
    width: auto;
  }

  #ambientes .project-text .btn.in-project {
    max-width: none;
    width: 100%;
  }

  .projects-top-step {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }

  #book-a-visit .form-heading-title.h5,
  #book-a-visit h2.form-heading-title {
    font-size: 28px !important;
  }

  .nxwhats_content img {
    width: 44px;
    height: 44px;
  }
}
