/* Studio Burlini & Burlini — fedele al mockup PDF */

/* Raleway, SIL OFL 1.1 — licenza in ../fonts/raleway-licenza.txt */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/raleway-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cyan: #0099c4;
  --cyan-dark: #007a9e;
  --text: #333333;
  --text-muted: #878787;
  --text-light: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-section: #ececec;
  --card-grey: #c8c8c8;
  --card-grey-hover: #b5b5b5;
  --border: #d8d8d8;
  --footer-bg: #1a5363;
  --font: "Raleway", system-ui, sans-serif;
  --max: 1200px;
  --header-h: 164px;
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-btn: 2rem;
  --content-inset: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg);
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--cyan);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.content-inset {
  padding-inline: var(--content-inset);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.15rem;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 1.75rem;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: flex-end;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 8.25rem;
}

.header-actions {
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  padding-bottom: 0.05rem;
  border: 0;
}

.header-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 30px;
  color: var(--cyan);
}

.header-actions svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  grid-column: 3;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  justify-self: center;
  align-self: end;
  padding-bottom: 0;
}

.main-nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__list > li {
  display: flex;
  align-items: center;
}

.main-nav__list > li:not(:first-child)::before {
  content: "|";
  margin: 0 0.52rem;
  color: #c8c8c8;
  font-size: 0.65rem;
  font-weight: 300;
}

.main-nav__link {
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #9a9a9a;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav__link:hover,
.main-nav__link--active { color: var(--cyan); }

.has-sub { position: relative; }

.has-sub > .main-nav__link::after {
  content: " ▾";
  font-size: 0.65em;
  color: inherit;
}

.subnav {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 40;
  min-width: 17.5rem;
  margin: 0;
  /* padding-top = ponte hover: si può scendere sulla tendina senza perdere l'hover */
  padding: 1.15rem 0 0.65rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  list-style: none;
}

.has-sub:hover > .subnav,
.has-sub:focus-within > .subnav,
.has-sub.is-open > .subnav { display: block; }

.subnav::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.subnav a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.42rem 1rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f8f8f;
  white-space: normal;
}

.subnav a:hover,
.subnav a:focus-visible { color: var(--cyan); }

.media-placeholder {
  display: block;
  width: 100%;
  min-height: 12rem;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  background: #d8d8d8;
}

.media-placeholder--wide {
  aspect-ratio: 16 / 7;
  min-height: 10rem;
}

.media-placeholder--cyan {
  background: var(--cyan);
  aspect-ratio: 4 / 3;
  min-height: 16rem;
}

.maxillo-split--flip {
  direction: rtl;
}

.maxillo-split--flip > * {
  direction: ltr;
}

.maxillo-copy .chi-headline {
  margin-bottom: 0;
}

.maxillo-copy .section-intro__text,
.maxillo-copy .body-text {
  margin-top: 1rem;
}

.maxillo-copy .body-text + .body-text,
.maxillo-copy .section-intro__text + .section-intro__text,
.maxillo-copy .body-text + .content-grid__list,
.maxillo-copy .section-intro__text + .content-grid__list {
  margin-top: 0.9rem;
}

.maxillo-copy .btn {
  margin-top: 1.35rem;
}

.maxillo-article .content-grid__cell .chi-headline {
  margin-bottom: 1rem;
}

.maxillo-article .content-grid__cell .body-text {
  margin-bottom: 0.9rem;
}

.maxillo-article .content-grid__cell .body-text:last-child,
.maxillo-article .content-grid__cell .content-grid__list:last-child {
  margin-bottom: 0;
}

.maxillo-photo-band {
  min-height: 28rem;
  background: var(--cyan);
}

.maxillo-photo-band img {
  display: block;
  width: 100%;
  height: 28rem;
  object-fit: cover;
}

/* ── Typography ── */
.breadcrumb,
.eyebrow,
.section-intro__title,
.filosofia-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.title-xl {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan);
}

.title-lg {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan);
}

.title-md {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lead { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

.page-hero .container {
  padding-inline: var(--content-inset);
}

.page-hero .chi-headline {
  margin-bottom: 0.5rem;
}

.filosofia-copy__title {
  margin: 0 0 1.35rem;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  font-weight: 200;
  line-height: 1.08;
  text-transform: none;
}

.filosofia-copy__lead {
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  font-weight: 300;
  line-height: 1.55;
  color: #9a9a9a;
}

.page-hero .title-lg,
.page-hero .section-intro__title--lg {
  margin-bottom: 0.5rem;
}

.page-hero .title-lg + .lead,
.page-hero .lead:not(.breadcrumb),
.page-hero .section-intro__text,
.section > .container > .title-lg + .lead,
.section > .container > .split .title-lg + .lead,
.section > .container > .split .section-intro__text,
.cta-section .title-md + .lead,
.cta-section .lead {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 200;
  line-height: 1.25;
  color: #9a9a9a;
  max-width: none;
}

.section > .container > .title-lg,
.section > .container .split > div > .title-lg {
  margin-bottom: 0.5rem;
}

.section > .container > .title-md,
.section > .container .split > div > .title-md {
  margin-bottom: 0.5rem;
}

.section { padding: clamp(3.5rem, 7vw, 5rem) 0; }

.section--soft { background: var(--bg-soft); }

.section--grey { background: var(--bg-section); }

/* ── Hero homepage: citazione + intro ── */
.hero-quote {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  aspect-ratio: 2000 / 780;
  min-height: clamp(280px, 38vw, 520px);
}

.hero-quote img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-quote img.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-quote__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.75rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s;
}

.hero-quote__nav:hover { opacity: 0.7; }

.hero-quote__nav--prev { left: 0.75rem; }

.hero-quote__nav--next { right: 0.75rem; }

.home-intro {
  padding: clamp(3.25rem, 7vw, 5.25rem) 0 clamp(2.85rem, 5.5vw, 3.85rem);
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 36%, #e4e4e4 100%);
}

.home-intro__eyebrow {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.home-intro__title {
  margin: 0 auto 1.25rem;
  max-width: none;
  font-size: clamp(2.35rem, 5.6vw, 4.25rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan);
}

.home-intro__break::before {
  content: "\A";
  white-space: pre;
}

.home-intro__lead {
  margin: 0 auto 1.85rem;
  max-width: 48rem;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 200;
  line-height: 1.5;
  color: #9a9a9a;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--outline-cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--outline-cyan:hover {
  background: var(--cyan);
  color: #fff;
}

.btn--primary {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}

.btn--primary:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
}

.btn--cta {
  min-width: 260px;
  padding: 1rem 2rem;
  font-size: 0.72rem;
}

/* ── Intestazioni sezione (filosofia, servizi, ecc.) ── */
.section-intro {
  width: 100%;
  margin-bottom: 2.5rem;
}

.section-intro--tight {
  margin-bottom: 0;
}

.section-intro__title--lg,
.section-intro__title--md {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.section-intro__title--display {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.section-intro__text,
.filosofia-intro__text {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 200;
  line-height: 1.25;
  color: #9a9a9a;
  max-width: none;
}

.link-scopri {
  display: inline;
  font-size: inherit;
  font-weight: 200;
  line-height: inherit;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

/* ── Filosofia 4 colonne ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3.5rem;
}

.pillar {
  position: relative;
}

.pillar::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 0.35rem;
  background: var(--cyan);
}

.pillar__num {
  margin-bottom: 0.85rem;
  font-size: clamp(5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.75;
  color: rgba(0, 153, 196, 0.2);
}

.pillar__title {
  margin-bottom: 1rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.05;
}

.pillar__text {
  font-size: 0.92rem;
  color: #9a9a9a;
  line-height: 1.65;
}

/* ── Griglia servizi grigi (odontostomatologia) ── */
.service-pills {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

.service-pills__row,
.service-cards__row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.service-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1.25rem 1rem;
  background: var(--card-grey);
  border-radius: var(--radius-card);
  flex: 0 0 17.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  transition: background 0.2s, transform 0.2s;
}

a.service-pill:hover,
a.service-card:hover {
  background: var(--card-grey-hover);
  transform: translateY(-2px);
  color: #fff;
}

a.service-card:hover {
  background: #ececec;
  color: var(--cyan);
}

.service-pill--span2 { grid-column: span 1; }

/* ── Griglia servizi bordati (chirurgia) ── */
.service-cards {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1.25rem 1rem;
  background: #f3f3f3;
  border: none;
  border-radius: var(--radius-card);
  flex: 0 0 17.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.1;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

/* ── Approccio digitale ── */
.section-digital {
  position: relative;
  overflow: hidden;
  color: var(--text-muted);
}

.section-digital.section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.section-digital__bg {
  position: absolute;
  inset: 0;
}

.section-digital__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.section-digital__overlay { display: none; }

.section-digital .container {
  position: relative;
  z-index: 1;
}

.section-digital .split > * { min-width: 0; }

.section-digital__panel {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.85rem 2rem 2rem;
  border-radius: 1.25rem;
}

.section-digital .tech-list {
  margin: 0;
}

.section-digital .title-lg,
.section-digital .eyebrow,
.section-digital .section-intro__title { color: var(--cyan); }

.section-digital .lead,
.section-digital .section-intro__text,
.section-digital .tech-list li { color: var(--text-muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split--center { align-items: center; }

.split__media {
  border-radius: var(--radius-card);
  overflow: hidden;
}

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

.split__media--portrait {
  aspect-ratio: 4 / 5;
  border-radius: 1.6rem;
}

.split__media--portrait img {
  object-position: center 18%;
}

.tech-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.tech-list li::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.tech-list li:last-child { border-bottom: none; }

.quote {
  margin-top: 2rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--cyan);
  max-width: none;
}

/* ── CTA + contatti (sezione bianca) ── */
.cta-section {
  background: #fff;
}

.cta-section .section-intro__title {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.cta-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.cta-copy {
  max-width: 24rem;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #9a9a9a;
}

.contact-block dt {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

.contact-block dd {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.45;
  color: #9a9a9a;
}

.contact-block {
  display: grid;
  gap: 2rem;
  max-width: 33rem;
  margin-left: 0;
  padding-left: 0;
}

.contact-block__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.contact-block__row--phones {
  align-items: start;
}

.contact-block__labels,
.contact-block__values {
  display: grid;
  gap: 0.2rem;
}

.contact-block dt {
  white-space: nowrap;
}

.contact-block a:hover { color: var(--cyan); }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: var(--radius-card);
}

/* ── Footer scuro ── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0 1rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
}

.site-footer__legal {
  padding: 1rem 0 1.75rem;
  font-size: 0.78rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.site-footer__legal a { color: rgba(255, 255, 255, 0.85); }
.site-footer__legal a:hover { color: #fff; }

/* ── Pagina interna: hero split ── */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #fff;
}

.page-hero .split { align-items: start; }

.page-hero--soft { background: var(--bg-soft); }

/* ── Griglia contenuti 2 colonne (la visita) ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
}

.content-grid__cell {
  padding: 0;
}

.content-grid__cell .chi-headline {
  margin-bottom: 1.5rem;
}

.content-grid__text,
.content-grid__cell .body-text {
  margin-bottom: 1.5rem;
}

.principle__title,
.content-grid__label {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.25;
}

.content-grid__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

.content-grid__list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1rem;
}

.content-grid__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 600;
}

.content-grid__note {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

/* ── Pagine interne con bande ── */
.visita-band {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background-color: #fff;
  background-image: var(--visita-band-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.visita-band > .container {
  position: relative;
  z-index: 1;
}

.visita-band .content-grid__cell:last-child .content-grid__note,
.visita-band .content-grid__cell:last-child .content-grid__list:last-child {
  margin-bottom: 0;
}

.visita-band--shutterstock {
  --visita-band-image: url("../assets/images/servizi/shutterstock-visita.jpg");
}

.visita-band--bafe {
  --visita-band-image: url("../assets/images/servizi/bafe.webp");
}

.visita-band--placeholder {
  --visita-band-image: none;
  background-color: #d8d8d8;
}

.visita-band.maxillo-photo-band {
  background: var(--cyan);
  background-image: none;
  padding: 0;
}

.visita-row {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #fff;
}

.page-servizio .page-hero,
.page-visita .page-hero {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-servizio .page-hero .chi-headline,
.page-visita .page-hero .chi-headline {
  margin-bottom: 1.25rem;
}

.page-servizio .page-hero .split__media,
.page-visita .page-hero .split__media {
  border-radius: 2.5rem;
  aspect-ratio: 4 / 3;
  min-height: 16rem;
  overflow: hidden;
}

.page-servizio .page-hero .split__media img,
.page-visita .page-hero .split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-servizio .servizio-content,
.page-visita .visita-content {
  padding: 0;
  background: #fff;
}

.visita-row--soft {
  background: var(--bg-soft);
}

.page-servizio .page-hero .servizio-hero-split {
  margin-top: 1rem;
}

.page-servizio .page-hero .servizio-hero-split .chi-headline {
  margin-bottom: 0;
}

.page-servizio .page-hero .servizio-hero-split .section-intro__text:first-child {
  margin-top: 0;
}

.indicazioni-grid {
  margin-top: 1.5rem;
}

.indicazioni-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.indicazioni-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

.indicazioni-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 600;
}

.procedure-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.procedure-box {
  padding: 1.75rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.procedure-box__title {
  margin: 0 0 0.85rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.25;
}

.procedure-box .body-text {
  margin: 0;
}

.faq-casi-section .chi-headline {
  margin-bottom: 0.5rem;
}

.page-servizio .steps-section .chi-headline {
  margin-bottom: 0;
}

.steps-section .split__media {
  aspect-ratio: 3 / 4;
}

.steps-section .split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-servizio .post-op-section .chi-headline {
  margin-bottom: 1rem;
}

.section-watermark {
  position: relative;
}

.section-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/pdf-extracted/page3-img1.jpeg") center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.section-watermark > .container { position: relative; z-index: 1; }

/* ── Principi (chi siamo) ── */
.principles {
  display: grid;
  gap: 1.45rem;
  margin-top: 1.75rem;
}

.principle {
  padding: 0;
  border: none;
}

.filosofia-copy .principle__title {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.55;
}

.principle p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: #9a9a9a;
}

/* ── Tech grid 2x2 (chi siamo) ── */
.tech-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.25rem;
  align-items: start;
}

.chi-headline {
  font-size: clamp(1.85rem, 3.5vw, 2.3rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--cyan);
}

.body-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

.tech-intro .section-intro__text {
  color: #9a9a9a;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.75rem;
}

.tech-item {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 1.15rem;
  align-items: center;
}

.tech-item__img {
  aspect-ratio: 1 / 1;
  border-radius: 1.8rem;
  overflow: hidden;
  background: #ddd;
}

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

.tech-item__num {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(0, 153, 196, 0.35);
}

.tech-item__title {
  margin-bottom: 0.2rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cyan);
}

.tech-item__content p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

/* ── Team ── */
.team-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-row .team-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.bullet-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.9rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ── Steps orizzontali ── */
.percorso-intro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 1rem;
  align-items: start;
}

.percorso-intro__head {
  grid-column: 1 / 3;
}

.percorso-intro__text {
  grid-column: 3 / 5;
  margin: 0;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.step-card__num {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(0, 153, 196, 0.35);
  line-height: 1.2;
}

.step-card__title {
  margin-bottom: 0.25rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.05;
}

.step-card p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

/* ── Procedure cards ── */
.procedure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.procedure-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.procedure-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: #8f8f8f;
}

.procedure-card__title {
  margin-bottom: 0.2rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cyan);
}

/* ── Steps verticali ── */
.steps-vertical {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.steps-vertical li {
  display: grid;
  grid-template-columns: 3.15rem 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.05rem 0;
  border: none;
}

.steps-vertical li:first-child { padding-top: 0; }
.steps-vertical li:last-child { padding-bottom: 0; }

.steps-vertical__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  padding: 0;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cyan);
}

.steps-vertical__title {
  margin: 0.45rem 0 0.2rem;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.2;
}

.steps-vertical li p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: #8f8f8f;
}

.post-op-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-op-list li {
  padding: 0.65rem 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--cyan);
}

/* ── FAQ + Casi clinici ── */
.dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.faq-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: #8f8f8f;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cyan);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item__answer {
  padding: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-intro + .btn,
.section-intro__text + .btn {
  margin-top: 1.5rem;
}

/* ── Lista servizi 2 colonne ── */
.services-list {
  columns: 2;
  column-gap: 3rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.services-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
  font-size: 0.9rem;
}

.services-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ── Treatment cards 2x2 ── */
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.treatment-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.treatment-card__title {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
}

.feature-list li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cyan);
}

.dual-panel .chi-headline {
  margin-bottom: 1.25rem;
}

.dual-panel .section-intro__text {
  margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .percorso-intro { grid-template-columns: repeat(2, 1fr); }
  .percorso-intro__head { grid-column: 1 / -1; }
  .percorso-intro__text { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1199px) {
  :root { --header-h: calc(5rem + 1px); }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .logo img { height: 3.6rem; }

  .nav-toggle {
    display: flex;
    align-self: start;
    grid-column: auto;
  }

  .header-actions { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    padding: 1.15rem 1.5rem 2rem;
    background: #fff;
    border-top: 1px solid var(--border);
    transform: translateY(calc(-100% - var(--header-h)));
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    justify-self: stretch;
    align-self: stretch;
  }

  .main-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav__list li {
    display: block;
  }

  .main-nav__list li:not(:first-child)::before { display: none; }

  .main-nav__link {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    white-space: normal;
  }

  .subnav {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 0.4rem;
    padding: 0 0 0.35rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .subnav::before { content: none; }

  .has-sub.is-open > .subnav { display: block; }

  .subnav a {
    padding: 0.45rem 0 0.45rem 0.75rem;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 768px) {

  .content-inset {
    padding-inline: 0.75rem;
  }

  .page-hero .container {
    padding-inline: 0.75rem;
  }

  .split,
  .cta-section__grid,
  .dual-panel,
  .procedure-grid,
  .procedure-box-grid,
  .treatment-grid,
  .team-row { grid-template-columns: 1fr; }

  .maxillo-split--flip {
    direction: ltr;
  }

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

  .tech-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tech-item__img {
    width: min(220px, 100%);
  }

  .tech-item__title {
    font-size: 1.15rem;
  }

  .tech-item__content p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .contact-block__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .service-pills__row,
  .service-cards__row {
    flex-direction: column;
  }

  .service-pill,
  .service-card {
    flex-basis: auto;
  }

  .services-list { columns: 1; }

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

/* ── Griglia fotografica odontostomatologia ── */
.photo-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #c8c8c8;
  color: #fff;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.35s ease;
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-card--clinical img {
  object-position: center center;
}

.photo-card__label {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
  padding: 0.7rem 0.6rem;
  border-radius: 1rem;
  background: rgba(90, 90, 90, 0.45);
  font-size: clamp(0.72rem, 1.05vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

a.photo-card:not([href]) {
  cursor: pointer;
}

/* ── Team collage ── */
.team-gallery {
  margin-top: clamp(3.75rem, 8vw, 6.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.team-quote {
  margin: 0 auto 2.35rem;
  max-width: 24em;
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 200;
  line-height: 1.25;
  text-align: center;
  color: var(--cyan);
}

.team-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #d5d5d5;
  aspect-ratio: 3 / 4;
}

.team-card--placeholder {
  background: #cfcfcf;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.45s ease;
}

.team-card:hover img {
  transform: scale(1.06);
}

.team-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.6rem 0.95rem;
  background: rgba(0, 153, 196, 0.72);
  color: #fff;
  text-align: center;
}

.team-card__name,
.team-card__role {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.team-card__role {
  font-weight: 500;
  opacity: 0.95;
}

.team-card--dante { grid-column: 3 / 5; }
.team-card--jacopo { grid-column: 2 / 4; }
.team-card--carolina { grid-column: 4 / 6; }
.team-card--caterina { grid-column: 1 / 3; }
.team-card--marco { grid-column: 3 / 5; }
.team-card--marco img { object-position: center 28%; }
.team-card--daniela { grid-column: 5 / 7; }
.team-card--roberta { grid-column: 3 / 5; }

.team-card__bios {
  position: absolute;
  left: 50%;
  bottom: 3.6rem;
  z-index: 2;
  display: grid;
  gap: 0.4rem;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
}

.team-card__bio-btn {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5a5a5a;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.team-card__bio-btn:hover,
.team-card__bio-btn[aria-expanded="true"] {
  background: #fff;
  color: var(--cyan);
}

dialog.bio-dialog {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(36rem, calc(100% - 2rem));
  max-height: min(86dvh, 52rem);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

dialog.bio-dialog.bio-dialog--long {
  width: min(46rem, calc(100% - 2rem));
}

.bio-dialog__scroll {
  max-height: min(86dvh, 52rem);
  overflow-y: auto;
  padding: 2.4rem 1.7rem 1.6rem;
}

.bio-dialog ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #6a6a6a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.bio-dialog li + li { margin-top: 0.55rem; }

.bio-dialog::backdrop {
  background: rgba(20, 40, 48, 0.45);
}

.bio-dialog h3 {
  margin-bottom: 1rem;
  padding-right: 1.75rem;
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bio-dialog p {
  color: #6a6a6a;
  font-size: 0.95rem;
  line-height: 1.7;
}

.bio-dialog--long p {
  margin: 0 0 0.95rem;
}

.bio-dialog--long .bio-dialog__cv {
  margin: 1.5rem 0 0;
}

.bio-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5c5c5c;
  font-family: inherit;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.bio-dialog__close:hover {
  background: rgba(0, 153, 196, 0.1);
  color: var(--cyan);
}

/* ── Slider filosofia ── */
.media-slider {
  position: relative;
}

.media-slider__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  aspect-ratio: 4 / 5;
  background: #ddd;
}

.media-slider__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.media-slider__frame img.is-active {
  opacity: 1;
}

.media-slider:hover .media-slider__frame img.is-active {
  transform: scale(1.05);
}

.media-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.media-slider__nav--prev { left: 0.4rem; }
.media-slider__nav--next { right: 0.4rem; }

@media (max-width: 1024px) {
  .photo-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-collage { grid-template-columns: repeat(2, 1fr); max-width: 36rem; }
  .team-card--dante,
  .team-card--jacopo,
  .team-card--carolina,
  .team-card--caterina,
  .team-card--marco,
  .team-card--daniela,
  .team-card--roberta { grid-column: auto; }
}

@media (max-width: 768px) {
  .photo-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-collage { grid-template-columns: 1fr 1fr; }
}

html.casi-gated body { overflow: hidden; }
html.casi-gated main,
html.casi-gated .cta-section { visibility: hidden; }

.casi-gate {
  width: min(36rem, calc(100% - 2rem));
  padding: 2.5rem 2.1rem 2.1rem;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  color: var(--cyan);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.casi-gate::backdrop {
  background: rgba(255, 255, 255, 0.82);
}

.casi-gate h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.casi-gate__line {
  width: 3.6rem;
  height: 1px;
  margin: 1.05rem auto 1.35rem;
  background: var(--cyan);
}

.casi-gate p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--cyan);
}

.casi-gate p + p { margin-top: 1.2rem; }

.casi-gate__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.casi-gate__actions button {
  min-width: 8.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.casi-gate__cancel {
  border: 1px solid var(--border);
  background: #fff;
  color: #8f8f8f;
}

.casi-gate__confirm {
  border: 0;
  background: var(--cyan);
  color: #fff;
}

/* ── Casi clinici ── */
.casi-warning {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: #f4f4f4;
  border-left: 3px solid var(--cyan);
  color: #8f8f8f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.casi-list {
  padding: 0 0 clamp(2.5rem, 5vw, 4.25rem);
}

.casi-group {
  margin: 2.4rem 0 0.15rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cyan);
}

.casi-group:first-child {
  margin-top: 0.25rem;
}

.casi-band {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.casi-band > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: #f4f4f4;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--cyan);
  cursor: pointer;
  list-style: none;
}

.casi-band > summary::-webkit-details-marker { display: none; }

.casi-band > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--cyan);
}

.casi-band[open] > summary {
  background: #eef7fa;
}

.casi-band[open] > summary::after { content: "−"; }

.casi-band__body {
  padding: 0.15rem 0.85rem 0.85rem;
}

.casi-case {
  border-top: 1px solid #eee;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.casi-case > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.5rem;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #8f8f8f;
  cursor: pointer;
  list-style: none;
}

.casi-case > summary::-webkit-details-marker { display: none; }

.casi-case > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--cyan);
}

.casi-case[open] > summary { color: var(--cyan); }
.casi-case[open] > summary::after { content: "−"; }

.casi-case .casi-gallery {
  margin: 0 0.5rem 1.15rem;
}

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

.casi-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.85rem;
  background: #d8d8d8;
}

.casi-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.casi-gallery a:hover img { transform: scale(1.04); }

.casi-lightbox {
  width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.casi-lightbox::backdrop { background: rgba(0, 0, 0, 0.78); }

.casi-lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
  border-radius: 0.5rem;
}

.casi-lightbox__close,
.casi-lightbox__prev,
.casi-lightbox__next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.casi-lightbox__close {
  top: -2.4rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

.casi-lightbox__prev,
.casi-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.casi-lightbox__prev { left: -2.8rem; }
.casi-lightbox__next { right: -2.8rem; }

@media (max-width: 1024px) {
  .casi-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .casi-lightbox__prev { left: 0.4rem; }
  .casi-lightbox__next { right: 0.4rem; }
}

@media (max-width: 768px) {
  .casi-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.js-reveal {
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Smartphone: testi interi, blocchi centrati. Il desktop non cambia. ── */
@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, var(--max));
  }

  .content-inset,
  .page-hero .container {
    padding-inline: 0;
  }

  :root { --header-h: calc(4.6rem + 1px); }

  .site-header__inner {
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .logo,
  .nav-toggle {
    align-self: center;
  }

  .hero-quote {
    min-height: 0;
    aspect-ratio: 2000 / 780;
  }

  .hero-quote__nav {
    top: auto;
    bottom: 0.35rem;
    transform: none;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.35rem;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 50%;
  }

  .hero-quote__nav--prev {
    left: 0.4rem;
    right: auto;
  }

  .hero-quote__nav--next {
    left: 2.45rem;
    right: auto;
  }

  .home-intro {
    padding: 2.35rem 0 2rem;
  }

  .home-intro__eyebrow {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  .home-intro__title {
    font-size: clamp(1.42rem, 6.5vw, 1.85rem);
    letter-spacing: 0;
    line-height: 1.12;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .home-intro__break::before {
    content: " ";
    white-space: normal;
  }

  .home-intro__lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-home__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-home__actions .btn,
  .btn--cta {
    width: min(100%, 20rem);
    min-width: 0;
    max-width: 100%;
  }

  .service-pill,
  .service-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .photo-card__label {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    min-height: 0;
    padding: 0.55rem 0.4rem;
    overflow-wrap: anywhere;
  }

  .tech-item__img {
    margin-inline: auto;
  }

  .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.5rem);
    justify-self: center;
  }

  .team-card__name,
  .team-card__role {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    overflow-wrap: break-word;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .maxillo-photo-band,
  .maxillo-photo-band img {
    min-height: 0;
    height: 15rem;
  }

  .section-digital__panel {
    padding: 1.2rem 1rem 1.3rem;
  }

  .site-footer__legal,
  .contact-block a,
  .contact-block dd {
    overflow-wrap: anywhere;
  }

  h1, h2, h3,
  .chi-headline,
  .section-intro__title,
  .step-card__title,
  .faq-item summary,
  .casi-band > summary,
  .casi-case > summary {
    overflow-wrap: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
