/* Ateliê Lydia — folha única.
   Cores e fontes vêm do logo (identidade/logo-atelie-lydia.svg): creme, rosa antigo,
   verde sálvia, Cormorant Garamond + Great Vibes. Nada da BITOTECH entra aqui. */

/* Fontes do próprio site (fonts/; licenças em fonts/OFL-*.txt). Arquivos variáveis: um
   arquivo cobre os pesos que o site usa. Só o subconjunto latino (português cabe nele). */
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-italico.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("fonts/great-vibes.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --creme: #FDF8F1;
  --creme-2: #F5EBE2;
  --rosa: #C7918E;
  --rosa-escuro: #A8706C;
  --rosa-claro: #EBD3CF;
  --verde: #8B987E;
  --verde-escuro: #66705E;
  --terra: #3B322D;        /* madeira escura das fotos: seções escuras e véus */
  --tinta: #3F3834;
  --tinta-suave: #6E655F;

  --fonte: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
  --fonte-logo: "Cormorant Garamond", Georgia, serif; /* só logo e monograma */
  --fonte-nome: "Great Vibes", "Brush Script MT", cursive;

  --largura: 1240px;
  --lateral: clamp(20px, 5vw, 64px);
  --topo-altura: 74px;
  --btn-alto: 48px;         /* todos os botões e filtros têm esta altura */

  --suave: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* .btn e outros com display próprio não ganham do hidden */
picture { display: contents; }           /* a <img> de dentro continua sendo o que o CSS enxerga */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topo-altura);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 1.14rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Grão de papel sobre a página inteira, quase invisível */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--rosa-escuro); outline-offset: 4px; border-radius: 3px; }

.wrap { width: min(100% - 2 * var(--lateral), var(--largura)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pular {
  position: absolute; left: 16px; top: -100px; z-index: 60;
  padding: 10px 18px; border-radius: 999px;
  background: var(--verde-escuro); color: var(--creme); font-weight: 600; text-decoration: none;
}
.pular:focus-visible { top: 12px; }

/* Trama de linho nas áreas creme */
.linho {
  background-color: var(--creme);
  background-image:
    repeating-linear-gradient(0deg, rgba(102, 112, 94, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(102, 112, 94, 0.05) 0 1px, transparent 1px 3px);
}

/* ---------- Tipografia ---------- */

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
p { margin: 0; max-width: 58ch; text-wrap: pretty; }
p + p { margin-top: 0.8em; }
em { font-style: italic; }

.assinatura {
  font-family: var(--fonte-nome);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--rosa);
}

/* ---------- Botões pílula ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--btn-alto); padding: 0 1.55em;
  border-radius: 999px; border: 1.5px solid currentColor;
  background: transparent; color: var(--creme);
  font-size: 1.1rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.3s var(--suave), color 0.3s var(--suave), transform 0.3s var(--suave);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn.cheio { background: var(--creme); color: var(--terra); border-color: var(--creme); }
.btn.cheio:hover, .btn.cheio:focus-visible { background: #fff; }
.btn.escuro { background: var(--verde-escuro); color: var(--creme); border-color: var(--verde-escuro); }
.btn.escuro:hover, .btn.escuro:focus-visible { background: #55604D; border-color: #55604D; }
.btn.contorno { color: var(--verde-escuro); }
.btn.contorno:hover, .btn.contorno:focus-visible { background: var(--verde-escuro); color: var(--creme); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn.icone { width: var(--btn-alto); padding: 0; }

/* Monograma inline (identidade/monograma-atelie-lydia.svg): mesmas classes do arquivo */
.sprite { position: absolute; }
.mono-l { font-family: var(--fonte-nome); font-size: 330px; fill: #C7918E; stroke: #C7918E; stroke-width: 8px; paint-order: stroke; }

/* ---------- Topo ---------- */

.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--creme);
  transition: background-color 0.4s var(--suave), color 0.4s var(--suave), translate 0.45s var(--suave);
}
.topo { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topo-altura); }
.topo.solido {
  background: color-mix(in srgb, var(--creme) 76%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--tinta);
}
/* rolando pra baixo, o topo sai de cena; com foco de teclado dentro, fica */
.topo.recolhido:not(:focus-within) { translate: 0 -100%; }
@media (prefers-reduced-motion: reduce) { .topo { transition: none; } }

.topo-marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.topo-marca svg { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18)); }
.topo-marca span { font-size: 1.35rem; font-weight: 500; letter-spacing: 0.02em; }

.topo nav { display: flex; align-items: center; gap: 10px; }
.topo nav .btn.icone { width: 44px; min-height: 44px; }
.topo.solido nav .btn { color: var(--verde-escuro); }
.topo.solido nav .btn:hover, .topo.solido nav .btn:focus-visible { background: var(--verde-escuro); color: var(--creme); }

@media (max-width: 640px) {
  .topo-marca { gap: 10px; }
  .topo-marca svg { width: 42px; height: 42px; }
  .topo-marca span { font-size: 1.18rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--creme);
  isolation: isolate;
}
.hero-foto {
  position: absolute; inset: 0; z-index: -2;
}
.hero-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%;
  transform-origin: 50% 60%;
}
/* Véu: escurece pra baixo e pra esquerda, onde o texto senta. A foto é a toalha de rosas
   coloridas, cheia de detalhe: o véu é mais forte onde tem texto, e a direita fica viva. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(40, 32, 28, 0.42) 0%, rgba(40, 32, 28, 0) 22%, rgba(40, 32, 28, 0) 38%, rgba(40, 32, 28, 0.74) 100%),
    linear-gradient(90deg, rgba(40, 32, 28, 0.7) 0%, rgba(40, 32, 28, 0.4) 40%, rgba(40, 32, 28, 0) 68%);
}

.hero .wrap {
  position: relative;
  padding-top: calc(var(--topo-altura) + 28px);
  padding-bottom: clamp(40px, 7vh, 72px);
  display: grid;
  gap: clamp(28px, 5vh, 52px);
}

/* A etiqueta: o logo como está, costurado sobre a foto. A etiqueta entra e fica torta;
   o pano dentro dela é o que inclina e enruga quando o mouse encosta. */
.etiqueta {
  justify-self: start;
  width: min(100%, 580px);
  position: relative;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(30, 22, 18, 0.28);
}
.pano {
  position: relative;
  padding: clamp(14px, 2.4vw, 24px) clamp(22px, 3.4vw, 36px);
  border-radius: 14px;
  background: var(--creme);
  transition: transform 0.7s var(--suave);
}
/* Parada, a etiqueta não tem transform nenhum: com rotação ou 3D o navegador desenha o
   texto como imagem e ele fica borrado. Só inclina e enruga enquanto é tocada. */
.pano.tocando {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: url(#pano);
  transition-duration: 0.25s;
}
/* borda de pesponto por dentro */
.pano::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 2;
  border: 1.5px dashed var(--rosa-claro); border-radius: 9px;
}
/* as duas costuras das pontas, atravessando a etiqueta até a foto */
.pano::after {
  content: ""; position: absolute; top: -9px; bottom: -9px; left: 15px; right: 15px; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(180deg, var(--rosa-escuro) 0 8px, transparent 8px 14px) left top / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--rosa-escuro) 0 8px, transparent 8px 14px) right top / 2px 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(30, 22, 18, 0.35));
}
.pano svg { width: 100%; height: auto; display: block; position: relative; }
/* o afundado onde o dedo encosta */
.pano-luz {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 0.5s var(--suave);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(168, 112, 108, 0.12) 0, rgba(168, 112, 108, 0.05) 9%, rgba(168, 112, 108, 0) 22%);
  mix-blend-mode: multiply;
}
.pano.tocando .pano-luz { opacity: 1; }

/* O logo inline: mesmas classes e medidas do arquivo em identidade/ */
.logo .atelier { font-family: var(--fonte-logo); font-size: 62px; letter-spacing: 17px; fill: #5C6654; font-weight: 600; }
.logo .lydia { font-family: var(--fonte-nome); font-size: 300px; fill: #C7918E; }
.logo .tagline { font-family: var(--fonte-logo); font-size: 42px; letter-spacing: 7px; fill: #5C6654; font-weight: 600; transform: translateY(10px); }

/* O logo se mexe: o fio se desenha, a flor abre, as folhas brotam; no toque, a flor gira */
.logo-flor, .logo-folhas { transform-box: fill-box; transform-origin: 40% 60%; transition: transform 1.4s var(--suave); }
@media (prefers-reduced-motion: no-preference) {
  .logo-fio { stroke-dasharray: 100; animation: desenharFio 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.8s backwards; }
  @keyframes desenharFio { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .logo-flor { animation: florir 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 2s backwards; }
  @keyframes florir { from { opacity: 0; transform: scale(0.2) rotate(-80deg); } }
  .logo-folhas { animation: brotar 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 2.35s backwards; }
  @keyframes brotar { from { opacity: 0; transform: scale(0.4) rotate(-30deg); } }
  .pano.tocando .logo-flor { transform: rotate(28deg); }
  .pano.tocando .logo-folhas { transform: rotate(10deg); }
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(30, 22, 18, 0.35), 0 2px 24px rgba(30, 22, 18, 0.45);
}
.hero h1 span { display: block; }
@media (min-width: 480px) { .hero h1 span { white-space: nowrap; } }
.hero .lead {
  margin-top: 22px;
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  font-weight: 400;
  max-width: 34ch;
  text-shadow: 0 1px 2px rgba(30, 22, 18, 0.6), 0 1px 14px rgba(30, 22, 18, 0.55);
}
.hero .acoes { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
/* 320 px: "Encomendar pelo WhatsApp" numa linha só dentro da pílula */
@media (max-width: 380px) { .hero .acoes .btn { padding-inline: 1.05em; font-size: 1.02rem; } }

/* Entrada: uma sequência só, no carregamento */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto img { animation: assentar 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes assentar { from { transform: scale(1.07); } to { transform: none; } }

  .etiqueta, .hero h1 span, .hero .lead, .hero .acoes {
    opacity: 0; transform: translateY(22px);
    animation: subir 1.1s var(--suave) forwards;
  }
  .etiqueta { animation-delay: 0.15s; }
  .hero h1 span:nth-child(1) { animation-delay: 0.45s; }
  .hero h1 span:nth-child(2) { animation-delay: 0.6s; }
  .hero .lead { animation-delay: 0.8s; }
  .hero .acoes { animation-delay: 0.95s; }
  @keyframes subir { to { opacity: 1; transform: none; } }
}

/* ---------- Manifesto ---------- */

.manifesto { padding-block: clamp(72px, 12vh, 130px); text-align: center; }
.manifesto .wrap { display: grid; justify-items: center; gap: 22px; }
.manifesto h2 {
  font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  color: var(--rosa-escuro);
  max-width: 16ch;
}
.manifesto p { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 44ch; color: var(--tinta-suave); }
@media (max-width: 600px) {
  .manifesto { padding-block: 64px 56px; }
  .manifesto h2 { font-size: 2.6rem; max-width: none; }
  .manifesto p { font-size: 1.24rem; }
  .filtros { justify-content: center; }
}
.pesponto {
  width: 88px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--rosa) 0 8px, transparent 8px 15px);
}

/* ---------- Galeria ---------- */

.trabalho { padding-block: clamp(20px, 4vh, 40px) clamp(80px, 12vh, 140px); }
.trabalho-cabeca {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 18px 40px; margin-bottom: clamp(28px, 4vh, 44px);
}
.trabalho-cabeca h2 { max-width: 12ch; }
.trabalho-cabeca p { font-size: 1.1rem; color: var(--tinta-suave); max-width: 36ch; }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 4vh, 36px); }
.filtros button {
  min-height: var(--btn-alto); padding: 0 1.35em; border-radius: 999px;
  border: 1.5px solid rgba(102, 112, 94, 0.35); background: transparent; color: var(--verde-escuro);
  font-size: 1.1rem; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color 0.3s var(--suave), border-color 0.3s var(--suave), color 0.3s var(--suave);
}
.filtros button:hover { border-color: var(--verde-escuro); }
.filtros button[aria-pressed="true"] { background: var(--verde-escuro); border-color: var(--verde-escuro); color: var(--creme); }

.masonry { --vao: clamp(14px, 2vw, 24px); --cols: 3; columns: var(--cols); column-gap: var(--vao); }
@media (max-width: 960px) { .masonry { --cols: 2; } }

/* Com JS: grade de linhas de 4px, cada peça ocupa quantas linhas a altura dela pede.
   A ordem do HTML vira a ordem visual (esquerda pra direita), e as colunas fecham juntas. */
.masonry.grade {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 4px;
  column-gap: var(--vao);
  align-items: start;
}
.masonry.grade .peca { margin: 0; }
/* Com filtro: linhas justificadas. Cada linha tem uma altura só e preenche a largura; a
   divisão em linhas é a de altura mais uniforme (o JS testa todas). Sem buraco de coluna curta. */
.masonry.linhas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--vao); columns: auto; }
.masonry.linhas .peca { flex: 0 0 auto; min-width: 0; margin: 0; }
.masonry.linhas .peca img { height: var(--alto, auto); object-fit: cover; }

/* Última foto de uma coluna mais curta: estica até a linha das outras (o JS decide).
   A foto cresce, a legenda (quando fica embaixo, no toque) continua embaixo. */
.masonry.grade .peca.esticada { align-self: stretch; margin-bottom: var(--vao); display: flex; flex-direction: column; }
.peca.esticada button { flex: 1 1 auto; min-height: 0; }
.peca.esticada .px { height: 100%; }
.peca.esticada img { height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .masonry.grade { grid-auto-flow: row dense; }
  .masonry.grade .peca.largo, .masonry.grade .peca.frase { grid-column: span 2; }
  /* o JS pareia: foto larga que deixaria uma órfã vira simples; órfã no fim ocupa tudo */
  .masonry.grade .peca.largo.par { grid-column: auto; }
  .masonry.grade .peca.sozinha { grid-column: span 2; }
}

.peca {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 24px);
  position: relative;
}
.peca[hidden] { display: none !important; }
/* a grade e a pausa têm display: grid, que ganharia do [hidden] (mesma armadilha das fotos esticadas) */
.masonry[hidden], .entremeio[hidden] { display: none !important; }

.peca button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 10px; overflow: hidden; position: relative;
  box-shadow: 0 10px 30px rgba(59, 50, 45, 0.08);
}
.peca .px { display: block; }
.com-parallax .peca .px { transform: translate3d(0, var(--py, 0%), 0) scale(1.1); will-change: transform; }
.peca img {
  width: 100%; height: auto; display: block;
  transition: transform 1.1s var(--suave);
}
.peca button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59, 50, 45, 0) 45%, rgba(59, 50, 45, 0.62) 100%);
  opacity: 0; transition: opacity 0.6s var(--suave);
}
.peca figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  color: var(--creme); pointer-events: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--suave), transform 0.6s var(--suave);
}
.peca figcaption strong { display: block; font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.peca figcaption span { font-size: 1.02rem; font-style: italic; opacity: 0.9; }

@media (hover: hover) {
  .peca button:hover img, .peca button:focus-visible img { transform: scale(1.045); }
  .peca button:hover::after, .peca button:focus-visible::after { opacity: 1; }
  .peca button:hover + figcaption, .peca button:focus-visible + figcaption,
  .peca:hover figcaption { opacity: 1; transform: none; }
}
/* Sem mouse não existe hover: a legenda fica embaixo da foto, sempre visível */
@media (hover: none) {
  .peca figcaption { position: static; opacity: 1; transform: none; color: var(--tinta); margin-top: 10px; }
  .peca figcaption strong { font-size: 1.1rem; }
  .peca figcaption span { color: var(--tinta-suave); font-size: 0.95rem; }
}

/* As frases entre as fotos */
.peca.frase {
  position: relative;
  padding: clamp(44px, 6vw, 76px) clamp(26px, 3vw, 40px) clamp(36px, 5vw, 60px);
  border-radius: 10px;
  background: var(--creme-2);
  text-align: center;
}
.peca.frase::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1.5px dashed var(--rosa); border-radius: 6px; opacity: 0.55;
}
.peca.frase p {
  font-style: italic; font-weight: 400; font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.12;
  color: var(--rosa-escuro); max-width: none;
}
.peca.frase .assinatura { display: block; margin-top: 18px; font-size: clamp(2.4rem, 3.4vw, 3.2rem);  color: var(--rosa-escuro); }

/* A pausa entre os dois blocos da galeria */
.entremeio {
  display: grid; justify-items: center; gap: 26px;
  padding: clamp(56px, 11vh, 120px) var(--lateral);
  text-align: center;
}
.entremeio p {
  font-style: italic; font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.8rem); line-height: 1;
  color: var(--rosa-escuro);
  max-width: 13ch;
}
.entremeio .pesponto { width: 140px; }


/* Revelação no rolar */
@media (prefers-reduced-motion: no-preference) {
  .revela { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--suave), transform 1s var(--suave); }
  .revela.visivel { opacity: 1; transform: none; }
}

/* ---------- Faixa de ponta a ponta com parallax ---------- */

.faixa {
  position: relative; min-height: 72vh; overflow: hidden;
  display: grid; place-items: center; color: var(--creme); text-align: center;
  isolation: isolate;
}
.faixa-foto { position: absolute; inset: -18% 0; z-index: -2; }
.faixa-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.faixa::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(40, 32, 28, 0.62), rgba(40, 32, 28, 0.3) 70%),
    rgba(40, 32, 28, 0.12);
}
.faixa .wrap { display: grid; justify-items: center; gap: 22px; padding-block: 80px; }
.faixa h2 { font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 14ch; text-shadow: 0 2px 24px rgba(30, 22, 18, 0.4); }
.faixa p { font-size: clamp(1.25rem, 2.1vw, 1.8rem); max-width: 30ch; text-wrap: balance; text-shadow: 0 1px 14px rgba(30, 22, 18, 0.5); }
@media (min-width: 700px) { .faixa p { max-width: none; white-space: nowrap; } }
.faixa .pesponto { background: repeating-linear-gradient(90deg, var(--creme) 0 8px, transparent 8px 15px); }

/* ---------- Do meu ateliê para você ---------- */

.conversa { padding-block: clamp(72px, 11vh, 140px); }
.conversa .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
/* a foto aparece inteira, na proporção dela: sem corte */
.conversa-foto { margin: 0; justify-self: end; }
.conversa-foto img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: min(86vh, 900px);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(59, 50, 45, 0.18);
}
.conversa-texto { max-width: 620px; }
.conversa-texto h2 { color: var(--rosa-escuro); font-size: clamp(2.8rem, 5vw, 4.9rem); }
.conversa-texto > p:not(.assinatura) { margin-top: 22px; font-size: clamp(1.25rem, 1.8vw, 1.55rem); max-width: 30ch; }
.conversa-texto .assinatura { margin-top: 18px; font-size: clamp(3.4rem, 5vw, 4.6rem); }

/* como funciona: três pontos numa etiqueta de pesponto */
.ficha {
  position: relative; list-style: none; margin: 30px 0 0; padding: 22px 24px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px;
  background: var(--creme-2); border-radius: 12px;
}
.ficha::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1.5px dashed var(--rosa); border-radius: 8px; opacity: 0.5;
}
.ficha li { position: relative; display: grid; gap: 4px; line-height: 1.3; }
.ficha strong { font-size: 1.14rem; font-weight: 600; color: var(--tinta); }
.ficha span { font-size: 1rem; color: var(--tinta-suave); }
.conversa-texto .acoes { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 860px) {
  .conversa .wrap { grid-template-columns: 1fr; gap: 40px; }
  .conversa-foto { justify-self: center; }
  .conversa-texto { justify-self: center; text-align: center; }
  .conversa-texto > p:not(.assinatura) { margin-inline: auto; }
  .conversa-texto .acoes { justify-content: center; }
}
@media (max-width: 600px) {
  .ficha { grid-template-columns: 1fr; text-align: center; padding: 22px 20px; }
}

/* ---------- Rodapé: uma faixa baixa ---------- */

.rodape { background: var(--terra); color: var(--creme); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.rodape .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.rodape-grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.rodape-marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.rodape-marca .monograma { width: 46px; height: 46px; flex: none; }
.rodape-marca span { display: grid; line-height: 1.15; }
.rodape-marca strong { font-size: 1.2rem; font-weight: 500; letter-spacing: 0.02em; }
.rodape-marca small { font-size: 0.98rem; color: rgba(253, 248, 241, 0.66); }
.rodape-redes { display: flex; gap: 10px; }
.rodape .btn.icone { color: var(--creme); border-color: rgba(253, 248, 241, 0.4); }
.rodape .btn.icone:hover, .rodape .btn.icone:focus-visible { background: var(--creme); color: var(--terra); border-color: var(--creme); }
.rodape-credito { font-size: 0.92rem; color: rgba(253, 248, 241, 0.7); }
.rodape-credito a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(253, 248, 241, 0.3); }
.rodape-credito a:hover { border-bottom-color: var(--rosa); }
.rodape-privacidade { display: inline-block; padding-block: 4px; }

@media (max-width: 600px) {
  .rodape { padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .rodape .wrap { gap: 8px 12px; }
  .rodape-grupo { flex-wrap: nowrap; gap: 12px; }
  .rodape-marca { gap: 10px; }
  .rodape-marca .monograma { width: 40px; height: 40px; }
  .rodape-marca strong { font-size: 1.08rem; }
  .rodape-marca small { font-size: 0.88rem; }
  .rodape-redes { gap: 6px; }
  .rodape .btn.icone { width: 42px; min-height: 42px; }
  .rodape-credito { margin-left: auto; text-align: right; font-size: 0.82rem; line-height: 1.25; }
  .rodape-privacidade { display: block; }
  .rodape-sep { display: none; }
}
/* três redes no rodapé: abaixo de 380px o ícone fica menor pra "Ateliê Lydia" não quebrar */
@media (max-width: 380px) {
  .rodape .btn.icone { width: 38px; min-height: 38px; }
  .rodape-redes { gap: 4px; }
}

/* ---------- WhatsApp que acompanha a tela ---------- */

.zap {
  position: fixed; z-index: 45;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  transition: opacity 0.45s var(--suave), translate 0.45s var(--suave);
}
.zap.oculto { opacity: 0; translate: 0 18px; pointer-events: none; }
.zap:focus-visible { outline: none; }
.zap:focus-visible .zap-botao { outline: 2px solid var(--rosa-escuro); outline-offset: 4px; }

/* o botão é um retalho de tricô: pontos em V e pesponto em volta */
.zap-botao {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  color: var(--creme);
  background-color: var(--verde-escuro);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 0 Q2 5.5 5 7.6 M9 0 Q8 5.5 5 7.6' fill='none' stroke='%23FDF8F1' stroke-opacity='.17' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: 0 10px 26px rgba(40, 32, 28, 0.3);
  transition: transform 0.4s var(--suave);
}
.zap-botao::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none;
  border: 1.5px dashed rgba(253, 248, 241, 0.72);
}
.zap-icone { position: relative; width: 28px; height: 28px; }
/* a ponta do fio, solta */
.zap-fio {
  position: absolute; right: 48px; bottom: 44px; width: 58px; height: 40px; overflow: visible;
  fill: none; stroke: var(--rosa); stroke-width: 2.4; stroke-linecap: round;
  transform-origin: 100% 100%;
  transition: transform 0.7s var(--suave);
  filter: drop-shadow(0 1px 1px rgba(40, 32, 28, 0.25));
}
.zap-etiqueta {
  position: relative; padding: 11px 18px; border-radius: 10px;
  background: var(--creme); color: var(--tinta); font-size: 1.08rem; line-height: 1;
  box-shadow: 0 8px 22px rgba(40, 32, 28, 0.18);
  opacity: 0; translate: 10px 0; pointer-events: none;
  transition: opacity 0.35s var(--suave), translate 0.35s var(--suave);
}
.zap-etiqueta::before {
  content: ""; position: absolute; inset: 4px; border-radius: 7px; pointer-events: none;
  border: 1.2px dashed var(--rosa-claro);
}
.zap:hover .zap-botao, .zap:focus-visible .zap-botao { transform: rotate(-10deg) scale(1.05); }
.zap:hover .zap-fio, .zap:focus-visible .zap-fio { transform: rotate(9deg); }
.zap:hover .zap-etiqueta, .zap:focus-visible .zap-etiqueta { opacity: 1; translate: 0 0; }
@media (hover: none) { .zap-etiqueta { display: none; } }
@media (max-width: 600px) {
  .zap-botao { width: 58px; height: 58px; }
  .zap-fio { right: 44px; bottom: 40px; width: 50px; height: 34px; }
}

/* ---------- Lightbox ---------- */

.luz {
  border: 0; padding: 0; margin: auto;
  width: min(100vw, 1400px); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: transparent; color: var(--creme);
}
.luz::backdrop { background: rgba(30, 22, 18, 0.96); }
.luz[open] { display: grid; place-items: center; }
.luz-quadro { display: grid; justify-items: center; gap: 14px; padding: 64px 16px 24px; width: 100%; height: 100%; align-content: center; }
.luz img { max-width: min(100%, 1100px); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.luz-legenda { text-align: center; }
.luz-legenda strong { display: block; font-size: 1.5rem; font-weight: 500; }
.luz-legenda span { font-size: 1.1rem; font-style: italic; opacity: 0.85; }

.luz-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(253, 248, 241, 0.5); background: rgba(59, 50, 45, 0.5); color: var(--creme);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color 0.3s var(--suave), border-color 0.3s var(--suave);
}
.luz-btn:hover, .luz-btn:focus-visible { background: rgba(253, 248, 241, 0.16); border-color: var(--creme); }
.luz-btn svg { width: 22px; height: 22px; }
.luz-btn[hidden] { display: none; }
.luz-fechar { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.luz-ant { left: calc(14px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.luz-prox { right: calc(14px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
/* no celular as setas descem pro pé da tela, ao lado da legenda, sem cobrir a foto */
@media (max-width: 600px) {
  .luz-ant, .luz-prox { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .luz-quadro { padding-bottom: 96px; }
  .luz img { max-height: calc(100dvh - 240px); }
  .luz-legenda { padding-inline: 64px; }
}

body.luz-aberta { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .luz[open] img { animation: luzEntra 0.5s var(--suave); }
  @keyframes luzEntra { from { opacity: 0; transform: scale(0.96); } }
}

/* ---------- Celular: ajustes que precisam vir depois das regras base ---------- */
@media (max-width: 600px) {
  .filtros { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
  .filtros button { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 0.45em; font-size: clamp(0.8rem, 3.9vw, 1.02rem); }
  .pano { padding: 12px 14px; }
  .logo .atelier { font-size: 76px; letter-spacing: 14px; }
  .logo .tagline { font-size: 64px; letter-spacing: 4px; transform: translateY(22px); }
  .trabalho-cabeca { flex-direction: column; align-items: center; text-align: center; }
  .trabalho-cabeca h2 { max-width: none; }
  .trabalho-cabeca p { margin-inline: auto; }
}

/* ---------- Páginas simples: privacidade e 404 ---------- */

body.pagina { min-height: 100svh; display: flex; flex-direction: column; }  /* rodapé no pé da tela */
body.pagina main { flex: 1 0 auto; }

.pagina-topo { background: var(--terra); color: var(--creme); }
.pagina-topo .wrap { display: flex; align-items: center; min-height: var(--topo-altura); }
.pagina-marca { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 1.2rem; font-weight: 500; letter-spacing: 0.02em; }
.pagina-marca img { width: 44px; height: 44px; border-radius: 50%; }
.pagina-texto { max-width: 760px; padding-block: clamp(48px, 9vh, 104px); }
.pagina-texto h1 { margin: 0 0 12px; font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 400; line-height: 1.05; color: var(--rosa-escuro); }
.pagina-texto h2 { margin: 40px 0 8px; font-size: 1.45rem; font-weight: 500; line-height: 1.25; color: var(--tinta); }
.pagina-texto p, .pagina-texto li { max-width: 62ch; }
.pagina-texto ul { padding-left: 1.2em; }
.pagina-texto li + li { margin-top: 6px; }
.pagina-texto a:not(.btn) { color: var(--rosa-escuro); }
.pagina-data { color: var(--tinta-suave); font-size: 1rem; }
.pagina-texto .acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
