html,
body {
  margin: 0;
  padding: 0;
  color: #4A4A4A;
}

body.page-template-template-onepage {
  overflow: hidden;
}

.onepage-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Desktop onepage režim */
body.page-template-template-onepage .fp-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
  z-index: 1;
  overflow: auto;
  box-sizing: border-box;
}

body.page-template-template-onepage .fp-section.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

/* Elementor containery uvnitř */
body.page-template-template-onepage .fp-section > .e-con,
body.page-template-template-onepage .fp-section > .elementor-container,
body.page-template-template-onepage .fp-section > .elementor-widget-wrap {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* Dots pager */
.onepage-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onepage-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.onepage-dot:hover,
.onepage-dot:focus-visible {
  transform: scale(1.25);
  outline: none;
}

.onepage-dot.is-active {
  background: #111;
  border-color: #111;
}

/* Header / burger */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.logo {
	position: relative;
	top: 0px;
	left: 0;
	width: 40px;
}

.logo a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.burger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #111;
}

.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.90);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.overlay-menu.is-open {
  display: flex;
}

.overlay-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.overlay-menu li + li {
  margin-top: 16px;
}

.overlay-menu a {
  font-size: 28px;
  color: #111;
  text-decoration: none;
}

/* Hero helper */
.fp-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobil / tablet fallback */
@media (max-width: 1024px) {
  body.page-template-template-onepage {
    overflow: auto;
  }

  .onepage-wrapper {
    height: auto;
    overflow: visible;
  }

  body.page-template-template-onepage .fp-section {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    overflow: visible;
  }

  body.page-template-template-onepage .fp-section > .e-con,
  body.page-template-template-onepage .fp-section > .elementor-container,
  body.page-template-template-onepage .fp-section > .elementor-widget-wrap {
    min-height: auto;
  }

  .onepage-dots {
    display: none;
  }
}


html,
body {
  margin: 0;
  padding: 0;
}

#onepage-wrapper {
  width: 100%;
}

/* =========================================
   FRONTEND DESKTOP ONEPAGE ONLY
   ========================================= */
body.page-template-template-onepage:not(.elementor-editor-active) {
  overflow: hidden;
}

body.page-template-template-onepage:not(.elementor-editor-active) .onepage-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

body.page-template-template-onepage:not(.elementor-editor-active) .fp-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
  z-index: 1;
  overflow: auto;
  box-sizing: border-box;
}

body.page-template-template-onepage:not(.elementor-editor-active) .fp-section.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

body.page-template-template-onepage:not(.elementor-editor-active) .fp-section > .e-con,
body.page-template-template-onepage:not(.elementor-editor-active) .fp-section > .elementor-container,
body.page-template-template-onepage:not(.elementor-editor-active) .fp-section > .elementor-widget-wrap {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================
   EDITOR + MOBILE/TABLET = NORMAL FLOW
   ========================================= */
body.elementor-editor-active .onepage-wrapper,
body.elementor-editor-active .fp-section {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  overflow: visible !important;
}

body.elementor-editor-active {
  overflow: auto !important;
}

body.elementor-editor-active .onepage-dots {
  display: none !important;
}

/* Header / burger */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  pointer-events: none;
}

@media(max-width: 960px) {
	.site-header {
		background: rgba(255,255,255,0.9);
	}
}

.site-header > * {
  pointer-events: auto;
}

.logo a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.burger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #111;
}

.overlay-menu {
  position: fixed;
  inset: 0;

  background: rgba(255,255,255,.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.overlay-menu.is-open {
  display: flex;
}

.overlay-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.overlay-menu li + li {
  margin-top: 16px;
}

.overlay-menu a {
  display: inline-block;
  font-size: 28px;
  color: #111;
  text-decoration: none;
  transition: transform .22s ease, opacity .22s ease;
  transform-origin: center center;
  will-change: transform;
}


#pece li {
	margin: 0;
	padding: 15px;
}

#pece li a {
  text-decoration: none;
  transition: transform .22s ease, opacity .22s ease, letter-spacing .22s ease;
  transform-origin: center center;
  will-change: transform;
}

.overlay-menu a:hover,
.overlay-menu a:focus-visible {
  transform: scale(1.1);
}

#pece li:hover,
#pece li:focus-visible {
	letter-spacing: 1px;
	background: rgba(255,255,255,0.5);
}

#pece li {
	border-bottom: solid 2px rgba(255,255,255,1);
}

@media(min-width: 1024px) {
	#pece li:last-child {
		border-bottom: none;
	}
}


/* Dots */
.onepage-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onepage-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.45);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0;
}

.onepage-dot.is-active {
  background: #111;
  border-color: #111;
}

/* Hero helper */
.fp-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tablet + mobile fallback */
@media (max-width: 1024px) {
  body.page-template-template-onepage {
    overflow: auto !important;
  }

  .onepage-wrapper {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  body.page-template-template-onepage .fp-section {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: visible !important;
  }

  body.page-template-template-onepage .fp-section > .e-con,
  body.page-template-template-onepage .fp-section > .elementor-container,
  body.page-template-template-onepage .fp-section > .elementor-widget-wrap {
    min-height: auto !important;
  }

  .onepage-dots {
    display: none !important;
  }
}


/* celý blok slideru */
.clinic-team-slider {
  --team-card-h: clamp(320px, 62vh, 680px);
  --team-image-h: clamp(180px, 34vh, 360px);
}

/* viewport / track wrapper */
.clinic-team-slider__viewport,
.clinic-team-slider__track {
  min-height: var(--team-card-h);
}

/* jedna karta */
.clinic-team-slide,
.clinic-team-card {
  height: var(--team-card-h);
  box-sizing: border-box;
  overflow: hidden;
}

/* fotka */
.clinic-team-card__media,
.clinic-team-card__image-wrap {
  height: var(--team-image-h);
  overflow: hidden;
}

.clinic-team-card__media img,
.clinic-team-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* textová část */
.clinic-team-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-height: 0;
}

/* delší text nepřetéká */
.clinic-team-card__name,
.clinic-team-card__role,
.clinic-team-card__excerpt {
  overflow-wrap: anywhere;
}

.clinic-team-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* počet řádků */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* landscape desktop */
@media (min-width: 1025px) and (orientation: landscape) {
  .clinic-team-slider {
    --team-card-h: clamp(300px, 56vh, 560px);
    --team-image-h: clamp(170px, 28vh, 300px);
  }
}

/* tablet */
@media (max-width: 1024px) {
  .clinic-team-slider {
    --team-card-h: auto;
    --team-image-h: clamp(180px, 32vh, 280px);
  }

  .clinic-team-slide,
  .clinic-team-card {
    height: auto;
  }
}

/* mobile */
@media (max-width: 767px) {
  .clinic-team-slider {
    --team-image-h: 220px;
  }
}


.clinic-team-card {
  height: clamp(320px, 58vh, 560px);
  overflow: hidden;
}

.clinic-team-card img {
  height: clamp(180px, 30vh, 300px);
  width: 100%;
  object-fit: cover;
}

.clinic-team-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media(min-width: 1024px){
	.fp-section.fp-aktuality,
	.fp-section.fp-pece,
	.fp-section.fp-bohemdent,
	.fp-section.fp-team,
	.fp-section.fp-ordinace,
	.fp-section.fp-kontakt {
		overflow: hidden!important;
	}
}

.fp-nav-hints{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
}

.fp-nav-hint{
  position: absolute;
  left: 50%;
  width: 64px;
  height: 32px;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .25s ease,
    transform .25s ease,
    background .25s ease,
    visibility .25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.fp-nav-hint:hover{
  background: rgba(255,255,255,0.42);
  color: rgba(0,0,0,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.fp-nav-hint:focus-visible{
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 2px;
}

/* horní půlkruh */
.fp-nav-hint--up{
  top: 0;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
}

/* spodní půlkruh */
.fp-nav-hint--down{
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
}

.fp-nav-hint__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  opacity: .92;
}

/* jemné posazení ikon */
.fp-nav-hint--up .fp-nav-hint__icon{
  transform: translateY(1px);
}

.fp-nav-hint--down .fp-nav-hint__icon{
  transform: translateY(-1px);
}

.fp-nav-hint.is-visible{
  opacity: 1;
  visibility: visible;
}

.fp-nav-hint--up.is-visible .fp-nav-hint__icon{
  animation: fpHintPulseUp 1.8s ease-in-out infinite;
}

.fp-nav-hint--down.is-visible .fp-nav-hint__icon{
  animation: fpHintPulseDown 1.8s ease-in-out infinite;
}

@keyframes fpHintPulseUp{
  0%,100% { transform: translateY(1px); opacity: .88; }
  50%     { transform: translateY(-2px); opacity: 1; }
}

@keyframes fpHintPulseDown{
  0%,100% { transform: translateY(-1px); opacity: .88; }
  50%     { transform: translateY(2px); opacity: 1; }
}

/* desktop / landscape only */
@media (max-width: 1024px), (orientation: portrait){
  .fp-nav-hints{
    display: none;
  }
}
