/* Altora — identidade extraída dos prints: verde-mata, cal, areia, grafite; serifada pesada + Wix Madefor. */
:root {
  --mata: #2B4A3D; --folha: #2F7D52; --tinta: #17231D; --cal: #FBFAF6; --pedra: #F0EFEA;
  --areia: #C8A27C; --areia-esc: #94683F; --grafite: #252927; --fio: rgba(23, 35, 29, .16);
  --g: clamp(20px, 5vw, 56px);
  --serif: "Literata", Georgia, serif; --sans: "Wix Madefor Text", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* a cumeeira da marca: mesma inclinação do telhado do logo */
  --cumeeira: polygon(0 22%, 62% 0, 100% 14%, 100% 100%, 0 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cal); color: var(--tinta); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
h1, h2, h3, .card strong { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
:focus-visible { outline: 2px solid var(--folha); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 2 * var(--g)); margin-inline: auto; }
.bloco { padding-block: clamp(64px, 9vw, 128px); }
.rotulo { display: block; font: 600 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--areia-esc); }
.pular { position: absolute; left: -999px; } .pular:focus { left: 16px; top: 16px; z-index: 99; background: var(--cal); padding: 8px 14px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 1em 1.9em; border-radius: 999px; border: 1px solid transparent; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn-mata { background: var(--mata); color: var(--cal); } .btn-mata:hover { background: var(--tinta); }
.btn-linha { border-color: currentColor; background: none; color: inherit; } .btn-linha:hover { background: var(--tinta); border-color: var(--tinta); color: var(--cal); }
.btn-cal { background: var(--cal); color: var(--tinta); } .btn-cal:hover { background: var(--areia); }
.seta { width: 1.1em; height: 1.1em; flex: none; transition: translate .3s var(--ease); }
a:hover > .seta, .btn:hover > .seta { translate: 4px 0; }

/* ---------- cabeçalho ---------- */
.topo { position: fixed; inset: 14px var(--g) auto; z-index: 50; view-transition-name: topo; }
.topo-in { max-width: 1200px; margin: auto; display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 24px; border-radius: 999px; background: rgba(240, 239, 234, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .3s; }
.rolou .topo-in { box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .4); }
.marca { display: inline-flex; align-items: center; gap: 6px; font: 800 1.55rem/1 var(--serif); letter-spacing: -.03em; text-decoration: none; }
.marca svg { width: 30px; height: 30px; }
.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a { padding: .65em 1.1em; border-radius: 999px; font-size: .95rem; text-decoration: none; transition: background .2s; }
.menu a:hover { background: rgba(43, 74, 61, .1); }
.menu a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.topo-cta { padding: .8em 1.5em; font-size: .95rem; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--cal); background: radial-gradient(120% 90% at 0% 45%, #4a504d 0%, var(--grafite) 55%, #191c1a 100%); }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 64px); align-items: end; min-height: clamp(640px, 100svh, 900px); padding-block: 150px 130px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw + .6rem, 4.9rem); font-weight: 800; line-height: .98; }
.linha { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.linha > span { display: block; animation: sobe 1s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 150ms); }
.hero p { max-width: 34ch; margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgba(251, 250, 246, .82); }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero p, .hero-acoes { animation: surge 1s .6s var(--ease) both; }
.hero-in > * { min-width: 0; }
.portal { align-self: stretch; min-height: 380px; clip-path: var(--cumeeira); animation: abre 1.3s .25s var(--ease) both; }
.portal img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; animation: recua 2.2s .25s var(--ease) both; }
@keyframes sobe { from { translate: 0 110%; } }
@keyframes surge { from { opacity: 0; translate: 0 16px; } }
@keyframes abre { from { clip-path: polygon(0 100%, 62% 100%, 100% 100%, 100% 100%, 0 100%); } }
@keyframes recua { from { scale: 1.25; } }
@supports (animation-timeline: scroll()) {
  .portal img { animation: recua 2.2s .25s var(--ease) both, desliza linear both; animation-timeline: auto, scroll(); animation-range: normal, 0 100vh; }
  @keyframes desliza { to { translate: 0 12%; } }
}

/* ---------- busca ---------- */
.busca { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; margin-top: -52px; padding: 14px 14px 14px 12px; border-radius: 999px; background: var(--cal); box-shadow: 0 24px 60px -28px rgba(23, 35, 29, .45); }
.busca label, .filtros label { display: block; padding: 6px 24px; border-left: 1px solid var(--fio); }
.busca label:first-child, .filtros label:first-child { border-left: 0; }
.busca label span, .filtros label span { display: block; font: 700 .72rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tinta); }
select { width: 100%; padding: 4px 22px 4px 0; border: 0; border-radius: 4px; font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2317231D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center / 11px; }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.card-foto, .ficha-foto { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--pedra); }
.card-foto { aspect-ratio: 4 / 3; margin-bottom: 10px; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.card:hover .card-foto img { scale: 1.06; }
.card-foto em, .ficha-foto em { position: absolute; top: 14px; left: 14px; padding: .35em 1em; border-radius: 999px; background: var(--cal); font: 600 .78rem/1.4 var(--sans); }
.card strong { font-size: 1.35rem; line-height: 1.15; }
.medidas { font-size: .92rem; color: rgba(23, 35, 29, .7); }
.preco { font: 700 1.25rem/1.3 var(--serif); color: var(--mata); }
.preco small { font: 400 .85rem var(--sans); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 28px; }

/* ---------- home: destaques ---------- */
.cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.cabeca p { max-width: 46ch; margin-top: 12px; }
.cabeca-acoes { display: flex; gap: 10px; align-items: center; }
.rolar { width: 52px; height: 52px; padding: 0; }
.rolar:first-child .seta { rotate: 180deg; }
.trilho { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--g), (100vw - 1200px) / 2); scroll-padding-inline: max(var(--g), (100vw - 1200px) / 2); }
.trilho::-webkit-scrollbar { display: none; }
.trilho .card { flex: 0 0 clamp(270px, 29vw, 380px); scroll-snap-align: start; }

/* ---------- home: cidades ---------- */
.fundo-pedra { background: var(--pedra); }
.cidades { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--fio); }
.cidades a { display: flex; align-items: baseline; gap: 20px; padding: clamp(14px, 2vw, 24px) 0; border-bottom: 1px solid var(--fio); text-decoration: none; transition: padding .5s var(--ease), color .3s, opacity .9s var(--ease), translate .9s var(--ease); }
.cidades b { font: 700 clamp(1.7rem, 4.4vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.02em; }
.cidades span { margin-left: auto; color: rgba(23, 35, 29, .65); }
.cidades .seta { width: 1.6rem; height: 1.6rem; align-self: center; }
.cidades a:hover { padding-left: 20px; color: var(--mata); }

/* ---------- home: serviços e sobre ---------- */
.servicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--fio); }
.servicos li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--tinta); border-radius: 24px; transition: background .4s, color .4s, opacity .9s var(--ease), translate .9s var(--ease); }
.servicos svg { width: 40px; height: 40px; margin-bottom: 20px; fill: none; stroke: var(--folha); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.servicos h3 { font-size: 1.4rem; }
.servicos a { margin-top: auto; padding-top: 16px; font-size: .92rem; text-underline-offset: 4px; }
.servicos li:hover { background: var(--mata); color: var(--cal); }
.servicos li:hover svg { stroke: var(--areia); }
.sobre { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sobre .rotulo::after { content: ""; display: block; width: 60px; margin-block: 22px; border-top: 1px solid var(--tinta); }
.sobre p { max-width: 44ch; margin-block: 22px 30px; }
.sobre figure { clip-path: var(--cumeeira); aspect-ratio: 4 / 5; }
.sobre img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- chamada e rodapé ---------- */
.chamada { background: var(--mata); color: var(--cal); text-align: center; }
.chamada h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; }
.chamada p { max-width: 44ch; margin: 20px auto 34px; color: rgba(251, 250, 246, .82); }
.rodape { background: var(--tinta); color: rgba(251, 250, 246, .78); padding-block: 72px 28px; font-size: .95rem; }
.rodape-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.rodape-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rodape .marca { color: var(--cal); } .rodape p { max-width: 32ch; }
.rodape .rotulo { color: var(--areia); margin-bottom: 6px; }
.rodape-grid a:not(.marca) { text-decoration: none; } .rodape-grid a:not(.marca):hover { color: var(--cal); text-decoration: underline; }
.rodape .rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: none; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(251, 250, 246, .16); font-size: .85rem; }

/* ---------- páginas internas ---------- */
.interna { padding-top: clamp(120px, 14vw, 170px); }
.titulo-pagina { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
.titulo-pagina + p { max-width: 50ch; margin-top: 16px; font-size: 1.1rem; }
.filtros { position: sticky; top: 84px; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; margin-block: clamp(28px, 4vw, 48px) 22px; padding: 12px 12px 12px 8px; border: 1px solid var(--fio); border-radius: 999px; background: var(--cal); view-transition-name: filtros; }
#contagem { margin-bottom: 28px; font-weight: 600; }
.vazio { grid-column: 1 / -1; padding-block: 60px; text-align: center; font-size: 1.15rem; }
.vazio .btn { margin-top: 20px; } .vazio h1 { margin-bottom: 12px; font-size: 2.4rem; }

.voltar { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; text-decoration: none; font-size: .95rem; }
.voltar .seta { rotate: 180deg; } .voltar:hover .seta { translate: -4px 0; }
.ficha-foto { aspect-ratio: 16 / 8; border-radius: 28px; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; view-transition-name: foto; }
.miniaturas { display: flex; gap: 10px; margin-top: 12px; }
.miniaturas button { width: 96px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; opacity: .6; transition: opacity .3s; }
.miniaturas button:hover, .miniaturas [aria-current] { opacity: 1; } .miniaturas [aria-current] { border-color: var(--mata); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.ficha-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 6vw, 88px); align-items: start; margin-top: clamp(32px, 5vw, 56px); }
.ficha-grid h1 { margin-top: 12px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
.ficha-medidas { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-block: 30px; padding-block: 22px; border-block: 1px solid var(--fio); }
.ficha-medidas b { display: block; font: 700 1.9rem/1.1 var(--serif); }
.ficha-desc { max-width: 58ch; font-size: 1.1rem; }
.ficha-lado { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--tinta); border-radius: 24px; }
.ficha-lado .preco { margin-bottom: 10px; font-size: 2.1rem; }

.duas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cartao { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--tinta); border-radius: 28px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label, .form fieldset { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; font-weight: 600; font-size: .92rem; }
.form .larga { grid-column: 1 / -1; }
.form input:not([type=radio]), .form textarea, .form select { width: 100%; padding: .85em 1em; border: 1px solid var(--fio); border-radius: 12px; background-color: #fff; font: 400 1rem var(--sans); color: inherit; }
.form select { background-position: right 14px center; padding-right: 36px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--folha); outline-offset: 0; border-color: transparent; }
.form legend { padding: 0; margin-bottom: 6px; }
.periodos { display: flex; gap: 8px; }
.periodos label { flex: 1; flex-direction: row; justify-content: center; padding: .85em; border: 1px solid var(--fio); border-radius: 12px; background: #fff; font-weight: 400; font-size: 1rem; cursor: pointer; }
.periodos input { position: absolute; opacity: 0; }
.periodos label:has(:checked) { background: var(--mata); border-color: var(--mata); color: var(--cal); }
.periodos label:has(:focus-visible) { outline: 2px solid var(--folha); outline-offset: 2px; }
#agenda-ok { grid-column: 1 / -1; padding: 16px 20px; border-radius: 12px; background: var(--pedra); }
.dados { display: grid; gap: 22px; margin-top: 28px; }
.dados a, .dados p { display: block; font-size: 1.15rem; text-decoration: none; } .dados a:hover { text-decoration: underline; }

/* ---------- movimento ---------- */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; translate: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .5s var(--ease) both vt-sai; }
::view-transition-new(root) { animation: .65s var(--ease) both vt-entra; }
::view-transition-group(foto) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-group(topo), ::view-transition-group(filtros) { z-index: 10; }
@keyframes vt-sai { to { opacity: .4; translate: 0 -24px; } }
@keyframes vt-entra { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .topo-in { padding-left: 20px; }
  .topo-cta { display: none; }
  .menu-btn { display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: var(--mata); cursor: pointer; }
  .menu-btn i { display: block; width: 18px; border-top: 2px solid var(--cal); transition: rotate .3s, translate .3s; }
  .aberto .menu-btn i:first-child { translate: 0 4px; rotate: 45deg; } .aberto .menu-btn i:last-child { translate: 0 -4px; rotate: -45deg; }
  .menu { position: absolute; inset: calc(100% + 8px) 0 auto; flex-direction: column; padding: 12px; border-radius: 24px; background: var(--pedra); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity .25s, translate .25s, visibility .25s; }
  .aberto .menu { visibility: visible; opacity: 1; translate: none; }
  .menu a { padding: .9em 1.1em; font-size: 1.05rem; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-block: 130px 100px; }
  .portal { height: min(46svh, 440px); min-height: 300px; }
  .busca, .filtros { grid-template-columns: 1fr 1fr; gap: 6px 0; border-radius: 28px; padding: 14px; }
  .busca label, .filtros label { padding: 8px 14px; }
  .busca label:nth-of-type(odd), .filtros label:nth-of-type(odd) { border-left: 0; }
  .busca .btn, .filtros .btn { grid-column: 1 / -1; margin-top: 6px; }
  .filtros { position: static; }
  .sobre, .duas, .ficha-grid { grid-template-columns: 1fr; }
  .sobre figure { aspect-ratio: 4 / 3; }
  .ficha-foto { aspect-ratio: 4 / 3; border-radius: 20px; }
  .ficha-lado { position: static; }
  .rodape-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
  .rodape-grid { grid-template-columns: 1fr; }
  .cabeca-acoes .rolar { display: none; }
}

/* ---------- select próprio (select.js): o mesmo componente no site e no painel ---------- */
.sel { position: relative; }
.sel select { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { display: block; width: 100%; padding: 4px 22px 4px 0; border: 0; border-radius: 4px; font: inherit; color: inherit; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2317231D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center / 11px; }
.form .sel-btn, .painel-form .sel-btn { padding: .85em 36px .85em 1em; border: 1px solid var(--fio); border-radius: 12px; background-color: #fff; background-position: right 14px center; font: 400 1rem/1.2 var(--sans); }
.painel-form .sel-btn { padding-block: .7em; line-height: 1.5; }
.form .sel-btn:focus-visible, .painel-form .sel-btn:focus-visible { outline: 2px solid var(--folha); outline-offset: 0; }
.sel-lista { display: none; position: absolute; z-index: 20; top: calc(100% + 10px); left: -14px; min-width: calc(100% + 28px); max-height: 290px; overflow-y: auto; padding: 6px; border: 1px solid var(--fio); border-radius: 16px; background: var(--cal); box-shadow: 0 24px 60px -28px rgba(23, 35, 29, .45); }
.form .sel-lista, .painel-form .sel-lista { top: calc(100% + 6px); left: 0; min-width: 100%; }
.sel-aberto .sel-lista { display: block; }
.sel-lista [role=option] { padding: .6em .9em; border-radius: 10px; font: 400 1rem/1.3 var(--sans); white-space: nowrap; cursor: pointer; }
.sel-lista .sel-ativo, .sel-lista [role=option]:hover { background: var(--pedra); }
.sel-lista [aria-selected=true] { font-weight: 600; color: var(--mata); }
