.cabecalho-atelie, .rodape-atelie, .pedido-atelie { color: var(--tinta); font-family: var(--texto) }

/* Cabeçalho */
header.cabecalho-atelie {
  width: min(1240px, 94%); margin: .9rem auto 1.2rem; padding: .65rem 1rem .65rem .8rem;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  background: var(--folha); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra);
}
.cabecalho-atelie .brand, .cabecalho-atelie > a:first-child { display: flex; align-items: center; gap: 14px; text-decoration: none }
.menu-atelie, .canais-atelie { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem }
.menu-atelie a, .menu-atelie button, .canais-atelie a {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 700 .95rem/1.25 var(--texto); text-decoration: none; cursor: pointer;
  border: 1px solid var(--linha); border-radius: 2rem; padding: .62rem 1rem; background: var(--folha); color: var(--tinta);
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.menu-atelie svg, .canais-atelie svg { width: 1.15rem; height: 1.15rem; flex: none }
.menu-atelie .link-simples { border-color: transparent; background: transparent }
.menu-atelie .link-simples:hover { background: var(--rosa-bebe) }
.menu-atelie [data-orcamento] { background: var(--vermelho); border-color: var(--vermelho); color: white; box-shadow: 0 3px 0 var(--vermelho-forte) }
.menu-atelie [data-orcamento]::before { content: ""; width: 30px; height: 24px; margin: -8px -.1rem -8px -.4rem; background: var(--lapis) center / contain no-repeat; rotate: -8deg; filter: drop-shadow(0 1px 1px #6e2a3a40); transition: rotate .2s, scale .2s }
.menu-atelie [data-orcamento]:hover::before { rotate: 4deg; scale: 1.08 }
.menu-atelie [data-orcamento]:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--vermelho-forte) }
.menu-atelie .so-icone { padding: .62rem; color: var(--piscina-tinta); background: var(--piscina-claro); border-color: #a9e5ea }
.menu-atelie .sacola { background: var(--amarelo-claro); border-color: #f4d690 }
.menu-atelie .conta { background: white; border-color: var(--linha) }
.menu-atelie .criar-conta { background: var(--rosa-bebe); border-color: #f2b8bd; color: var(--vermelho-forte) }
.menu-atelie :is(.so-icone, .sacola, .conta, .criar-conta):hover, .canais-atelie a:hover { box-shadow: 0 2px 0 #e1b7b9 }
[data-canal][aria-disabled="true"] { cursor: default; border-style: dashed }

/* Carrossel de caixinhas */
.album {
  --fundo: var(--rosa-bebe);
  position: relative; isolation: isolate; overflow: hidden; touch-action: pan-y pinch-zoom;
  display: grid; align-content: center; min-height: clamp(410px, 43vw, 560px);
  border-radius: var(--raio); background-color: var(--fundo); border: 1px solid var(--linha); box-shadow: var(--sombra);
  transition: background-color .65s ease;
}
.album[data-cena="1"] { --fundo: #e3f2f9 }
.album[data-cena="2"] { --fundo: #fff2d4 }
.album-foto { position: absolute; inset: 0 0 0 28%; z-index: -1 }
.album-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--fundo), transparent 31%); pointer-events: none }
.album-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .8s ease, transform 3.2s ease-out }
.album-foto img.em-cena { opacity: 1; transform: scale(1) }
.album-legenda { width: 43%; padding: 2.6rem 0 4rem clamp(1.4rem, 4.5vw, 4rem) }
.album-legenda h1 { color: var(--dourado-texto); letter-spacing: .14em; margin: 0 }
.album-legenda h2 { color: var(--vinho); font: italic 500 clamp(3.4rem, 6.4vw, 6rem)/.96 var(--titulo); letter-spacing: -.035em; margin: .25em 0 }
.album-legenda p { max-width: 28ch; line-height: 1.55; margin: 0 0 1.4rem; font-size: 1.08rem }
.album-rodape { position: absolute; inset: auto 1.2rem 1rem; display: flex; align-items: center; gap: .6rem }
.album-rodape small, .album-pausa { background: #fffdfbeb; border-radius: 2rem; color: var(--tinta-suave); padding: .4rem .8rem; font-weight: 700 }
.album-pausa { border: 1px solid var(--linha); font-size: .88rem }
.album-andamento { margin-left: auto; display: flex; gap: .25rem; padding: .5rem; border-radius: 1rem; background: #fffdfbeb }
.album-andamento i { width: 1.2rem; height: 4px; background: #efc9ca; border-radius: 5px; transition: width .3s, background-color .3s }
.album-andamento i.ativo { background: var(--vermelho); width: 1.8rem }
@media (max-width: 680px) {
  .album { display: flex; flex-direction: column }
  .album-foto { position: relative; inset: auto; aspect-ratio: 1.5; width: 100% }
  .album-foto::after { background: linear-gradient(0deg, var(--fundo), transparent 12%) }
  .album-legenda { width: 100%; padding: 1rem 1.3rem }
  .album-legenda h2 { font-size: clamp(2.25rem, 9vw, 3.4rem) }
  .album-legenda p { max-width: none }
  .album-rodape { position: static; padding: .2rem 1rem .85rem }
}
@media (prefers-reduced-motion: reduce) { .album, .album-foto img { transition: none; transform: none } }

/* Borboletas da logo voando pelo carrossel (só enfeite) */
.revoada { position: absolute; inset: 0; z-index: 1; pointer-events: none }
.revoada i {
  position: absolute; width: var(--tam, 46px); aspect-ratio: 102 / 116; rotate: var(--giro, 0deg);
  filter: drop-shadow(0 4px 4px #2a8f9c33); animation: revoar var(--dur, 6s) ease-in-out var(--atraso, 0s) infinite alternate;
}
.revoada i::before { content: ""; position: absolute; inset: 0; background: var(--borboleta) center / contain no-repeat; transform-origin: 46% 50%; animation: revoar-asas var(--asas, .7s) ease-in-out infinite }
.revoada .contorno { aspect-ratio: 185 / 171 }
.revoada .contorno::before { background-image: var(--borboleta-y); transform-origin: 40% 62% }
.revoada .r1 { left: 3%; top: 7%; --tam: 52px; --giro: -16deg }
.revoada .r2 { left: 37%; top: 16%; --tam: 40px; --giro: 12deg; --dur: 7s; --atraso: -2s; --asas: .55s }
.revoada .r3 { left: 31%; top: 74%; --tam: 44px; --giro: 20deg; --dur: 5.5s; --atraso: -3.5s }
.revoada .r3::before, .revoada .r5::before { scale: -1 1 }
.revoada .r4 { right: 6%; top: 8%; --tam: 50px; --giro: -8deg; --dur: 6.5s; --atraso: -1s; --asas: .6s }
.revoada .r5 { right: 30%; bottom: 14%; --tam: 36px; --giro: -22deg; --dur: 5s; --atraso: -4s; --asas: .5s }
@keyframes revoar {
  0% { transform: translate(0, 0) rotate(-6deg) }
  30% { transform: translate(18px, -14px) rotate(8deg) }
  65% { transform: translate(-10px, -26px) rotate(-10deg) }
  100% { transform: translate(14px, -8px) rotate(6deg) }
}
@keyframes revoar-asas { 0%, 100% { transform: scaleX(1) } 50% { transform: scaleX(.5) } }
@media (max-width: 680px) { .revoada .r2, .revoada .r3 { display: none } .revoada .r5 { bottom: auto; top: 46% } }
@media (prefers-reduced-motion: reduce) { .revoada i, .revoada i::before { animation: none } }

/* Rodapé */
.rodape-atelie {
  position: relative; background: var(--rosa-bebe); margin-top: 5.5rem;
  padding: 2.6rem max(4%, calc((100% - 1240px) / 2)) 1.25rem;
}
.rodape-atelie::before { content: ""; position: absolute; inset: -13px 0 auto; height: 26px; background: var(--flor) center / 27px 26px space }
/* Bloquinho e cadernos da logo espiando por trás do rodapé */
.pecas-rodape i { position: absolute; z-index: -1; top: -64px; width: 124px; height: 96px; background: center bottom / contain no-repeat; filter: drop-shadow(0 4px 6px #6e2a3a22) }
.pecas-rodape .peca-bloquinho { left: max(4%, calc((100% - 1240px) / 2 + 10px)); background-image: var(--lapis); rotate: -6deg }
.pecas-rodape .peca-cadernos { right: max(4%, calc((100% - 1240px) / 2 + 10px)); width: 136px; background-image: var(--cadernos); rotate: 5deg }
@media (max-width: 620px) { .pecas-rodape i { top: -44px; width: 84px; height: 64px } .pecas-rodape .peca-cadernos { width: 92px } }
.rodape-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; align-items: center }
.rodape-main .logotipo { width: 230px }
.rodape-main p { margin: .45rem 0 0; color: var(--vinho); font: italic 1.12rem/1.45 var(--titulo) }
.canais-atelie [data-canal="email"] { background: var(--amarelo-claro); border-color: #f4d690 }
.canais-atelie [data-canal="instagram"] { background: var(--piscina-claro); border-color: #a9e5ea }
.canais-atelie [data-canal="whatsapp"] { background: var(--menta-claro); border-color: #a9dfc6 }
.links-rodape { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin-top: 1.3rem; font-weight: 700; font-size: .92rem }
.links-rodape a { color: var(--vinho); text-decoration: none; border-bottom: 1px dashed #e5a9ac }
.links-rodape a:hover { color: var(--vermelho); border-bottom-style: solid }
.rodape-legal { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px dashed #efb9bb; font-size: .85rem; line-height: 1.6; color: var(--tinta-suave) }
.rodape-legal a { color: inherit; text-decoration: underline }

/* Janela de orçamento */
/* Bloquinho pautado de espiral, como o da logo */
.pedido-atelie {
  width: min(440px, 92vw); max-height: 88vh; padding: 2.6rem 1.6rem 1.6rem 2.4rem; border: 0; border-radius: 6px 6px 14px 14px;
  background:
    var(--espiral) 18px -12px / 26px 32px space no-repeat,
    linear-gradient(90deg, transparent 1.45rem, #ffb1b1 1.45rem calc(1.45rem + 1px), transparent calc(1.45rem + 1px)),
    repeating-linear-gradient(180deg, transparent 0 27px, #f3d98c 27px 28px) 0 18px,
    #fff6c9;
  box-shadow: 0 0 0 1px #f3d98c, 3px 4px 0 #f6dc8a, 0 18px 40px #3f2e3333;
}
.pedido-atelie h2::after { content: ""; display: inline-block; width: 26px; height: 23px; margin-left: .5rem; vertical-align: .1em; background: var(--coracao) center / contain no-repeat; rotate: 12deg }
.pedido-atelie::backdrop { background: #3f2e33b3 }
.pedido-atelie h2 { color: var(--vermelho); margin: 0 0 1rem; font: 500 2rem var(--titulo) }
.pedido-atelie label { display: grid; gap: .3rem; margin: .8rem 0; font-size: .95rem; font-weight: 700 }
.pedido-atelie :is(input, textarea) { border: 1px solid #dcb5b7; padding: .6rem; border-radius: .6rem; font: inherit; font-weight: 400; width: 100%; background: white; color: var(--tinta) }
.pedido-atelie button { padding: .7rem 1.2rem; border: 0; border-radius: 2rem; background: var(--vermelho); color: white; font: 800 1rem var(--texto); cursor: pointer; box-shadow: 0 3px 0 var(--vermelho-forte) }
.pedido-atelie .fechar-pedido { background: white; color: var(--tinta); border: 1px solid var(--linha); box-shadow: none }

@media (max-width: 620px) {
  header.cabecalho-atelie { width: 92%; padding: .6rem }
  .monograma { width: 42px; height: 42px; font-size: 1.5rem }
  .cabecalho-atelie .logotipo { width: 136px }
  .menu-atelie a, .menu-atelie button { padding: .5rem .75rem; font-size: .88rem }
  .menu-atelie .so-icone { padding: .5rem }
  .menu-atelie .conta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  .menu-atelie .conta { padding: .5rem }
}

/* Aviso de cookies (só aparece com estatísticas ativas) */
.aviso-cookies {
  position: fixed; z-index: 99999; left: 50%; bottom: 1rem; translate: -50% 0; width: min(640px, calc(100% - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 1rem 1.2rem;
  background: var(--folha); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: 0 14px 36px #3f2e3333;
  font: .92rem/1.5 var(--texto); color: var(--tinta);
}
.aviso-cookies[hidden] { display: none }
.aviso-cookies p { flex: 1 1 300px; margin: 0 }
.aviso-cookies a { color: var(--vinho) }
.aviso-cookies div { display: flex; gap: .5rem }
.aviso-cookies button { cursor: pointer; border-radius: 2rem; padding: .55rem 1.1rem; font: 800 .92rem var(--texto); border: 1px solid var(--linha); background: white; color: var(--tinta) }
.aviso-cookies [data-cookies="aceito"] { background: var(--vermelho); border-color: var(--vermelho); color: white }
.rever-cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer }
