/*
Theme Name: Pilates Times Studios
Theme URI: https://www.pilatestime.pt/
Author: Agilstore
Author URI: https://www.agilstore.pt/
Description: Tema WordPress para o Pilates Times Studios — Pilates Clínico em Paredes. Baseado no site estático original, com as páginas Início, Agenda, Sobre Nós e Contactos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pilates-times-studios
*/

/* ═══════════════════════════════════════════════════════════════════
   Fonte de marca: Amoria
   ═══════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Amoria';
  src: url('assets/amoria.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════════
   Tokens
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg:      oklch(96.5% 0.012 85);
  --surface: oklch(100% 0 0);
  --fg:      oklch(21% 0.02 50);
  --muted:   oklch(49% 0.02 60);
  --border:  oklch(89% 0.018 80);
  --accent:  oklch(46% 0.11 28);
  --accent-deep: oklch(39% 0.14 26);

  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --accent-bright: color-mix(in oklch, var(--accent) 78%, var(--surface));
  --fg-soft:     color-mix(in oklch, var(--fg) 6%, transparent);
  --ink-light:   oklch(97% 0.008 90);
  --scrim:       oklch(20% 0.02 50 / 0.55);

  --font-display: 'Amoria', 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'Cascadia Mono', 'Consolas', 'SF Mono', Menlo, monospace;

  --fs-h1: clamp(38px, 5vw, 62px);
  --fs-h2: clamp(28px, 3.6vw, 44px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1440px;
  --gutter: 24px;

  --radius: 10px;
  --radius-lg: 16px;

  --header-h: 56px;
}

/* ═══════════════════════════════════════════════════════════════════
   Base
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
[hidden] { display: none !important; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 1120px; padding-inline: 32px; }
.section { padding-block: clamp(48px, 8vw, var(--gap-2xl)); }
#destinos.section { padding-block: clamp(20px, 3vw, 36px); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: center; }
@media (max-width: 920px) { .grid-2, .grid-3, .grid-1-2 { grid-template-columns: 1fr; } }

h1, .h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
h2, .h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h3, .h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-md);
}
.index-tag {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-md);
}
.meta { font-size: var(--fs-meta); color: var(--muted); }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════
   Topnav (sobre o hero escuro)
   ═══════════════════════════════════════════════════════════════════ */
.topnav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
}
.topnav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap-md);
  width: 100%;
}
.topnav-nav { grid-column: 1; display: flex; gap: var(--gap-sm); }
.topnav-nav-right { grid-column: 3; justify-content: flex-end; }
.nav-link {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: var(--fg); border-color: var(--border); }
.nav-link.is-active { color: var(--fg); border-color: var(--border); background: var(--surface); }
.topnav.on-hero .logo,
.topnav.on-hero .nav-link { color: var(--ink-light); }
.topnav.on-hero .nav-link:hover { color: var(--surface); border-color: color-mix(in oklch, var(--ink-light) 40%, transparent); }
.topnav.on-hero .nav-link.is-active { color: var(--surface); border-color: color-mix(in oklch, var(--ink-light) 45%, transparent); background: color-mix(in oklch, var(--ink-light) 12%, transparent); }
.topnav .logo {
  grid-column: 2; justify-self: center;
  position: relative;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400; letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--fg);
  transition: color 0.2s ease;
}
.topnav .logo-img {
  height: 44px; width: auto; display: block;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.logo:hover .logo-img,
.logo:focus-visible .logo-img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) {
  .logo:hover .logo-img,
  .logo:focus-visible .logo-img { transform: none; }
}
.topnav.on-hero .logo-img { filter: brightness(0) invert(1); }
@media (max-width: 560px) {
  .topnav .logo { font-size: 15px; }
  .topnav .logo-img { height: 34px; }
  .nav-link { font-size: 13px; padding: 6px 10px; }
  .topnav-inner { gap: 6px; }
  .nav-link[data-mobile-hide] { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Page hero (cabeçalho escuro de subpágina)
   ═══════════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, oklch(27% 0.02 50), oklch(20% 0.02 50));
  color: var(--ink-light);
  padding-block: clamp(120px, 16vh, 160px) clamp(56px, 8vw, 88px);
  overflow: hidden;
}
.page-hero h1 { color: var(--ink-light); max-width: 16ch; }
.page-hero .lead {
  color: color-mix(in oklch, var(--ink-light) 85%, transparent);
  margin-top: 14px;
}
.page-hero .eyebrow { color: var(--accent-bright); }
.page-hero .index-tag { color: var(--accent-bright); }

/* ═══════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════ */
.pagefoot {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, oklch(24% 0.025 50) 0%, oklch(18% 0.02 50) 100%);
  background-origin: border-box;
  border-top: 0.8px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
.foot-top {
  display: flex;
  justify-content: center;
  max-width: 1140px;
  gap: 100px;
  padding: 48px 8% 40px;
  margin: 0 auto;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-width: 340px;
  gap: 20px;
}
.foot-logo-img {
  height: 45px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}
.foot-brand p {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.42px;
  line-height: 150%;
  color: rgba(255,255,255,0.9);
}
.foot-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
}
.foot-col h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3.6px;
  line-height: 170%;
  text-transform: capitalize;
  color: #fff;
  margin: 0 0 4px;
}
.foot-col a {
  display: block;
  width: fit-content;
  font-size: 15px;
  letter-spacing: 1.2px;
  line-height: 170%;
  text-transform: capitalize;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s ease;
}
.foot-col a:hover { color: #fff; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.foot-social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}
.foot-social svg { width: 20px; height: 20px; }
.foot-bottom {
  border-top: 0.8px solid rgba(255,255,255,0.08);
  padding: 16px 8%;
}
.foot-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 80px;
  font-size: 15px;
  letter-spacing: 1.2px;
  line-height: 170%;
  text-transform: capitalize;
  color: #fff;
}
.foot-credit {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  letter-spacing: 1.2px;
  color: #fff;
}
.foot-credit-name {
  position: relative;
  color: #fff;
  font-weight: 600;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.foot-credit-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.35s ease;
}
.foot-credit-name:hover { color: var(--accent); }
.foot-credit-name:hover::after { width: 100%; }
.foot-credit-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.foot-prr-img {
  height: 23px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  margin-top: 4px;
  align-self: flex-start;
}
@media (max-width: 920px) {
  .foot-top { flex-direction: column; gap: var(--gap-lg); align-items: center; text-align: center; }
  .foot-brand { align-items: center; }
  .foot-logo-img { align-self: center; }
  .foot-col { align-items: center; }
  .foot-bottom-inner { flex-direction: column; align-items: center; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Botões
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 10px 24px -12px color-mix(in oklch, var(--accent) 65%, transparent); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); transform: translateY(-2px); box-shadow: 0 8px 20px -14px rgba(0,0,0,0.4); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 10px; }
.btn-ghost:hover { color: var(--accent); }
.btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(2px); }
.btn-light { background: var(--ink-light); color: var(--fg); border-color: var(--ink-light); }
.btn-light:hover { background: var(--surface); border-color: var(--surface); transform: translateY(-2px); }
.btn-light-outline { background: transparent; color: var(--ink-light); border-color: color-mix(in oklch, var(--ink-light) 50%, transparent); }
.btn-light-outline:hover { border-color: var(--ink-light); transform: translateY(-2px); }
.btn-glow {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 50%, transparent);
}
.btn-glow svg { width: 16px; height: 16px; }
.btn-glow:hover {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent),
    0 0 20px color-mix(in oklch, var(--accent) 45%, transparent);
  text-shadow: 0 0 14px color-mix(in oklch, var(--accent) 80%, transparent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════════════ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.card-flat { background: transparent; border: 0; padding: 0; }
.contact-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* ─── Imagens nos cartões ─────────────────────────────────────── */
.card-media {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  margin-bottom: var(--gap-md);
}
.card-media img,
.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-lg) - 8px);
  transition: transform 0.3s ease;
}
.card:hover .card-media img,
.card:hover .card-img-top,
.route-card:hover .card-media img,
.route-card:hover .card-img-top {
  transform: scale(1.03);
}
.feature-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  margin-bottom: var(--gap-md);
  transition: transform 0.3s ease;
}
.feature:hover .feature-card-img {
  transform: scale(1.03);
}

/* ─── feature cell ────────────────────────────────────────────── */
.feature .feature-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: var(--gap-md);
}
.feature .feature-mark svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: 6px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.feature p  { margin: 0; color: var(--muted); font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════════
   Estrelas "It's time!" + quote
   ═══════════════════════════════════════════════════════════════════ */
.quote {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0;
}
.quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); }
.star-time { position: relative; }
.star-time::before,
.star-time::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D9A247'><path d='M12 2.2l2.6 7L22 12l-7.4 2.8L12 21.8l-2.6-7L2 12l7.4-2.8z'/></svg>") center/contain no-repeat;
  opacity: 0;
  animation: star-rise 3.8s ease-in-out infinite;
}
.star-time::before { left: -34px; top: 64%; }
.star-time::after  { left: -30px; top: 10%; animation-delay: 1.9s; }
.star-time-near::before { left: -24px; }
.star-time-near::after  { left: -20px; }
@keyframes star-rise {
  0%   { opacity: 0; transform: translateY(22px) scale(0.7) rotate(-16deg); }
  30%  { opacity: 1; }
  65%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.05) rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) { .star-time::before, .star-time::after { display: none; } }

/* ─── definition list (home) ──────────────────────────────────── */
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.dl > div { padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.dl dt { font-family: var(--font-body); font-size: 22px; font-weight: 600; letter-spacing: -0.005em; }
.dl dd { margin: 5px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════
   Hero de vídeo (início)
   ═══════════════════════════════════════════════════════════════════ */
.hero-video { position: relative; padding: 0; overflow: hidden; min-height: 100vh; display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(27% 0.02 50), oklch(20% 0.02 50)); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-video-mobile { display: none; }
@media (orientation: portrait) {
  .hero-media .hero-video-desktop { display: none; }
  .hero-media .hero-video-mobile { display: block; }
}
@media (max-width: 920px) {
  .hero-video { justify-content: center; }
  .hero-copy { max-width: none; margin-inline: auto; padding-inline: var(--gutter); }
  .hero-scrim { background: linear-gradient(180deg, var(--scrim), color-mix(in oklch, var(--fg) 15%, transparent) 28%, transparent 45%), linear-gradient(0deg, color-mix(in oklch, var(--fg) 65%, transparent) 0%, color-mix(in oklch, var(--fg) 25%, transparent) 35%, transparent 60%); }
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklch, var(--fg) 6%, transparent) 0%, color-mix(in oklch, var(--fg) 28%, transparent) 50%, color-mix(in oklch, var(--fg) 80%, transparent) 100%), linear-gradient(180deg, var(--scrim), color-mix(in oklch, var(--fg) 15%, transparent) 28%, transparent 45%); }
.hero-copy { position: relative; z-index: 1; width: auto; max-width: min(680px, 54vw); margin-left: auto; margin-right: clamp(24px, 5vw, 96px); padding-inline: 0; padding-block: clamp(120px, 17vh, 190px) clamp(56px, 8vw, 88px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-video .index-tag { color: color-mix(in oklch, var(--ink-light) 78%, transparent); }
.hero-video .eyebrow { color: var(--accent-bright); }
.hero-title { display: inline-block; width: auto; max-width: none; }
.hero-wordmark {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in oklch, var(--ink-light) 78%, transparent);
  text-align: center;
  margin: 0 0 14px;
}
.hero-video h1 { color: var(--ink-light); max-width: none; margin-bottom: var(--gap-md); }
.hero-video .lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: color-mix(in oklch, var(--ink-light) 88%, transparent);
  max-width: 54ch;
  margin-bottom: var(--gap-lg);
}
.hero-cta { display: inline-flex; justify-content: center; gap: var(--gap-sm); flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   Rotas (home)
   ═══════════════════════════════════════════════════════════════════ */
.routes-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); align-items: center; gap: clamp(32px, 4vw, 56px); }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-lg); }
@media (max-width: 920px) { .routes, .routes-layout { grid-template-columns: 1fr; } }
.route-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.route-card:hover {
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
}
.route-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--gap-md);
}
.route-card h3 { font-size: 24px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.route-card p { margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 34ch; }
.route-cta { margin-top: auto; align-self: flex-start; }

/* ═══════════════════════════════════════════════════════════════════
   Galeria / fotos
   ═══════════════════════════════════════════════════════════════════ */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.photo-grid figure { margin: 0; }
.photo-grid img, .img-sq { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.photo-grid figcaption { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.photo-slot {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center; align-content: center; gap: 10px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.photo-slot svg { width: 30px; height: 30px; color: var(--muted); }
.photo-slot-hint { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.photo-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#sobre .grid-2 { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
#sobre .container-narrow { max-width: 1360px; }
@media (max-width: 920px) { #sobre .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 920px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }

/* Whitebox: hover "Ver descrição" + modal com foto e descrição da pessoa */
.gallery-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-card .img-sq { border-radius: 0; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.gallery-card:hover .img-sq, .gallery-card:focus-within .img-sq { transform: scale(1.05); }
.gallery-card-btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background: oklch(16% 0.02 50 / 0.45);
  color: var(--surface);
  border: 0; cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}
.gallery-card:hover .gallery-card-btn, .gallery-card:focus-within .gallery-card-btn { opacity: 1; }
.gallery-card-btn span {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid color-mix(in oklch, var(--surface) 70%, transparent);
  border-radius: 999px;
  background: oklch(16% 0.02 50 / 0.35);
  backdrop-filter: blur(2px);
}

.pts-whitebox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background: oklch(15% 0.02 50 / 0.65);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pts-whitebox.is-open { opacity: 1; visibility: visible; }
.pts-whitebox-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px oklch(10% 0.02 50 / 0.45);
}
.pts-whitebox-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pts-whitebox-desc {
  padding: 22px 26px 28px;
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  color: var(--fg);
  white-space: pre-wrap;
}
.pts-whitebox-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--surface) 60%, transparent);
  background: oklch(16% 0.02 50 / 0.45);
  color: var(--surface);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pts-whitebox-close:hover { background: var(--surface); color: var(--fg); }
.pts-whitebox-close svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════════
   Agenda: dias em coluna + horários em linha
   ═══════════════════════════════════════════════════════════════════ */
.schedule { padding: 12px 26px 18px; }
.sched-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: baseline;
  gap: 8px 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sched-row:hover { background: var(--fg-soft); }
.sched-row:last-child { border-bottom: 0; }
.sched-day { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.sched-times {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: baseline;
  gap: 5px 16px;
  min-width: 0;
}
.t-group { display: contents; }
.t-type {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  padding-right: 4px;
}
.t-hrs {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11.5px; color: var(--fg);
  line-height: 1.55;
}
.sched-closed .t-hrs, .sched-closed .sched-times { color: var(--muted); }
.sched-closed .t-hrs { grid-column: 1 / -1; font-size: 11px; }
.sched-row.today-row {
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in oklch, var(--accent-soft) 55%, transparent));
  border-radius: var(--radius);
  border-bottom-color: transparent;
  margin-left: -14px;
  padding-left: 14px;
  padding-right: 6px;
}
.sched-row.today-row .sched-day {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}
.sched-row.today-row .sched-day::after {
  content: 'hoje';
  background: var(--accent);
  color: #fff;
  font-size: 8.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .sched-row { grid-template-columns: 1fr; gap: 10px; }
  .schedule { padding: 12px 20px 18px; }
  .sched-times { grid-template-columns: 118px 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   Calendário
   ═══════════════════════════════════════════════════════════════════ */
.calendar { max-width: 440px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.cal-nav {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.15s ease;
}
.cal-nav:hover { border-color: var(--fg); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  border-radius: 8px;
}
.cal-day.empty { visibility: hidden; }
.cal-day.is-class::after {
  content: ''; position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in oklch, var(--fg) 35%, transparent);
}
.cal-day.today { background: var(--accent); color: var(--surface); }
.cal-day.today::after { display: none; }
.cal-today { margin: 14px 0 0; font-family: var(--font-display); font-size: 15px; }
.cal-legend { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cal-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.cal-legend .dot-class { background: color-mix(in oklch, var(--fg) 35%, transparent); }
.cal-legend .dot-today { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════
   Contactos: formulário + mapa
   ═══════════════════════════════════════════════════════════════════ */
.contact-info { display: grid; gap: var(--gap-lg); }
.contact-info h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.contact-info p { margin: 0; }
.contact-info a:hover { color: var(--fg); }
.field { display: grid; gap: 8px; text-align: left; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.field input, .field textarea {
  font-family: var(--font-body);
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--fg);
}
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { display: block; width: 100%; height: 240px; border: 0; filter: saturate(0.9); }

/* ═══════════════════════════════════════════════════════════════════
   Conteúdo editorial (páginas genéricas / blog)
   ═══════════════════════════════════════════════════════════════════ */
.entry-content { max-width: 72ch; }
.entry-content > * + * { margin-top: var(--gap-md); }
.entry-content img, .entry-content iframe { border-radius: var(--radius); }
.entry-content h2 {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: clamp(32px, 4vw, 48px);
}
.entry-content h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-top: clamp(24px, 3vw, 32px);
}
.entry-content p { line-height: 1.7; }
.entry-content ul {
  padding-left: 1.5em;
  list-style: disc;
}
.entry-content li {
  line-height: 1.7;
  margin-top: 6px;
}
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--accent) 35%, transparent);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}
.entry-content a:hover {
  text-decoration-color: var(--accent);
}
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card .post-thumb { border-radius: var(--radius-lg); overflow: hidden; }
.post-card .post-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .read-more { margin-top: auto; align-self: flex-start; }
.posts-more { margin-top: var(--gap-xl); display: flex; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════
   Reveal
   ═══════════════════════════════════════════════════════════════════ */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Páginas legais (Política de Privacidade, Resolução de Litígios)
   ═══════════════════════════════════════════════════════════════════ */
.entry-content ol { padding-left: 1.5em; list-style: decimal; }
.entry-content ol > li { line-height: 1.7; margin-top: 6px; }
.entry-content [id] { scroll-margin-top: 110px; }

.legal-updated {
  font-size: var(--fs-meta);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.legal-toc-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 12px;
}
.legal-toc ol { margin: 0; padding-left: 1.3em; list-style: decimal; color: var(--muted); }
.legal-toc li { margin-top: 6px; line-height: 1.6; font-size: 15px; }
.legal-toc a { color: var(--fg); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.entry-content .legal-toc + h2 { margin-top: clamp(36px, 5vw, 56px); }

.legal-dl { margin: 0; }
.legal-dl dt { font-weight: 600; color: var(--fg); margin-top: 16px; }
.legal-dl dt:first-child { margin-top: 0; }
.legal-dl dd { margin: 4px 0 0; color: var(--muted); line-height: 1.7; }

.legal-contact {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 15px;
}
.legal-contact p { margin: 0; line-height: 1.6; }
.legal-contact p + p { margin-top: 6px; }
.legal-contact a { word-break: break-word; }

/* ═══════════════════════════════════════════════════════════════════
   Topnav — quatro ligações fixas (Início · Agenda | Contactos · Sobre nós)
   O logótipo mantém o tamanho de desktop; encolhe apenas em ecrãs
   pequenos, para os quatro links caberem sempre na mesma linha.
   ═══════════════════════════════════════════════════════════════════ */
.topnav .logo-img { width: 115px; height: 70px; margin-top: 15px; }

@media (max-width: 900px) {
  .topnav .logo-img { width: 100px; height: 61px; margin-top: 12px; }
  .nav-link { font-size: 13px; padding: 6px 11px; }
  .topnav-nav { gap: 8px; }
}
@media (max-width: 720px) {
  .topnav .logo-img { width: 86px; height: 52px; margin-top: 9px; }
  .nav-link { font-size: 12px; padding: 5px 9px; }
  .topnav-nav { gap: 5px; }
}
@media (max-width: 560px) {
  /* Flex em vez de grid: as duas colunas 1fr obrigavam os dois lados a ter
     a mesma largura, o que fazia transbordar com quatro links. */
  .topnav-inner { display: flex; justify-content: space-between; gap: 6px; }
  .topnav .container { padding-inline: 14px; }
  .topnav .logo-img { width: 74px; height: 45px; margin-top: 6px; }
  .nav-link { font-size: 11px; padding: 4px 7px; letter-spacing: 0; }
  .nav-link[data-mobile-hide] { display: inline-block; }
  .topnav-nav { gap: 3px; }
}
@media (max-width: 400px) {
  .topnav .container { padding-inline: 10px; }
  .topnav .logo-img { width: 62px; height: 38px; margin-top: 4px; }
  .nav-link { font-size: 10px; padding: 3px 5px; }
  .topnav-nav { gap: 2px; }
}
