/* Gerado pelo pipeline (lib/v3-fonts.mjs): 6 ficheiros woff2 de Literata, Rubik, licença livre do Google Fonts (OFL/Apache/UFL). Os ficheiros estão em fonts/ (pasta do site). */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-normal-400-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-normal-400-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-italic-400-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-italic-400-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/rubik-normal-400-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/rubik-normal-400-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #0f7699;
  --secondary: #0b3f52;
  --accent: #f18412;
  --page: #eef5f7;
  --surface: #ffffff;
  --ink: #12252c;
  --ink-2: #44565e;
  --line: #c3d6dd;
  --cta: #0f7699;
  --cta-text: #ffffff;
  --cta-hover: #0b5c78;
  --focus: #0b5c78;
  --serif: "Literata", Georgia, serif;
  --sans: "Rubik", "Segoe UI", sans-serif;
  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px;
}
.skip:focus { top: 8px; }

/* Faixa do seguro */
.topbar { background: var(--secondary); color: #fff; font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 24px; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
.topbar a:hover { text-decoration-color: #fff; }
.topbar :focus-visible { outline-color: #fff; }
.topbar__hours { opacity: .9; }

/* Cabeçalho */
.mast { position: relative; background: var(--surface); border-bottom: 1px solid var(--ink); }
.mast__in { display: flex; align-items: center; gap: 40px; min-height: 80px; }
.mast__logo img { width: 150px; height: auto; }
.mast__nav { display: flex; gap: 28px; margin-left: auto; font: 400 16px/1 var(--serif); }
.mast__nav a { text-decoration: none; padding: 14px 0; color: var(--ink); }
.mast__nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--cta); color: var(--cta-text);
  font: 500 16px/1.2 var(--sans); text-decoration: none; border-radius: 2px;
  transition: background .15s;
}
.btn:hover { background: var(--cta-hover); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Herói: o índice */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  background: var(--page);
  min-height: 650px;
}
.hero__index { padding: 0 0 12px; }
.hero__head {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px;
  align-items: end;
  background: var(--secondary); color: var(--surface);
  padding: 26px 48px 26px var(--gutter);
}
h1 {
  margin: 0;
  font: 400 47px/1.08 var(--serif);
  letter-spacing: -0.015em;
  color: var(--surface);
}
h1 span { display: block; }
h1 span:last-child { font-style: italic; }
.hero__aside p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--page); }
.hero__aside .btn { width: 100%; background: var(--surface); color: var(--secondary); }
.hero__aside .btn:hover { background: var(--page); }
.hero__aside :focus-visible { outline-color: var(--surface); }
.wa {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  font-size: 16px; color: var(--primary); text-underline-offset: 3px;
}
.hero__aside .wa { color: var(--page); }

.ix, .ix-rest, .m-cta { margin-left: var(--gutter); margin-right: 64px; }
.ix { list-style: none; padding: 6px 0 0; }
.ix__major { border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
.ix__row {
  display: flex; align-items: baseline; gap: 14px;
  text-decoration: none; color: var(--secondary); position: relative;
}
.ix__name { font: 400 40px/1.1 var(--serif); letter-spacing: -0.01em; }
.ix__lead {
  flex: 1; align-self: flex-end; margin-bottom: 11px;
  border-bottom: 2px dotted var(--line);
}
.ix__go {
  font: 500 15px/1 var(--sans); color: var(--primary);
  padding: 10px 0 10px 4px;
}
.ix__go::after { content: " →"; }
.ix__row:hover .ix__name { color: var(--primary); }
.ix__row:hover .ix__lead { border-bottom-color: var(--primary); }
.ix__row[aria-current] .ix__name,
.ix-group a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ix__who { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 62em; }
.ix__who span { color: var(--ink); font-weight: 500; white-space: nowrap; }

.ix-rest { padding-top: 4px; }
.ix-group {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 2px 0;
}
.ix-group:last-child { border-bottom: 0; }
.ix-group__label { margin: 0; font: 400 16px/1.3 var(--sans); color: var(--ink-2); }
.ix-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.ix-group li { font: italic 400 22px/1.4 var(--serif); }
.ix-group li + li::before { content: "·"; color: var(--ink-2); padding: 0 10px; font-style: normal; }
.ix-group a { text-decoration: none; color: var(--ink); }
.ix-group a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* A tira em duotone */
.strip { margin: 0; position: relative; background: var(--secondary); overflow: hidden; isolation: isolate; }
.strip img {
  width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%;
  filter: grayscale(1) contrast(1.15) brightness(1.02);
  mix-blend-mode: screen;
}
.strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--primary); mix-blend-mode: multiply; opacity: .28;
}
.strip figcaption {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  background: var(--secondary); color: #fff; font-size: 14px; padding: 6px 12px;
}
.strip--mobile, .m-cta { display: none; }

/* Secção seguinte: a equipa */
.team { background: var(--secondary); color: #fff; padding: 34px 0 72px; border-top: 1px solid var(--primary); }
.team h2 {
  margin: 0 0 20px;
  font: 400 34px/1.2 var(--serif); letter-spacing: -0.01em;
}
.team__body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: start; }
.team__lede { margin: 0; font-size: 17px; color: var(--page); }
.team__people { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.team__people li { width: 220px; }
.portrait {
  display: block; aspect-ratio: 4 / 5; overflow: hidden; position: relative;
  background: var(--secondary); isolation: isolate; margin-bottom: 12px;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 85% 0;
  transform: scale(1.3); transform-origin: 80% 0;
  filter: grayscale(1) contrast(1.1); mix-blend-mode: screen;
}
.portrait::after { content: ""; position: absolute; inset: 0; background: var(--primary); mix-blend-mode: multiply; opacity: .28; }
.team__name { display: block; font: 400 19px/1.3 var(--serif); }
.team__omd { display: block; font-size: 15px; color: var(--page); }

/* Ecrãs médios */
@media (max-width: 1360px) {
  :root { --gutter: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) 360px; }
  .hero__head { padding-right: 40px; }
  .ix, .ix-rest, .m-cta { margin-right: 40px; }
  .hero__head { grid-template-columns: 1fr; }
  .hero__aside { max-width: 420px; }
  .mast__nav { gap: 18px; }
  .team__body { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 960px) {
  .mast__nav { display: none; }
  .mast__in { justify-content: space-between; }
}

/* Telemóvel: recomposto */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .topbar { font-size: 14px; }
  .topbar__in { min-height: 44px; }
  .topbar__hours { display: none; }
  .mast__in { min-height: 68px; gap: 12px; }
  .mast__logo img { width: 112px; }
  .hero { display: block; min-height: 0; }
  .strip--desk { display: none; }
  .hero__index { padding: 0 0 32px; }
  .hero__head { display: block; padding: 22px var(--gutter) 22px; }
  h1 { font-size: 30px; line-height: 1.12; }
  .topbar a { display: inline-flex; align-items: center; min-height: 44px; }
  .strip--mobile { display: block; height: 240px; margin: 0 0 4px; }
  .strip--mobile img { object-position: 50% 62%; }
  .hero__aside { display: none; }
  .ix { margin: 0 var(--gutter); border-top: 0; }
  .ix__major { padding: 12px 0; }
  .ix__name { font-size: 30px; }
  .ix__row { justify-content: space-between; }
  .ix__lead { display: none; }
  .ix__go { padding: 12px 0 12px 4px; }
  .ix__who { font-size: 14px; }
  .ix__who span { white-space: normal; }
  #invisalign .ix__who { display: none; }
  .m-cta { display: grid; gap: 4px; margin: 16px var(--gutter) 0; }
  .ix-rest { margin: 0 var(--gutter); padding-top: 18px; }
  .ix-group { display: block; padding: 12px 0; }
  .ix-group__label { margin-bottom: 4px; }
  .ix-group ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .ix-group li { font-size: 20px; }
  .ix-group li + li::before { content: none; }
  .ix-group a { display: flex; align-items: center; min-height: 44px; }
  .wa { justify-content: flex-start; }
  .team { padding: 44px 0 56px; }
  .team h2 { font-size: 26px; }
  .team__people { gap: 12px; }
  .team__people li { width: auto; flex: 1; }
  .team__name { font-size: 15px; }
}
