/* =========================================================
   NEXUS | Folha de estilo principal
   ========================================================= */

:root {
  --navy: #162a3d;
  --navy-2: #1f3d59;
  --blue: #3498db;
  --green: #2ecc71;
  --orange: #e67e22;
  --text: #1c2b3a;
  --muted: #5f6e7d;
  --bg: #f6f8fb;
  --tint: #eef3f8;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(22, 42, 61, .08);
  --shadow-lg: 0 22px 44px rgba(22, 42, 61, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius-md: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }

.container { width: min(1200px, 90%); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* ---------- Animações de entrada ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-animate="up"]    { transform: translateY(40px); filter: blur(6px); }
[data-animate="left"]  { transform: translateX(-50px); filter: blur(6px); }
[data-animate="right"] { transform: translateX(50px); filter: blur(6px); }
[data-animate].in-view { opacity: 1; transform: none; filter: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: .95rem; }
.btn-solid { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(52,152,219,.35); }
.btn-solid:hover { background: #2a84c4; box-shadow: 0 12px 26px rgba(52,152,219,.45); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,42,61,.06);
  transition: box-shadow .5s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  position: relative;
  width: min(1280px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0;
}
.logo { height: 56px; width: auto; transition: height .5s var(--ease); }
.site-header.scrolled .logo { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  position: relative; color: var(--navy); font-weight: 600; font-size: .9rem; padding: 6px 0; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--orange); border-radius: 2px; transition: width .5s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 18px; font-size: .82rem; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; height: 2px; width: 24px; margin: 0 auto;
  background: var(--navy); border-radius: 2px;
  transition: transform .4s var(--ease), opacity .4s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(110deg, #142537 0%, #1b3550 55%, #1f4a6e 100%);
  min-height: calc(100vh - 80px);
  display: flex; align-items: center;
  padding: 90px 0 140px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; }
.blob-1 { width: 420px; height: 420px; background: rgba(52,152,219,.35); top: -120px; right: 10%; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: rgba(230,126,34,.25); bottom: 5%; left: 2%; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(30px, -24px) scale(1.05); } }

.wave { position: absolute; left: -10%; width: 120%; height: auto; }
.wave-blue { bottom: -40px; animation: waveMove 16s ease-in-out infinite alternate; }
.wave-blue path { fill: rgba(52,152,219,.22); }
.wave-orange { bottom: -60px; animation: waveMove 22s ease-in-out infinite alternate-reverse; }
.wave-orange path { fill: rgba(230,126,34,.16); }
@keyframes waveMove {
  from { transform: translateX(-2%) translateY(0); }
  to   { transform: translateX(3%) translateY(-16px); }
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 3px;
  font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 600;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow-dark { color: var(--blue); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; margin-bottom: 22px; }
.hero-sub { font-size: 1.15rem; font-weight: 300; opacity: .92; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #20496e, #0f2236);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.hero-media:hover img { transform: scale(1.04); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--white); border-radius: 2px; animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Seções ---------- */
.section { padding: 120px 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; margin-bottom: 18px; }
.section-head { margin-bottom: 60px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin: 0 auto; }

/* ---------- Sobre nós (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-text h2 { margin-bottom: 22px; }
.split-text .lead { margin: 0 0 32px; text-align: left; }
.split-media { position: relative; }

.blob-frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--tint), #d7e6f3);
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.blob-frame:hover img { transform: scale(1.04); }

/* ---------- Cards de serviço ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
  position: relative; overflow: hidden;
  background: var(--white); padding: 44px 34px 38px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-top-color .6s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(52,152,219,.12), transparent 55%);
  opacity: 0; transition: opacity .6s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-top-color: var(--orange); }
.card:hover::after { opacity: 1; }
.icon-wrap {
  width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--blue); margin-bottom: 22px;
  transition: background .6s, color .6s, transform .6s var(--ease);
}
.icon-wrap svg { width: 30px; height: 30px; }
.card:hover .icon-wrap { background: var(--navy); color: var(--white); transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 20px; }
.card-link { font-weight: 600; color: var(--blue); font-size: .95rem; transition: color .3s, letter-spacing .5s var(--ease); }
.card-link:hover { color: var(--orange); letter-spacing: .5px; }

/* ---------- Consulta pré-anestésica online ---------- */
.online {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--white) 0%, var(--tint) 100%);
}
.online-glow {
  position: absolute; top: -160px; left: -140px; width: 480px; height: 480px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(52,152,219,.16), transparent 70%);
  filter: blur(12px);
}
.feature-list { list-style: none; margin: 30px 0 38px; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list strong { display: block; font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: .97rem; }
.feat-ico {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 14px rgba(22,42,61,.18);
}

.online-card {
  position: relative; overflow: hidden;
  background: var(--white); padding: 40px 36px;
  border-radius: 28px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--blue);
  transition: transform .6s var(--ease);
}
.online-card:hover { transform: translateY(-6px); }
.online-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.online-badge {
  font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--blue);
  background: var(--tint); padding: 7px 14px; border-radius: 999px;
}
.online-status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.online-status i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  70% { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.online-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.online-card > p { color: var(--muted); margin-bottom: 26px; }
.online-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.online-meta span {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid rgba(22,42,61,.08);
  transition: background .4s, color .4s;
}
.online-card:hover .online-meta span { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Corpo clínico ---------- */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.filtro-btn {
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600;
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid rgba(22,42,61,.18); background: var(--white); color: var(--navy);
  cursor: pointer; transition: all .4s var(--ease);
}
.filtro-btn:hover { border-color: var(--blue); color: var(--blue); }
.filtro-btn.ativo { background: var(--navy); border-color: var(--navy); color: var(--white); }

.grid-medicos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.medico {
  display: flex; gap: 18px; align-items: center;
  background: var(--white); padding: 24px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  opacity: 0; animation: fadeUp .9s var(--ease) forwards;
}
.medico:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.avatar {
  flex: 0 0 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.2rem;
  box-shadow: 0 0 0 3px var(--tint);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.medico-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.medico-info .esp { display: block; color: var(--blue); font-weight: 600; font-size: .88rem; }
.medico-info .crm { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }

.skeleton {
  height: 110px; border-radius: var(--radius-md);
  background: linear-gradient(90deg, #e6ecf2 25%, #f5f8fb 50%, #e6ecf2 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 130px 0; }
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cta h2 { color: var(--white); }
.cta p { font-size: 1.1rem; opacity: .9; margin-bottom: 36px; }
.cta .eyebrow { color: var(--orange); }

/* ---------- Rodapé ---------- */
.footer { background: #0f1f2e; color: rgba(255,255,255,.7); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.logo-footer { height: 48px; width: auto; }
.footer p { font-size: .88rem; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(46,204,113,.4);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px rgba(46,204,113,.5); }

/* ---------- Keyframes gerais ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsivo: tablet e menores (menu recolhido) ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(22,42,61,.08);
    box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden;
    transition: max-height .6s var(--ease);
  }
  .main-nav.aberto { max-height: 520px; }
  .main-nav a {
    padding: 16px 0; text-align: center;
    border-top: 1px solid rgba(22,42,61,.06);
  }
  .main-nav a::after { display: none; }

  /* Mantém só o botão do portal no cabeçalho do celular */
  .header-actions .btn-agendar { display: none; }
  .header-actions .btn { padding: 8px 14px; font-size: .78rem; }
}

/* ---------- Responsivo: tablet em retrato ---------- */
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 60px 0 120px; min-height: auto; }
  .hero-media { aspect-ratio: 16 / 10; }
  .split-text { text-align: center; }
  .split-text .lead { text-align: center; margin: 0 auto 32px; }
  .feature-list { text-align: left; }
  .blob-frame { aspect-ratio: 4 / 3; }
  .section { padding: 90px 0; }
  .online-card { padding: 32px 26px; }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  .logo { height: 44px; }
  .site-header.scrolled .logo { height: 40px; }
  .header-inner { gap: 10px; }
  .hero h1 { font-size: 2rem; }
  .hero-actions .btn { width: 100%; }
  .cta .hero-actions .btn { width: 100%; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}

/* ---------- Acessibilidade: reduzir movimento ---------- */
@media (hover: none) {
  .card:hover, .medico:hover, .btn:hover, .online-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-animate] { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
/* ---------- Fotos com formato fluido (orgânico) ---------- */
.hero-media,
.blob-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  transition: border-radius 1.2s var(--ease), transform .8s var(--ease);
}

.hero-media {
  aspect-ratio: 4 / 3;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
}

.blob-frame {
  aspect-ratio: 4 / 5;
  border-radius: 58% 42% 46% 54% / 40% 52% 48% 60%;
}

.hero-media:hover,
.blob-frame:hover {
  border-radius: 54% 46% 58% 42% / 46% 56% 44% 54%;
}

.hero-media img,
.blob-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.hero-media:hover img,
.blob-frame:hover img {
  transform: scale(1.05);
}

/* Versão tablet e celular: proporção ajustada, forma fluida mantida */
@media (max-width: 860px) {
  .hero-media { aspect-ratio: 16 / 11; }
  .blob-frame { aspect-ratio: 4 / 3; }
}
.ig-section { background: var(--navy); color: #fff; }
.ig-section h2, .ig-section .eyebrow { color: #fff; }

.ig-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: none;
}
.ig-carousel::-webkit-scrollbar { display: none; }

.ig-card {
  flex: 0 0 min(340px, 85%);
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
}
.ig-card .instagram-media { margin: 0 !important; min-width: 0 !important; }

.ig-controls { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.ig-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 20px;
  background: rgba(255,255,255,.15); color: #fff;
  transition: background .3s var(--ease);
}
.ig-btn:hover { background: rgba(255,255,255,.3); }

@media (max-width: 860px) {
  .ig-card { flex-basis: 88%; }
}
/* ===== Instagram: layout orgânico ===== */
.ig-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.08), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.06), transparent 46%),
    var(--navy);
}

.ig-carousel {
  gap: 36px;
  padding: 24px 12px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ig-card {
  position: relative;
  flex: 0 0 min(340px, 84%);
  scroll-snap-align: center;
  padding: 20px 16px 36px;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(.94);
  transition: opacity .9s var(--ease), transform .9s var(--ease),
              border-radius 1.2s var(--ease), box-shadow .6s var(--ease);
}

.ig-card.in-view { opacity: 1; transform: none; }
.ig-card.in-view.is-active { transform: scale(1.03); }

.ig-card:nth-child(even) {
  border-radius: 58% 42% 55% 45% / 40% 60% 40% 60%;
}

.ig-card:hover {
  border-radius: 38% 62% 50% 50% / 55% 45% 55% 45%;
  box-shadow: 0 40px 70px -24px rgba(0,0,0,.6);
}

/* Fade na base do post, para suavizar a transição para o fundo */
.ig-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to top, var(--navy), transparent);
  pointer-events: none;
}

/* O embed já vem com a própria caixa branca; aqui ele acompanha a forma do card */
.ig-card .instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 22px !important;
}

.ig-controls { margin-top: 20px; }

.ig-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 46% 54% 52% 48% / 50% 45% 55% 50%;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.ig-btn:hover { transform: scale(1.08); }

@media (max-width: 860px) {
  .ig-card { flex-basis: 86%; }
}
/* ===== Instagram: cards retangulares com cantos arredondados ===== */
.ig-card,
.ig-card:nth-child(even),
.ig-card:hover {
  border-radius: 28px !important;
  padding: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.45);
  transform: none;
  overflow: hidden;
}

.ig-card.in-view { opacity: 1; transform: none; }
.ig-card.in-view.is-active { transform: scale(1.02); }

/* Remove a faixa de fade que escurecia a base do card */
.ig-card::after { display: none; }

/* Mantém o embed com cantos arredondados */
.ig-card .instagram-media {
  border-radius: 18px !important;
}

.ig-btn { border-radius: 50% !important; }
/* ===== Fotos dos locais ===== */
.local-img {
  height: 200px;
  background-color: var(--navy-2, #1d3557);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Feed do Instagram: posts lado a lado com cantos arredondados */
#instagram-feed {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
}
#instagram-feed .instagram-media,
#instagram-feed iframe {
  flex: 0 0 326px !important;
  width: 326px !important;
  max-width: 326px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  #instagram-feed .instagram-media,
  #instagram-feed iframe {
    flex-basis: 86vw !important;
    width: 86vw !important;
    max-width: 86vw !important;
  }
}

/* Onde estamos: carrossel horizontal, foto à esquerda e descrição à direita */
#onde-estamos .container {
  display: block !important;
}

#onde-estamos .loc-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 28px;
  width: 100%;
  height: auto !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 24px;
  position: relative;
  float: none !important;
}
#onde-estamos .loc-carousel::-webkit-scrollbar {
  display: none;
}

#onde-estamos .loc-item {
  flex: 0 0 min(820px, 90%) !important;
  width: min(820px, 90%) !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.12);
  scroll-snap-align: start;
  position: relative;
  float: none !important;
}

#onde-estamos .local-img {
  flex: 0 0 44% !important;
  width: 44%;
  min-height: 300px;
  margin: 0 !important;
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

#onde-estamos .loc-texto {
  flex: 1 1 auto;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#onde-estamos .loc-texto h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.2;
}
#onde-estamos .local-cidade {
  color: var(--gold, #B8912F);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin: 0 0 14px;
}
#onde-estamos .loc-texto p {
  line-height: 1.6;
  margin: 0 0 10px;
}

#onde-estamos .loc-controls {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 20px 0 0 !important;
  position: static !important;
  float: none !important;
  inset: auto !important;
  clear: both;
  grid-column: 1 / -1;
}

#onde-estamos .loc-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--navy, #0B2545);
  background: #fff;
  color: var(--navy, #0B2545);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 37, 69, 0.12);
  transition: all 0.3s ease;
}
#onde-estamos .loc-btn:hover {
  background: var(--navy, #0B2545);
  color: #fff;
}

@media (max-width: 768px) {
  #onde-estamos .loc-item {
    flex-direction: column !important;
    flex-basis: 88% !important;
    width: 88% !important;
  }
  #onde-estamos .local-img {
    flex: none !important;
    width: 100%;
    min-height: 220px;
  }
  #onde-estamos .loc-texto {
    padding: 24px;
  }
}
/* Setas de "Onde estamos": sempre abaixo do carrossel, centralizadas */
section#onde-estamos .container > .loc-controls {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  float: none !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  clear: both !important;
  margin: 24px 0 0 !important;
  order: 99 !important;
}
/* Setas do Instagram: centralizadas abaixo do feed */
#instagram .ig-controls {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 20px 0 0 !important;
  position: static !important;
  float: none !important;
  clear: both;
}
