/* Exact forest, pine, eucalyptus, mint and warm-white brand palette. */
:root {
  --forest: #074438;
  --pine: #125c48;
  --eucalyptus: #357e63;
  --sage: #357e63;
  --sage-deep: #074438;
  --header-sage: #074438;
  --ivory: #f8f8f5;
  --light-copy: #f8f8f5;
  --ink: #074438;
  --accent: #357e63;
  --mint: #c7e5c4;
  --paper: #f8f8f5;
  --muted: #125c48;
  --line: #c7e5c4;
  --white: #f8f8f5;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible { outline-color: currentColor; }
.button { background: var(--pine); border-color: var(--pine); color: var(--ivory); }
.button:hover { background: var(--forest); border-color: var(--forest); }
.button-light { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.button-light:hover { background: var(--mint); border-color: var(--mint); }
.skip-link { background: var(--ivory); color: var(--forest); }
.status-dot { box-shadow: 0 0 0 4px #c7e5c426; }
.header { background: var(--forest); color: var(--ivory); }
.header.scrolled { border-bottom-color: var(--mint); }
.brand img { filter: brightness(0) invert(1); }
.desktop-nav { gap: 24px; }
.desktop-nav a { font-size: 16px; line-height: 1.5; white-space: nowrap; padding: 8px 0; }
.desktop-nav a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 5px; }
.header-actions .button { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.header-actions .button:hover { background: var(--mint); border-color: var(--mint); }
.menu-button span { background: var(--ivory); }
.mobile-nav { background: var(--forest); color: var(--ivory); border-bottom-color: var(--mint); box-shadow: 0 12px 20px #07443826; }
.hero { background: linear-gradient(to right, var(--eucalyptus) 0%, var(--forest) 100%); color: var(--ivory); }
.hero .eyebrow, .hero-description, .hero-note small { color: var(--ivory); }
.hero .status-dot { background: var(--mint); box-shadow: 0 0 0 4px #c7e5c426; }
.hero h1 span { color: var(--mint); }
.hero-buttons .button { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.hero-buttons .button:hover { background: var(--mint); border-color: var(--mint); }
.hero-buttons .text-link:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 5px; }
.hero-note { display: flex; margin-top: 42px; gap: 14px; color: var(--ivory); font-size: 16px; font-weight: 600; line-height: 1.55; }
.hero-note > div { min-width: 0; }
.hero-note small { font: inherit; color: inherit; margin-top: 0; }
.note-icon { width: 42px; height: 42px; flex-shrink: 0; border-color: var(--mint); color: var(--mint); }
.hero-visual { background: var(--pine); }
.image-shade { background: linear-gradient(0deg, #074438e6, #07443800 60%); }
.photo-tag { background: var(--ivory); color: var(--forest); }
.hero-caption, .hero-caption > div > span, .hero-caption p { color: var(--ivory); }
.hero-line { color: var(--mint); }
.circle-link { border-color: var(--mint); }
.circle-link:hover { background: var(--pine); }
.values-bar { background: var(--mint); color: var(--forest); border-color: var(--pine); }
.values-bar svg, .values-bar > a { color: var(--forest); }
.card-number { background: var(--mint); color: var(--forest); }
.card-more { border-bottom-color: var(--eucalyptus); }
.conditions { background: var(--pine); color: var(--ivory); }
.conditions .eyebrow, .condition-list summary > span,
.condition-list summary i { color: var(--mint); }
.conditions-intro > p:not(.eyebrow), .condition-list details p { color: var(--ivory); }
.condition-list details { border-bottom-color: var(--mint); }
.about { background: var(--paper); color: var(--forest); grid-template-columns: 1.06fr 1fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.about-copy .eyebrow, .about-copy h2 span { color: var(--eucalyptus); }
.about-copy > p:not(.eyebrow), .qualification small { color: var(--pine); }
.about-copy > p.lead { color: var(--forest); }
.about-copy .text-link:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.about-image { align-self: start; margin-top: 28px; aspect-ratio: auto; max-height: none; background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.about-image > img { width: 100%; height: auto; max-height: none; background: none; border: 0; box-shadow: none; border-radius: 0; mix-blend-mode: normal; object-fit: contain; object-position: center top; filter: none; }
.portrait-label { position: static; padding: 16px 0 0; background: none; border-radius: 0; color: var(--forest); }
.qualification { border-top-color: var(--mint); }
.qualification > span { background: var(--mint); color: var(--forest); }
.process { background: var(--mint); color: var(--forest); }
.process .eyebrow, .step { color: var(--forest); }
.process p { color: var(--pine); }
.process-grid article { border-top-color: var(--eucalyptus); }
.studio { background: var(--paper); color: var(--forest); }
.studio-copy .eyebrow { color: var(--eucalyptus); }
.studio-copy > p:not(.eyebrow) { color: var(--pine); }
.studio-copy .text-link:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.studio-address { border-top-color: var(--mint); }
.studio-photo-label { color: var(--ivory); text-shadow: 0 1px 6px var(--forest); }
.faq > div > p > a { border-bottom-color: var(--eucalyptus); }
.contact { background: var(--forest); color: var(--ivory); }
.contact .eyebrow, .contact-label { color: var(--mint); }
.contact-main > p:not(.eyebrow), .contact-call, .contact-details small { color: var(--ivory); }
.contact h2 span { color: var(--mint); }
.contact .status-dot { background: var(--mint); box-shadow: 0 0 0 4px #c7e5c426; }
.contact-call strong, .contact-details p { color: var(--ivory); }
.contact-details { border-color: var(--mint); }
.whatsapp-float { background: var(--ivory); border-color: var(--eucalyptus); color: var(--forest); box-shadow: 0 3px 20px #07443826; }
.booking-dialog, .service-dialog { box-shadow: 0 20px 100px #07443866; }
dialog::backdrop { background: #074438a8; }
.dialog-close { border-color: var(--eucalyptus); }
.booking-dialog input, .booking-dialog select { background: var(--ivory); border-color: var(--eucalyptus); }
.booking-dialog input::placeholder { color: var(--pine); }
.footer { background: var(--paper); }
.service-card-no-photo { background: var(--mint); border-color: var(--eucalyptus); color: var(--forest); }
.service-card-no-photo .no-photo-label, .service-card-no-photo .card-body p { color: var(--pine); }
.treatments-intro { background: var(--paper); color: var(--forest); }
.treatments-intro > p:not(.eyebrow) { color: var(--pine); }
.treatment-contact { background: var(--mint); color: var(--forest); }
.treatment-contact .eyebrow, .treatment-contact p:not(.eyebrow) { color: var(--pine); }
.treatment-contact .text-link:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1150px) {
  .desktop-nav { display: none; }
  .menu-button { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 35px; height: 40px; padding: 5px; border: 0; background: none; }
  .menu-button span { display: block; width: 23px; height: 1px; background: var(--ivory); transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 18px var(--pad) 24px; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--mint); max-height: calc(100dvh - 100px); overflow-y: auto; }
  .mobile-nav a { font-size: 17px; line-height: 1.5; padding: 8px 0; }
  .hero-note { margin-top: 32px; font-size: 15px; }
}
@media (max-width: 650px) {
  .hero-note { display: flex; margin-top: 27px; gap: 10px; font-size: 14px; }
  .note-icon { width: 36px; height: 36px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-image { margin-top: 0; }
  .contact-details { border-top-color: var(--mint); }
}

/* Text-only actions retain their existing booking and navigation behavior. */
.button, .text-link {
  justify-content: center;
  text-align: center;
  gap: 0;
}
.header-actions .button, .hero-buttons .button,
.hero-buttons .text-link, .services-bottom .text-link,
.contact-buttons .button, .conditions .button,
.gym-path-grid .text-link { gap: 0; }
.button > span, .header-actions .button > span, .text-link > span {
  font: inherit;
  line-height: inherit;
}
.service-card .card-body {
  padding-inline: 0;
  text-align: center;
}
.service-card .card-body p { margin-inline: auto; }
.circle-link {
  width: auto;
  height: auto;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.studio-address { flex-wrap: wrap; }
.studio-address > a {
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer > div { flex-wrap: wrap; gap: 16px 22px; }
.back-top {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Crop 15% from the portrait's top and enlarge the remaining photo to fill. */
.portrait-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.portrait-frame > img {
  display: block;
  width: 117.6470588235%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  mix-blend-mode: normal;
  object-fit: contain;
  object-position: center top;
  filter: none;
  transform: translate(-7.5%, -15%);
}
.hero-caption { flex-wrap: wrap; }
.service-card { text-align: center; }
.service-card-no-photo .no-photo-label {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

/* Keep the ultrasound tablet and probe in view within the shared photo format. */
#trattamento-ecografia .card-image img { object-position: 50% 54%; }
.service-dialog > img[src$="/ecografia-muscolotendinea.png"] {
  height: 360px;
  object-position: 50% 54%;
}
@media (max-width: 650px) {
  .service-dialog > img[src$="/ecografia-muscolotendinea.png"] { height: 195px; }
}
