/* Doctor profile — MioDottore-style layout helpers */

.dp-page {
  font-family: Outfit, sans-serif;
}

.dp-hero-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 1rem;
  background: #e8f4fc;
}

@media (min-width: 768px) {
  .dp-hero-photo {
    width: 144px;
    height: 144px;
  }
}

.dp-section {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.dp-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #131b2e;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f6;
}

.dp-prose {
  color: #40484e;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.dp-prose p {
  margin: 0 0 0.75rem;
}

.dp-sticky-card {
  position: sticky;
  top: 6rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(107, 177, 226, 0.12);
}

.dp-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: #EE6F55;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dp-book-btn:hover {
  background: #d65f46;
  color: #fff !important;
}

.dp-book-btn.is-disabled,
.dp-book-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}

.dp-book-btn.is-hidden {
  display: none !important;
}

.dp-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  border: 1px solid #6BB1E2;
  color: #6BB1E2 !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  background: #fff;
  transition: background-color 0.15s ease;
}

.dp-secondary-btn:hover {
  background: #e8f4fc;
}

.dp-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid #E2E8F0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1023px) {
  .dp-mobile-bar {
    display: block;
  }

  .dp-page-main {
    padding-bottom: 5.5rem;
  }

  .dp-desktop-sidebar {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .dp-mobile-bar {
    display: none !important;
  }
}

.dp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .dp-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.dp-gallery-grid a,
.dp-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

#dove-siamo-map {
  width: 100%;
  height: 240px;
  border-radius: 0.75rem;
  background: #e5e7eb;
  margin-top: 0.75rem;
}

.dp-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dp-schedule-table th,
.dp-schedule-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #eef2f6;
}

.dp-schedule-table th {
  color: #64748B;
  font-weight: 600;
}

.dp-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dp-services-list a {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: #e8f4fc;
  color: #1a5f86;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.dp-services-list a:hover {
  background: #c9e6ff;
}

.dp-review-card {
  border: 1px solid #eef2f6;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.dp-review-card:last-child {
  margin-bottom: 0;
}

/*
 * Booking modals above sticky topnav (50), mega/mobile menu (9999),
 * cookie banner (9999–10050), and mobile CTA bar (40).
 */
body.dp-page .modal,
.dp-page .modal {
  z-index: 11050 !important;
}

body.dp-page .modal-backdrop,
.modal-backdrop {
  z-index: 11040 !important;
}

body.dp-page .modal.show {
  display: block !important;
}

/*
 * Bootstrap .invisible { visibility:hidden !important } breaks Tailwind
 * Accedi / user menu (group-hover/menu:visible). Restore hover dropdown.
 */
#main-header .group\/menu:hover > .absolute {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Contain Bootstrap reboot so topnav/footer rework stay intact */
header a,
header button,
footer a,
footer button {
  text-decoration: none;
}

header img,
footer img {
  max-width: none;
}

.modal .btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
}
