/* Recoma · Site v1 — molde da página de produto (.rcs-prod-*, .rcs-tipo*), por cima do CSS do blog (rcb-v1.css: tokens,
   header H1, proposta F1, rodapé R1) e do CSS da home (site.css: .rcs-destaque, logos, proposta sem número de passo).
   Regra M1: nenhum text-transform no conteúdo (a caixa do texto é a do ar).
   Largura: o ar troca as abas (computador) pela sanfona abaixo de 1025 px (tablet e celular do Elementor); aqui também.
   data-vis="desktop" some abaixo disso e data-vis="celular" some acima, como no ar. */

@media (max-width: 1024px) { [data-vis="desktop"] { display: none !important; } }
@media (min-width: 1025px) { [data-vis="celular"] { display: none !important; } }

/* ===== topo ===== */
.rcs-prod-hero { background: var(--rc-paper); padding: 56px 0 64px; }
.rcs-prod-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.rcb .rcs-prod-hero h1 { color: var(--rc-ink); font-size: 50px; line-height: 1.1; }
.rcs-prod-linha { margin: 14px 0 0 !important; font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--rc-red); }
.rcs-prod-sem-linha h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--rc-red); margin-top: 18px; }
.rcs-prod-linha::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--rc-red); margin-top: 18px; }
.rcs-prod-lead { margin: 22px 0 0 !important; font-size: 17px; line-height: 1.75; color: var(--rc-text); max-width: 620px; }
.rcb .rcs-prod-hero-foto { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--rc-navy-900); box-shadow: 0 18px 40px rgba(12, 47, 79, .18); }
.rcs-prod-hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.rcs-prod-hero-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rc-red); }

/* ===== tipos: cartões (abas) no computador ===== */
.rcs-tipos { padding: 64px 0 80px; background: #fff; scroll-margin-top: calc(var(--rcb-barra-h, 0px) + var(--rcb-topo-h, 116px)); }
.rcs-abas { display: grid; grid-template-columns: repeat(var(--n-abas, 5), minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.rcs-aba { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--rc-line); border-radius: 14px; background: #fff; color: var(--rc-ink); font: inherit; cursor: pointer; overflow: hidden; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rcs-aba:hover { border-color: var(--rc-navy); box-shadow: 0 10px 24px rgba(12, 47, 79, .12); transform: translateY(-2px); }
.rcs-aba:focus-visible { outline: 3px solid var(--rc-red); outline-offset: 2px; }
.rcs-aba-foto { display: block; aspect-ratio: 16 / 9; background: var(--rc-tint); overflow: hidden; }
.rcs-aba-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rcs-aba:hover .rcs-aba-foto img { transform: scale(1.04); }
.rcs-aba-t { display: block; white-space: normal; overflow-wrap: break-word; padding: 14px 16px 16px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.rcs-aba[aria-selected="true"] { border-color: var(--rc-navy); background: var(--rc-navy); color: #fff; box-shadow: 0 12px 28px rgba(12, 47, 79, .22); }
.rcs-aba[aria-selected="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--rc-red); }

/* ===== um tipo ===== */
.rcs-tipo + .rcs-tipo { margin-top: 0; }
.rcs-tipo-corpo { background: var(--rc-paper); border-radius: 18px; padding: 44px 44px 40px; }
.rcs-tipo-corpo[hidden] { display: none; }
.rcs-tipo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.rcb .rcs-tipo-texto h2 { color: var(--rc-ink); font-size: 32px; line-height: 1.2; }
.rcb .rcs-tipo-texto h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--rc-red); margin-top: 16px; }
.rcs-tipo-prosa { margin-top: 24px; max-width: 680px; }
.rcs-tipo-prosa p { margin: 0 0 16px !important; font-size: 16.5px; line-height: 1.75; color: var(--rc-text); }
.rcb .rcs-tipo-prosa h3 { margin: 30px 0 10px; font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: .05em; color: var(--rc-navy); display: flex; align-items: center; gap: 10px; }
.rcb .rcs-tipo-prosa h3::before { content: ""; flex: none; width: 18px; height: 3px; border-radius: 3px; background: var(--rc-red); }
.rcs-tipo-prosa em { font-style: italic; }
.rcs-tipo-prosa strong { font-weight: 600; color: var(--rc-ink); }
.rcs-tipo-extra { margin-top: 24px; padding: 18px 20px; background: #fff; border-left: 4px solid var(--rc-navy); border-radius: 0 12px 12px 0; }
.rcs-tipo-extra .rcs-tipo-prosa { margin-top: 0; }
.rcs-tipo-extra .rcs-tipo-prosa p:last-child { margin-bottom: 0 !important; }

/* coluna da direita: as fotos de obra do ar, uma embaixo da outra, e os pictogramas */
.rcs-tipo-lado { display: flex; flex-direction: column; gap: 20px; }
.rcs-tipo-galeria { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rcb .rcs-tipo-galeria figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--rc-tint); aspect-ratio: 4 / 3; box-shadow: 0 8px 22px rgba(12, 47, 79, .12); }
.rcs-tipo-galeria img { width: 100%; height: 100%; object-fit: cover; }
/* 4 ou mais fotos (o ar tem de 2 a 5 por tipo): duas colunas; com número ímpar, a primeira ocupa a fileira toda */
.rcs-tipo-galeria:is([data-n="4"], [data-n="5"], [data-n="6"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcs-tipo-galeria[data-n="5"] figure:first-child { grid-column: 1 / -1; }

/* pictogramas do ar (indoor, piso fixo, modalidades): imagens com o texto dentro, no tamanho de selo */
.rcs-pictos { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px !important; background: #fff; border-radius: 14px; }
.rcs-pictos li { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(12, 47, 79, .12); }
.rcs-pictos img { width: 52px; height: 52px; object-fit: contain; }

/* "Já figuramos como piso oficial." + marcas */
.rcs-selo { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; padding: 28px 32px; background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(12, 47, 79, .07); }
.rcb .rcs-selo h3 { font-size: 30px; line-height: 1.2; font-weight: 500; color: var(--rc-navy); }
.rcs-selo ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.rcs-selo li { width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid var(--rc-line); border-radius: 12px; padding: 10px; }
.rcs-selo img { max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; }

/* ===== sanfona no celular e no tablet (como no ar) ===== */
.rcs-tipo-cab button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; background: #fff; border: 1px solid var(--rc-line); border-radius: 14px; color: var(--rc-ink); font: inherit; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; }
.rcs-tipo-cab button > span:nth-child(2) { flex: 1; min-width: 0; white-space: normal; }
.rcs-tipo-cab .rcs-aba-foto { flex: none; width: 64px; height: 52px; aspect-ratio: auto; border-radius: 10px; }
.rcs-tipo-cab .seta { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--rc-paper); color: var(--rc-navy); display: grid; place-items: center; font-size: 18px; transition: transform .2s, background .2s; }
.rcs-tipo-cab button[aria-expanded="true"] { background: var(--rc-navy); border-color: var(--rc-navy); color: #fff; border-radius: 14px 14px 0 0; }
.rcs-tipo-cab button[aria-expanded="true"] .seta { transform: rotate(180deg); background: var(--rc-red); color: #fff; }

@media (max-width: 1024px) {
  .rcs-prod-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rcb .rcs-prod-hero-foto { aspect-ratio: 16 / 9; }
  .rcs-tipos { padding: 40px 0 56px; }
  .rcs-tipo { margin-bottom: 12px; }
  .rcs-tipo-corpo { border-radius: 0 0 14px 14px; padding: 28px 24px; border: 1px solid var(--rc-line); border-top: 0; }
  /* uma coluna: título, fotos, texto, pictogramas (as fotos sobem para logo depois do título) */
  .rcs-tipo-grid { display: flex; flex-direction: column; gap: 0; }
  .rcs-tipo-texto, .rcs-tipo-lado { display: contents; }
  .rcs-tipo-texto > * { order: 3; }
  .rcs-tipo-texto > .rcs-tipo-h { order: 1; }
  .rcs-tipo-galeria, .rcs-tipo-galeria:is([data-n="4"], [data-n="5"], [data-n="6"]) { order: 2; margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rcs-tipo-galeria:is([data-n="2"], [data-n="4"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcs-tipo-galeria[data-n="1"] { grid-template-columns: 1fr; }
  .rcs-tipo-galeria[data-n="5"] figure:first-child { grid-column: auto; }
  .rcs-pictos { order: 4; margin-top: 24px !important; }
}
@media (max-width: 767px) {
  .rcs-prod-hero { padding: 32px 0 40px; }
  .rcb .rcs-prod-hero h1 { font-size: 34px; }
  .rcs-prod-lead { font-size: 16px; }
  .rcs-tipo-corpo { padding: 22px 16px 24px; }
  .rcb .rcs-tipo-texto h2 { font-size: 24px; }
  .rcs-tipo-prosa p { font-size: 16px; line-height: 1.7; }
  .rcb .rcs-tipo-prosa h3 { font-size: 14px; }
  .rcs-tipo-galeria { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .rcs-tipo-galeria::-webkit-scrollbar { display: none; }
  .rcb .rcs-tipo-galeria figure { flex: 0 0 82%; scroll-snap-align: start; aspect-ratio: 4 / 3; box-shadow: none; }
  .rcs-pictos { gap: 8px; }
  .rcs-pictos li { width: 50px; height: 50px; }
  .rcs-pictos img { width: 44px; height: 44px; }
  .rcs-tipo-cab button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rcs-aba, .rcs-aba-foto img, .rcs-tipo-cab .seta { transition: none; }
  .rcs-aba:hover, .rcs-aba:hover .rcs-aba-foto img { transform: none; }
}
