/* Ajustes só para computador (telas a partir de 901px). Carregado por último; o celular não muda. */
@media (min-width: 901px) {

  /* INÍCIO: texto e foto lado a lado, sem ampliar demais a foto */
  html body.home-theme main.redesign-home .h26-hero { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: center; gap: 56px; height: auto; min-height: 0; padding: 112px max(40px, calc((100% - 1180px) / 2)) 64px; background: #ffffff; }
  html body.home-theme main.redesign-home .h26-hero::after { display: none; }
  html body.home-theme main.redesign-home .h26-hero-bg { position: static; grid-column: 2; grid-row: 1; z-index: auto; width: 100%; height: clamp(440px, calc(100vh - 200px), 620px); object-fit: cover; object-position: 50% 28%; border-radius: 20px; box-shadow: 0 24px 60px rgba(40, 23, 18, .18); -webkit-mask-image: none; mask-image: none; }
  html body.home-theme main.redesign-home .h26-intro { grid-column: 1; grid-row: 1; width: 100% !important; max-width: 460px !important; margin: 0 !important; }

  /* ALIANÇAS: foto de abertura menos ampliada e blocos em largura de leitura */
  html body main .alliances-page-hero { min-height: clamp(520px, 82vh, 660px) !important; }
  html body main .alliances-page-hero .alliances-hero-background img { filter: saturate(.85) blur(1.5px) !important; object-position: 60% 55% !important; }
  html body main .units-compact-inner { width: min(920px, calc(100% - 64px)) !important; margin-left: auto !important; margin-right: auto !important; }
  html body main .store-card-photo { aspect-ratio: 4 / 3 !important; max-height: 320px; }
  html body main .store-card-actions { align-items: center; }
  html body main .store-card-whatsapp { width: 100%; max-width: 280px; border-radius: 999px; }


  html body main .materials-background { display: none; }
  html body main .process-list li.ca-step { opacity: .45 !important; }
  html body main .process-list li.ca-step.is-on { opacity: 1 !important; }
  html body main .closing-brandmark { display: none !important; }
  html body main .closing-section { grid-template-areas: "copy action" !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; min-height: 0 !important; padding-top: 56px; padding-bottom: 56px; }

  /* SOBRE: cada assunto com texto de um lado e foto do outro */
  html body.info-about main .about-long { max-width: 1080px; padding: 72px 32px; }
  html body.info-about main .about-long > h2, html body.info-about main .about-long > p { max-width: 760px; }
  html body.info-about main .about-long .al-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; margin-top: 40px; }
  html body.info-about main .about-long .al-row:nth-of-type(even) > img { order: -1; }
  html body.info-about main .about-long .al-row h3 { margin-top: 0; }
  html body.info-about main .about-long .al-row img { height: 340px; max-height: 340px; margin: 0; }
  html body.info-about main .about-long-actions { flex-direction: row; flex-wrap: wrap; }
  html body.info-about main .about-long-actions a { padding: 0 32px; }

  /* BLOG: três cartões por linha, sem esticar as fotos */
  html body.blog-theme main .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 1120px; margin-left: auto; margin-right: auto; }
  html body.blog-theme main .blog-card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
  html body.blog-theme main .blog-card-photo img { width: 100%; height: 100%; object-fit: cover; }
  html body.blog-theme main .blog-featured-card { max-width: 1120px; margin-left: auto; margin-right: auto; }
  html body.blog-theme main .blog-featured-photo { max-height: 420px; overflow: hidden; }
  html body.blog-theme main .blog-featured-photo img { width: 100%; height: 100%; object-fit: cover; }
  html body.blog-theme main .blog-section-heading { max-width: 1120px; margin-left: auto; margin-right: auto; }

  /* CONTATO: fotos preenchem o cartão, sem faixas vazias */
  html body main .contact-maps .map-placeholder { display: flex !important; flex-direction: column; justify-content: flex-start !important; align-items: center; gap: 4px; min-height: 0 !important; height: auto !important; padding: 0 0 18px !important; overflow: hidden; border-radius: 16px; background: #ffffff !important; }
  html body main .contact-maps .map-placeholder::before, html body main .contact-maps .map-placeholder::after { display: none !important; }
  html body main .contact-maps .map-placeholder img { position: static !important; width: 100% !important; height: 300px !important; object-fit: cover; margin-bottom: 12px; opacity: 1 !important; }

  /* UNIDADES: foto de abertura menos alta */
  html body main .un-hero { min-height: clamp(520px, 80vh, 660px) !important; }
}

/* telas muito largas: nada fica esticado de ponta a ponta */
@media (min-width: 1600px) {
  html body main .alliances-page-hero { min-height: 680px !important; }
}

@media (min-width: 901px) {
  /* início: fundo liso na história e as quatro avaliações inteiras na tela */
  html body.home-theme main.redesign-home .home-story { background: #ffffff !important; }
  html body.home-theme main.redesign-home .home-story::before, html body.home-theme main.redesign-home .home-story::after { display: none !important; }
  html body.home-theme main.redesign-home .h26-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(1180px, calc(100% - 64px)); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; overflow: visible; }
  /* sobre: mostra as alianças na foto */
  html body.info-about main .about-long .al-row img { object-position: 50% 72%; }
}

/* ===== Computador igual ao celular: foto ao fundo, quadro no centro e botões centralizados ===== */
@media (min-width: 901px) {
  /* INÍCIO */
  html body.home-theme main.redesign-home .h26-hero { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; min-height: 620px; max-height: 860px; padding: 64px 24px 0; background: #6b5248; }
  html body.home-theme main.redesign-home .h26-hero::before { content: ""; display: block; position: absolute; z-index: -3; inset: -40px; background: url("/optimized/casal-maos-aliancas-640.jpg") center / cover; filter: blur(30px) brightness(.8); }
  html body.home-theme main.redesign-home .h26-hero-bg { position: absolute; z-index: -2; top: 64px; left: calc(50% - min(50%, 480px)); width: min(100%, 960px); height: calc(100% - 64px); object-fit: cover; object-position: 50% 30%; border-radius: 0; box-shadow: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
  html body.home-theme main.redesign-home .h26-intro { margin: 0 auto !important; max-width: 480px !important; background: rgba(255, 255, 255, .92); }
  html body.home-theme main.redesign-home .h26-buttons { max-width: none; margin: 0 auto; }

  /* ALIANÇAS */
  html body main .alliances-page-hero { display: flex !important; align-items: center; justify-content: center; }
  html body main .alliances-page-hero .alliances-hero-layout { display: flex !important; justify-content: center !important; width: 100% !important; margin: 0 auto !important; }
  html body main .alliances-page-hero .alliances-hero-content { margin: 0 auto !important; }

  /* OUTRAS ABERTURAS: quadro no centro */
  html body main .about-store-hero-inner, html body main .simple-page-hero, html body main .un-hero .un-shell { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center; text-align: center; }
  html body main .about-store-glass, html body main .simple-page-hero > *, html body main .un-hero-card { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
  html body main .blog-hero { text-align: center; }
  html body main .blog-hero > * { margin-left: auto !important; margin-right: auto !important; }
  html body main .blog-hero .blog-topics { justify-content: center; }
  html body main .lp-hero-copy { text-align: center; }
  html body main .lp-hero-copy > p { margin-left: auto; margin-right: auto; }
  html body main .breadcrumbs, html body main .about-trust, html body main .lp-trust, html body main .un-hero-card ul { justify-content: center !important; }
  html body main .about-store-glass p, html body main .un-hero-card p, html body main .simple-page-hero p { margin-left: auto !important; margin-right: auto !important; }

  /* BOTÕES SEMPRE CENTRALIZADOS */
  html body main .button-row, html body main .info-hero-actions, html body main .un-actions, html body main .lp-actions, html body main .lp-unit-actions,
  html body main .about-long-actions, html body main .location-actions, html body main .hero-actions { justify-content: center !important; align-items: center; }
  html body main .about-long, html body main .about-long > h2, html body main .about-long > p { margin-left: auto; margin-right: auto; }
  html body footer.site-footer .footer-cta { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center; text-align: center; }
  html body footer.site-footer .footer-cta .button-row { justify-content: center !important; }
}

/* sem faixa entre a barra do topo e a foto */
@media (min-width: 901px) {
  html body main .alliances-page-hero .alliances-hero-background { top: 40px !important; }
}

/* ===== Alianças no computador: foto nítida, no tamanho original (sem desfoque nem ampliação) ===== */
@media (min-width: 901px) {
  html body main .alliances-page-hero { position: relative; isolation: isolate; overflow: hidden; background: #8d7f72 !important; }
  html body main .alliances-page-hero::before { content: "" !important; display: block !important; position: absolute !important; inset: -40px !important; z-index: -3 !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: url("/aliancas-drive-textura.png") center / cover !important; filter: blur(30px); }
  html body main .alliances-page-hero::after { display: none !important; }
  html body main .alliances-page-hero .alliances-hero-background { position: absolute !important; z-index: -2 !important; top: 64px !important; bottom: 0 !important; right: auto !important; left: calc(50% - min(50%, 640px)) !important; width: min(100%, 1280px) !important; height: calc(100% - 64px) !important; transform: none !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  html body main .alliances-page-hero .alliances-hero-background img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 48% !important; filter: none !important; opacity: 1 !important; transform: none !important; scale: 1 !important; animation: none !important; }
}

/* ===== Compra de ouro no computador: uma foto só, nítida, e o quadro no centro ===== */
@media (min-width: 901px) {
  html body main .co-hero { min-height: max(620px, calc(100vh - 64px)); padding: 40px 24px; }
  html body main .co-hero .co-bg img { object-position: 50% 62%; }
  html body main .co-hero::after { background: linear-gradient(180deg, rgba(23, 12, 6, .22) 0%, rgba(23, 12, 6, .22) 90%, #ffffff 100%); }
}
