/*
Theme Name: Giant Biodent
Theme URI: https://giantcatstudio.com
Author: Giant Cat Studio
Author URI: https://giantcatstudio.com
Description: Tema WordPress leggero, accessibile e mobile-first progettato per Centri Biodent.
Version: 0.9.7
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: giant-biodent
*/

:root {
  --gb-blue: #2d4877;
  --gb-cyan: #2ea3f2;
  --gb-pink: #c46fa5;
  --gb-yellow: #e5a92d;
  --gb-green: #3a9948;

  --gb-navy: #1e3152;
  --gb-cyan-dark: #0875b9;
  --gb-pink-dark: #8b3d70;
  --gb-yellow-dark: #805600;
  --gb-green-dark: #246f31;

  --gb-ink: #172033;
  --gb-muted: #5c6675;
  --gb-surface: #f6f9fc;
  --gb-border: #dbe4ee;
  --gb-white: #ffffff;
  --gb-radius-sm: 0.5rem;
  --gb-radius-md: 1rem;
  --gb-radius-lg: 1.5rem;
  --gb-shadow-soft: 0 1rem 3rem rgba(30, 49, 82, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--gb-ink);
  background: var(--gb-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/*
 * Keep the page sections visually connected. WordPress applies the global
 * block gap between template parts as well as inside the content; without
 * this reset a white strip appears between the final CTA and the footer.
 */
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part {
  margin-block: 0;
}

/*
 * The original 3XL preset is intentionally generous for isolated blocks,
 * but using it on both sides of every consecutive section doubles the
 * perceived whitespace. These page-level values create a tighter rhythm
 * while preserving breathing room on large screens.
 */
main .wp-block-group.alignfull[style*="spacing--80"] {
  padding-block: clamp(3.25rem, 4.5vw, 4.5rem) !important;
}

main .wp-block-group.alignfull[style*="spacing--70"] {
  padding-block: clamp(3rem, 4vw, 4rem) !important;
}

/* The closing CTA and footer form one continuous deep-blue closing area. */
main .wp-block-group.has-blue-background-color:has(.gb-cta-panel) {
  background-color: var(--gb-navy) !important;
}

.wp-block-heading.has-xx-large-font-size {
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.wp-block-heading.has-x-large-font-size {
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.has-large-font-size {
  line-height: 1.42;
}

/*
 * Introductory copy immediately below page and section titles. Preserve the
 * generous editorial scale, applying only a light reduction and a slightly
 * tighter leading consistently across the site. Card and body copy are not
 * affected.
 */
main :is(h1, h2).wp-block-heading + p.has-large-font-size {
  font-size: clamp(1.55rem, 1.35rem + 0.65vw, 1.95rem) !important;
  line-height: 1.3 !important;
}

a {
  text-underline-offset: 0.18em;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gb-cyan);
  outline-offset: 3px;
}

.gb-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--gb-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.5rem 2rem rgba(30, 49, 82, 0.06);
  backdrop-filter: blur(14px);
}

.gb-breadcrumbs {
  position: relative;
  z-index: 20;
  margin: 0;
  border-bottom: 1px solid var(--gb-border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--gb-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.gb-breadcrumbs__inner {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
  padding-block: 0.7rem;
}

.gb-breadcrumbs__list {
  display: flex;
  overflow: hidden;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-breadcrumbs__item {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.gb-breadcrumbs__item:last-child {
  overflow: hidden;
  flex: 1 1 auto;
}

.gb-breadcrumbs__item + .gb-breadcrumbs__item::before {
  content: "/";
  color: #9aa6b5;
  font-weight: 400;
}

.gb-breadcrumbs a {
  color: var(--gb-cyan-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.gb-breadcrumbs [aria-current="page"] {
  display: block;
  overflow: hidden;
  color: var(--gb-blue);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gb-card {
  height: 100%;
  padding: var(--wp--preset--spacing--50);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.08);
}

.gb-card--large {
  padding: var(--wp--preset--spacing--60);
}

.gb-site-header .gb-brand-logo img {
  width: 260px;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
}

.gb-header-inner {
  width: 100%;
}

.gb-primary-navigation {
  flex: 1 1 auto;
  justify-content: center;
}

.gb-primary-navigation .wp-block-navigation__container {
  gap: clamp(0.75rem, 1.4vw, 1.35rem);
}

.gb-primary-navigation .wp-block-navigation-item__content {
  white-space: nowrap;
}

.gb-primary-navigation .wp-block-navigation__submenu-container {
  min-width: 15rem !important;
  padding: 0.55rem !important;
  border: 1px solid var(--gb-border) !important;
  border-radius: var(--gb-radius-md) !important;
  background: var(--gb-white) !important;
  box-shadow: var(--gb-shadow-soft) !important;
}

.gb-primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  color: var(--gb-blue);
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
}

.gb-primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.gb-primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  color: var(--gb-blue);
  background: var(--gb-surface);
}

.gb-primary-navigation .gb-nav-menu-wide > .wp-block-navigation__submenu-container {
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  width: 29rem;
}

.gb-primary-navigation .gb-nav-menu-wide:hover > .wp-block-navigation__submenu-container,
.gb-primary-navigation .gb-nav-menu-wide:focus-within > .wp-block-navigation__submenu-container {
  display: grid;
}

.gb-mobile-menu {
  display: none;
}

.gb-mobile-menu__toggle {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  color: var(--gb-blue);
  background: var(--gb-white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.gb-mobile-menu__icon {
  display: grid;
  width: 1.25rem;
  gap: 0.25rem;
}

.gb-mobile-menu__icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gb-mobile-menu__toggle[aria-expanded="true"] .gb-mobile-menu__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.gb-mobile-menu__toggle[aria-expanded="true"] .gb-mobile-menu__icon span:nth-child(2) {
  opacity: 0;
}

.gb-mobile-menu__toggle[aria-expanded="true"] .gb-mobile-menu__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.gb-mobile-menu__backdrop {
  position: fixed;
  z-index: 110;
  inset: var(--gb-header-height, 5rem) 0 4rem;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(23, 32, 51, 0.42);
}

.gb-mobile-menu__backdrop[hidden] {
  display: none !important;
}

.gb-mobile-menu__backdrop.is-open {
  background: rgba(23, 32, 51, 0.42);
}

.gb-mobile-menu__panel {
  position: relative;
  z-index: 1;
  flex: 0 0 min(92vw, 25rem);
  width: min(92vw, 25rem);
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--gb-border);
  background: #ffffff;
  box-shadow: -1.25rem 0 3.5rem rgba(30, 49, 82, 0.2);
  transform: none;
}

.gb-mobile-menu__backdrop.is-open .gb-mobile-menu__panel {
  transform: none;
}

.gb-mobile-menu__scroll {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.25rem 2rem;
}

.gb-mobile-menu__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gb-cyan-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gb-mobile-menu__primary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-mobile-menu__primary li {
  margin: 0;
  border-bottom: 1px solid var(--gb-border);
}

.gb-mobile-menu__primary a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.82rem 0;
  color: var(--gb-blue);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.gb-mobile-menu__primary a::after {
  color: var(--gb-cyan-dark);
  content: "→";
  font-size: 1rem;
}

.gb-mobile-menu__treatments {
  margin-top: 1.5rem;
}

.gb-mobile-menu__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gb-mobile-menu__chips a {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  color: var(--gb-blue);
  background: var(--gb-surface);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
}

.gb-mobile-menu__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gb-border);
}

.gb-mobile-menu__contacts a,
.gb-mobile-menu__contacts button {
  display: grid;
  min-height: 2.85rem;
  box-sizing: border-box;
  place-items: center;
  padding: 0.65rem;
  border: 1px solid var(--gb-blue);
  border-radius: 999px;
  color: var(--gb-blue);
  background: var(--gb-white);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.gb-mobile-menu__contacts .gb-mobile-menu__cta {
  grid-column: 1 / -1;
  color: var(--gb-white);
  background: var(--gb-blue);
}

body.gb-mobile-menu-open {
  overflow: hidden;
}

.gb-footer-logo img {
  max-height: 3.75rem;
  filter: brightness(0) invert(1);
}

.gb-site-footer__columns {
  gap: clamp(2rem, 4vw, 4rem);
}

.gb-site-footer__column h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gb-site-footer__column .wp-block-navigation__container {
  gap: 0.65rem;
}

.gb-site-footer__column .wp-block-navigation-item__content {
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration-thickness: 1px;
}

.gb-site-footer__meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.gb-site-footer__meta a {
  color: inherit;
}

.gb-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
  object-fit: cover;
}

.gb-quick-links {
  margin-bottom: 0;
}

.gb-quick-links .wp-block-column {
  border-right: 1px solid var(--gb-border);
}

.gb-quick-links .wp-block-column:last-child {
  border-right: 0;
}

.gb-quick-links p {
  margin: 0;
  padding: 0 1rem;
}

.gb-quick-links a {
  display: block;
  color: var(--gb-blue);
  text-decoration: none;
}

.gb-quick-links span {
  color: var(--gb-muted);
  font-size: 0.875rem;
}

.gb-accent-blue { border-top: 0.3rem solid var(--gb-blue); }
.gb-accent-cyan { border-top: 0.3rem solid var(--gb-cyan); }
.gb-accent-pink { border-top: 0.3rem solid var(--gb-pink); }
.gb-accent-yellow { border-top: 0.3rem solid var(--gb-yellow); }
.gb-accent-green { border-top: 0.3rem solid var(--gb-green); }

.gb-page-hero {
  overflow: hidden;
}

/*
 * Treatments hero: the existing media remains an editable Image block, while
 * it is presented as a full-bleed visual layer behind the copy. The :has()
 * selector also updates the existing staging page without rewriting
 * its saved block content; the explicit modifier is used by new insertions.
 */
.gb-page-hero--background,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) {
  position: relative;
  isolation: isolate;
}

.gb-page-hero--background .gb-balanced-media--hero,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-balanced-media--hero {
  position: relative;
  display: block;
  min-height: 0;
}

.gb-page-hero--background .gb-balanced-media--hero > .wp-block-column:first-child,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-balanced-media--hero > .wp-block-column:first-child {
  position: relative;
  z-index: 2;
  width: min(58%, 50rem);
  min-height: 0;
  padding-block: clamp(1rem, 2.5vw, 2.5rem);
}

.gb-page-hero--background .gb-balanced-media--hero > .wp-block-column:last-child,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-balanced-media--hero > .wp-block-column:last-child {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
}

.gb-page-hero--background .gb-page-hero__image,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--gb-radius-lg);
}

.gb-page-hero--background .gb-page-hero__image::after,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-page-hero__image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--gb-surface) 0%,
    var(--gb-surface) 28%,
    rgba(246, 249, 252, 0.94) 42%,
    rgba(246, 249, 252, 0.5) 62%,
    rgba(246, 249, 252, 0.08) 82%
  );
  content: "";
  pointer-events: none;
}

.gb-page-hero--background .gb-page-hero__image img,
.gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-page-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  box-shadow: none;
  object-fit: cover;
  object-position: 72% 50%;
}

.gb-balanced-media {
  align-items: stretch;
}

.gb-balanced-media > .wp-block-column.is-vertically-aligned-center {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
}

.gb-balanced-media > .wp-block-column.is-vertically-aligned-center > .wp-block-image {
  flex: 1;
  margin: 0;
}

.gb-balanced-media > .wp-block-column.is-vertically-aligned-center > .wp-block-image img {
  height: 100%;
  min-height: 34rem;
  aspect-ratio: auto;
  object-fit: cover;
}

.gb-balanced-media--hero > .wp-block-column.is-vertically-aligned-center > .wp-block-image img {
  min-height: 38rem;
}

/*
 * Homepage hero: use the entire viewport instead of presenting the hero as a
 * centred card. The copy remains aligned with the site's wide grid, while the
 * visual stays aligned with the site's right gutter. The selector with :has()
 * also updates the hero already saved on staging; the explicit class is used
 * by new inserts.
 */
@media (min-width: 782px) {
  body.home main .wp-block-group:has(> .gb-balanced-media--hero),
  .gb-home-hero {
    padding-inline: 0 !important;
  }

  body.home main .wp-block-group:has(> .gb-balanced-media--hero) > .gb-balanced-media--hero,
  .gb-home-hero > .gb-balanced-media--hero {
    width: 100%;
    max-width: none !important;
    gap: 0;
    margin-inline: 0 !important;
  }

  body.home main .wp-block-group:has(> .gb-balanced-media--hero) > .gb-balanced-media--hero > .wp-block-column:first-child,
  .gb-home-hero > .gb-balanced-media--hero > .wp-block-column:first-child {
    padding-right: clamp(2rem, 5vw, 6rem);
    padding-left: max(1.5rem, calc((100vw - 1280px) / 2));
  }

  body.home main .wp-block-group:has(> .gb-balanced-media--hero) > .gb-balanced-media--hero > .wp-block-column:last-child,
  .gb-home-hero > .gb-balanced-media--hero > .wp-block-column:last-child {
    padding-right: max(1.5rem, calc((100vw - 1280px) / 2));
  }

  body.home main .wp-block-group:has(> .gb-balanced-media--hero) > .gb-balanced-media--hero > .wp-block-column:last-child > .wp-block-image,
  .gb-home-hero > .gb-balanced-media--hero > .wp-block-column:last-child > .wp-block-image {
    margin: 0;
  }

  body.home main .wp-block-group:has(> .gb-balanced-media--hero) > .gb-balanced-media--hero > .wp-block-column:last-child img,
  .gb-home-hero > .gb-balanced-media--hero > .wp-block-column:last-child img {
    border-radius: var(--gb-radius-lg);
  }
}

.gb-page-hero__image img,
.gb-content-image img {
  width: 100%;
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
  object-fit: cover;
}

.gb-page-hero__image img {
  height: 100%;
  aspect-ratio: auto;
}

.gb-content-image img {
  aspect-ratio: 4 / 3;
}

.gb-section-kicker {
  margin-bottom: 0.75rem;
  color: var(--gb-cyan-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gb-proof-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.06);
}

.gb-proof-grid .wp-block-column {
  padding: 1.4rem;
  border-right: 1px solid var(--gb-border);
}

.gb-proof-grid .wp-block-column:last-child {
  border-right: 0;
}

.gb-proof-grid p {
  margin: 0;
}

.gb-proof-grid strong {
  display: block;
  color: var(--gb-blue);
  font-size: 1.1rem;
}

.gb-proof-grid span {
  color: var(--gb-muted);
  font-size: 0.9rem;
}

.gb-feature-list {
  padding-left: 1.2rem;
}

.gb-feature-list li + li {
  margin-top: 0.7rem;
}

.gb-cta-panel {
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
}

.gb-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.gb-treatment-grid > .gb-treatment-card {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.gb-treatment-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--gb-border);
  border-top: 0.3rem solid var(--gb-card-accent, var(--gb-cyan));
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.07);
}

.gb-treatment-card__media {
  width: 100%;
  min-height: 0 !important;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gb-treatment-card__media img,
.gb-treatment-card__media .wp-block-cover__image-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Optional framing controls added to native Cover blocks. The zoom is applied
 * around the selected focal point and never alters the Media Library original.
 * The broader selector also previews the result inside Gutenberg, where the
 * helper class is applied to the editor wrapper rather than the Cover itself.
 */
.has-gb-image-framing .wp-block-cover__image-background {
  transform: scale(var(--gb-cover-zoom, 1));
  transform-origin: var(--gb-cover-origin-x, 50%) var(--gb-cover-origin-y, 50%);
  transition: transform 160ms ease;
}

.gb-treatment-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 1.6rem;
}

.gb-treatment-card__content h3 {
  margin-top: 0;
  line-height: 1.08;
}

.gb-treatment-card__content > :last-child {
  margin-top: auto;
  padding-top: 0.75rem;
}

.gb-treatment-card--blue { --gb-card-accent: var(--gb-blue); }
.gb-treatment-card--cyan { --gb-card-accent: var(--gb-cyan); }
.gb-treatment-card--pink { --gb-card-accent: var(--gb-pink); }
.gb-treatment-card--yellow { --gb-card-accent: var(--gb-yellow); }
.gb-treatment-card--green { --gb-card-accent: var(--gb-green); }

/*
 * Shared treatment-detail system. Every clinical treatment page uses these
 * classes, so spacing, typography, cards and responsive behaviour remain
 * consistent while the Gutenberg content stays independently editable.
 */
.gb-treatment-detail__hero-media {
  min-height: 34rem;
  overflow: hidden;
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
}

.gb-page-hero-media {
  min-height: 30rem;
  overflow: hidden;
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
}

.gb-page-hero-media .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-treatment-detail__hero-media .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-treatment-detail__intro {
  max-width: 46rem;
}

.gb-treatment-detail__facts {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.06);
}

.gb-treatment-detail__facts .wp-block-column {
  padding: 1.35rem;
  border-right: 1px solid var(--gb-border);
}

.gb-treatment-detail__facts .wp-block-column:last-child {
  border-right: 0;
}

.gb-treatment-detail__facts p {
  margin: 0;
}

.gb-treatment-detail__facts strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gb-blue);
}

.gb-treatment-detail__facts span {
  color: var(--gb-muted);
  font-size: 0.92rem;
}

.gb-treatment-detail__sidebar,
.gb-treatment-detail__process,
.gb-treatment-detail__note {
  box-sizing: border-box;
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg);
  background: var(--gb-white);
  box-shadow: 0 0.75rem 2rem rgba(30, 49, 82, 0.07);
}

.gb-treatment-detail__sidebar {
  border-top: 0.3rem solid var(--gb-cyan);
}

.gb-treatment-detail__service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gb-treatment-detail__service-grid > .wp-block-group {
  margin: 0 !important;
}

.gb-treatment-detail__service {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
}

.gb-treatment-detail__service h3 {
  margin-top: 0;
}

.gb-treatment-detail__service p:last-child {
  margin-bottom: 0;
}

.gb-treatment-detail__steps {
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: gb-treatment-step;
  list-style: none;
}

.gb-treatment-detail__process h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  line-height: 1.05 !important;
}

.gb-treatment-detail__steps li {
  position: relative;
  min-height: 2.5rem;
  padding-left: 3.5rem;
  counter-increment: gb-treatment-step;
}

.gb-treatment-detail__steps li + li {
  margin-top: 1.25rem;
}

.gb-treatment-detail__steps li::before {
  position: absolute;
  top: -0.15rem;
  left: 0;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: var(--gb-white);
  background: var(--gb-blue);
  content: counter(gb-treatment-step);
  font-weight: 800;
}

.gb-treatment-detail__note {
  border-left: 0.35rem solid var(--gb-green);
  background: linear-gradient(135deg, var(--gb-white), var(--gb-surface));
}

.gb-treatment-detail__note > :first-child,
.gb-treatment-detail__process > :first-child {
  margin-top: 0;
}

.gb-faq-list {
  display: grid;
  gap: 0.75rem;
}

.gb-faq-item {
  margin: 0 !important;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
}

.gb-faq-item summary {
  color: var(--gb-blue);
  font-weight: 750;
  cursor: pointer;
}

.gb-faq-item > :last-child {
  margin-bottom: 0;
}

.gb-team-profile__image {
  height: 100%;
  margin: 0;
}

.gb-team-profile__image img {
  width: 100%;
  height: 100%;
  min-height: 36rem;
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
  object-fit: cover;
  object-position: 50% 18%;
}

.gb-specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gb-specialty-tags li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  color: var(--gb-blue);
  background: var(--gb-surface);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.gb-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.gb-team-grid > .gb-team-card {
  margin-block: 0 !important;
}

.gb-team-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  border-top: 0.3rem solid var(--gb-card-accent, var(--gb-cyan));
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.07);
}

.gb-team-card__photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--gb-surface);
}

.gb-team-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.gb-team-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.gb-team-card__content h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.gb-team-card__role {
  margin: 0 0 0.85rem;
  color: var(--gb-cyan-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gb-team-card__content > :last-child {
  margin-bottom: 0;
}

.gb-team-card--blue { --gb-card-accent: var(--gb-blue); }
.gb-team-card--cyan { --gb-card-accent: var(--gb-cyan); }
.gb-team-card--pink { --gb-card-accent: var(--gb-pink); }
.gb-team-card--yellow { --gb-card-accent: var(--gb-yellow); }
.gb-team-card--green { --gb-card-accent: var(--gb-green); }

.gb-convention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.gb-convention-grid > .gb-convention-card {
  margin-block: 0 !important;
}

.gb-convention-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  border-top: 0.3rem solid var(--gb-card-accent, var(--gb-cyan));
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.07);
}

.gb-convention-card__media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gb-white);
}

.gb-convention-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gb-convention-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem;
}

.gb-convention-card__content h3 {
  margin-top: 0;
}

.gb-convention-card__content .gb-feature-list {
  margin-bottom: 1.2rem;
}

.gb-convention-card__content .wp-block-buttons {
  margin-top: auto;
}

.gb-convention-card--pink { --gb-card-accent: var(--gb-pink); }
.gb-convention-card--cyan { --gb-card-accent: var(--gb-cyan); }
.gb-convention-card--yellow { --gb-card-accent: var(--gb-yellow); }

.gb-condition-note {
  padding: 1.25rem 1.4rem;
  border-left: 0.3rem solid var(--gb-cyan);
  border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0;
  background: var(--gb-surface);
}

.gb-condition-note p {
  margin: 0;
}

.gb-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gb-payment-grid > .wp-block-group {
  margin-block: 0 !important;
}

.gb-payment-item {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-white);
}

.gb-payment-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gb-blue);
  font-size: 1.05rem;
}

.gb-payment-item p {
  margin: 0;
  color: var(--gb-muted);
}

.gb-insurance-panel {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg);
  background: linear-gradient(135deg, var(--gb-white), var(--gb-surface));
  box-shadow: var(--gb-shadow-soft);
}

/* Gallery: editorial composition using native, editable Cover blocks. */
.gb-gallery-hero__layout {
  gap: clamp(2rem, 5vw, 5rem);
}

.gb-gallery-hero__copy h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.gb-gallery-hero__copy > p:not(.gb-section-kicker) {
  max-width: 36rem;
  color: var(--gb-muted);
}

.gb-gallery-hero__copy .wp-block-buttons {
  margin-top: 2rem;
}

.gb-gallery-hero__image {
  min-height: clamp(26rem, 44vw, 35rem) !important;
}

.gb-gallery-intro {
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.gb-gallery-intro h2 {
  max-width: 19ch;
  margin-bottom: 0;
}

.gb-gallery-hint {
  max-width: 17rem;
  margin: 0 0 0.35rem;
  color: var(--gb-muted);
  font-size: 0.92rem;
}

.gb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.5rem);
}

.gb-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--gb-radius-lg);
  box-shadow: 0 0.9rem 2.6rem rgba(30, 49, 82, 0.13);
  cursor: zoom-in;
  isolation: isolate;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.gb-gallery-item--span-5 {
  grid-column: span 5;
}

.gb-gallery-item--span-7 {
  grid-column: span 7;
}

.gb-gallery-item::after {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.28);
  color: var(--gb-white);
  content: "+";
  font-size: 1.45rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(0.35rem);
}

.gb-gallery-item:hover,
.gb-gallery-item:focus-visible {
  box-shadow: 0 1.25rem 3.5rem rgba(30, 49, 82, 0.2);
  transform: translateY(-0.25rem);
}

.gb-gallery-item:hover::after,
.gb-gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gb-gallery-item .wp-block-cover__image-background {
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.gb-gallery-item:hover .wp-block-cover__image-background,
.gb-gallery-item:focus-visible .wp-block-cover__image-background {
  transform: scale(1.035);
}

.gb-gallery-item .wp-block-cover__background {
  background: linear-gradient(180deg, transparent 48%, rgba(17, 28, 48, 0.78) 100%) !important;
  opacity: 1 !important;
}

.gb-gallery-item .wp-block-cover__inner-container {
  display: flex;
  height: 100%;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

.gb-gallery-item .wp-block-cover__inner-container p {
  margin: 0;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.gb-gallery-item .wp-block-cover__inner-container small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78em;
  font-weight: 500;
}

body.gb-gallery-lightbox-open {
  overflow: hidden;
}

.gb-gallery-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(10, 18, 32, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.gb-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gb-gallery-lightbox__figure {
  display: grid;
  width: min(90rem, 100%);
  height: min(82vh, 54rem);
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.gb-gallery-lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gb-gallery-lightbox__caption {
  padding-top: 1rem;
  color: var(--gb-white);
  font-weight: 700;
  text-align: center;
}

.gb-gallery-lightbox__close,
.gb-gallery-lightbox__prev,
.gb-gallery-lightbox__next {
  position: absolute;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gb-white);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  backdrop-filter: blur(0.4rem);
}

.gb-gallery-lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
}

.gb-gallery-lightbox__prev,
.gb-gallery-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.gb-gallery-lightbox__prev {
  left: 1.25rem;
}

.gb-gallery-lightbox__next {
  right: 1.25rem;
}

/* Editorial index and article-reading system. */
.gb-blog-hero {
  text-wrap: balance;
}

.gb-blog-search {
  max-width: 42rem;
  margin: 2rem auto 0;
}

.gb-blog-search .wp-block-search__inside-wrapper {
  padding: 0.3rem;
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  background: var(--gb-white);
  box-shadow: 0 0.5rem 1.75rem rgba(30, 49, 82, 0.08);
}

.gb-blog-search .wp-block-search__input {
  min-height: 3.25rem;
  padding-inline: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.gb-blog-search .wp-block-search__button {
  min-width: 3.25rem;
  min-height: 3.25rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
}

.gb-blog-grid {
  gap: 1.5rem;
  align-items: stretch;
}

.gb-blog-grid > li {
  display: flex;
  margin: 0;
}

.gb-blog-card {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg);
  background: var(--gb-white);
  box-shadow: 0 0.75rem 2rem rgba(30, 49, 82, 0.08);
}

.gb-blog-card__image {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--gb-surface);
}

.gb-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gb-blog-card:hover .gb-blog-card__image img {
  transform: scale(1.025);
}

.gb-blog-card__content {
  display: flex;
  width: auto;
  height: 100%;
  flex-direction: column;
  padding: 1.5rem;
}

.gb-blog-card__category,
.gb-article__category {
  color: var(--gb-cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gb-blog-card__category a,
.gb-article__category a {
  color: inherit;
  text-decoration: none;
}

.gb-blog-card__title {
  margin-top: 0.65rem;
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.55rem) !important;
  line-height: 1.12 !important;
  text-wrap: balance;
}

.gb-blog-card__title a {
  color: var(--gb-blue);
  text-decoration: none;
}

.gb-blog-card__title a:hover {
  color: var(--gb-cyan-dark);
}

.gb-blog-card__excerpt {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--gb-muted);
}

.gb-blog-card__excerpt .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.gb-blog-card__excerpt .wp-block-post-excerpt__more-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--gb-blue);
  font-weight: 800;
}

.gb-blog-card__meta {
  width: 100%;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--gb-border);
  color: var(--gb-muted);
  font-size: 0.82rem;
}

.gb-blog-card__meta > * + *::before,
.gb-article__meta > * + *::before {
  margin-right: 0.55rem;
  color: #9aa6b5;
  content: "•";
}

.gb-pagination {
  gap: 0.6rem;
  margin-top: 3rem;
}

.gb-pagination a,
.gb-pagination .page-numbers.current {
  display: inline-flex;
  min-width: 2.7rem;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  text-decoration: none;
}

.gb-pagination .page-numbers.current {
  border-color: var(--gb-blue);
  color: var(--gb-white);
  background: var(--gb-blue);
}

.gb-article__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(22rem, 0.94fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: min(100%, 1180px);
}

.gb-article__header {
  text-wrap: balance;
}

.gb-article__title {
  max-width: 980px;
  margin-top: 0.8rem;
  font-size: clamp(2.15rem, 2rem + 2vw, 3.4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em;
}

.gb-article__lead {
  max-width: 42rem;
  color: var(--gb-muted);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.55;
}

.gb-article__lead .wp-block-post-excerpt__more-link {
  display: none;
}

.gb-article__meta {
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--gb-muted);
  font-size: 0.9rem;
}

.gb-article__featured {
  width: 100%;
  max-width: 34rem;
  margin: 0 0 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow-soft);
}

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

.gb-article__body {
  margin-top: 0;
}

.gb-article__body .wp-block-post-content {
  color: var(--gb-ink);
  font-size: 1.0625rem;
  line-height: 1.78;
}

.gb-article__body .wp-block-post-content > h1:first-child {
  display: none;
}

.gb-article__body .wp-block-post-content h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2.05rem) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}

.gb-article__body .wp-block-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.15rem !important;
  line-height: 1.65 !important;
}

.gb-article__body .wp-block-post-content :is(p, li, h2, h3) :is(span, b, strong, em)[style] {
  color: inherit !important;
  font-size: inherit !important;
}

.gb-article__body .wp-block-post-content p:empty {
  display: none;
}

.gb-article__body .wp-block-post-content img {
  height: auto;
  border-radius: var(--gb-radius-md);
}

.gb-article__body .wp-block-post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 0.3rem solid var(--gb-cyan);
  border-radius: 0 var(--gb-radius-md) var(--gb-radius-md) 0;
  background: var(--gb-surface);
}

.gb-article__author {
  margin-top: 3.5rem;
  padding: 1.4rem;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-md);
  background: var(--gb-surface);
}

.gb-article__author .wp-block-post-author {
  align-items: center;
}

.gb-article__author .wp-block-post-author__avatar img {
  border-radius: 50%;
}

.gb-article__navigation {
  width: min(100%, 760px);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gb-border);
  font-weight: 750;
}

.gb-anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.gb-anchor-links a {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  background: var(--gb-white);
  color: var(--gb-blue);
  font-weight: 700;
  text-decoration: none;
}

.gb-anchor-links a:hover {
  border-color: var(--gb-cyan);
  background: var(--gb-surface);
}

/* Primary information pages. */
.gb-map-column {
  min-height: 31rem;
}

.gb-map-card {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg);
  background: var(--gb-white);
  box-shadow: var(--gb-shadow-soft);
}

.gb-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 31rem;
  border: 0;
}

.gb-contact-grid,
.gb-visit-steps,
.gb-technology-grid,
.gb-sterilization-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.gb-contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gb-visit-steps,
.gb-technology-grid,
.gb-sterilization-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gb-contact-grid > .wp-block-column,
.gb-visit-steps > .wp-block-column,
.gb-technology-grid > .wp-block-column,
.gb-sterilization-grid > .wp-block-column {
  display: flex;
}

.gb-contact-grid .gb-card,
.gb-visit-steps .gb-card,
.gb-technology-grid .gb-card,
.gb-sterilization-grid .gb-card {
  width: 100%;
}

.gb-step-number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 0 1rem;
  place-items: center;
  border-radius: 999px;
  color: var(--gb-white);
  background: var(--gb-blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.gb-booking-card {
  overflow: hidden;
}

.gb-booking-card .bookly-form {
  max-width: 100%;
}

.gb-contact-summary a {
  overflow-wrap: anywhere;
}

.gb-contact-form-card .nf-form-cont {
  margin-top: 1.75rem;
}

.gb-contact-form-card .nf-form-fields-required {
  margin-bottom: 1.25rem;
  color: var(--gb-muted);
  font-size: 0.85rem;
}

.gb-contact-form-card .nf-field-label label {
  color: var(--gb-blue);
  font-weight: 750;
}

.gb-contact-form-card .nf-field-element :is(input, textarea, select) {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-sm);
  color: var(--gb-ink);
  background: var(--gb-white);
  font: inherit;
}

.gb-contact-form-card .nf-field-element textarea {
  min-height: 9rem;
  resize: vertical;
}

.gb-contact-form-card .nf-field-element :is(input, textarea, select):focus {
  border-color: var(--gb-cyan);
  outline: 3px solid rgba(46, 163, 242, 0.2);
  outline-offset: 1px;
}

.gb-contact-form-card .nf-error .nf-field-element :is(input, textarea, select) {
  border-color: #b42318;
}

.gb-contact-form-card .nf-error-msg,
.gb-contact-form-card .ninja-forms-req-symbol {
  color: #a11d16;
}

.gb-contact-form-card .nf-field-element input[type="button"],
.gb-contact-form-card .nf-field-element input[type="submit"] {
  width: auto;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  color: var(--gb-white);
  background: var(--gb-blue);
  cursor: pointer;
  font-weight: 750;
}

.gb-contact-form-card .nf-field-element input[type="button"]:hover,
.gb-contact-form-card .nf-field-element input[type="submit"]:hover {
  background: var(--gb-navy);
}

.gb-booking-card input,
.gb-booking-card select,
.gb-booking-card textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.has-navy-background-color a {
  color: var(--gb-white);
}

.has-blue-background-color .is-style-outline .wp-block-button__link {
  border-color: var(--gb-white);
  color: var(--gb-white);
}

.gb-mobile-actions {
  position: fixed;
  z-index: 120;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--gb-border);
  background: var(--gb-white);
  box-shadow: 0 -0.75rem 2.5rem rgba(30, 49, 82, 0.14);
}

.gb-mobile-actions a,
.gb-mobile-actions button {
  display: grid;
  min-height: 3.75rem;
  place-items: center;
  padding: 0.45rem 0.25rem;
  border: 0;
  border-right: 1px solid var(--gb-border);
  color: var(--gb-blue);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.gb-mobile-actions a:first-child {
  color: var(--gb-white);
  background: var(--gb-blue);
}

@media (max-width: 900px) {
  .gb-site-header {
    padding: 0.65rem 1rem !important;
  }

  .gb-header-inner {
    min-height: 3.5rem;
    gap: 0.75rem;
  }

  .gb-primary-navigation,
  .gb-site-header .gb-desktop-only {
    display: none !important;
  }

  .gb-mobile-menu {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .gb-site-header .gb-brand-logo {
    max-width: calc(100% - 5.5rem);
    margin: 0;
  }

  .gb-site-header .gb-brand-logo img {
    display: block;
    width: min(210px, 100%);
    max-height: 3.6rem;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .gb-site-header .gb-brand-logo img {
    width: 210px;
  }

  .gb-primary-navigation .wp-block-navigation__container {
    gap: 0.65rem;
  }

  .gb-primary-navigation .wp-block-navigation-item__content {
    font-size: 0.82rem;
  }
}

@media (max-width: 782px) {
  .gb-breadcrumbs {
    font-size: 0.78rem;
  }

  .gb-breadcrumbs__inner {
    width: min(100% - 2rem, 1280px);
    padding-block: 0.6rem;
  }

  .has-gb-image-framing .wp-block-cover__image-background {
    transform: scale(var(--gb-cover-mobile-zoom, var(--gb-cover-zoom, 1)));
  }

  main .wp-block-group.alignfull[style*="spacing--80"],
  main .wp-block-group.alignfull[style*="spacing--70"] {
    padding-block: 2.75rem !important;
  }

  .gb-treatment-grid,
  .gb-team-grid,
  .gb-convention-grid,
  .gb-payment-grid,
  .gb-contact-grid,
  .gb-visit-steps,
  .gb-technology-grid,
  .gb-sterilization-grid,
  .gb-blog-grid {
    grid-template-columns: 1fr;
  }

  .gb-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gb-gallery-item,
  .gb-gallery-item--span-5,
  .gb-gallery-item--span-7 {
    grid-column: auto;
    min-height: 18rem !important;
  }

  .gb-gallery-hero__layout {
    gap: 1.75rem;
  }

  .gb-gallery-hero__copy h1 {
    max-width: none;
  }

  .gb-gallery-hero__image {
    min-height: 23rem !important;
  }

  .gb-gallery-intro {
    display: block;
    margin-bottom: 1.5rem;
  }

  .gb-gallery-hint {
    margin-top: 0.75rem;
  }

  .gb-gallery-item::after {
    opacity: 1;
    transform: none;
  }

  .gb-gallery-lightbox__prev,
  .gb-gallery-lightbox__next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .gb-gallery-lightbox__prev {
    left: calc(50% - 3.5rem);
  }

  .gb-gallery-lightbox__next {
    right: calc(50% - 3.5rem);
  }

  .gb-blog-card__content {
    padding: 1.25rem;
  }

  .gb-article__title {
    font-size: clamp(2rem, 9.5vw, 2.65rem) !important;
    line-height: 1.04 !important;
  }

  .gb-article__hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .gb-article__featured {
    max-width: none;
    margin: 0;
    aspect-ratio: 16 / 10;
  }

  .gb-article__featured img {
    height: 100%;
  }

  .gb-article__navigation {
    display: grid;
    gap: 1rem;
  }

  .gb-map-column,
  .gb-map-card,
  .gb-map-card iframe {
    min-height: 22rem;
  }

  .gb-location-hero .wp-block-columns,
  .gb-booking-layout {
    gap: 1.5rem;
  }

  .gb-booking-section {
    padding-inline: 1rem !important;
  }

  .gb-booking-card {
    padding: 1.2rem;
  }

  .gb-treatment-detail__hero-media {
    min-height: 19rem;
    aspect-ratio: 4 / 3;
  }

  .gb-page-hero-media {
    min-height: 18rem !important;
    aspect-ratio: 4 / 3;
  }

  .gb-treatment-detail__facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gb-treatment-detail__facts .wp-block-column {
    border-right: 0;
    border-bottom: 1px solid var(--gb-border);
  }

  .gb-treatment-detail__facts .wp-block-column:last-child {
    border-bottom: 0;
  }

  .gb-treatment-detail__service-grid {
    grid-template-columns: 1fr;
  }

  .gb-treatment-detail__process,
  .gb-treatment-detail__note {
    height: auto;
  }

  .gb-treatment-detail__process h2 {
    font-size: 2rem !important;
  }

  .gb-team-profile__image img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-position: 50% 16%;
  }

  body {
    padding-bottom: 4rem;
  }

  .gb-site-footer__columns {
    gap: 2rem;
  }

  .gb-mobile-actions {
    display: grid;
  }

  .wp-block-heading.has-xx-large-font-size {
    line-height: 1;
  }

  .gb-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gb-page-hero__image img,
  .gb-content-image img,
  .gb-balanced-media > .wp-block-column.is-vertically-aligned-center > .wp-block-image img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gb-balanced-media > .wp-block-column.is-vertically-aligned-center {
    display: block;
  }

  .gb-page-hero--background .gb-balanced-media--hero,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-balanced-media--hero {
    min-height: 0;
  }

  .gb-page-hero--background,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) {
    padding: 3.25rem 1.25rem !important;
  }

  .gb-page-hero--background .gb-balanced-media--hero > .wp-block-column:first-child,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-balanced-media--hero > .wp-block-column:first-child {
    width: 100%;
    min-height: 0;
    padding-block: 0;
  }

  .gb-page-hero--background .gb-page-hero__image::after,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-page-hero__image::after {
    background:
      linear-gradient(90deg, rgba(246, 249, 252, 0.98) 0%, rgba(246, 249, 252, 0.94) 62%, rgba(246, 249, 252, 0.8) 100%),
      linear-gradient(180deg, rgba(246, 249, 252, 0.94) 0%, rgba(246, 249, 252, 0.78) 100%);
  }

  .gb-page-hero--background .gb-page-hero__image img,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .gb-page-hero__image img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    opacity: 0.48;
    object-position: 100% 50%;
  }

  .gb-page-hero--background .wp-block-buttons,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .wp-block-buttons {
    display: grid;
    width: 100%;
    max-width: 30rem;
    gap: 0.75rem;
  }

  .gb-page-hero--background .wp-block-button,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .wp-block-button,
  .gb-page-hero--background .wp-block-button__link,
  .gb-page-hero:has(.gb-page-hero__image img[src*="/trattamenti.jpg"]) .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .gb-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gb-proof-grid .wp-block-column {
    border-right: 0;
    border-bottom: 1px solid var(--gb-border);
  }

  .gb-proof-grid .wp-block-column:nth-child(odd) {
    border-right: 1px solid var(--gb-border);
  }

  .gb-proof-grid .wp-block-column:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .gb-quick-links .wp-block-column {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius-sm);
  }

  .gb-quick-links p {
    padding: 0.9rem;
  }

  body .aisa-chat-toggle {
    display: none !important;
  }
}

@media (min-width: 783px) and (max-width: 1100px) {
  .gb-treatment-grid,
  .gb-team-grid,
  .gb-convention-grid,
  .gb-payment-grid,
  .gb-contact-grid,
  .gb-visit-steps,
  .gb-technology-grid,
  .gb-sterilization-grid,
  .gb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gb-gallery-item {
    grid-column: span 6;
  }

  .gb-gallery-item--span-5,
  .gb-gallery-item--span-7 {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .gb-proof-grid {
    grid-template-columns: 1fr;
  }

  .gb-proof-grid .wp-block-column,
  .gb-proof-grid .wp-block-column:nth-child(odd),
  .gb-proof-grid .wp-block-column:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--gb-border);
  }

  .gb-proof-grid .wp-block-column:last-child {
    border-bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
