/* Studio Donna Pestana · celular (até 767px) e tablet (768 a 1099px). Desktop fica no style.css. */

/* ===================== TABLET ===================== */
@media (min-width: 768px) and (max-width: 1099px) {
  :root { --sp: 96px; }
  .topo { padding: 0 20px; }
  .pills { display: none; }
  .menu-bt { display: inline-flex; }
  .t-xl { font-size: 56px; }
  .gal h2 { font-size: 88px; }

  .stage { height: 520px; }
  .toys .t1 { left: 60px; } .toys .t2 { left: 156px; } .toys .t3 { right: 70px; } .toys .t4 { right: 160px; }

  /* serviços: carrossel de dois por vez */
  .serv .row { height: auto; display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -15px; padding: 0 15px 6px; scrollbar-width: none; }
  .serv .row::-webkit-scrollbar { display: none; }
  .serv .row > .card { flex: 0 0 46%; height: 480px; scroll-snap-align: start; }
  .pal { grid-template-columns: repeat(5, 44px); gap: 20px 22px; }
  .pal .sh { width: 44px; height: 44px; }

  /* bento: duas colunas, a terceira embaixo inteira */
  .bento .grid { height: auto; grid-template-columns: 1fr 1fr; }
  .bento .col:nth-child(1) .k1 { min-height: 640px; }
  .bento .col:nth-child(2) .ph { min-height: 300px; }
  .bento .col:nth-child(3) { grid-column: 1 / -1; }
  .bento .col:nth-child(3) .k3 { min-height: 560px; }
  .bento .card { padding: 40px 30px 0; }
  .k1 .t-md { font-size: 34px; }
  .arch { left: 50%; width: 560px; margin-left: -280px; height: 360px; }

  /* abas: painel mais estreito */
  .abas .box { height: 680px; }
  .painel { width: 330px; padding: 22px 16px 16px; }
  .painel .t-md { font-size: 32px; }
  .abas .bgs { left: 360px; }

  /* ficha: uma coluna */
  .ficha-grid { grid-template-columns: 1fr; min-height: 0; }
  .dir { min-height: 560px; }

  .par { min-height: 0; }
  .av .card { padding: 40px 36px; border-radius: 48px; }
  .av .card q { font-size: 24px; }
  .av .card q.longo { font-size: 18px; }
  .av .card .av-ic { right: 32px; top: 32px; width: 38px; height: 38px; }

  .ft .box { padding: 56px 44px 30px; }
  .ft .top { grid-template-columns: 1fr 1fr 1fr; gap: 36px 30px; }
  .ft-frase { grid-column: 1 / -1; }
  .ft .frase { max-width: 620px; }
  .ft-baixo { margin-top: 80px; flex-direction: column; align-items: flex-start; }
  .letra { --u: 30px; }
  .word { gap: 26px; }
  .dir2 { text-align: left; }
  .dir2 p { margin-left: 0; }
}

/* ===================== MENU (tablet e celular) ===================== */
@media (max-width: 1099px) {
  .pills { display: none; }
  .menu-bt { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; border-radius: 18px; background: var(--card2); font-size: 15px; font-weight: 500; }
  .menu-bt i { position: relative; width: 16px; height: 10px; }
  .menu-bt i::before, .menu-bt i::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .menu-bt i::before { top: 0; } .menu-bt i::after { top: 8px; }
  .topo.aberto .menu-bt i::before { top: 4px; transform: rotate(45deg); }
  .topo.aberto .menu-bt i::after { top: 4px; transform: rotate(-45deg); }
  .topo .cta { min-height: 50px; border-radius: 18px; padding: 0 20px; }
  .topo.rolou .menu-bt { background: rgba(36,20,12,.06); }
  .menu-painel { display: flex; flex-direction: column; pointer-events: none; max-width: 1180px; margin: 8px auto 0; padding: 10px; border-radius: 26px; background: rgba(251,239,226,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(36,20,12,.4); opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .menu-painel a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 16px; font-size: 18px; font-weight: 500; }
  .menu-painel a + a { box-shadow: inset 0 1px 0 var(--line); }
  .menu-painel .cta { margin-top: 8px; justify-content: center; color: #fff; box-shadow: none !important; }
  .topo.aberto .menu-painel { pointer-events: auto; opacity: 1; transform: none; }
  .topo.aberto .topo-bar { background: rgba(251,239,226,.96); }
}

/* ===================== CELULAR ===================== */
@media (max-width: 767px) {
  :root { --sp: 80px; --r: 26px; --r-lg: 40px; }
  html { scroll-padding-top: 84px; }
  .box-in { padding: 0 12px; }
  .t-xl { font-size: 40px; line-height: 1.06; }
  .t-lg { font-size: 36px; }
  .t-md { font-size: 30px; }
  .t-sm { font-size: 22px; }

  /* nav em pílula: logo + menu */
  .topo { top: 10px; padding: 0 10px; }
  .topo.rolou { top: 8px; }
  .topo-bar { padding: 6px 6px 6px 12px; background: rgba(251,239,226,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line); border-radius: 22px; }
  .topo.rolou .topo-bar { padding: 6px 6px 6px 12px; }
  .topo-cta { display: none !important; }
  .marca img { width: 36px; height: 36px; }
  .marca span { font-size: 16px; }
  .marca small { font-size: 11px; }
  .menu-bt { min-height: 46px; border-radius: 16px; }

  /* hero: texto central, botão, painéis de foto */
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 44px); }
  .hero-sub { font-size: 16px; margin-top: 16px; padding: 0 8px; }
  .hero-acoes { display: flex; justify-content: center; margin-top: 24px; }
  .hero-acoes .cta { min-height: 56px; width: 100%; max-width: 340px; border-radius: 18px; font-size: 16px; }
  .palco { margin-top: 56px; }
  .stage { height: 440px; gap: 6px; grid-template-columns: 1fr 1fr; }
  .pn { border-radius: 28px 28px 0 0; }
  .pn:nth-child(3) { display: none; }
  .toys { top: -30px; height: 60px; }
  .t1 { left: 22px; width: 60px; height: 30px; }
  .t2 { left: 92px; width: 20px; height: 20px; }
  .t3 { right: 30px; width: 54px; height: 54px; top: -10px; }
  .t4 { right: 96px; width: 30px; height: 30px; }
  .selo { left: 12px; right: auto; bottom: 16px; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px; }
  .selo b { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
  .selo p { font-size: 12px; }
  .selo p strong { font-size: 14px; }
  .chip-hero { right: 12px; bottom: auto; top: 16px; height: 34px; }

  /* serviços: carrossel de um card por vez, beirada do próximo aparecendo */
  .serv h2 { margin-bottom: 40px; font-size: 36px; }
  .serv .row { height: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .serv .row::-webkit-scrollbar { display: none; }
  .serv .row > .card { flex: 0 0 86%; height: 450px; scroll-snap-align: center; }
  .pal { grid-template-columns: repeat(5, 38px); gap: 18px 16px; bottom: 34px; }
  .pal .sh { width: 38px; height: 38px; }
  .arcf { width: 240px; height: 230px; }
  .m1 { left: 18px; width: 44px; height: 44px; }
  .m2 { right: 24px; }

  /* bento empilhado */
  .bento .grid { height: auto; grid-template-columns: 1fr; gap: 12px; }
  .bento .col { gap: 12px; }
  .bento .card { padding: 36px 24px 0; }
  .k1 { min-height: 0; padding-bottom: 24px !important; }
  .k1 .t-md { font-size: 30px; }
  .big { position: relative; left: auto; right: auto; bottom: auto; margin: 28px auto 0; max-width: 300px; }
  .k2 { padding-bottom: 20px !important; }
  .chat { height: 170px; }
  .ph { flex: none; height: 360px; }
  .k3 { min-height: 520px; }
  .arch { height: 300px; left: 12px; right: 12px; }

  /* abas: foto em cima, painel embaixo, abas de arrastar */
  .abas .box { height: auto; display: flex; flex-direction: column; background: var(--card); }
  .abas .bgs { position: relative; left: auto; inset: auto; height: 380px; flex: none; }
  .painel { position: static; width: auto; padding: 24px 0 18px; border-radius: 0; background: transparent; }
  .painel .mid { padding: 0 20px; }
  .painel .eyebrow { margin-bottom: 18px; }
  .icone { display: none; }
  .troca { min-height: 190px; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding: 18px 16px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 0 20px; min-height: 48px; scroll-snap-align: center; }
  .prog { top: 16px; right: 16px; transform: none; flex-direction: row; padding: 10px 12px; }
  .prog i { width: 26px; height: 4px; }
  .prog i b { transform: scaleX(0); transform-origin: left; }
  .prog i.done b { transform: scaleX(1); }
  @keyframes fill { to { transform: scaleX(1); } }

  /* ficha: card de texto, depois foto e miniaturas */
  .ficha-grid { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .ficha .esq { padding: 30px 18px 18px; }
  .ficha h2 { margin-bottom: 18px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 16px; padding: 0 18px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cats button { flex: none; min-height: 44px; }
  .grp { grid-template-columns: 1fr; }
  .grp h4 { padding-top: 16px; font-size: 17px; }
  .grp ul li { font-size: 15px; padding: 10px 0; }
  .acoes { grid-template-columns: 1fr; margin: 20px 0 0; }
  .acoes .btn { min-height: 60px; }
  .ficha-dir { gap: 12px; }
  .dir { min-height: 0; height: 420px; flex: none; }
  .thumbs { height: 78px; padding: 8px; gap: 8px; }
  .thumbs button, .thumbs .vazio, .thumbs button::after { border-radius: 14px; }

  /* galeria */
  .gal h2 { font-size: 60px; }
  .gal .sub { margin: 16px 0 32px; font-size: 15px; }
  .lane { height: 220px; }
  .l2 { margin-top: 12px; }
  .trk { gap: 10px; }
  .tile { width: 172px; height: 220px; border-radius: 24px; }
  .tile.w { width: 220px; }
  .fx1 .a { left: 34px; right: 34px; height: 120px; }
  .fx2 .a { inset: 34px 34px auto auto; width: 100px; height: 100px; }
  .fx3 .a { width: 110px; height: 110px; margin: -55px; }
  .fx4 .a { width: 96px; height: 130px; top: 44px; }

  /* avaliações: carrossel de arrastar */
  .av h2 { font-size: 36px; }
  .nota { margin: 20px 0 32px; gap: 10px; font-size: 15px; }
  .par { min-height: 0; }
  .par.carrossel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .par.carrossel::-webkit-scrollbar { display: none; }
  .par.carrossel > .card { flex: 0 0 86%; scroll-snap-align: center; }
  .av .card { padding: 32px 24px 28px; border-radius: 36px; }
  .av .card .top { margin-bottom: 20px; padding-right: 44px; flex-wrap: wrap; gap: 8px 12px; }
  .av .card q { font-size: 20px; line-height: 1.32; margin-bottom: 24px; }
  .av .card q.longo { font-size: 16px; line-height: 1.45; }
  .av .card .av-ic { right: 24px; top: 26px; width: 32px; height: 32px; }
  .pg { margin-top: 26px; flex-direction: column; gap: 18px; }

  /* contato e rodapé */
  .ft { padding-bottom: 12px; }
  .ft .box { padding: 40px 22px 24px; border-radius: 36px; }
  .ft .top { grid-template-columns: 1fr; gap: 32px; }
  .ft .frase { font-size: 30px; }
  .ft h5 { margin-bottom: 14px; }
  .ft ul li { margin-bottom: 0; padding: 10px 0; }
  .ft ul li a { display: block; }
  .ft .chegar { margin-top: 8px; }
  .ft .chegar a { display: inline-block; }
  .ft-baixo { margin-top: 48px; flex-direction: column; align-items: stretch; gap: 32px; }
  .word { gap: 10px; justify-content: center; }
  .letra { --u: 16px; }
  .dir2 { text-align: left; }
  .dir2 p { margin-left: 0; }
  .dir2 .cta { width: 100%; min-height: 56px; border-radius: 18px; }
  .base { margin-top: 36px; flex-direction: column; gap: 6px; font-size: 14px; }
  .base .r { gap: 20px; }

  /* WhatsApp flutuante depois do hero */
  .zap-flut { position: fixed; z-index: 45; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--verde); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 12px 28px -10px rgba(36,20,12,.45); opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; transition: opacity .3s var(--ease), transform .45s var(--ease); }
  .zap-flut svg { width: 24px; height: 24px; }
  .zap-flut.vis { opacity: 1; transform: none; pointer-events: auto; }
  .topo.aberto ~ .zap-flut { opacity: 0; pointer-events: none; }
}

/* área de toque em tela de toque */
@media (pointer: coarse) {
  .cores button { width: 32px; height: 32px; }
  .pills a, .lnk { min-height: 44px; display: inline-flex; align-items: center; }
}
