/* Revisione editoriale: gerarchie semplici, fotografie e informazioni cliniche. */
@font-face {
  font-family: Montserrat;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #193b3c;
  --muted: #526765;
  --teal: #226b65;
  --teal-dark: #194f4c;
  --aqua: #e7f2ef;
  --pale: #f3f7f5;
  --line: #cddbd6;
  --body: "Montserrat", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.25, 0.65, 0.3, 1);
  --glass-background: linear-gradient(
    135deg,
    rgba(247, 253, 252, 0.9),
    rgba(238, 248, 248, 0.84)
  );
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 10px 28px rgba(35, 67, 65, 0.13), inset 0 1px 0 #fff;
  --glass-backdrop: none;
}

@supports (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  :root {
    --glass-background: linear-gradient(
      135deg,
      rgba(247, 253, 252, 0.73),
      rgba(238, 248, 248, 0.63)
    );
    --glass-backdrop: blur(16px) saturate(115%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 400 16px/1.8 var(--body);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

html.booking-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.booking-open {
  position: fixed;
  top: var(--booking-scroll-top, 0px);
  inset-inline: 0;
  width: 100%;
  padding-right: var(--booking-scrollbar-gap, 0px);
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button,
summary {
  cursor: pointer;
}

button {
  color: inherit;
}

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

p {
  margin: 0 0 1.25em;
  color: var(--muted);
}

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

figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.65em;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.7rem, 4.4vw, 4.3rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
}

strong {
  font-weight: 600;
}

::selection {
  color: var(--ink);
  background: #c4e3d7;
}

:focus-visible {
  outline: 2px solid #34796d;
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.icon {
  flex: 0 0 auto;
  vertical-align: middle;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-outline {
  border-color: #48786e;
  color: var(--teal-dark);
  background: transparent;
}

.button-outline:hover {
  background: var(--teal-dark);
  color: #fff;
}

.button-white {
  color: var(--teal-dark);
  background: #fff;
}

.text-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 0.25s;
}

.text-link:hover {
  color: #071d1b;
}

/* Due geometrie del sito di Giampaolo, con tratto e colore di questo sito. */
a[data-link-icon="internal"] {
  --link-mark: url("../icons/link-internal.svg");
}

a[data-link-icon="external"] {
  --link-mark: url("../icons/link-external.svg");
}

a[data-link-icon]::after,
.footer-city a[data-link-icon] strong::after {
  content: "";
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-inline-start: 7px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: var(--link-mark) center / contain no-repeat;
  mask: var(--link-mark) center / contain no-repeat;
}

.text-link[data-link-icon] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.text-link[data-link-icon]::after,
.button[data-link-icon]::after,
.footer-booking[data-link-icon]::after,
.footer-credit a[data-link-icon]::after {
  margin-inline-start: 0;
}

.footer-city a[data-link-icon]::after {
  content: none;
}

.small-text,
.source-note {
  font-size: 0.875rem;
}

.source-note {
  margin-top: 16px;
}

.source-note a,
.legal-copy a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 300;
  background: var(--teal-dark);
  color: #fff;
  padding: 14px;
}

.skip-link:focus {
  top: 10px;
}

/* Navbar conservata nel linguaggio chiaro del riferimento. */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 60;
  padding-inline: 28px;
}

.nav-shell {
  position: relative;
  isolation: isolate;
  width: min(1420px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  transition:
    background-color 0.4s,
    border-color 0.4s;
}

.nav-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-background);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  pointer-events: none;
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand > span {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item-icon,
.nav-item-caption,
.nav-actions-label,
.main-nav .nav-whatsapp {
  display: none;
}

.nav-contact-actions {
  display: contents;
}

.main-nav > a:not(.button) {
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  padding-block: 9px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.main-nav > a:hover,
.main-nav > a[aria-current] {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

.main-nav .button {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 0.875rem;
}

.main-nav .nav-book .icon {
  display: none;
}

.main-nav .nav-call {
  border-color: transparent;
  padding-inline: 4px;
}

.main-nav .nav-call:hover {
  background: transparent;
  color: var(--teal);
  border-bottom-color: var(--teal);
  border-radius: 0;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
}

.menu-toggle-icon {
  display: block;
  position: relative;
  width: 34px;
  height: 20px;
}

.menu-toggle-icon span {
  position: absolute;
  right: 0;
  top: 4px;
  width: 34px;
  height: 1.4px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.28s ease,
    width 0.28s ease,
    top 0.28s ease;
}

.menu-toggle-icon span:last-child {
  top: 14px;
  width: 25px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span {
  top: 9px;
  width: 34px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
  transform: rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
  border-radius: 50%;
}

.stars {
  color: #92733a;
  letter-spacing: 0.12em;
  font-size: 0.9375rem;
}

@keyframes surface-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 52px;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  column-gap: 20px;
  row-gap: 10px;
  align-content: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  color: var(--teal);
}
.service-item h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
  transition: color 180ms ease;
}
.service-item p {
  grid-column: 2;
  grid-row: 2;
  max-width: 430px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.service-item[data-link-icon]::after {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  color: var(--teal);
}
.service-item:hover h3 {
  color: var(--teal);
}
.service-list-footer {
  padding-top: 28px;
}
.service-list-footer .text-link {
  min-height: 44px;
  padding-block: 8px;
}
@media (max-width: 760px) {
  .service-item {
    grid-template-columns: 26px minmax(0, 1fr) 16px;
    column-gap: 14px;
    row-gap: 8px;
    padding-block: 26px;
  }
  .service-icon {
    width: 26px;
    height: 26px;
  }
  .service-item h3 {
    font-size: 1.0625rem;
  }
  .service-item p {
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .service-list-footer {
    padding-top: 24px;
  }
}

.other-treatments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 25px;
  margin-top: 0;
  font-size: 0.875rem;
}

.other-treatments > span {
  color: var(--muted);
}

.other-treatments a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Le recensioni vivono nella home e cambiano con una sfumatura. */
.home-reviews {
  background: #fff;
}

.home-review-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  align-items: center;
}

.home-review-grid > * {
  min-width: 0;
}

.review-summary .eyebrow {
  margin-bottom: 14px;
}

.review-summary h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.review-rating > strong {
  font-size: 2.9rem;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.3;
}

.review-rating > strong > span {
  font-size: 1.4rem;
  color: var(--muted);
}

.review-summary > a {
  display: inline-block;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.review-carousel {
  min-width: 0;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.review-window {
  overflow: hidden;
}

.review-track {
  display: grid;
}

.review-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease;
}

.review-slide[aria-hidden="false"],
.review-slide:not([aria-hidden]) {
  opacity: 1;
  visibility: visible;
}

.review-slide blockquote {
  margin: 0;
  color: #242727;
  font-family: var(--body);
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
}

.review-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #242727;
  line-height: 1.5;
}

.review-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 600;
}

.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 124, 104, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
}

.review-appointment {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dbf0ce;
  color: #38a203;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.review-verified {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}

.review-stars {
  display: block;
  flex: 0 0 auto;
  width: 73.5px;
  height: 15px;
}

.review-rating .review-stars {
  width: 98px;
  height: 20px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
}

.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fbfa;
  color: var(--teal);
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.carousel-controls button:hover {
  border-color: #8cafa7;
  background: #e7f2ef;
}

.carousel-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.carousel-pause .carousel-icon-play,
.carousel-pause[aria-pressed="true"] .carousel-icon-pause {
  display: none;
}

.carousel-pause[aria-pressed="true"] .carousel-icon-play {
  display: block;
}

.carousel-count {
  min-width: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.carousel-controls .carousel-pause {
  margin-left: auto;
}

/* Sedi e contatto rapido. */
.home-booking-section {
  background: var(--aqua);
}

.home-booking-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 105px;
  align-items: start;
}

.home-booking-grid > * {
  min-width: 0;
}

.home-booking-grid h2 {
  margin-bottom: 22px;
}

.home-booking-grid p:not(.eyebrow) {
  max-width: 500px;
}

.quick-booking {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-top: 6px;
}

.quick-booking label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.quick-booking > span {
  font-size: 0.75rem;
  color: var(--muted);
}

.quick-booking .quick-info {
  width: fit-content;
  font-size: 0.875rem;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  border: 1px solid #96b1a7;
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23226e6c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
}

.biography-layout,
.treatments-layout {
  display: block;
}
.biography-layout {
  max-width: 820px;
}
.treatments-layout {
  max-width: 960px;
}

.biography-text {
  max-width: none;
}

.biography-text section {
  margin-bottom: 55px;
}

.biography-text p {
  font-size: 1rem;
  line-height: 1.9;
}

.biography-text h2 {
  font-size: 2.4rem;
}

.biography-text h3 {
  font-size: 1.3rem;
  margin-top: 28px;
}

.bio-photo {
  margin: 40px 0 60px;
}

.bio-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 28%;
}

.bio-photo figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 10px;
}

.publications {
  padding-left: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.publications li {
  padding-left: 8px;
  margin-bottom: 18px;
}

.treatment-detail {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 115px;
}

.treatment-detail:first-child {
  border-top: 1px solid var(--line);
}

.treatment-detail summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  list-style: none;
}

.treatment-detail summary::-webkit-details-marker {
  display: none;
}

.treatment-detail summary::marker {
  content: "";
}

.treatment-detail summary > span:first-child {
  flex: 1;
}

.treatment-detail summary h2 {
  font-size: 1.28rem;
  line-height: 1.5;
  letter-spacing: -0.025em;
  margin: 0 0 5px;
}

.treatment-detail summary > span > span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.accordion-plus {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: #e4eee9;
  border: 1px solid #cddbd6;
  border-radius: 50%;
  transition: transform 180ms ease-in-out;
}

.accordion-plus .icon {
  display: block;
  width: 20px;
  height: 20px;
}

.treatment-detail[open]:not(.is-collapsing) .accordion-plus,
.faq-item[open]:not(.is-collapsing) .accordion-plus {
  transform: rotate(45deg);
}

.treatment-answer {
  overflow: hidden;
}

.treatment-content {
  padding: 0 20px 28px 0;
}

.treatment-content ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 24px;
}

.treatment-content li {
  padding: 5px 0;
}

.prices-section {
  padding-top: 70px;
}

.prices-section h2 {
  font-size: 2.4rem;
}

.price-search-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 25px 0 9px;
}

#price-search {
  padding-left: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23226b65' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
  background-position: 16px center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

#price-search:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px var(--teal-dark);
}

.price-table-wrap {
  margin-block: 22px 30px;
  overflow-x: auto;
}

.price-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid var(--line);
  padding: 17px 10px;
  text-align: left;
}

.price-table thead th {
  background: var(--pale);
  font-weight: 500;
}

.price-table tbody th {
  font-weight: 400;
}

.price-table td,
.price-table th:last-child {
  white-space: nowrap;
  text-align: right;
  color: var(--teal);
}

.price-empty {
  padding-block: 20px;
}

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

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.gallery-photo {
  border: 0;
  padding: 0;
  text-align: left;
  background: none;
  min-width: 0;
}

.gallery-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  transition: opacity 0.3s;
}

.gallery-photo:hover img {
  opacity: 0.9;
}

.gallery-photo > span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 13px;
}

.results-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.results-intro img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 35%;
}

.results-note {
  border-block: 1px solid var(--line);
  padding-block: 20px;
  margin-top: 25px;
}

.results-note p {
  margin: 0;
  font-size: 0.875rem;
}

.clinical-gallery {
  display: grid;
  gap: 50px;
}

.clinical-gallery article h3 {
  margin-top: 20px;
}

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

.comparison img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.comparison-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--comparison-position, 50%));
}

.comparison input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.01;
  cursor: ew-resize;
  z-index: 3;
}

.comparison-divider {
  position: absolute;
  left: var(--comparison-position, 50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  pointer-events: none;
}

.comparison-divider::after {
  content: "Trascina";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  padding: 8px 12px;
  background: #fff;
  font-size: 0.75rem;
}

.comparison:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.comparison-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  padding: 5px 12px;
  font-size: 0.8125rem;
  z-index: 2;
}

.comparison-label.after {
  left: auto;
  right: 15px;
}

.locations-section {
  padding-top: 60px;
}

.city-filters {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.city-filter {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 10px 0;
  background: none;
  font-size: 0.875rem;
  white-space: nowrap;
}

.city-filter.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.locations-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: stretch;
}

.locations-layout > * {
  min-width: 0;
}

.location-list {
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #aac3b9 transparent;
  padding: 0 12px 0 2px;
}

.location-option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  padding: 21px 14px;
  transition:
    background-color 0.25s,
    border-color 0.25s;
}

.location-option .icon {
  width: 20px;
  color: var(--teal);
}

.location-option > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-option strong {
  font-size: 0.9375rem;
  font-weight: 500;
}

.location-option small {
  font-size: 0.8125rem;
  color: var(--muted);
}

.location-option.active {
  background: #edf5f0;
  border-left-color: var(--teal);
}

.location-detail {
  display: flex;
  flex-direction: column;
  padding: 5px 0 0;
  min-height: 440px;
}

.location-detail .eyebrow {
  margin-bottom: 11px;
}

.location-detail h3 {
  font-size: 1.6rem;
  margin-bottom: 13px;
}

.location-detail address {
  font-size: 1rem;
  color: var(--muted);
  font-style: normal;
}

.location-detail .location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.location-actions .button {
  font-size: 0.875rem;
  padding-inline: 17px;
  min-height: 47px;
}

.location-detail .directions {
  margin-top: 18px;
  font-size: 0.875rem;
}

.map-area {
  min-height: 185px;
  margin-top: 23px;
  position: relative;
  overflow: hidden;
  background: #edf3ee;
}

.map-area iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
}

.contact-section {
  background: var(--pale);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
}

.direct-contact-card {
  padding: 0 0 0 35px;
  border-left: 1px solid var(--line);
}

.direct-contact-card > .icon {
  width: 29px;
  height: 29px;
  color: var(--teal);
  margin-bottom: 20px;
}

.direct-contact-card h3 {
  font-size: 1.4rem;
}

.direct-contact-card > p {
  font-size: 1.5rem;
}

.booking-alternative {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.booking-alternative .text-link {
  font-size: inherit;
}

.faq-section {
  max-width: 900px;
  scroll-margin-top: 130px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 21px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  font-weight: 500;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  display: flow-root;
  padding-top: 18px;
  padding-bottom: 2px;
}

.faq-answer p {
  font-size: 1rem;
  margin: 0 0 16px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.final-cta {
  padding-block: 55px;
  background: var(--aqua);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-inner h2 {
  margin-bottom: 15px;
}

.cta-inner p:last-child {
  margin: 0;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
}

.cta-actions .text-link {
  font-size: 0.875rem;
}

/* Dialoghi e collegamenti sempre espliciti. */
dialog {
  color: var(--ink);
  border: 0;
  padding: 0;
  box-shadow: 0 20px 90px #0e333332;
}

dialog::backdrop {
  background: #173a3b85;
}

.booking-dialog {
  width: min(540px, calc(100% - 32px));
  min-width: 0;
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: break-word;
  padding: 44px 34px 30px;
  border-radius: 8px;
  background: #fff;
}

.booking-dialog[open] {
  animation: surface-open 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-dialog::backdrop {
  touch-action: none;
}

.booking-dialog[open]::backdrop {
  animation: booking-backdrop-open 260ms ease-out;
}

@keyframes booking-backdrop-open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.booking-dialog.is-closing::backdrop {
  animation: booking-backdrop-close 220ms ease forwards;
}

@keyframes booking-backdrop-close {
  to {
    background-color: #173a3b00;
  }
}

.booking-dialog h2 {
  max-width: 370px;
  font-size: 2rem;
  line-height: 1.25;
}

.booking-dialog > p:not(.eyebrow) {
  font-size: 0.9375rem;
}

.booking-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 28px;
  margin-bottom: 24px;
}

.booking-avatar {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--pale);
}

.booking-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.9);
  transform-origin: 50% 20%;
}

.booking-profile-name {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.booking-dialog label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 24px 0 9px;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

/* Il titolo riceve il focus iniziale; la X conserva il focus visibile con Tab. */
#booking-title:focus {
  outline: none;
}

.booking-close {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--teal-dark);
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.booking-close:hover {
  background: #e0eee6;
  border-color: #9fbaad;
}

.booking-close > svg {
  display: block;
  width: 22px;
  height: 22px;
}

.intent-tabs {
  display: flex;
  gap: 0;
  margin-top: 23px;
  border-bottom: 1px solid var(--line);
}

.intent-tab {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  min-height: 46px;
  padding: 9px 5px;
}

.intent-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.message-preview {
  margin: 23px 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.85;
}

.booking-send {
  width: 100%;
}

.photo-dialog {
  width: min(720px, calc(100vw - 32px), calc(75dvh - 75px));
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 30px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 4px;
  background: #153a39;
}

.photo-dialog img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}

.photo-dialog p {
  margin: 0;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.875rem;
}

.photo-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #fff;
}

.legal-copy {
  max-width: 850px;
}

.legal-copy h2 {
  font-size: 1.5rem;
  margin-top: 35px;
}

.legal-copy p {
  font-size: 1rem;
}

@media (max-width: 1250px) {
  .container {
    width: calc(100% - 72px);
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav > a:not(.button) {
    font-size: 0.8125rem;
  }

  .main-nav .button {
    padding-inline: 13px;
  }

  .home-review-grid {
    gap: 50px;
  }

  .home-booking-grid {
    gap: 60px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    padding-inline: 20px;
    top: 15px;
  }

  .nav-shell {
    padding: 11px 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    width: min(480px, calc(100vw - 40px));
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
  }

  .main-nav.is-open {
    display: flex;
    animation: surface-open 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .main-nav > a:not(.button) {
    white-space: normal;
  }

  .main-nav > a.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.35;
    transition: background-color 0.2s ease;
  }

  .main-nav > a.nav-item:hover,
  .main-nav > a.nav-item[aria-current] {
    background: #d3e7dfb3;
    color: var(--teal-dark);
  }

  .nav-item-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #ffffffa6;
    color: var(--teal);
    box-shadow: inset 0 0 0 1px #bad2c75c;
  }

  .nav-item-icon svg {
    width: 20px;
    height: 20px;
  }

  .nav-item-copy {
    min-width: 0;
  }

  .nav-item-name {
    display: block;
    font-weight: 500;
  }

  .nav-item-caption {
    display: block;
    margin-top: 2px;
    color: #526765;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .nav-contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #aac8bc91;
  }

  .nav-actions-label {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
  }

  .nav-contact-actions .nav-book {
    grid-column: 1 / -1;
  }

  .main-nav .nav-whatsapp {
    display: inline-flex;
  }

  .main-nav .button {
    min-height: 46px;
    margin: 0;
    font-size: 0.875rem;
    border-radius: 8px;
  }

  .main-nav .nav-call {
    justify-content: center;
    padding: 10px;
    border-color: #9cbbb0;
  }

  .main-nav .nav-call:hover {
    background: #edf6f1;
    border-color: var(--teal);
    border-radius: 8px;
  }

  .service-list {
    gap: 0 36px;
  }

  .home-review-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
  }

  .review-carousel {
    padding-left: 25px;
  }

  .review-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .review-identity {
    grid-column: 1;
    grid-row: 1;
  }

  .review-header > .review-stars {
    grid-column: 2;
    grid-row: 1;
  }

  .review-appointment {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .home-booking-grid {
    gap: 45px;
  }

  .contact-grid,
  .results-intro {
    gap: 50px;
  }

  .locations-layout {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 100px;
  }

  .container {
    width: calc(100% - 40px);
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.085em;
    margin-bottom: 18px;
  }

  .site-header {
    top: 10px;
    padding-inline: 12px;
  }

  .nav-shell {
    padding: 9px 10px;
    gap: 12px;
    border-radius: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 0.875rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
  }

  .main-nav {
    left: 0;
    width: auto;
    padding: 14px;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .other-treatments {
    gap: 10px 20px;
    padding-top: 23px;
    font-size: 0.875rem;
  }

  .home-review-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .review-summary h2 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .review-rating > strong {
    font-size: 2.5rem;
  }

  .review-carousel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .review-slide blockquote {
    font-size: 1rem;
  }

  .carousel-controls {
    margin-top: 24px;
  }

  .carousel-controls button {
    min-height: 44px;
  }

  .home-booking-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quick-booking {
    gap: 17px;
  }

  .quick-booking > .button {
    min-height: 50px;
  }

  .biography-text h2 {
    font-size: 2rem;
  }

  .biography-text section {
    margin-bottom: 42px;
  }

  .bio-photo {
    margin-block: 30px 45px;
  }

  .bio-photo img {
    height: 330px;
  }

  .treatment-detail summary {
    gap: 15px;
    padding-block: 22px;
  }

  .treatment-detail summary h2 {
    font-size: 1.15rem;
  }

  .treatment-detail summary > span > span {
    font-size: 0.875rem;
  }

  .treatment-content {
    padding: 0 0 24px;
  }

  .prices-section {
    padding-top: 45px;
  }

  .prices-section h2 {
    font-size: 2rem;
  }

  .price-table {
    font-size: 0.875rem;
  }

  .price-table th,
  .price-table td {
    padding: 15px 7px;
  }

  .price-table td {
    min-width: 85px;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-photo img {
    height: auto;
  }

  .results-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .results-intro img {
    height: auto;
  }

  .locations-section {
    padding-top: 45px;
  }

  .city-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 2px;
    gap: 24px;
    scrollbar-width: none;
    margin-bottom: 25px;
  }

  .city-filter {
    min-height: 46px;
    font-size: 0.875rem;
  }

  .locations-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .location-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 2px 2px 12px;
    gap: 12px;
    scroll-snap-type: x mandatory;
  }

  .location-option {
    min-width: 285px;
    max-width: 300px;
    scroll-snap-align: start;
    padding: 18px 15px;
    border: 1px solid var(--line);
  }

  .location-option .icon {
    display: none;
  }

  .location-option.active {
    border-color: #477c6c;
  }

  .location-option strong,
  .location-option small {
    font-size: 0.875rem;
  }

  .location-detail {
    min-height: 400px;
    padding: 0;
  }

  .location-detail h3 {
    font-size: 1.4rem;
  }

  .location-detail .location-actions {
    gap: 10px;
  }

  .location-actions .button {
    font-size: 0.8125rem;
    padding-inline: 14px;
  }

  .location-detail .directions {
    font-size: 0.875rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .direct-contact-card {
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cta-inner {
    align-items: start;
    flex-direction: column;
    gap: 28px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions > .button {
    width: 100%;
  }

  .final-cta {
    padding-block: 45px;
  }

  .booking-dialog {
    padding: 44px 23px 25px;
  }

  .booking-dialog h2 {
    font-size: 1.85rem;
  }

  .booking-dialog select {
    font-size: 1rem;
    text-overflow: ellipsis;
  }

  .intent-tab {
    font-size: 0.8125rem;
  }
}

@media (max-width: 370px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand strong {
    font-size: 0.8125rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .intent-tabs {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Le informazioni complete restano negli approfondimenti; su telefono sintesi più brevi. */
.mobile-copy {
  display: none;
}

@media (max-width: 760px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  p.mobile-copy {
    display: block;
  }

  .home-services .section-heading .eyebrow,
  .other-treatments {
    display: none;
  }

  .home-services .section-heading {
    gap: 18px;
    margin-bottom: 23px;
  }

  .home-reviews {
    padding-block: 42px;
  }

  .review-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 15px;
    align-items: center;
  }

  .review-summary .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
  }

  .review-summary h2 {
    font-size: 1.5rem;
    margin: 0;
  }

  .review-rating {
    gap: 8px;
    margin: 0;
  }

  .review-rating > strong {
    font-size: 2rem;
  }

  .review-rating > strong > span {
    font-size: 1rem;
  }

  .review-rating > .stars {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }

  .review-summary > a {
    grid-column: 1 / -1;
  }

  .home-review-grid {
    gap: 24px;
  }

  .home-booking-section {
    padding-block: 42px;
  }

  .quick-booking > span {
    display: none;
  }
}

@media (max-width: 370px) {
  .review-summary {
    grid-template-columns: 1fr;
  }

  .review-rating {
    grid-column: 1;
  }
}

/* Loghi forniti dal committente, riservati alle azioni e alle fonti. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.whatsapp-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.whatsapp-icon path {
  fill: currentColor;
}

.phone-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.main-nav .nav-book .brand-icon {
  display: inline-block;
}

.main-nav .nav-call {
  gap: 8px;
}

.quick-info {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.review-summary .review-brand {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  margin-bottom: 24px;
}

.miodottore-logo {
  display: block;
  width: 220px;
  height: auto;
}

.review-source {
  display: block;
  width: fit-content;
  margin-top: 40px;
  font-size: 0.875rem;
}

.review-timer {
  height: 3px;
  margin-top: 30px;
  background: #dfe9e3;
  overflow: hidden;
}

.review-timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--teal);
  transform-origin: left center;
}

.review-carousel .carousel-controls {
  margin-top: 15px;
}

/* La sede selezionata determina sia il messaggio sia la mappa adiacente. */
.location-map {
  min-width: 0;
  margin-top: 26px;
}

.map-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.map-caption strong {
  font-size: 0.9375rem;
  font-weight: 500;
}

.map-caption span {
  font-size: 0.875rem;
  color: var(--muted);
}

.map-frame {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #e5eee7;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.map-frame.is-loaded iframe {
  opacity: 1;
}

.location-map .map-directions {
  margin-top: 13px;
  font-size: 0.8125rem;
}

.home-map {
  margin-top: 3px;
}

.home-map .map-frame {
  height: 235px;
}

.booking-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 46px 36px 32px;
}

.booking-dialog.has-map {
  width: min(930px, calc(100% - 44px));
}

.booking-layout {
  display: grid;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.has-map .booking-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.booking-fields {
  min-width: 0;
}

.booking-dialog .booking-fields > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 20px 0 10px;
}

.booking-map {
  min-width: 0;
  max-width: 100%;
  margin-top: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.booking-map .map-frame {
  height: 270px;
}

.booking-dialog .message-preview {
  margin-block: 25px;
}

.booking-dialog .booking-alternative {
  padding-top: 24px;
  margin-top: 25px;
}

p {
  margin-bottom: 1.4em;
}

.home-booking-grid {
  grid-template-columns: minmax(0, 390px) minmax(0, 560px);
  justify-content: center;
  gap: 56px;
}

.quick-booking {
  gap: 21px;
}

.biography-text section {
  margin-bottom: 78px;
}

.biography-text h2 {
  margin-bottom: 30px;
}

.biography-text h3 {
  margin-top: 38px;
  margin-bottom: 20px;
}

.biography-text p {
  margin-bottom: 1.6em;
}

.treatment-detail summary {
  padding-block: 34px;
}

.treatment-content {
  padding-bottom: 38px;
}

.treatment-content li {
  padding-block: 8px;
}

.prices-section {
  padding-top: 92px;
}

.locations-layout {
  gap: 32px;
}

.location-detail h3 {
  margin-bottom: 19px;
}

.location-detail .location-actions {
  margin-top: 30px;
}

.contact-grid {
  gap: 110px;
}

.faq-item {
  padding-block: 28px;
}

.final-cta {
  padding-block: 72px;
}

@media (max-width: 1100px) {
  .home-booking-grid {
    gap: 36px;
  }

  .locations-layout {
    gap: 35px;
  }

  .contact-grid {
    gap: 55px;
  }
}

@media (max-width: 760px) {
  .home-services .section-heading {
    gap: 24px;
    margin-bottom: 30px;
  }

  .home-booking-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .home-review-grid {
    gap: 32px;
  }

  .review-summary .review-brand {
    grid-column: 1;
    margin: 10px 0 5px;
  }

  .miodottore-logo {
    width: 160px;
  }

  .review-rating {
    grid-column: 2;
    grid-row: 2;
  }

  .review-carousel {
    padding-top: 32px;
  }

  .review-timer {
    margin-top: 26px;
  }

  .quick-booking {
    gap: 20px;
  }

  .biography-text section {
    margin-bottom: 62px;
  }

  .biography-text h2 {
    margin-bottom: 25px;
  }

  .biography-text p {
    margin-bottom: 1.5em;
  }

  .treatment-detail summary {
    padding-block: 29px;
  }

  .treatment-content {
    padding-bottom: 33px;
  }

  .prices-section {
    padding-top: 68px;
  }

  .city-filters {
    margin-bottom: 31px;
  }

  .locations-layout {
    gap: 33px;
  }

  .contact-grid {
    gap: 38px;
  }

  .direct-contact-card {
    padding-top: 34px;
  }

  .faq-item {
    padding-block: 25px;
  }

  .final-cta {
    padding-block: 58px;
  }

  .home-map .map-frame,
  .contact-map .map-frame {
    height: 235px;
  }

  .booking-dialog,
  .booking-dialog.has-map {
    width: calc(100% - 28px);
    padding: 45px 23px 26px;
  }

  .booking-layout,
  .has-map .booking-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .booking-fields {
    display: contents;
  }

  .booking-fields > label {
    order: 0;
  }

  .booking-fields > select {
    order: 1;
  }

  .booking-fields > .intent-tabs {
    order: 2;
    margin-top: 19px;
  }

  .booking-map {
    order: 3;
    margin-top: 20px;
    padding-left: 0;
    border-left: 0;
  }

  .booking-map .map-caption {
    margin-bottom: 12px;
  }

  .booking-map .map-frame {
    height: 180px;
  }

  .booking-map .map-directions {
    margin-top: 10px;
  }

  .booking-fields > .message-preview {
    order: 4;
  }

  .has-map .booking-fields > .message-preview {
    display: none;
  }

  .booking-fields > .booking-send {
    order: 5;
    margin-top: 22px;
  }

  .booking-dialog .booking-alternative {
    margin-top: 22px;
    padding-top: 20px;
  }
}

@media (max-width: 370px) {
  .review-summary .review-brand,
  .review-rating {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Fotografie ampie, contenuti subito visibili e spaziature condivise. */
.section {
  padding-block: 112px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 52px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.hero {
  padding: 152px 0 80px;
  background: linear-gradient(110deg, #f3f8f6, #e1f0ed);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}
.hero-copy {
  padding-block: 24px;
}
.hero h1 {
  margin-bottom: 36px;
  font-size: clamp(3.6rem, 6.1vw, 5.7rem);
  letter-spacing: -0.055em;
  line-height: 1.07;
}
.hero h1 > * {
  display: block;
}
.hero-firstname {
  margin-bottom: 10px;
  font-size: 0.64em;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-size: 1.03em;
  color: var(--ink);
}
.hero-copy .eyebrow {
  margin-bottom: 28px;
  font-size: 0.875rem;
}
.hero-description {
  max-width: 470px;
  font-size: 1.0625rem;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}
.hero-actions .text-link {
  font-size: 0.9375rem;
}
.hero-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-size: 0.8125rem;
}
.hero-locations {
  max-width: 460px;
  margin: 18px 0 0;
  font-size: 0.8125rem;
  line-height: 1.8;
}
.hero-visual {
  min-width: 0;
}
.hero-portrait-stage {
  position: relative;
  isolation: isolate;
  border-radius: 4px;
}
.hero-photo {
  height: 560px;
  overflow: hidden;
  border-radius: 4px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero-visual figcaption {
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.8125rem;
}
/* Riquadri in vetro satinato: le coordinate lasciano libero il viso. */
.portrait-card {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 210px;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  background: var(--glass-background);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  color: #193b3c;
  line-height: 1.4;
  text-align: left;
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease;
}
.portrait-card::before {
  position: absolute;
  top: -1px;
  left: calc(50% - 19px);
  width: 38px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: rgba(255, 255, 255, 0.96);
  content: "";
}
.portrait-card:hover {
  border-color: #fff;
  box-shadow:
    0 12px 30px rgba(35, 67, 65, 0.18),
    inset 0 1px 0 #fff;
}
.portrait-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
.portrait-card-heading svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: #39716d;
}
.portrait-card-detail {
  font-size: 0.9375rem;
}
.portrait-card-strengths {
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.portrait-card-note {
  color: #435d5b;
  font-size: 0.8125rem;
}
.portrait-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 2px;
}
.portrait-card-tags > span {
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(192, 224, 218, 0.6);
  font-size: 0.875rem;
}
.portrait-card-quality {
  top: 8%;
  left: -20px;
  width: min(36%, 176px);
  transform-origin: left center;
}
.portrait-card-rating {
  top: 40%;
  right: -16px;
  width: min(calc(50% - 22px), 184px);
  transform-origin: right center;
}
.portrait-card-treatments {
  bottom: 104px;
  left: -20px;
  width: min(calc(50% - 22px), 184px);
  transform-origin: left bottom;
}
.portrait-card-locations {
  right: -12px;
  bottom: -12px;
  width: min(calc(50% - 22px), 184px);
  transform-origin: right bottom;
}
.home-doctor {
  background: var(--pale);
}
.home-doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(56px, 7vw, 104px);
}
.home-doctor-photo {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}
.home-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-doctor-copy {
  max-width: 620px;
}
.home-doctor-copy .eyebrow {
  margin-bottom: 24px;
}
.home-doctor-copy h2 {
  margin-bottom: 32px;
}
.home-doctor-copy p:not(.eyebrow) {
  margin-bottom: 1.6em;
  font-size: 1rem;
  line-height: 1.9;
}
.home-doctor-copy .text-link {
  margin-top: 8px;
}
.page-hero {
  padding: 160px 0 80px;
  background: #edf5f1;
}
.page-hero h1 {
  max-width: 920px;
  margin-bottom: 32px;
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  line-height: 1.18;
}
.page-hero p:not(.eyebrow) {
  max-width: 650px;
  font-size: 1.0625rem;
  line-height: 1.9;
}
.page-hero p:last-child {
  margin-bottom: 0;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}
.page-portrait {
  display: block;
  width: 100%;
  height: 560px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}
.bio-photo {
  margin-block: 52px 72px;
}
.bio-photo img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Un ritratto tra i paragrafi: affiancato su PC, nel flusso su mobile. */
.biography-text > #benvenuto {
  display: flow-root;
}
.biography-text .bio-photo-aside {
  float: right;
  width: min(42%, 320px);
  margin: 6px 0 24px 40px;
}
.bio-photo-aside img {
  border-radius: 4px;
}

.formation-story > .bio-photo {
  margin-block: 36px 44px;
}
.photo-gallery {
  gap: 40px;
}

/* Le fotografie accompagnano il passaggio della biografia a cui si riferiscono. */
.professional-experience {
  margin-block: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 130px;
}
.biography-text .professional-experience h3 {
  margin: 0 0 22px;
}
.experience-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: 30px;
  margin-top: 34px;
}
.experience-photo {
  min-width: 0;
  margin: 0;
}
.experience-photo + .experience-photo {
  margin-top: 68px;
}
.experience-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.experience-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.experience-photo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.clinical-photo-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1000px;
  margin-inline: auto;
}
.calendar-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.main-nav .nav-book .calendar-icon {
  display: inline-block;
}

/* Il contatto WhatsApp resta riconoscibile e distinto dalla prenotazione online. */
.wa-launcher {
  --wa-size: 68px;
  --wa-screen-gap: 48px;
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  z-index: 50;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: block;
  width: var(--wa-size);
  height: var(--wa-size);
  padding: 0;
  line-height: 1;
  overflow: hidden;
  color: #fff;
  background: #19835b;
  border: 2px solid #fff;
  border-radius: calc(var(--wa-size) / 2);
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  touch-action: manipulation;
  box-shadow: 0 8px 26px #173a3b2b;
  transition:
    width 460ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    background-color 200ms ease,
    box-shadow 200ms ease;
}
.wa-launcher .whatsapp-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  pointer-events: none;
  user-select: none;
}
.wa-launcher:hover {
  background: #146c4b;
  box-shadow: 0 8px 28px #173a3b3d;
}
.wa-launcher.is-greeting {
  width: min(316px, calc(100vw - var(--wa-screen-gap)));
  transition-delay: 0ms, 0ms, 0ms;
}
.wa-launcher-icon {
  position: absolute;
  inset-block: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: calc(var(--wa-size) - 4px);
  pointer-events: none;
}
.wa-greeting {
  position: absolute;
  inset-block: 0;
  left: 16px;
  right: calc(var(--wa-size) + 2px);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 240ms ease;
}
.is-greeting .wa-greeting {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 180ms;
}
.wa-wave {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.25rem;
  transform-origin: 70% 80%;
}
.is-greeting .wa-wave {
  animation: wa-hand-wave 900ms ease-in-out 3;
}
@keyframes wa-hand-wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20%,
  60% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-7deg);
  }
  80% {
    transform: rotate(-4deg);
  }
}
/* Footer con contatti, indirizzi reali e firma del progettista. */
.site-footer {
  padding: 80px 0 36px;
  color: #edf5f1;
  background: #122f34;
}
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.footer-logo {
  display: block;
  width: 64px;
  height: 64px;
  background-color: #b8d7ce;
  -webkit-mask: url("../icons/logo-vincenzo-pellegrino.svg") center / contain
    no-repeat;
  mask: url("../icons/logo-vincenzo-pellegrino.svg") center / contain no-repeat;
}
.footer-identity-copy {
  min-width: 0;
}
.footer-name {
  display: block;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  line-height: 1.6;
}
.footer-name > span {
  display: block;
  margin-top: 4px;
  font: italic 400 2.8rem/1.2 var(--serif);
}
.footer-identity-copy > p {
  margin: 25px 0 0;
  color: #bfd0cd;
  font-size: 0.875rem;
  line-height: 1.9;
}
.footer-identity-copy > .footer-registration {
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.8;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  font-size: 0.875rem;
}
.footer-contact h2,
.footer-offices > h2 {
  margin: 0 0 9px;
  color: #fff;
  font: 500 1.0625rem/1.5 var(--body);
  letter-spacing: -0.015em;
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: inherit;
  white-space: nowrap;
}
.footer-phone > svg {
  flex: 0 0 auto;
}
.footer-whatsapp,
.footer-booking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #edf5f1;
  background: transparent;
  border: 0;
  font-size: 0.875rem;
  text-align: left;
}
.footer-whatsapp:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-offices {
  min-width: 0;
}
.footer-offices > h2 {
  padding-bottom: 20px;
}
.footer-office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px 28px;
}
.footer-city h3 {
  margin-bottom: 18px;
  color: #fff;
  font: 500 0.9375rem/1.5 var(--body);
  letter-spacing: 0;
}
.footer-city ul {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-city a {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-city a > svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #aacbc2;
}
.footer-city a strong {
  display: block;
  font-weight: 500;
}
.footer-city a > span > span {
  display: block;
  margin-top: 5px;
  color: #bfd0cd;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #456063;
  color: #bfd0cd;
  font-size: 0.8125rem;
  text-align: center;
}
.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  line-height: 1.7;
}
.footer-copyright > span + span::before {
  content: "·";
  margin-right: 8px;
}
.footer-legal,
.footer-credit,
.footer-credit > a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-legal {
  gap: 24px;
}
.footer-legal > a {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.footer-credit > a {
  gap: 7px;
  color: #edf5f1;
}

@media (max-width: 1100px) {
  .section {
    padding-block: 92px;
  }
  .hero {
    padding-top: 136px;
  }
  .hero-grid,
  .page-hero-grid {
    gap: 40px;
  }
  .hero h1 {
    font-size: 4.2rem;
  }
  .hero-photo {
    height: 480px;
  }
  .page-portrait {
    height: 480px;
  }
  .portrait-card {
    padding: 10px;
  }
  .portrait-card-detail {
    font-size: 0.8125rem;
  }
  .portrait-card-note,
  .portrait-card-tags > span {
    font-size: 0.75rem;
  }
  .portrait-card-quality {
    width: min(32%, 160px);
    padding: 8px;
    left: -10px;
  }
  .portrait-card-rating {
    right: -10px;
  }
  .portrait-card-treatments {
    left: -10px;
  }
  .portrait-card-locations {
    right: -10px;
  }
  .portrait-card-quality .portrait-card-heading {
    gap: 4px;
  }
  .portrait-card-quality .portrait-card-heading svg {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
  }
  .home-doctor-grid {
    gap: 48px;
  }
  .footer-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px 60px;
  }
  .footer-offices {
    grid-column: 1 / -1;
  }
  .footer-office-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: 76px;
  }
  .section-heading,
  .home-services .section-heading {
    flex-direction: column;
    align-items: start;
    gap: 28px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 132px 0 64px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > .eyebrow {
    order: 0;
    width: 100%;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
  .hero h1 {
    order: 1;
    width: 100%;
    margin-bottom: 36px;
    text-align: center;
    font-size: clamp(3.5rem, 15vw, 4.7rem);
  }
  .hero-firstname {
    font-size: 0.62em;
  }
  .hero-visual {
    order: 2;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    padding-bottom: 16px;
  }
  .hero-photo {
    height: auto;
    aspect-ratio: 3 / 5;
  }
  .portrait-card {
    gap: 4px;
    padding: 8px;
  }
  .portrait-card-heading svg {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
  }
  .portrait-card-quality {
    max-width: 144px;
    padding: 6px;
    left: -8px;
  }
  .portrait-card-rating {
    top: 44%;
    right: -8px;
  }
  .portrait-card-treatments {
    bottom: 136px;
    left: -8px;
  }
  .portrait-card-locations {
    right: -8px;
    bottom: -10px;
  }
  .portrait-card-quality .portrait-card-strengths {
    font-size: 0.75rem;
  }
  .portrait-card-tags {
    gap: 4px;
  }
  .portrait-card-tags > span {
    padding: 1px 5px;
  }
  .hero-visual figcaption,
  .hero-locations {
    display: none;
  }
  .hero-description {
    order: 3;
    max-width: 480px;
    margin: 32px 0 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.9;
  }
  .hero-actions {
    order: 4;
    justify-content: center;
    width: 100%;
    gap: 24px;
    margin-top: 32px;
  }
  .hero-actions .button {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 0.9375rem;
  }
  .hero-actions .text-link {
    font-size: 0.9375rem;
  }
  .hero-rating {
    order: 5;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.8125rem;
  }
  .hero-rating .stars {
    font-size: 0.875rem;
  }
  .home-doctor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }
  .home-doctor-photo {
    aspect-ratio: 4 / 5;
    max-width: 480px;
    margin-inline: auto;
  }
  .home-doctor-copy h2 {
    margin-bottom: 28px;
    font-size: 1.9rem;
    line-height: 1.3;
  }
  .home-doctor-copy .eyebrow {
    margin-bottom: 20px;
  }
  .home-doctor-copy p:not(.eyebrow) {
    margin-bottom: 28px;
  }
  .page-hero {
    padding: 132px 0 60px;
  }
  .page-hero h1 {
    margin-bottom: 30px;
    font-size: 2.6rem;
  }
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .page-portrait {
    height: auto;
    aspect-ratio: 3 / 5;
    max-width: 480px;
    margin: 0 auto;
  }
  .bio-photo {
    margin-block: 42px 56px;
  }
  .formation-story > .bio-photo {
    margin-block: 20px 36px;
  }
  .biography-text .bio-photo-aside {
    float: none;
    width: 100%;
    max-width: 480px;
    margin: 32px auto 36px;
  }
  .photo-gallery {
    gap: 40px;
  }
  .professional-experience {
    margin-block: 44px;
    padding-top: 26px;
  }
  .experience-photos,
  .clinical-photo-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .experience-photos {
    gap: 32px;
    margin-top: 28px;
  }
  .experience-photo + .experience-photo {
    margin-top: 0;
  }
  .gallery-photo img {
    height: auto;
    max-height: none;
  }
  .treatment-content {
    padding-bottom: 40px;
  }
  .contact-grid,
  .results-intro {
    gap: 48px;
  }
  .wa-launcher {
    --wa-size: 58px;
    --wa-screen-gap: 36px;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .wa-greeting {
    left: 12px;
    justify-content: center;
    padding-left: 28px;
    gap: 0;
  }
  .wa-wave {
    position: absolute;
    left: 2px;
  }
  .wa-launcher .whatsapp-icon {
    width: 29px;
    height: 29px;
  }
  .site-footer {
    padding: 60px 0 calc(96px + env(safe-area-inset-bottom));
  }
  .footer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding-bottom: 38px;
  }
  .footer-name {
    font-size: 1.125rem;
  }
  .footer-name > span {
    font-size: 2.6rem;
  }
  .footer-identity {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
  }
  .footer-logo {
    width: 52px;
    height: 52px;
    margin-top: 8px;
  }
  .footer-identity-copy > p {
    margin-top: 16px;
  }
  .footer-contact {
    gap: 20px;
  }
  .footer-contact h2 {
    margin-bottom: 5px;
  }
  .footer-offices {
    grid-column: auto;
  }
  .footer-offices > h2 {
    margin: 0;
    padding: 0 0 26px;
  }
  .footer-office-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .footer-city a {
    font-size: 0.875rem;
  }
  .footer-bottom {
    gap: 20px;
    padding-top: 32px;
  }
  .footer-copyright {
    flex-direction: column;
  }
  .footer-copyright > span + span::before {
    content: none;
  }
  .footer-credit {
    row-gap: 12px;
  }
}

.quick-information {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid #b7cdc4;
}
@media (max-width: 760px) {
  .quick-information {
    gap: 20px;
    margin-top: 8px;
  }
}

/* Sequenza iniziale dedicata: fotografie ferme, testo e azioni in tempi distinti. */
@media (prefers-reduced-motion: no-preference) {
  [data-page-entrance] {
    animation: clinic-page-intro 620ms cubic-bezier(0.22, 0.61, 0.36, 1)
      var(--page-entry-delay, 0ms) backwards;
  }
  [data-page-step="1"] {
    --page-entry-delay: 70ms;
  }
  [data-page-step="2"] {
    --page-entry-delay: 140ms;
  }
  [data-page-step="3"] {
    --page-entry-delay: 210ms;
  }
  [data-page-entrance="eyebrow"] {
    animation-duration: 440ms;
  }
  [data-page-entrance="title"] {
    animation-duration: 760ms;
  }
  [data-page-entrance="photo"] {
    animation-duration: 960ms;
    --page-entry-delay: 110ms;
  }
  [data-page-entrance="actions"] {
    animation-duration: 420ms;
  }
  [data-page-entrance="meta"] {
    animation-duration: 500ms;
  }
  [data-page-entrance]:focus-within {
    animation: none;
  }
  [data-entry-state="waiting"] {
    opacity: 0;
  }
}
@keyframes clinic-page-intro {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.case-note {
  margin-top: 24px;
}

@media (max-width: 370px) {
  .portrait-card-treatments {
    width: calc(50% - 14px);
  }
  .portrait-card-treatments .portrait-card-heading {
    gap: 4px;
  }
}
