/* Vidacci · paleta oficial (PORTA/CORES_VIDACCI.jpeg) */
:root {
  --cafe: #3B1F1A;
  --terra: #A44C17;
  --terra-esc: #8A3E12;
  --areia: #B49C88;
  --creme: #E5DDC6;
  --fundo: #F5EFE6;
  --branco: #FFFCF7;
  --texto: #3B1F1A;
  --texto-2: #6E5A4E;
  --raio: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--fundo); color: var(--texto); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
p, dd, summary { text-wrap: pretty; }
.sobre span, .rt span, .cred > span { white-space: nowrap; }
.sep { font-style: normal; }
h1 em, h2 em { font-style: italic; color: var(--terra); }
.sobre { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }

/* botões */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--terra); color: var(--branco); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 15px 26px; border-radius: 999px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--terra-esc); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-claro { background: var(--fundo); color: var(--cafe); }
.btn-claro:hover { background: var(--branco); }
.link { font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid var(--areia); padding-bottom: 2px; }
.link:hover { border-color: var(--terra); }

/* topo */
.topo { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, box-shadow .3s; }
.topo.rolou { background: rgba(245, 239, 230, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(59, 31, 26, .08); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.marca img { width: 150px; }
.menu { display: flex; gap: 32px; }
.menu a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--texto-2); transition: color .2s; }
.menu a:hover { color: var(--terra); }

/* hero */
.hero { padding: 132px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); margin-bottom: 26px; }
.lead { font-size: 19px; color: var(--texto-2); max-width: 30em; margin-bottom: 36px; }
.acoes { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-foto { position: relative; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 200px 200px var(--raio) var(--raio); }
.selo { position: absolute; left: -28px; bottom: 40px; display: flex; align-items: center; gap: 14px; background: var(--branco); padding: 16px 22px 16px 18px; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(59, 31, 26, .35); }
.selo strong { font: 500 48px/1 var(--serif); color: var(--terra); }
.selo span { font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--texto-2); }

/* diferenciais */
.diferenciais { padding: 40px 0 110px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grade-3 article { background: var(--branco); border-radius: var(--raio); padding: 34px 30px 36px; }
.num { display: block; font: italic 400 15px var(--serif); color: var(--areia); margin-bottom: 30px; }
.grade-3 h2 { font-size: 28px; margin-bottom: 12px; }
.grade-3 p { color: var(--texto-2); font-size: 16px; }

/* títulos de seção */
.titulo-sec { max-width: 640px; margin-bottom: 52px; }
.titulo-sec h2 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 20px; }
.titulo-sec p:not(.sobre) { color: var(--texto-2); font-size: 18px; }

/* estúdio */
.estudio { padding: 110px 0; background: var(--creme); }
.galeria { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.galeria picture { overflow: hidden; border-radius: var(--raio); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.galeria picture:hover img { transform: scale(1.04); }
.g1 { grid-row: span 2; }
.g2 img { object-position: 50% 30%; }
.g3 { grid-row: span 2; }
.g3 img { object-position: 30% 50%; }
.g4 img { object-position: 50% 25%; }

/* como funciona */
.como { padding: 110px 0; background: var(--cafe); color: var(--fundo); }
.como .titulo-sec p:not(.sobre) { color: var(--areia); }
.como .sobre { color: var(--areia); }
.como h2 em { color: #E08A52; }
.passos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.passos li { display: flex; gap: 18px; padding: 30px 28px; border: 1px solid rgba(229, 221, 198, .18); border-radius: var(--raio); }
.passos span { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--terra); font: 500 20px var(--serif); }
.passos h3 { font-size: 23px; margin-bottom: 8px; }
.passos p { font-size: 15.5px; color: var(--areia); }

/* equipe */
.equipe { padding: 110px 0; }
.pessoas { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 28px; }
.pessoas picture { display: block; overflow: hidden; border-radius: 180px 180px var(--raio) var(--raio); background: var(--creme); }
.pessoas img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; }
.pessoas figcaption { padding: 18px 6px 0; }
.pessoas strong { display: block; font: 400 26px/1.2 var(--serif); }
.pessoas span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--texto-2); text-wrap: balance; }
.pessoas strong + span { margin-top: 6px; }
.pessoas .crefito { margin-top: 6px; font-size: 13px; letter-spacing: .04em; }

/* dúvidas */
.duvidas { padding: 110px 0; background: var(--creme); }
.duvidas-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid rgba(59, 31, 26, .16); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 400 21px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--terra); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--texto-2); }

/* contato */
.contato { padding: 110px 0; }
.contato-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contato h2 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 36px; }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-bottom: 40px; }
.infos dt { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.infos dd { font-size: 16px; }
.infos dd strong { font-weight: 600; }
.infos a { text-decoration: none; border-bottom: 1px solid var(--areia); }
.infos a:hover { border-color: var(--terra); }
.fachada img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* rodapé */
.rodape { background: var(--cafe); color: var(--areia); padding: 48px 0 110px; font-size: 13.5px; }
.rodape-in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rodape img { width: 140px; margin-bottom: 6px; }
.rt { opacity: .8; }
.cred a { text-decoration: none; border-bottom: 1px solid rgba(180, 156, 136, .5); }

/* WhatsApp flutuante */
.wa-flutua { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-flutua:hover { transform: scale(1.07); }
.wa-flutua svg { width: 30px; height: 30px; }

/* ---------- animações ---------- */
@keyframes sobe { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes abre-arco { from { clip-path: inset(100% 0 0 0 round 200px 200px 22px 22px); } to { clip-path: inset(0 0 0 0 round 200px 200px 22px 22px); } }
@keyframes surge { 0% { opacity: 0; transform: translateY(16px) scale(.85); } 70% { transform: translateY(-4px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes risca { to { stroke-dashoffset: 0; } }
@keyframes corre { to { transform: translateX(-50%); } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
@keyframes brilho { from { left: -60%; } to { left: 130%; } }

/* abertura: textos sobem em cascata, foto abre em arco, selo salta e fica flutuando */
.hero .sobre, .hero h1 .linha, .hero .lead, .hero .acoes { opacity: 0; animation: sobe .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero h1 .linha { display: inline-block; }
.hero .sobre { animation-delay: .05s; }
.hero h1 .linha:nth-child(1) { animation-delay: .15s; }
.hero h1 .linha:nth-child(2) { animation-delay: .27s; }
.hero h1 .linha:nth-child(3) { animation-delay: .39s; }
.hero .lead { animation-delay: .55s; }
.hero .acoes { animation-delay: .7s; }
.hero-foto picture { display: block; overflow: hidden; border-radius: 200px 200px var(--raio) var(--raio); animation: abre-arco 1.3s cubic-bezier(.7, 0, .2, 1) .1s both; }
.hero-foto img { border-radius: 0; will-change: transform; transform: scale(1.1); }
.selo { opacity: 0; animation: surge .8s cubic-bezier(.2, .7, .2, 1) 1.1s forwards, flutua 5s ease-in-out 2s infinite; }

/* traço feito à mão sob "fisioterapeuta" */
.risco { position: relative; white-space: nowrap; }
.risco svg { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.risco path { fill: none; stroke: var(--areia); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: risca 1s cubic-bezier(.6, 0, .2, 1) 1s forwards; }

/* faixa que corre */
.faixa { overflow: hidden; background: var(--terra); color: var(--fundo); padding: 18px 0; margin: 8px 0 72px; transform: rotate(-1.2deg) scale(1.02); }
.faixa-trilho { display: flex; align-items: center; gap: 34px; width: max-content; animation: corre 32s linear infinite; }
.faixa:hover .faixa-trilho { animation-play-state: paused; }
.faixa span { font: italic 400 26px/1 var(--serif); white-space: nowrap; }
.faixa img { width: 22px; height: 22px; opacity: .85; }

/* entrada ao rolar */
.anima { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.anima.visivel { opacity: 1; transform: none; }
.galeria picture.anima { transform: none; clip-path: inset(18% 0 0 0 round var(--raio)); transition: opacity .9s ease var(--d, 0ms), clip-path 1.1s cubic-bezier(.7, 0, .2, 1) var(--d, 0ms); }
.galeria picture.anima.visivel { clip-path: inset(0 0 0 0 round var(--raio)); }
.passos li.anima span { transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0ms) + 300ms); }
.passos li.anima.visivel span { transform: scale(1); }

/* cards: inclinam com o mouse e ganham um brilho que segue o cursor */
.grade-3 article { position: relative; overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .4s ease, box-shadow .4s ease; }
.grade-3 article.anima { transform: translateY(34px) perspective(900px); }
.grade-3 article.anima.visivel { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: opacity .9s ease var(--d, 0ms), transform .4s ease, box-shadow .4s ease; }
.grade-3 article::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(164, 76, 23, .09), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.grade-3 article:hover { box-shadow: 0 24px 50px -28px rgba(59, 31, 26, .45); }
.grade-3 article:hover::before { opacity: 1; }
.grade-3 article:hover .num { color: var(--terra); }
.num { transition: color .3s; }

/* fotos da equipe e da fachada */
.pessoas img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.pessoas figure:hover img { transform: scale(1.05); }
.pessoas figure:hover strong { color: var(--terra); }
.pessoas strong { transition: color .3s; }
.galeria img, .fachada img { will-change: transform; transform: scale(1.1); transition: none; }
.fachada { display: block; overflow: hidden; border-radius: var(--raio); }
.fachada img { border-radius: 0; }

/* botões: brilho passando e ícone que balança */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); }
.btn:hover::after { animation: brilho .8s ease; }
.btn:hover svg { animation: flutua .5s ease 2; }
.link span { display: inline-block; transition: transform .3s; }
.link:hover span { transform: translateX(5px); }

/* dúvidas */
.faq details p { overflow: hidden; }
.faq summary { transition: color .25s, padding-left .3s; }
.faq summary:hover { color: var(--terra); padding-left: 6px; }

/* topo some ao descer a página */
.topo { transition: background .3s, box-shadow .3s, transform .4s ease; }
.topo.escondido { transform: translateY(-100%); }

/* WhatsApp flutuante com pulso */
.wa-flutua { animation: surge .6s ease 1.6s both, pulso 2.4s ease-out 2.4s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .sobre, .hero h1 .linha, .hero .lead, .hero .acoes, .selo, .anima { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .risco path { stroke-dashoffset: 0; }
}

/* responsivo */
@media (max-width: 960px) {
  .menu { display: none; }
  .hero { padding-top: 108px; }
  .hero-in, .duvidas-in, .contato-in { grid-template-columns: 1fr; gap: 44px; }
  .hero-foto { max-width: 520px; }
  .selo { left: 16px; bottom: 20px; }
  .grade-3, .passos { grid-template-columns: 1fr; }
  .duvidas-in { gap: 8px; }
  .duvidas-in .titulo-sec { margin-bottom: 0; }
  .galeria { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 340px; }
  .g1, .g3 { grid-row: auto; }
  .estudio, .como, .equipe, .duvidas, .contato { padding: 80px 0; }
  .diferenciais { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .marca img { width: 124px; }
  .lead { font-size: 17px; }
  .galeria { grid-template-rows: 240px 240px; gap: 10px; }
  .pessoas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pessoas strong { font-size: 20px; }
  .pessoas span { font-size: 13px; }
  .infos { grid-template-columns: 1fr; gap: 20px; }
  .selo strong { font-size: 38px; }
  .faixa { margin-bottom: 48px; padding: 14px 0; }
  .faixa span { font-size: 21px; }
  /* no celular cada informação vai para a própria linha, sem "·" pendurado */
  .sobre .sep, .rt .sep, .cred .sep { display: none; }
  .sobre span, .rt span, .cred > span { display: block; }
  .sobre span + span { margin-top: 2px; }
  .pessoas strong { font-size: 17px; white-space: nowrap; }
}
