/* ==========================================================================
   Dr. João Barroso — estilos do tema
   Tokens extraídos do Guia de Estilo do Figma
   ========================================================================== */

@font-face { font-family: "Manrope"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "WindSong"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/windsong-latin-500-normal.woff2") format("woff2"); }

:root {
	/* Cores */
	--navy: #263c9d;
	--navy-dark: #22358c;
	--blue: #1e96fc;
	--blue-soft: #3fa9f5;
	--ink: #1d1d1d;
	--ink-soft: #555766;
	--line: #c9c9c9;
	--muted: #d6d6d6;
	--grey: #f2f2f2;
	--white: #ffffff;
	--shade: #1c213a;

	/* Tipografia (Figma: H2 48/Bold, H3 36/SemiBold, H4 24/Bold, Body 18/Regular, lh 1.2) */
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-script: "WindSong", "Brush Script MT", cursive;
	--fs-script: clamp(2.6rem, 1.6rem + 3.2vw, 4rem);
	--fs-h2: clamp(2rem, 1.35rem + 2.1vw, 3rem);
	--fs-h3: clamp(1.625rem, 1.2rem + 1.35vw, 2.25rem);
	--fs-h4: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
	--fs-small: 0.875rem;
	--lh: 1.2;

	/* Layout: conteúdo de 1280px com margens de 320px no 1920 */
	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--section-y: clamp(64px, 6vw + 24px, 120px);
	--slope-h: clamp(24px, 3.2vw, 60px);
	--slope-bevel: calc(var(--slope-h) * 1.1667); /* Figma: 70px de inclinação em 60px de altura */
	--header-h: 80px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur: 0.6s;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 20px; background: var(--navy); color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(906px + var(--gutter) * 2); }

/* Tipografia utilitária */
.t-script { font-family: var(--font-script); font-weight: 500; font-size: var(--fs-script); letter-spacing: -0.04em; color: var(--blue); line-height: 1.2; }
.t-h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
.t-h4 { font-size: var(--fs-h4); font-weight: 700; }
.t-strong { font-weight: 700; }
.c-navy { color: var(--navy); }
.c-blue { color: var(--blue); }
.c-white { color: var(--white); }
.c-ink { color: var(--ink); }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.stack > * + * { margin-top: var(--stack, 24px); }
.stack-lg > * + * { margin-top: 40px; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border: 1px solid transparent; background: var(--blue); color: var(--white); font-size: var(--fs-body); font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(38, 60, 157, 0.6); }
.btn:active { transform: translateY(0); }
.on-navy .btn:hover, .btn--light:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: var(--blue); }
.btn--outline { padding: 12px 20px; background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); box-shadow: none; }
.btn--wide { padding-inline: 62px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-transform: uppercase; }
.link-arrow::after { content: "›"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Secções e transições inclinadas (Rectangle 16/17 do Figma)
   -------------------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section-y); }
.section--navy { background: var(--navy); color: var(--white); }
.section--grey { background: var(--grey); }
.section--blue { background: var(--blue); color: var(--white); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(48px, 4vw + 16px, 80px); }
.section--flush-top { padding-top: 0; }

/* triângulo de meia largura que "sobe" ou "desce" da secção, na cor da secção */
.section[class*="slope-"]::before,
.section[class*="slope-"]::after { content: none; position: absolute; width: 50%; height: var(--slope-h); background: inherit; pointer-events: none; z-index: 1; }
.slope-top-left::before, .slope-top-right::before { content: "" !important; bottom: 100%; }
.slope-top-left::before { left: 0; clip-path: polygon(0 0, calc(100% - var(--slope-bevel)) 0, 100% 100%, 0 100%); }
.slope-top-right::before { right: 0; clip-path: polygon(var(--slope-bevel) 0, 100% 0, 100% 100%, 0 100%); }
.slope-bottom-left::after, .slope-bottom-right::after { content: "" !important; top: 100%; }
.slope-bottom-left::after { left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slope-bevel)) 100%, 0 100%); }
.slope-bottom-right::after { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slope-bevel) 100%); }
/* secções com imagem de fundo: o triângulo usa a cor declarada */
.section[data-slope-color]::before, .section[data-slope-color]::after { background: var(--slope-color); }

/* Fundo com imagem + gradiente (Rectangle 45 do Figma: transparente → #1c213a, hard-light) */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.bg-media { position: absolute; inset: 0; z-index: -2; }
.bg-media img { width: 100%; height: 100%; object-fit: cover; }
.bg-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 33, 58, 0) 0%, var(--shade) 100%); mix-blend-mode: hard-light; }
.bg-shade--soft { background: linear-gradient(180deg, rgba(28, 33, 58, 0) 0%, rgba(28, 33, 58, 0.8) 100%); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, 0.96); transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); } }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(29, 29, 29, 0.06), 0 8px 24px -16px rgba(29, 29, 29, 0.25); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.site-logo { display: block; flex-shrink: 0; width: 209px; }
.site-logo img { width: 100%; height: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav__list { display: flex; align-items: center; gap: 40px; list-style: none; }
.main-nav__list > li { position: relative; }
.main-nav__list a, .main-nav__toggle-sub { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: var(--fs-body); color: var(--ink); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color 0.2s var(--ease); }
.main-nav__list > li > a::after, .main-nav__toggle-sub::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.main-nav__list > li > a:hover, .main-nav__toggle-sub:hover, .main-nav__list .current-menu-item > a, .main-nav__list .current-menu-ancestor > .main-nav__toggle-sub { color: var(--navy); }
.main-nav__list > li > a:hover::after, .main-nav__toggle-sub:hover::after, .main-nav__list .current-menu-item > a::after, .main-nav__list .current-menu-ancestor > .main-nav__toggle-sub::after { transform: scaleX(1); transform-origin: left; }
.main-nav__caret { width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.has-sub.is-open .main-nav__caret { transform: rotate(-135deg); margin-top: 3px; }

.sub-menu { position: absolute; top: calc(100% + 18px); left: 50%; min-width: 320px; padding: 12px 0; list-style: none; background: var(--white); border-top: 3px solid var(--blue); box-shadow: 0 18px 40px -18px rgba(29, 29, 29, 0.35); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; }
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; }
.has-sub:hover > .sub-menu, .has-sub.is-open > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-menu a { display: block; padding: 10px 24px; font-size: 1rem; white-space: normal; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { background: var(--grey); color: var(--navy); }

.lang-switch { display: flex; align-items: center; gap: 3px; list-style: none; }
.lang-switch a, .lang-switch span { display: block; width: 24px; height: 18px; opacity: 0.55; transition: opacity 0.2s, transform 0.2s var(--ease); }
.lang-switch .is-current a, .lang-switch .is-current span, .lang-switch a:hover { opacity: 1; }
.lang-switch a:hover { transform: translateY(-1px); }
.lang-switch img { width: 24px; height: 18px; object-fit: cover; }
.lang-switch .is-disabled span { cursor: default; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer__main { display: grid; grid-template-columns: 417px 380px auto; justify-content: space-between; gap: 48px; padding-block: 120px 116px; }
.site-footer__brand img { width: 417px; max-width: 100%; height: auto; }
.site-footer__brand p { margin-top: 30px; max-width: 417px; color: var(--blue); }
.site-footer__brand .om { margin-top: 30px; color: var(--white); }
.site-footer h2 { font-size: var(--fs-h4); color: var(--blue); margin-bottom: 30px; }
.footer-list { list-style: none; }
.footer-list li { padding-block: 17px; border-bottom: 1px solid var(--blue); }
.footer-list li:first-child { padding-top: 0; }
.footer-list li:last-child { border-bottom: 0; }
.footer-note { margin-top: 14px; color: var(--blue); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.footer-contact a:hover { color: var(--blue); }
.footer-contact img { width: 24px; height: 24px; }
.site-footer__bar { background: var(--navy-dark); color: var(--blue); }
.site-footer__bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding-block: 20px; font-size: 12px; font-weight: 300; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 60px; }
.site-footer__legal a:hover { color: var(--white); }
.site-footer__credit { display: flex; align-items: center; gap: 4px; font-size: 8px; letter-spacing: -0.02em; font-weight: 400; }
.site-footer__credit img { width: 90px; height: 20px; }

/* --------------------------------------------------------------------------
   Componentes
   -------------------------------------------------------------------------- */
.card { border: 1px solid var(--line); background: var(--white); }
.card--grey { background: var(--grey); border: 0; }
.num-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--blue); color: var(--white); font-size: var(--fs-h4); font-weight: 700; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 631px); justify-content: space-between; gap: 48px; align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Lista com ícone de visto (Frame 32px) */
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 16px 20px; border: 1px solid var(--line); background: var(--white); transition: border-color 0.25s, transform 0.3s var(--ease); }
.check-list li:hover { border-color: var(--blue); transform: translateX(4px); }
.check-list img { flex-shrink: 0; width: 32px; height: 32px; }
.check-list--plain li { border-color: transparent; }

/* Cartões de patologia (Home) */
.pathology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 60px; }
.pathology-card { display: flex; flex-direction: column; padding: 30px; background: var(--grey); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pathology-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(38, 60, 157, 0.45); }
.pathology-card__icon { width: 60px; height: 60px; transition: transform 0.5s var(--ease); }
.pathology-card:hover .pathology-card__icon { transform: rotate(-8deg) scale(1.06); }
.pathology-card h3 { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: var(--fs-body); color: var(--navy); }
.pathology-card p { margin-top: 20px; flex: 1; }
.pathology-card .btn { align-self: flex-start; margin-top: 30px; }

/* Lista de artigos */
.post-list { display: grid; gap: 20px; }
.post-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: center; padding: 30px; border: 1px solid var(--line); background: var(--white); transition: border-color 0.25s, box-shadow 0.35s var(--ease); }
.post-row:hover { border-color: var(--blue); box-shadow: 0 24px 40px -32px rgba(38, 60, 157, 0.5); }
.post-row__media { position: relative; aspect-ratio: 250 / 144; overflow: hidden; background: #d9d9d9; }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.05); }
.post-row h3 { font-size: var(--fs-h4); color: var(--blue); }
.post-row h3 a::before { content: ""; position: absolute; inset: 0; }
.post-row { position: relative; }
.post-row p { margin-top: 20px; }
.post-row .link-arrow { margin-top: 20px; position: relative; z-index: 1; }

.post-side { display: grid; gap: 20px; }
.post-side .post-card { position: relative; padding: 30px; border: 1px solid var(--line); transition: border-color 0.25s; }
.post-side .post-card:hover { border-color: var(--blue); }
.post-side .post-card h3 { font-size: var(--fs-body); color: var(--blue); }
.post-side .post-card h3 a::before { content: ""; position: absolute; inset: 0; }
.post-side .post-card p { margin-top: 20px; }
.post-side .post-card .link-arrow { margin-top: 20px; }

/* Pesquisa */
.search-form { position: relative; display: flex; width: 100%; max-width: 432px; }
.search-form input { width: 100%; height: 46px; padding: 0 48px 0 18px; border: 1px solid var(--line); border-radius: 0; background: var(--white); font-size: var(--fs-small); transition: border-color 0.2s; }
.search-form input::placeholder { color: var(--line); }
.search-form input:focus { outline: none; border-color: var(--blue); }
.search-form button { position: absolute; right: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.search-form button img, .search-form button svg { width: 20px; height: 20px; }

/* Paginação */
.pagination { display: flex; justify-content: center; gap: 38px; margin-top: 60px; }
.pagination a, .pagination span { color: var(--blue-soft); }
.pagination .is-disabled { color: var(--muted); }
.pagination a:hover { color: var(--navy); }

/* FAQ (acordeão) */
.faq { display: grid; gap: 10px; max-width: 640px; margin: 60px auto 0; text-align: left; }
.faq__item { border: 1px solid var(--navy); background: var(--white); transition: border-color 0.25s; }
.faq__item.is-open { border-color: var(--blue); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 60px; padding: 16px 24px; background: none; border: 0; text-align: left; font-weight: 700; color: var(--navy); cursor: pointer; }
.faq__item.is-open .faq__q { color: var(--blue); }
.faq__icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 4px; background: currentColor; transition: transform 0.35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a .inner { padding: 0 24px 24px; }

/* --------------------------------------------------------------------------
   Formulário de contacto
   -------------------------------------------------------------------------- */
.form-section .split { grid-template-columns: minmax(0, 482px) minmax(0, 632px); }
.contact-form { display: grid; gap: 10px; }
.field input, .field textarea { width: 100%; height: 60px; padding: 0 24px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { height: 180px; padding-block: 20px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--line); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 150, 252, 0.15); }
.field--phone { position: relative; display: flex; align-items: center; height: 60px; border: 1px solid var(--line); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.field--phone:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 150, 252, 0.15); }
.field--phone select { appearance: none; -webkit-appearance: none; height: 100%; padding: 0 30px 0 50px; border: 0; background: transparent no-repeat 14px center / 24px 18px; color: var(--line); cursor: pointer; }
.field--phone .caret { position: absolute; left: 92px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transform: rotate(45deg); pointer-events: none; }
.field--phone input { height: 100%; border: 0; padding-left: 8px; }
.field--phone input:focus { box-shadow: none; }
.field-group { margin-top: 14px; border: 0; padding: 0; }
.field-group legend { margin-bottom: 14px; padding: 0; color: var(--line); }
.radio { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--line); cursor: pointer; transition: color 0.2s; }
.radio:hover, .radio:has(input:checked) { color: var(--ink); }
.radio input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.radio input:checked { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--white); background: var(--blue); }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 6px; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.consent input:checked { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.contact-form .btn { justify-self: start; margin-top: 10px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 20px; border: 1px solid rgba(30, 150, 252, 0.35); background: rgba(30, 150, 252, 0.08); color: var(--ink); }
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: rgba(214, 69, 69, 0.45); background: rgba(214, 69, 69, 0.08); }
.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Newsletter */
.newsletter-form { display: flex; gap: 10px; max-width: 694px; margin: 40px auto 0; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; height: 45px; padding: 0 16px; border: 0; border-radius: 0; background: var(--white); color: var(--ink); }
.newsletter-form input::placeholder { color: var(--line); }
.newsletter-form .btn { flex-shrink: 0; width: 188px; padding-block: 0; height: 45px; }
.newsletter-form + .form-status, .newsletter-consent { max-width: 694px; margin: 14px auto 0; }
.newsletter-consent { color: rgba(255, 255, 255, 0.85); }
.newsletter-consent input { border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.newsletter-consent a { color: var(--white); }

/* --------------------------------------------------------------------------
   HOME
   -------------------------------------------------------------------------- */
.home-hero { position: relative; overflow: hidden; min-height: clamp(560px, 52vw, 919px); padding-block: clamp(64px, 7.5vw, 150px) 0; }
.home-hero__bg { position: absolute; inset: -142px 0 0; z-index: 0; }
.home-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.home-hero__inner { position: relative; z-index: 2; }
.home-hero__content { max-width: 555px; }
.home-hero__content .t-h3 { margin-top: 35px; color: var(--navy); }
.home-hero__lead { margin-top: 40px; max-width: 547px; font-size: var(--fs-h4); font-weight: 700; color: var(--ink); }
.home-hero__content .btn { margin-top: 40px; }
.home-hero__photo { position: absolute; z-index: 1; bottom: 0; left: calc(50% - 194px); width: min(833px, 50vw); }
.home-hero__photo img { width: 100%; height: auto; }

.home-about { padding-block: 120px; }
.home-about__top { display: grid; grid-template-columns: 500px minmax(0, 580px); justify-content: space-between; gap: 48px; }
.home-about__photos { display: grid; grid-template-columns: repeat(2, 235px); gap: 30px; align-self: start; }
.home-about__photos img { width: 100%; aspect-ratio: 235 / 332; object-fit: cover; object-position: bottom; }
.home-about__text h2 { color: var(--blue); }
.home-about__text .body { margin-top: 40px; }
.home-about__text .btn { margin-top: 40px; }
.home-about-white { position: relative; z-index: 2; padding-bottom: 120px; }
.home-about__bottom { display: grid; grid-template-columns: 500px minmax(0, 671px); justify-content: space-between; gap: 48px; align-items: center; margin-top: -165px; }
.home-about__box { display: flex; align-items: center; justify-content: flex-end; min-height: 536px; padding: 40px 93px 40px 40px; background: var(--blue); }
.home-about__box p { max-width: 307px; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; text-align: right; color: var(--white); }
.home-about__bottom .intro { color: var(--navy); padding-top: 165px; }
.home-about__bottom .intro + p { margin-top: 40px; }

.pillars { margin-top: 60px; }
.pillar { padding: 30px; border: 1px solid var(--line); background: transparent; transition: border-color 0.3s, background-color 0.3s, transform 0.35s var(--ease); }
.pillar:hover { border-color: var(--blue); background: var(--white); transform: translateY(-4px); }
.pillar h3 { margin-top: 20px; font-size: var(--fs-h4); color: var(--navy); }
.pillar p { margin-top: 20px; }
.quote-block { display: grid; grid-template-columns: 102px minmax(0, 985px); gap: 30px; justify-content: end; align-items: start; margin-top: 120px; }
.quote-block img { width: 102px; height: auto; }
.quote-block p { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; color: var(--navy); line-height: 1.2; margin-top: 60px; }

.home-surgery { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: clamp(520px, 47.7vw, 916px); padding-bottom: 181px; text-align: center; }
.home-surgery h2 { max-width: 928px; color: var(--white); }
.home-surgery .btn { margin-top: 40px; }

.home-precision .split { grid-template-columns: minmax(0, 540px) 500px; }
.home-precision h2 { color: var(--blue); }
.home-precision .body { margin-top: 40px; }
.home-precision .btn { margin-top: 40px; }
.precision-box { display: flex; align-items: center; min-height: 542px; margin-bottom: calc(-1 * var(--section-y) - 60px); padding: 40px 100px; background: var(--blue); }
.precision-box p { max-width: 300px; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--white); }

.testimonials { overflow: hidden; }
.testimonials__head { text-align: center; }
.testimonials__head h2 { color: var(--blue); }
.testimonials__head p { margin-top: 40px; }
.t-viewport { overflow: hidden; margin-inline: -2px; padding: 2px; }
.t-track { display: flex; gap: 30px; margin-top: 60px; transition: transform 0.7s var(--ease); will-change: transform; }
.t-card { flex: 0 0 600px; display: flex; flex-direction: column; gap: 20px; min-height: 236px; padding: 40px; border: 1px solid var(--line); background: var(--white); }
.t-card blockquote { margin: 0; }
.t-card cite { font-style: normal; font-weight: 700; color: var(--navy); }
.t-controls { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.t-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.t-controls button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue); color: var(--white); }
.t-controls button:disabled { opacity: 0.35; cursor: default; }
.t-controls svg { width: 16px; height: 16px; }
.t-dots { display: flex; align-items: center; gap: 8px; }
.t-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.t-dots button[aria-current="true"] { width: 24px; border-radius: 4px; background: var(--blue); }

.home-blog .split { grid-template-columns: minmax(0, 526px) minmax(0, 524px); }
.home-blog h2 { color: var(--navy); }
.home-blog .post-list { max-width: 906px; margin: 80px auto 0; }
.home-blog .post-row { background: transparent; }
.home-blog .post-row:hover { background: var(--white); }
.home-blog .cta { margin-top: 60px; text-align: center; }

.locations { text-align: center; }
.locations h2 { color: var(--blue); }
.locations > .container > p { max-width: 588px; margin: 30px auto 0; }
.locations__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 60px; margin-top: 60px; }
.locations__logos img { height: 42px; width: auto; filter: grayscale(0.2); transition: filter 0.3s, transform 0.3s var(--ease); }
.locations__logos img.is-tall { height: 50px; }
.locations__logos img:hover { filter: none; transform: translateY(-2px); }
.locations .closing { max-width: 854px; margin: 60px auto 0; font-size: var(--fs-h4); font-weight: 700; color: var(--navy); }
.locations .btn { margin-top: 40px; }

/* --------------------------------------------------------------------------
   SOBRE MIM
   -------------------------------------------------------------------------- */
.about-hero { position: relative; min-height: clamp(520px, 37.4vw, 650px); overflow: hidden; color: var(--white); }
.about-hero .bg-media img { filter: blur(7.5px); transform: scale(1.04); object-position: bottom; }
.about-hero__photo { position: absolute; z-index: 1; left: calc(50% - 431px); top: 43px; width: 462px; }
.about-hero__photo img { width: 100%; height: auto; }
.about-hero__quote { position: relative; z-index: 2; margin-left: calc(50% + 58px); max-width: 391px; padding-top: 250px; }
.about-hero__quote .t-script { margin-top: 20px; font-size: 1.375rem; letter-spacing: 0; color: var(--white); }
.about-chapters { padding-top: 120px; }
.chapter { display: grid; grid-template-columns: 416px minmax(0, 524px); justify-content: center; gap: 124px; padding-block: 120px; border-top: 1px solid var(--line); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter h2 { color: var(--blue); }
.gallery-strip { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); height: 293px; overflow: hidden; }
.gallery-strip figure { margin: 0; overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; transition: transform 1s var(--ease); }
.gallery-strip figure:hover img { transform: scale(1.06); }
.gallery-strip .bg-shade--soft { z-index: 1; pointer-events: none; }

/* --------------------------------------------------------------------------
   SOBRE A CONSULTA
   -------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); padding-block: clamp(80px, 6.2vw, 120px) clamp(120px, 9vw, 180px); }
.consult-hero .grid { display: grid; grid-template-columns: minmax(0, 667px) minmax(0, 389px); justify-content: space-between; gap: 48px; }
.consult-hero .lead { font-size: var(--fs-h4); font-weight: 700; color: var(--blue); }
.consult-hero .lead + div { margin-top: 40px; }
.consult-steps .split { grid-template-columns: minmax(0, 621px) minmax(0, 562px); align-items: end; }
.consult-steps h2 { color: var(--blue); text-align: right; max-width: 513px; margin-left: auto; margin-bottom: 60px; }
.consult-steps .photo img { width: 100%; aspect-ratio: 621 / 635; object-fit: cover; object-position: bottom; }
.consult-steps .steps { display: grid; gap: 20px; }
.consult-steps .step { padding: 30px; border: 1px solid var(--line); transition: border-color 0.25s, transform 0.35s var(--ease); }
.consult-steps .step:hover { border-color: var(--blue); transform: translateX(-4px); }
.consult-steps .step h3 { font-size: var(--fs-h4); color: var(--navy); }
.consult-steps .step p { margin-top: 20px; }
.consult-values { padding-bottom: 0; }
.consult-values h2 { text-align: center; color: var(--white); }
.value-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 60px; margin-bottom: -105px; position: relative; z-index: 2; }
.value-card { min-height: 210px; padding: 30px; background: var(--blue); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(29, 29, 29, 0.45); }
.value-card img { width: 40px; height: 40px; }
.value-card h3 { margin-top: 20px; font-size: var(--fs-body); color: var(--white); }
.value-card p { margin-top: 14px; color: var(--ink); }
.modalities { list-style: none; display: grid; gap: 28px; margin-top: 60px; }
.modalities li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; }
.modalities img { width: 40px; height: 40px; }
.modalities h3 { font-size: var(--fs-body); color: var(--navy); }
.modalities p { margin-top: 6px; }
.consult-form { padding-top: calc(var(--section-y) + 105px); }

/* --------------------------------------------------------------------------
   PATOLOGIAS (template partilhado)
   -------------------------------------------------------------------------- */
.pat-hero { position: relative; overflow: hidden; min-height: clamp(560px, 40.6vw, 779px); padding-block: clamp(64px, 6.2vw, 120px) 120px; }
.pat-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 61.7%; z-index: 0; overflow: hidden; }
.pat-hero__media img { width: 100%; height: 152%; object-fit: cover; object-position: top; }
.pat-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--blue); mix-blend-mode: screen; }
.pat-hero__inner { position: relative; z-index: 1; max-width: 534px; }
.pat-hero__icon { width: 60px; height: 60px; }
.pat-hero h1 { margin-top: 40px; font-size: var(--fs-h2); letter-spacing: -0.03em; color: var(--navy); }
.pat-hero .lead { margin-top: 40px; font-size: var(--fs-h4); font-weight: 700; color: var(--ink); }

.pat-intro .grid { display: grid; grid-template-columns: minmax(0, 361px) minmax(0, 1fr); gap: 123px; }
.pat-intro .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.pat-intro h2 { color: var(--blue); }
.pat-block .grid { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 521px); gap: 120px; align-items: start; }
.pat-block h2 { color: var(--blue); }
.pat-block .grid > div:first-child p { margin-top: 40px; }
.pat-center { text-align: center; }
.pat-center h2 { color: var(--blue); }
.pat-center > .container > p { max-width: 728px; margin: 30px auto 0; }
.milestones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 60px; text-align: left; }
.milestones li { list-style: none; display: flex; align-items: center; min-height: 126px; padding: 20px; border: 1px solid var(--line); background: var(--white); transition: border-color 0.25s, transform 0.35s var(--ease); }
.milestones li:hover { border-color: var(--blue); transform: translateY(-4px); }
.pat-center .note { max-width: 724px; margin: 60px auto 0; }
.pat-duo .grid { display: grid; grid-template-columns: minmax(0, 363px) minmax(0, 380px) minmax(0, 380px); justify-content: space-between; gap: 40px; }
.pat-duo h2 { color: var(--navy); }
.pat-band { padding-block: var(--section-y); text-align: center; color: var(--white); }
.pat-band h2 { max-width: 520px; margin-inline: auto; }
.pat-band > .container > p { max-width: 500px; margin: 30px auto 0; }
.pat-band .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1052px; margin: 60px auto 0; text-align: left; color: var(--ink); }
.pat-band .check-list li { border: 0; }
.pat-band .closing { max-width: 505px; margin: 60px auto 0; }
.pat-cta-faq h2 { color: var(--blue); }
.pat-cta-faq .faq-wrap { margin-top: 160px; text-align: center; }
.pat-cta-faq .faq-wrap h2 { max-width: 600px; margin-inline: auto; }

.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.info-card { padding: 40px; background: var(--grey); }
.info-card h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; color: var(--blue); max-width: 391px; }
.info-card .body { margin-top: 40px; }

.type-cards { display: grid; gap: 10px; }
.type-cards li { list-style: none; padding: 20px 30px; border: 1px solid var(--line); min-height: 117px; display: flex; align-items: center; }
.symptom-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 60px; text-align: center; }
.symptom-cards li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 20px; min-height: 193px; padding: 30px; border: 1px solid var(--line); background: var(--white); transition: border-color 0.25s, transform 0.35s var(--ease); }
.symptom-cards li:hover { border-color: var(--blue); transform: translateY(-4px); }
.symptom-cards img { width: 32px; height: 32px; }
.phase-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 60px; text-align: left; }
.phase-cards li { list-style: none; padding: 30px; border: 1px solid var(--line); background: var(--white); min-height: 300px; }
.phase-cards h3 { margin-top: 20px; font-size: var(--fs-body); color: var(--navy); }
.phase-cards p { margin-top: 14px; }
.option-cards { display: grid; gap: 10px; margin-top: 30px; }
.option-cards li { list-style: none; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.option-cards h3 { font-size: var(--fs-body); color: var(--navy); }
.option-cards p { margin-top: 10px; }
.panel { padding: clamp(32px, 4vw, 120px); background: var(--white); border: 1px solid var(--line); }
.panel h2 { color: var(--blue); }
.panel .body { margin-top: 40px; }

/* --------------------------------------------------------------------------
   BLOG
   -------------------------------------------------------------------------- */
.blog-hero { min-height: 490px; display: flex; align-items: center; padding-block: 120px; }
.blog-hero h1 { max-width: 528px; font-size: var(--fs-h2); letter-spacing: -0.03em; color: var(--blue); }
.blog-hero p { max-width: 524px; margin-top: 40px; }
.blog-list__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 60px; }
.blog-list__head h2 { font-size: var(--fs-h4); color: var(--blue); }
.blog-list .post-list { max-width: 906px; margin-inline: auto; }
.blog-empty { max-width: 906px; margin: 0 auto; padding: 60px; border: 1px solid var(--line); text-align: center; }
.newsletter { text-align: center; }
.newsletter h2 { color: var(--white); }
.newsletter .intro { max-width: 694px; margin: 30px auto 0; }

.article { padding-block: 60px 120px; }
.article__grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 432px); justify-content: space-between; gap: 48px; }
.article__date { color: var(--ink); }
.article h1 { margin-top: 30px; font-size: var(--fs-h4); color: var(--blue); }
.article__cover { margin-top: 40px; aspect-ratio: 720 / 415; overflow: hidden; background: #d9d9d9; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: grid; gap: 30px; }
.article__aside h2 { font-size: var(--fs-h4); color: var(--blue); }
.prose { margin-top: 60px; line-height: 1.55; }
.prose h2, .prose h3 { margin: 2em 0 0.8em; font-size: var(--fs-h4); color: var(--ink); line-height: 1.2; }
.prose h3 { font-size: var(--fs-body); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin-block: 1.5em; }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 3px solid var(--blue); color: var(--navy); font-weight: 600; }
.article__author { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 20px; }
.author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--grey); }
.author strong { display: block; font-size: var(--fs-h4); color: var(--ink-soft); }
.author span { color: var(--muted); }
.share { text-align: right; color: var(--ink-soft); }
.share ul { display: flex; gap: 5px; list-style: none; margin-top: 10px; justify-content: flex-end; }
.share a, .share button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--line); color: var(--white); cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.share a:hover, .share button:hover { background: var(--blue); transform: translateY(-2px); }
.share svg { width: 12px; height: 12px; }

/* Página genérica / 404 */
.generic { padding-block: 120px; }
.generic h1 { font-size: var(--fs-h2); letter-spacing: -0.03em; color: var(--blue); }
.generic .prose { max-width: 820px; }
.notfound { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 160px); padding-block: 120px; text-align: center; }
.notfound .code { font-size: clamp(6rem, 14vw, 12rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: var(--grey); -webkit-text-stroke: 2px var(--blue); }
.notfound h1 { margin-top: 20px; font-size: var(--fs-h3); font-weight: 600; color: var(--navy); }
.notfound p { max-width: 480px; margin: 20px auto 0; }
.notfound .btn { margin-top: 40px; }
.notfound .countdown { margin-top: 20px; font-size: var(--fs-small); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Animações de entrada (respeitam prefers-reduced-motion)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"] { transform: scale(0.96); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1360px) {
	.main-nav, .main-nav__list { gap: 28px; }
	.site-footer__main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
	.chapter { gap: 80px; }
}

@media (max-width: 1180px) {
	:root { --header-h: 72px; }
	.nav-toggle { display: block; z-index: 2; }
	.main-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter) 40px; background: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav__list > li { border-bottom: 1px solid var(--grey); }
	.main-nav__list a, .main-nav__toggle-sub { display: flex; justify-content: space-between; width: 100%; padding: 18px 0; font-size: 1.25rem; }
	.main-nav__list > li > a::after, .main-nav__toggle-sub::after { display: none; }
	.sub-menu { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.has-sub.is-open > .sub-menu { display: block; transform: none; }
	.has-sub:hover > .sub-menu { transform: none; }
	.sub-menu a { padding: 12px 16px; font-size: 1rem; color: var(--ink-soft); }
	.lang-switch { margin-top: 32px; gap: 12px; }
	.lang-switch a, .lang-switch span, .lang-switch img { width: 32px; height: 24px; }
	.site-logo { width: 180px; }

	.home-about__top, .home-about__bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.home-about__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.home-about__box { padding-right: 40px; }
	.home-precision .split { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
	.precision-box { padding: 40px 60px; }
	.milestones, .symptom-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pat-duo .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.pat-duo .grid > :first-child { grid-column: 1 / -1; }
	.chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 60px; }
	.about-hero__photo { left: 8%; }
	.about-hero__quote { margin-left: 52%; }
}

@media (max-width: 960px) {
	.split, .split--even, .home-blog .split, .home-precision .split, .form-section .split, .consult-steps .split, .consult-hero .grid, .pat-intro .grid, .pat-block .grid, .article__grid, .home-about__top, .home-about__bottom { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.pat-intro .cols { gap: 24px; }
	.grid-3, .pillars, .value-cards, .phase-cards { grid-template-columns: minmax(0, 1fr); }
	.value-cards { margin-bottom: -60px; }
	.consult-form { padding-top: calc(var(--section-y) + 60px); }
	.pathology-grid, .info-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.quote-block { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; margin-top: 80px; }
	.quote-block img { width: 64px; }
	.quote-block p { margin-top: 24px; }

	.home-hero { min-height: 0; padding-top: 56px; }
	.home-hero__photo { position: relative; left: auto; width: min(560px, 100%); margin: 24px auto 0; }
	.home-about { padding-block: 80px 140px; }
	.home-about__box { min-height: 260px; justify-content: flex-start; padding: 40px; }
	.home-about__box p { text-align: left; max-width: none; }
	.home-about__bottom { margin-top: -80px; }
	.home-about__bottom .intro { padding-top: 0; }
	.home-about-white { padding-bottom: 80px; }
	.precision-box { min-height: 300px; margin-bottom: 0; padding: 40px; }
	.home-surgery { padding-bottom: 96px; }
	.chapter { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 64px; }
	.about-chapters { padding-top: 64px; }
	.about-hero { min-height: 0; padding: 48px 0 0; display: flex; flex-direction: column-reverse; }
	.about-hero__photo { position: relative; left: auto; top: auto; width: min(340px, 80%); margin: 32px auto 0; }
	.about-hero__quote { margin: 0; padding: 0 var(--gutter); max-width: 520px; }
	.gallery-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto; }
	.gallery-strip figure { aspect-ratio: 240 / 292; }
	.consult-steps h2 { text-align: left; margin-left: 0; margin-bottom: 32px; }
	.pat-hero { padding-bottom: 80px; }
	.pat-hero__media { position: relative; width: auto; height: 300px; margin: 40px calc(-1 * var(--gutter)) 0; order: 2; }
	.pat-hero__media img { height: 100%; }
	.pat-hero { display: flex; flex-direction: column; padding-bottom: 0; }
	.pat-hero .container { order: 1; }
	.pat-band .check-list { grid-template-columns: minmax(0, 1fr); }
	.pat-cta-faq .faq-wrap { margin-top: 100px; }
	.article__aside { position: static; }
	.site-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 80px; }
	.site-footer__brand { grid-column: 1 / -1; }
	.t-card { flex-basis: min(600px, 85vw); }
}

@media (max-width: 640px) {
	:root { --header-h: 64px; }
	.site-logo { width: 156px; }
	.btn { width: 100%; padding-inline: 20px; }
	.btn--outline { width: auto; }
	.contact-form .btn { justify-self: stretch; }
	.home-hero__content .btn, .home-about__text .btn, .home-precision .btn { width: auto; }
	.post-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
	.milestones, .symptom-cards { grid-template-columns: minmax(0, 1fr); }
	.symptom-cards li { flex-direction: row; min-height: 0; text-align: left; }
	.pat-intro .cols { grid-template-columns: minmax(0, 1fr); }
	.pat-duo .grid { grid-template-columns: minmax(0, 1fr); }
	.home-about__photos { gap: 12px; }
	.gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-strip figure:nth-child(n+5) { display: none; }
	.t-card { padding: 28px; }
	.newsletter-form { flex-direction: column; }
	.newsletter-form .btn { width: 100%; }
	.blog-list__head { flex-direction: column; align-items: stretch; }
	.site-footer__main { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 64px; }
	.site-footer__bar .container { flex-direction: column; align-items: flex-start; }
	.site-footer__legal { gap: 8px 24px; }
	.article__author { flex-direction: column; align-items: flex-start; }
	.share { text-align: left; }
	.share ul { justify-content: flex-start; }
	.info-card, .panel { padding: 28px; }
	.faq__q { padding: 16px 18px; }
	.faq__a .inner { padding: 0 18px 20px; }
	.field input, .field textarea { padding-inline: 16px; }
}

/* Erros de validação */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d64545; }
.consent input[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15); }
.newsletter-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #d64545; }
.newsletter .form-status { margin: 14px auto 0; max-width: 694px; text-align: left; color: var(--white); background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.newsletter .form-status.is-error { border-color: #ffb4b4; }
.bg-media img[data-parallax] { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   Patologias — blocos adicionais
   -------------------------------------------------------------------------- */
.pat-intro .cols--one { grid-template-columns: minmax(0, 750px); }
.pat-intro .cols > .type-cards, .pat-intro .cols > .pat-intro__list { align-self: start; }
.pat-intro .type-cards li { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.pat-intro .type-cards p { margin: 0; }
.dot-list { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.dot-list li { display: flex; align-items: center; gap: 18px; }
.dot-list img { width: 32px; height: 32px; flex-shrink: 0; }
.pat-intro .dot-list img { filter: brightness(0) invert(1); }

.pat-block .grid--wide { grid-template-columns: minmax(0, 360px) minmax(0, 520px); justify-content: space-between; }
.pat-block .grid--list { grid-template-columns: minmax(0, 333px) minmax(0, 759px); justify-content: space-between; }
.pat-block .grid--list > div:first-child p { margin-top: 40px; }
.pat-block .grid { justify-content: space-between; }

.pat-duo { color: var(--white); }

.pat-band--split { text-align: left; }
.pat-band__grid { display: grid; gap: 40px; align-items: start; }
.pat-band__grid.cols-1 { grid-template-columns: minmax(0, 360px) minmax(0, 520px); justify-content: center; gap: 120px; }
.pat-band__grid.cols-2 { grid-template-columns: minmax(0, 360px) minmax(0, 440px) minmax(0, 440px); justify-content: space-between; }
.pat-band .closing { color: var(--white); }

.diag-panel { display: grid; grid-template-columns: minmax(0, 756px) minmax(0, 433px); justify-content: space-between; gap: 48px; align-items: center; }
.diag-panel__box { display: grid; place-items: center; min-height: 233px; padding: 40px; border: 1px solid var(--line); background: var(--white); text-align: center; }
.diag-panel__box h2 { color: var(--blue); }

.panel--lift { max-width: 818px; margin: -146px auto 0; position: relative; z-index: 2; }
.pat-panel-section { padding-top: 0; }
.panel--glass { background: rgba(255, 255, 255, 0.94); color: var(--ink); border: 0; }
.pat-band--panels { text-align: center; }
.pat-band--panels .panel { max-width: 1201px; margin-inline: auto; }
.pat-band--panels .pat-band__grid h2 { color: var(--white); }

.info-cards--overlap { position: relative; z-index: 2; margin-bottom: -210px; }
.info-cards--overlap .info-card { background: var(--white); }
.pat-cards + .pat-band { padding-top: calc(var(--section-y) + 210px); }
.phase-cards--overlap { position: relative; z-index: 2; margin-bottom: -150px; }
.pat-center + .pat-band, .phase-cards--overlap ~ * { }
.section:has(.phase-cards--overlap) + .pat-band { padding-top: calc(var(--section-y) + 150px); }

/* linhas de largura total entre capítulos (Sobre mim) */
.chapter { position: relative; border-top: 0; }
.chapter + .chapter::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; background: var(--line); transform: translateX(-50%); }

/* páginas internas: a 1.ª secção a seguir ao cabeçalho com cor de fundo */
.contact-page { padding-top: clamp(64px, 6vw, 120px); }
.contact-page .footer-contact a, .contact-mail a { color: var(--ink); }
.contact-mail a:hover { color: var(--blue); }

@media (max-width: 1180px) {
	.pat-band__grid.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.pat-band__grid.cols-2 > h2 { grid-column: 1 / -1; }
	.pat-band__grid.cols-1 { gap: 60px; }
}
@media (max-width: 960px) {
	.pat-block .grid--wide, .pat-block .grid--list, .pat-band__grid.cols-1, .diag-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.panel--lift { margin-top: -60px; }
	.info-cards--overlap { margin-bottom: -120px; }
	.pat-cards + .pat-band { padding-top: calc(var(--section-y) + 120px); }
	.phase-cards--overlap { margin-bottom: -100px; }
	.section:has(.phase-cards--overlap) + .pat-band { padding-top: calc(var(--section-y) + 100px); }
	.diag-panel__box { min-height: 0; }
}
@media (max-width: 640px) {
	.pat-band__grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
}

/* Ajustes finos de telemóvel */
@media (max-width: 960px) {
	.grid-2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pat-band .bg-shade { background: linear-gradient(180deg, rgba(28, 33, 58, 0.55) 0%, rgba(28, 33, 58, 0.92) 100%); mix-blend-mode: normal; }
}
@media (max-width: 640px) {
	:root { --fs-script: 2.35rem; }
	.home-hero .t-script { white-space: normal !important; }
	.quote-block { grid-template-columns: minmax(0, 1fr); }
	.quote-block img { width: 52px; }
	.quote-block p { margin-top: 0; }
}
