:root {
  --ink: #10294f;
  --ink-deep: #0a1e3a;
  --sky: #45bcd4;
  --sky-soft: #dff4f7;
  --paper: #f7f5ef;
  --white: #ffffff;
  --text: #2c3d55;
  --muted: #637083;
  --line: rgba(16, 41, 79, 0.13);
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 24px 70px rgba(12, 34, 67, 0.14);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

/* Pagine interne */
.inner-page {
  background: var(--paper);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.breadcrumb:hover {
  color: var(--ink);
}

.subhero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 105px;
  background: var(--paper);
}

.subhero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -130px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(69, 188, 212, 0.3);
  border-radius: 50%;
}

.subhero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 100px;
}

.subhero__portrait {
  width: min(100%, 380px);
  aspect-ratio: 1;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.subhero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.86);
}

.subhero__copy h1,
.gallery-hero h1 {
  max-width: 780px;
  margin-bottom: 30px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 98px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.subhero__lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

.profile-story {
  background: var(--white);
}

.profile-story__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 100px;
}

.profile-facts {
  position: sticky;
  top: 132px;
  padding: 40px;
  background: var(--paper);
  border-top: 4px solid var(--sky);
}

.profile-facts dl,
.profile-facts dd {
  margin: 0;
}

.profile-facts dl > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dl > div:last-child {
  border-bottom: 0;
}

.profile-facts dt {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-facts dd {
  color: var(--muted);
}

.profile-copy h2,
.gallery-intro h2,
.page-cta h2 {
  color: var(--ink);
}

.profile-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.inline-link {
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px solid var(--sky);
}

.credential-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--sky-soft);
  border-left: 3px solid var(--sky);
}

.credential-card span,
.credential-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.credential-card .credential-card__previous {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 41, 79, 0.14);
}

.credential-card strong {
  color: var(--ink);
  font-size: 18px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.professional-links {
  display: grid;
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.professional-links a {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
}

.professional-links a:hover {
  background: var(--paper);
}

.professional-links strong {
  color: var(--sky);
  font-size: 19px;
}

.professional-links span {
  color: var(--ink);
  font-weight: 700;
}

.page-cta {
  padding: 90px 0;
}

.page-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.page-cta h2 {
  margin-bottom: 16px;
  color: var(--white);
}

.page-cta p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.page-cta__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.gallery-hero {
  padding: 105px 0 120px;
  color: var(--white);
  background: var(--ink-deep);
}

.gallery-hero .breadcrumb,
.gallery-hero .eyebrow {
  color: var(--sky);
}

.gallery-hero h1 {
  color: var(--white);
}

.gallery-hero__inner > p:last-child {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 21px;
}

.gallery-section {
  background: var(--paper);
}

.gallery-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  margin-bottom: 70px;
}

.gallery-intro .eyebrow {
  grid-column: 1;
}

.gallery-intro h2 {
  grid-column: 1;
  margin-bottom: 0;
}

.gallery-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 280px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card--tall {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, opacity 420ms ease;
}

.gallery-card:hover img {
  opacity: 0.86;
  transform: scale(1.025);
}

.gallery-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 16px;
  color: var(--white);
  background: rgba(10, 30, 58, 0.76);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .subhero__grid,
  .profile-story__grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .subhero__portrait {
    width: 280px;
  }

  .profile-facts {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .subhero,
  .gallery-hero {
    padding: 64px 0 72px;
  }

  .subhero__portrait {
    width: 210px;
    padding: 10px;
  }

  .subhero__copy h1,
  .gallery-hero h1 {
    font-size: 52px;
  }

  .profile-facts,
  .credential-card {
    padding: 26px 22px;
  }

  .credentials-grid,
  .gallery-intro {
    grid-template-columns: 1fr;
  }

  .gallery-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-card--wide,
  .gallery-card--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .page-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .page-cta__actions .button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink-deep);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
}

.topbar a span {
  color: var(--sky);
  margin-right: 7px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 35px rgba(16, 41, 79, 0.07);
}

.header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand img {
  width: 205px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav > a:not(.button) {
  position: relative;
  padding: 8px 0;
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 41, 79, 0.16);
}

.button--small {
  min-height: 44px;
  padding: 10px 20px;
}

.button--ghost {
  color: var(--ink);
  background: transparent;
}

.button--ghost:hover {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 110px;
  background:
    radial-gradient(circle at 4% 8%, rgba(69, 188, 212, 0.14), transparent 24%),
    linear-gradient(120deg, #fff 0 54%, var(--paper) 54% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -210px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(69, 188, 212, 0.32);
  border-radius: 50%;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(55px, 7vw, 100px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #19788f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: clamp(50px, 5vw, 76px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 4.4vw, 64px);
}

h3 {
  font-size: 30px;
}

.hero__lead {
  max-width: 570px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 50px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__facts div {
  margin: 0;
}

.hero__facts dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.hero__facts dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 590px;
}

.hero__image {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image--main {
  top: 0;
  right: 0;
  width: 82%;
  height: 510px;
}

.hero__image--detail {
  bottom: 0;
  left: 0;
  width: 45%;
  height: 220px;
  border: 10px solid var(--white);
}

.hero__badge {
  position: absolute;
  right: -22px;
  bottom: 38px;
  width: 138px;
  height: 138px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

.hero__badge > span {
  color: var(--sky);
  font-family: var(--font-display);
  font-size: 30px;
}

.hero__badge small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section {
  padding: 120px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 70px;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.principles {
  background: var(--white);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  padding: 38px 38px 10px 0;
  border-right: 1px solid var(--line);
}

.principle + .principle {
  padding-left: 38px;
}

.principle:last-child {
  border-right: 0;
}

.principle__number {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 900;
}

.principle h3 {
  margin-bottom: 18px;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.treatments {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.treatments::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -190px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(69, 188, 212, 0.28);
  border-radius: 50%;
}

.treatments__intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 70px;
}

.treatments__intro h2,
.treatments__intro p {
  margin-bottom: 0;
}

.treatments__intro > p {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 18px;
}

.treatments__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.treatment {
  min-height: 250px;
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: 28px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.48);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.treatment__image {
  width: 112px;
  height: 112px;
  grid-row: 1 / 3;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(12, 34, 67, 0.12);
}

.treatment:hover {
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(12, 34, 67, 0.1);
  transform: translateY(-4px);
}

.treatment h3 {
  align-self: end;
  margin-bottom: 16px;
  font-size: 31px;
}

.treatment p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.treatment--featured {
  grid-column: 1 / -1;
  min-height: 230px;
}

.treatment--featured p {
  max-width: 720px;
}

.treatments__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 35px;
}

.treatments__note p {
  margin: 0;
  color: var(--muted);
}

.treatments__note .text-link {
  flex: 0 0 auto;
  color: var(--ink);
}

.section--ink {
  color: var(--white);
  background: var(--ink-deep);
}

.section-heading--light h2 {
  color: var(--white);
}

.section-heading--light .eyebrow {
  color: var(--sky);
}

.doctors {
  position: relative;
  overflow: hidden;
}

.doctors::before {
  content: "+";
  position: absolute;
  top: -80px;
  right: 3vw;
  color: rgba(69, 188, 212, 0.09);
  font-family: Arial, sans-serif;
  font-size: 430px;
  font-weight: 200;
  line-height: 1;
}

.doctors__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.doctor {
  min-height: 350px;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.doctor > img {
  width: 124px;
  height: 124px;
  margin: 42px 0 42px 42px;
  object-fit: cover;
  object-position: 50% center;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: saturate(0.82);
}

.doctor__content {
  padding: 42px 34px 38px 26px;
}

.doctor__role {
  margin: 0 0 22px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.doctor h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 32px;
  line-height: 1.06;
}

.doctor__content > p:not(.doctor__role) {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 15px;
}

.doctor a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.doctor a span,
.text-link span {
  color: var(--sky);
  font-size: 20px;
  transition: transform 180ms ease;
}

.doctor a:hover span,
.text-link:hover span {
  transform: translateX(5px);
}

.studio {
  background: var(--paper);
}

.studio__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
}

.studio__gallery {
  position: relative;
  min-height: 590px;
}

.studio__large,
.studio__small {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.studio__large {
  top: 0;
  left: 0;
  width: 82%;
  height: 520px;
}

.studio__small {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 250px;
  border: 10px solid var(--paper);
}

.studio__copy p:not(.eyebrow) {
  color: var(--muted);
}

.studio__copy .text-link {
  margin-top: 18px;
  color: var(--ink);
}

.contact {
  background: var(--white);
}

.contact__panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  padding: clamp(45px, 7vw, 90px);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.contact__panel h2 {
  color: var(--white);
}

.contact__intro > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.75);
}

.button--light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.contact__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding-left: 50px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.contact__details span,
.contact__details > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__details strong,
.contact__details a {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.contact__details .directions {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__details .directions span {
  display: inline;
  margin: 0 0 0 8px;
  color: var(--sky);
  font-size: 17px;
}

.site-footer {
  padding: 55px 0 90px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.site-footer img {
  width: 160px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.footer__legal {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(69, 188, 212, 0.7);
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 82px 0 70px;
  background: var(--paper);
}

.legal-hero h1 {
  max-width: 880px;
  margin: 0 0 26px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.legal-content {
  background: var(--white);
}

.legal-content__inner {
  max-width: 880px;
}

.legal-content section + section {
  margin-top: 52px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
}

.legal-content h3 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 9px;
}

.legal-content a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-underline-offset: 3px;
}

.cookie-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-scroll {
  overflow-x: auto;
}

.cookie-table th,
.cookie-table td {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  color: var(--ink);
  background: var(--paper);
}

.mobile-cta {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1000px) {
  .site-nav {
    gap: 18px;
  }

  .hero__grid,
  .studio__grid {
    gap: 50px;
  }

  .doctor {
    grid-template-columns: 160px 1fr;
  }

  .doctor > img {
    width: 105px;
    height: 105px;
    margin: 34px 0 34px 30px;
  }

  .doctor__content {
    padding: 34px 28px 34px 22px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 36px), var(--max));
  }

  .topbar__inner p {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }

  .header__inner {
    min-height: 78px;
  }

  .brand img {
    width: 170px;
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    min-height: calc(100dvh - 78px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 34px 24px;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav > a {
    padding: 15px 8px !important;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .site-nav .button {
    margin-top: 16px;
    color: var(--white);
  }

  .hero {
    padding: 65px 0 80px;
    background: linear-gradient(180deg, var(--white) 0 58%, var(--paper) 58% 100%);
  }

  .hero__grid,
  .studio__grid,
  .contact__panel {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 520px;
  }

  .principles__grid {
    grid-template-columns: 1fr;
  }

  .treatments__intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 45px;
  }

  .principle,
  .principle + .principle {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle__number {
    margin-bottom: 20px;
  }

  .doctors__grid {
    grid-template-columns: 1fr;
  }

  .doctor {
    grid-template-columns: 160px 1fr;
  }

  .doctor > img {
    width: 105px;
    height: 105px;
    margin: 34px 0 34px 30px;
  }

  .studio__grid {
    gap: 70px;
  }

  .contact__details {
    padding: 36px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 62px;
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__visual {
    min-height: 430px;
  }

  .hero__image--main {
    width: 93%;
    height: 380px;
  }

  .hero__image--detail {
    width: 48%;
    height: 150px;
    border-width: 7px;
  }

  .hero__badge {
    right: -10px;
    bottom: 16px;
    width: 108px;
    height: 108px;
    padding: 15px;
  }

  .hero__badge > span {
    font-size: 23px;
  }

  .doctor {
    grid-template-columns: 126px 1fr;
  }

  .doctor > img {
    width: 82px;
    height: 82px;
    margin: 28px 0 28px 22px;
  }

  .doctor__content {
    padding: 28px 22px 32px 18px;
  }

  .doctor h3 {
    font-size: 27px;
  }

  .doctor__content > p:not(.doctor__role) {
    font-size: 14px;
  }

  .studio__gallery {
    min-height: 440px;
  }

  .studio__large {
    width: 92%;
    height: 390px;
  }

  .studio__small {
    width: 45%;
    height: 170px;
    border-width: 7px;
  }

  .contact__panel {
    width: 100%;
    padding: 55px 24px;
  }

  .contact__actions .button {
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer p:last-child {
    grid-column: auto;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: var(--white);
    background: var(--ink-deep);
    box-shadow: 0 -10px 28px rgba(10, 30, 58, 0.16);
  }

  .mobile-cta a {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-cta a + a {
    color: var(--ink-deep);
    background: var(--sky);
  }

  .treatments__grid {
    grid-template-columns: 1fr;
  }

  .treatment--featured {
    grid-column: auto;
  }

  .treatment {
    min-height: 0;
    grid-template-columns: 82px 1fr;
    column-gap: 18px;
    padding: 32px 26px;
  }

  .treatment__image {
    width: 82px;
    height: 82px;
  }

  .treatment h3 {
    font-size: 26px;
  }

  .treatments__note {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
