@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&display=swap');

/* ==========================================================================
   PugliaSalute Redesign Prototype - Stylesheet (Strict Wireframe v1 Edition)
   ========================================================================== */

:root {
  --ps-wireframe-red: #BE6D75;
  --ps-wireframe-topbar: #9B5E66;
  --ps-wireframe-rose-block: #AE7173;
  --ps-wireframe-rose-hover: #9E5F61;
  --ps-wireframe-rose-light: #DFC4C7;
  --ps-wireframe-rose-completed: #F7EAEC;

  --ps-wireframe-navy: #162F45;
  --ps-wireframe-navy-hover: #22425E;
  --ps-wireframe-navy-light: #CBD5E1;

  --ps-wireframe-btn-blue: #25619A;
  --ps-wireframe-btn-blue-hover: #1E4E7A;
  --ps-wireframe-link-blue: #1D5C96;

  --ps-bg-top-blush: #FBF7F6;
  --ps-bg-bottom-ice: #F2F5FB;
  --ps-surface-white: #FFFFFF;

  --ps-text-main: #1E293B;
  --ps-text-muted: #64748B;
  --ps-border-color: #D1D5DB;
  --ps-border-subtle: #E2E8F0;

  --font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Gestione Dimensione Carattere (Accessibilità Wireframe A-, A, A+) */
html {
  font-size: 17.5px;
  transition: font-size 0.15s ease;
}

html.font-sm {
  font-size: 15px;
}

html.font-md {
  font-size: 17.5px;
}

html.font-lg {
  font-size: 20px;
}

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

body {
  font-family: var(--font-family);
  color: var(--ps-text-main);
  background-color: var(--ps-bg-top-blush);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOP RED LINE CON CONTROLLI CARATTERE (A-, A, A+) - Wireframe r1_c1
   ========================================================================== */
.top-window-bar {
  background: var(--ps-wireframe-topbar);
  color: white;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 20px;
  font-size: 0.85rem;
}

.top-bar-left {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.top-bar-accessibility {
  display: flex;
  align-items: center;
  gap: 6px;
}

.accessibility-label {
  font-size: 0.82rem;
  opacity: 0.95;
  margin-right: 2px;
}

.btn-font-size {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s;
}

.btn-font-size:hover {
  background: rgba(255, 255, 255, 0.35);
}

.btn-font-size.active {
  background: white;
  color: var(--ps-wireframe-topbar);
  border-color: white;
}

/* ==========================================================================
   SITE HEADER & SEPARATION (PORTALE PUBBLICO vs SERVIZI FSE)
   ========================================================================== */
.site-header {
  background: var(--ps-surface-white);
  border-bottom: 1px solid var(--ps-wireframe-red);
  padding: 12px 0;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-symbol {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--ps-wireframe-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.3px;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu-link {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nav-menu-link:hover,
.nav-menu-link.active {
  text-decoration: underline;
}

/* Bottone ACCEDI nella Navbar del portale pubblico */
.btn-accedi-header {
  background: var(--ps-wireframe-btn-blue);
  color: white;
  border: none;
  padding: 7px 20px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.btn-accedi-header:hover {
  background: var(--ps-wireframe-btn-blue-hover);
}

/* Sessione Utente Autenticato FSE nella Navbar */
.user-session-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ps-text-main);
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.user-session-name {
  font-weight: 700;
}

.btn-logout-link {
  background: none;
  border: none;
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding-left: 6px;
}

.btn-logout-link:hover {
  color: var(--ps-wireframe-red);
}

/* ==========================================================================
   PAGE TOP ZONE
   ========================================================================== */
.page-top-zone {
  background-color: var(--ps-bg-top-blush);
  padding: 24px 0 0 0;
  border-bottom: 1px solid var(--ps-border-subtle);
}

.page-top-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-text,
.breadcrumb-nav {
  font-size: 0.84rem;
  color: #64748B;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.4;
}

.breadcrumb-text a,
.breadcrumb-nav a {
  color: var(--ps-wireframe-link-blue, #0066CC);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-text a:hover,
.breadcrumb-nav a:hover {
  text-decoration: underline;
  color: var(--ps-wireframe-navy, #133857);
}

.breadcrumb-text .breadcrumb-sep,
.breadcrumb-nav .breadcrumb-sep {
  color: #94A3B8;
  user-select: none;
  font-size: 0.85rem;
  padding: 0 4px;
}

.breadcrumb-text .breadcrumb-current,
.breadcrumb-nav .breadcrumb-current {
  color: #1E293B;
  font-weight: 600;
}

.page-header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.page-header-title-left {
  display: flex;
  flex-direction: column;
}

.btn-chiudi-wizard {
  background: #FFFFFF;
  color: var(--ps-wireframe-navy);
  border: 1.5px solid var(--ps-wireframe-navy);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-chiudi-wizard:hover {
  background: #F1F5F9;
}

.btn-chiudi-cross {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.page-main-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.page-title-divider {
  border: none;
  border-top: 1px solid var(--ps-border-color);
  margin: 14px 0 0 0;
}

.step-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ps-text-main);
  margin-top: 6px;
}

.step-subtitle-bar {
  display: inline-block;
  width: 3px;
  height: 15px;
  background: #000000;
}

/* ==========================================================================
   STEPPER PROGRESS BAR
   ========================================================================== */
.stepper-wireframe-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-top: 24px;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  position: relative;
}

.stepper-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stepper-tab-item {
  flex: 1;
  padding: 8px 4px 14px 4px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1E293B;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.stepper-tab-item.active {
  background: transparent;
  color: var(--ps-wireframe-navy);
  font-weight: 700;
}

.stepper-tab-item.completed {
  background: transparent;
  color: var(--ps-wireframe-navy);
  font-weight: 600;
}

.stepper-line-track {
  width: 100%;
  height: 3.5px;
  background: transparent;
  position: relative;
  overflow: hidden;
  margin-bottom: -1px;
}

.stepper-line-fill {
  height: 100%;
  width: 16.666%;
  background: var(--ps-wireframe-navy);
  border-radius: 2px;
  transition: width 0.35s ease-in-out;
}

@media (max-width: 860px) {
  .stepper-steps-row {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .stepper-tab-item {
    font-size: 0.78rem;
    padding: 6px 4px 10px 4px;
  }
}

/* ==========================================================================
   PAGE CONTENT ZONE
   ========================================================================== */
.page-content-zone {
  background-color: var(--ps-bg-bottom-ice);
  flex: 1;
  padding: 32px 0 60px 0;
}

.page-content-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.wireframe-screen {
  display: none;
}

.wireframe-screen.active {
  display: block;
}

/* ==========================================================================
    PORTALE DELLA SALUTE (HOME) - Wireframe r1_c1
   ========================================================================== */
.home-hero-box {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 36px 40px;
  text-align: center;
  max-width: 800px;
  margin: 20px auto 36px auto;
}

.hero-box-title {
  color: var(--ps-wireframe-red);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-box-p {
  font-size: 0.95rem;
  color: var(--ps-text-main);
  max-width: 620px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.btn-wireframe-navy {
  background: var(--ps-wireframe-navy);
  color: white;
  border: none;
  padding: 9px 28px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-wireframe-navy:hover {
  background: var(--ps-wireframe-navy-hover);
}

.section-title-wireframe {
  color: var(--ps-wireframe-red);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.carousel-wireframe-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.carousel-arrow-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ps-text-muted);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.carousel-arrow-btn:hover {
  color: var(--ps-wireframe-navy);
}

.carousel-wireframe-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-wireframe-cards::-webkit-scrollbar {
  display: none;
}

.card-wireframe-rect {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 20px;
  min-height: 170px;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 270px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s;
}

.card-wireframe-rect:hover {
  border-color: var(--ps-wireframe-red);
}

.news-card-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ps-text-main);
  margin-bottom: 8px;
}

.news-card-body {
  font-size: 0.85rem;
  color: var(--ps-text-muted);
}

.emergency-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.emergency-pill-btn {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 20px;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ps-text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.emergency-pill-btn:hover {
  border-color: var(--ps-wireframe-red);
}

/* ==========================================================================
   FSE DASHBOARD
   ========================================================================== */
.fse-two-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 36px;
}

.card-fse-box {
  background: var(--ps-surface-white);
  color: var(--ps-text-main);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 34px 28px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-fse-box:hover {
  border-color: var(--ps-wireframe-red);
  background: #fdfafa;
}

.fse-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fse-line-icon {
  color: var(--ps-wireframe-red);
  flex-shrink: 0;
}

.fse-bigcard-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--ps-wireframe-red);
}

.fse-bigcard-sub {
  font-size: 0.9rem;
  color: var(--ps-text-muted);
  line-height: 1.4;
}

.fse-card-action-link {
  color: var(--ps-wireframe-red);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  transition: transform 0.15s ease;
}

.card-fse-box:hover .fse-card-action-link {
  text-decoration: underline;
  transform: translateX(2px);
}

/* ==========================================================================
   LE MIE PRENOTAZIONI
   ========================================================================== */
.prenotazioni-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.bookings-wireframe-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-row-card {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-subtle);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.booking-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ps-border-subtle);
  font-size: 0.88rem;
}

.booking-cell-label {
  font-size: 0.85rem;
  color: #475569;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.booking-cell-value {
  font-weight: 700;
  color: var(--ps-text-main);
}

.booking-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.booking-action-btn-link {
  background: none;
  border: none;
  color: var(--ps-text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 8px 0 0;
}

.booking-action-btn-link.danger {
  color: #B91C1C;
}

.link-dettagli-blue {
  color: var(--ps-wireframe-link-blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.link-dettagli-blue:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CHOICE CARDS
   ========================================================================== */
.choice-cards-wireframe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.wireframe-choice-card {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 24px 22px;
  min-height: 140px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.15s ease;
}

.wireframe-choice-card:hover:not(.selected) {
  background: var(--ps-wireframe-navy-light);
  border-color: #94A3B8;
}

.wireframe-choice-card.selected {
  background: var(--ps-wireframe-navy);
  border-color: var(--ps-wireframe-navy);
  color: white;
}

.choice-checkmark-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ps-wireframe-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--ps-wireframe-navy);
  flex-shrink: 0;
  background: white;
}

.wireframe-choice-card.selected .choice-checkmark-circle {
  border-color: white;
  background: white;
  color: var(--ps-wireframe-navy);
}

.choice-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.choice-desc {
  font-size: 0.88rem;
  color: var(--ps-text-muted);
  line-height: 1.45;
}

.wireframe-choice-card.selected .choice-desc {
  color: #E2E8F0;
}

/* ==========================================================================
   DATI RICETTA & PRESTAZIONI
   ========================================================================== */
.form-panel-white {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.form-inputs-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ps-text-main);
}

.form-field-input,
.form-field-select {
  padding: 8px 12px;
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  font-size: 0.92rem;
  background: white;
  font-family: inherit;
}

.form-field-input:focus,
.form-field-select:focus {
  outline: none;
  border-color: var(--ps-wireframe-navy);
}

.prescription-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.prescription-card-wireframe {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prescription-side-block {
  width: 64px;
  background: var(--ps-wireframe-rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.prescription-side-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.85rem;
  font-weight: 800;
}

.prescription-card-wireframe:hover:not(.selected) .prescription-side-block {
  background: var(--ps-wireframe-rose-hover);
}

.prescription-card-wireframe.selected .prescription-side-block {
  background: var(--ps-wireframe-red);
}

.prescription-card-wireframe.selected .prescription-side-icon {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.prescription-card-main {
  padding: 16px 20px;
  flex: 1;
}

.prescription-exam-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ps-text-main);
  margin-bottom: 4px;
}

.prescription-exam-meta {
  font-size: 0.82rem;
  color: var(--ps-text-muted);
  line-height: 1.4;
}

.prescription-info-link {
  color: var(--ps-wireframe-link-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
  cursor: pointer;
}

/* ==========================================================================
   SCELTA STRUTTURA E DATA
   ========================================================================== */
.summary-inline-bar {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.checkbox-filters-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
  font-size: 0.85rem;
}

.checkbox-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.slot-row-card {
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.slot-row-card.selected {
  border-color: var(--ps-wireframe-navy);
  background: #f8fafc;
}

.slot-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slot-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ps-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slot-row-card.selected .slot-radio-circle {
  border-color: var(--ps-wireframe-navy);
  background: var(--ps-wireframe-navy);
  color: white;
  font-size: 0.75rem;
}

.slot-name-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text-main);
}

.slot-datetime-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
}

/* ==========================================================================
   INFORMATIVA E CONDIZIONI
   ========================================================================== */
.recap-4col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 0;
  font-size: 0.85rem;
}

.recap-col-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
  margin-bottom: 4px;
}

.recap-col-content {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ps-text-main);
}

.cancellation-notice-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #78350F;
  margin-bottom: 20px;
  line-height: 1.5;
}

.consent-row-wireframe {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 1rem;
  padding: 6px 8px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.consent-row-wireframe.consent-error {
  border: 1.5px solid #D32F2F !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}

.consent-row-wireframe.consent-error label {
  color: #B91C1C !important;
  font-weight: 600 !important;
}

.consent-row-wireframe.consent-error input[type="checkbox"] {
  outline: 2px solid #D32F2F;
  outline-offset: 1px;
}

.form-error-banner,
.step5-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #D32F2F;
}

.form-error-icon,
.step5-error-icon {
  flex-shrink: 0;
  color: #D32F2F;
}

.form-error-text,
.step5-error-text {
  font-size: 15px;
  font-weight: 500;
  color: #D32F2F;
  line-height: 1.4;
}

.form-field-input.field-error {
  border: 1.5px solid #D32F2F !important;
  background-color: #FEF2F2 !important;
  color: #1E293B !important;
  outline: none !important;
}

.form-field-label.label-error {
  color: #B91C1C !important;
  font-weight: 600 !important;
}

.wireframe-choice-card.choice-card-error,
.prescription-card-wireframe.card-error {
  border: 1.5px solid #D32F2F !important;
  background-color: #FFFFFF !important;
}

.step4-filters-error {
  border: 1.5px solid #D32F2F !important;
  background-color: #FFFFFF !important;
  border-radius: 6px;
  padding: 14px !important;
}

.step4-slots-error {
  border: 1.5px solid #D32F2F !important;
  border-radius: 6px;
  background-color: #FFFFFF !important;
  padding: 8px !important;
}

.link-privacy-underline {
  color: var(--ps-wireframe-link-blue);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* ==========================================================================
   RIEPILOGO / CONFERMA ESITO
   ========================================================================== */
.success-banner-wireframe {
  background: #376e4f;
  border-radius: 8px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 24px auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
}

.success-check-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.success-banner-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

/* ==========================================================================
   MODALE PRIVACY GDPR
   ========================================================================== */
.wireframe-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wireframe-modal-overlay.active {
  display: flex;
}

.wireframe-modal-card {
  background: white;
  border-radius: 4px;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.wireframe-modal-header {
  padding: 20px 24px 12px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wireframe-modal-title {
  color: var(--ps-wireframe-red);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.btn-close-x {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ps-text-muted);
}

.wireframe-modal-body {
  padding: 12px 24px 20px 24px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

.wireframe-modal-body h4 {
  color: var(--ps-text-main);
  margin: 12px 0 4px 0;
  font-size: 0.95rem;
}

.wireframe-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--ps-border-color);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   NAVIGATION BUTTONS BAR IN WIZARD
   ========================================================================== */
.wizard-nav-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 10px;
}

.btn-nav-wireframe-secondary {
  background: white;
  color: var(--ps-wireframe-navy);
  border: 1.5px solid var(--ps-wireframe-navy);
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-nav-wireframe-secondary:hover {
  background: var(--ps-bg-top-blush);
}

.btn-nav-wireframe-primary {
  background: var(--ps-wireframe-navy);
  color: white;
  border: 1.5px solid var(--ps-wireframe-navy);
  padding: 8px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-nav-wireframe-primary:hover {
  background: var(--ps-wireframe-navy-hover);
}



@media (max-width: 800px) {

  .emergency-pills-grid,
  .fse-two-cards-grid,
  .choice-cards-wireframe-grid,
  .form-inputs-row-2col,
  .checkbox-filters-3col,
  .recap-4col-grid,
  .booking-row-grid,
  .booking-details-grid,
  .dati-anagrafici-grid,
  .recap-details-grid,
  .checkbox-asl-grid {
    grid-template-columns: 1fr;
  }

  .carousel-wireframe-cards .card-wireframe-rect {
    flex: 0 0 85%;
    min-width: 240px;
  }

  .slot-table-header,
  .slot-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-menu-links {
    display: none;
  }
}

/* --- Navbar user pill v2 --- */
.user-session-pill-v2 {
  position: relative;
  display: flex;
  align-items: center;
}

.user-pill-btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ps-wireframe-btn-blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.user-pill-btn-v2:hover {
  background: var(--ps-wireframe-btn-blue-hover);
}

.user-pill-icon {
  flex-shrink: 0;
}

.user-pill-initials {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-pill-caret-v2 {
  flex-shrink: 0;
}

/* Dropdown menu for user pill */
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  z-index: 1000;
  padding: 12px 0;
}

.user-dropdown-menu.active {
  display: block;
}

.user-dropdown-name {
  padding: 4px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ps-text-main);
}

.user-dropdown-cf {
  padding: 2px 16px 8px 16px;
  font-size: 0.78rem;
  color: var(--ps-text-muted);
  font-family: monospace;
}

.user-dropdown-divider {
  border: none;
  border-top: 1px solid var(--ps-border-subtle);
  margin: 4px 0;
}

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-text-main);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: var(--ps-bg-top-blush);
}

.user-dropdown-logout {
  color: var(--ps-wireframe-red);
}

.stepper-check-svg {
  margin-left: 4px;
  flex-shrink: 0;
  color: var(--ps-text-main);
}

/* --- Area Personale header --- */
.area-personale-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.area-personale-icon {
  color: var(--ps-wireframe-red);
}

.area-personale-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.5px;
}

.card-fse-box.selected {
  background: var(--ps-wireframe-rose-block);
  border-color: var(--ps-wireframe-rose-block);
  color: white;
}

.card-fse-box.selected .fse-line-icon {
  color: white;
}

.card-fse-box.selected .fse-bigcard-title {
  color: white;
}

.card-fse-box.selected .fse-bigcard-sub {
  color: rgba(255, 255, 255, 0.9);
}

.fse-bigcard-title--red {
  color: var(--ps-wireframe-red);
}

.card-fse-box:not(.selected) .fse-bigcard-title {
  color: var(--ps-wireframe-red);
}

.card-doc-item {
  min-height: 235px;
  flex: 0 0 330px;
  min-width: 330px;
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 6px;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.card-doc-item:hover {
  border-color: var(--ps-wireframe-red);
  box-shadow: 0 6px 16px rgba(162, 56, 71, 0.10);
  transform: translateY(-2px);
}

.doc-badge-pill {
  display: inline-block;
  background: #F7EAEC;
  color: var(--ps-wireframe-red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.doc-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.doc-card-meta {
  font-size: 0.86rem;
  color: var(--ps-text-muted);
  line-height: 1.6;
}

.doc-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-wireframe-btn-blue);
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--ps-border-subtle);
}

.card-doc-skeleton {
  min-height: 160px;
  background: white;
  cursor: default;
}

.card-doc-skeleton:hover {
  border-color: var(--ps-border-color);
}

/* --- Torna indietro button --- */
.btn-torna-indietro {
  background: white;
  color: var(--ps-text-main);
  border: 1.5px solid var(--ps-text-main);
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
  text-decoration: none;
}

.btn-torna-indietro:hover {
  background: var(--ps-bg-top-blush);
}

/* --- Bookings screen --- */
.bookings-subtitle {
  font-size: 0.95rem;
  color: var(--ps-text-main);
  margin-bottom: 16px;
}

.bookings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ps-wireframe-red);
  border-bottom: 1px solid var(--ps-wireframe-red);
  padding: 10px 0;
  margin-bottom: 24px;
}

.btn-filtra-nav {
  background: var(--ps-wireframe-navy);
  color: white;
  border: none;
  padding: 7px 22px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-navy,
.bookings-toolbar .btn-wireframe-navy {
  background: #FFFFFF;
  color: var(--ps-wireframe-navy);
  border: 1.5px solid var(--ps-wireframe-navy);
  padding: 7px 22px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-outline-navy:hover,
.bookings-toolbar .btn-wireframe-navy:hover {
  background: #F1F5F9;
  color: var(--ps-wireframe-navy);
  border-color: var(--ps-wireframe-navy);
}

.booking-details-grid-v2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ps-border-subtle);
}

.booking-grid-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 0.88rem;
}

.booking-detail-label {
  color: var(--ps-text-muted);
  font-size: 0.88rem;
}

.booking-detail-value {
  font-weight: 700;
  color: var(--ps-text-main);
}

.booking-row-actions-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.booking-actions-left {
  display: flex;
  gap: 10px;
}

.btn-booking-action {
  background: white;
  color: var(--ps-text-main);
  border: 1.5px solid var(--ps-text-main);
  padding: 5px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-booking-action:hover {
  background: #F1F5F9;
}

.link-vedi-dettagli {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.link-vedi-dettagli:hover {
  text-decoration: underline;
}

/* Choice bullet list (Step 1 & 2) */
.choice-bullet-list {
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.wireframe-choice-card.selected .choice-bullet-list {
  color: #F1F5F9;
}

/* --- Step 3: Prescription redesign --- */
.form-intro-text {
  font-size: 0.92rem;
  color: var(--ps-text-main);
  margin-bottom: 16px;
  font-weight: 500;
}

.form-panel-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ps-text-main);
  margin-bottom: 12px;
}

.dati-anagrafici-grid {
  display: grid;
  grid-template-columns: 140px 1fr 140px 1fr;
  gap: 8px 16px;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.dati-anagrafici-grid-cf {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  margin-top: 6px;
  font-size: 0.88rem;
}

.dati-label {
  color: var(--ps-text-muted);
  font-size: 0.88rem;
}

.dati-value {
  font-weight: 700;
  color: var(--ps-text-main);
  font-size: 0.88rem;
}

.prescription-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text-main);
  margin-bottom: 14px;
}

.prescription-nre-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-wireframe-btn-blue);
  margin-bottom: 10px;
}

.prescription-card-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.prescription-detail-label {
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--ps-text-main);
}

.prescription-detail-value {
  font-size: 0.92rem;
  color: var(--ps-text-main);
}

.prescription-items-list {
  margin: 4px 0 8px 18px;
  font-size: 0.92rem;
  color: var(--ps-text-main);
  line-height: 1.5;
}

.prescription-items-text {
  font-size: 0.92rem;
  color: var(--ps-text-main);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* --- Step 4: Slots redesign --- */
.ricette-summary-bar {
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 20px;
}

.ricette-summary-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ricette-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

/* Step 4: Dropdown Dettagli Ricetta Selezionata */
.recipe-details-dropdown {
  background: #F8FAFC;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 12px;
  border: 1px solid var(--ps-border-color, #E2E8F0);
  animation: fadeInDetails 0.2s ease;
}

@keyframes fadeInDetails {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recipe-details-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ps-wireframe-navy, #133857);
  margin-bottom: 6px;
}

.recipe-details-list {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.5;
}

.form-section-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ps-text-main);
  margin-bottom: 14px;
}

.checkbox-asl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
  margin-bottom: 4px;
}

.asl-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disponibilita-section {
  margin-top: 24px;
}

.disponibilita-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ps-text-main);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.disponibilita-table-wrap {
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 4px;
  overflow: hidden;
}

.slot-table-header {
  display: grid;
  grid-template-columns: 36px 1.2fr 1.2fr 1fr 140px;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ps-text-main);
  border-bottom: 2px solid var(--ps-text-main);
}

.slot-table-row {
  display: grid;
  grid-template-columns: 36px 1.2fr 1.2fr 1fr 140px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ps-border-subtle);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 0.88rem;
}

.slot-table-row:last-child {
  border-bottom: none;
}

.slot-table-row:hover {
  background: var(--ps-bg-top-blush);
}

.slot-table-row.selected {
  background: #F1F5F9;
  border-left: 4px solid var(--ps-wireframe-navy);
}

.slot-radio-cell {
  display: flex;
  align-items: center;
}

.slot-radio-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ps-wireframe-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.15s;
}

.slot-radio-btn.checked {
  background: var(--ps-wireframe-navy);
  color: white;
}

.slot-cell-azienda {
  font-weight: 700;
  color: var(--ps-text-main);
}

.slot-cell-struttura {
  font-weight: 700;
  color: var(--ps-text-main);
  text-transform: uppercase;
}

.slot-cell-datetime {
  font-size: 0.88rem;
  color: var(--ps-text-main);
  line-height: 1.4;
}

.slot-date-line {
  font-weight: 700;
}

.slot-time-line {
  color: var(--ps-text-main);
}

.slot-cell-action {
  text-align: right;
}

.btn-scegli-altra-data {
  background: var(--ps-wireframe-navy);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-scegli-altra-data:hover {
  background: var(--ps-wireframe-navy-hover);
}

.slot-first-badge {
  display: inline-block;
  margin-left: 8px;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.80rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: none;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

.slots-empty-state {
  padding: 48px 24px;
  text-align: center;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slots-empty-icon {
  width: 44px;
  height: 44px;
  color: #94A3B8;
  margin-bottom: 12px;
}

.slots-empty-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ps-text-main);
  margin-bottom: 6px;
}

.slots-empty-desc {
  font-size: 0.88rem;
  color: #64748B;
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}

.slots-count-badge {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ps-wireframe-navy);
  background: #E2E8F0;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: normal;
}

/* --- Step 5: Recap/Conferma --- */
.recap-details-grid {
  display: grid;
  grid-template-columns: 140px 1fr 140px 1fr;
  gap: 14px 24px;
  font-size: 0.95rem;
}

.recap-detail-label {
  color: #475569;
  font-size: 0.92rem;
}

.recap-detail-value {
  font-weight: 700;
  color: var(--ps-text-main);
  font-size: 0.98rem;
}

.dichiarazioni-panel {
  border-left: 3px solid var(--ps-wireframe-red);
}

.dichiarazioni-title {
  color: var(--ps-wireframe-red);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.note-operatore-label {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ps-text-main);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.note-operatore-text {
  font-size: 1.02rem;
  color: var(--ps-text-main);
  line-height: 1.65;
  margin-bottom: 16px;
}

.note-operatore-text p {
  margin-bottom: 12px;
}

.note-operatore-text p:last-child {
  margin-bottom: 0;
}

.note-operatore-text strong {
  color: #0F172A;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2px;
}

/* --- Step 6: Success/Riepilogo --- */
.success-booking-card {
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  padding: 0;
  margin: 0 auto 24px auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.success-booking-id {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ps-text-main);
  padding: 18px 28px;
  letter-spacing: 0.3px;
}

.success-booking-divider {
  border: none;
  border-top: 1px solid var(--ps-border-subtle);
  margin: 0;
}

.success-booking-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  padding: 16px 28px;
  font-size: 0.95rem;
}

.success-booking-label {
  color: #64748B;
  font-weight: 600;
  margin-right: 10px;
}

.success-booking-value {
  font-weight: 700;
  color: var(--ps-text-main);
}

.success-deadline-row {
  border-top: 1px solid var(--ps-border-subtle);
}

.success-deadline-value {
  color: var(--ps-wireframe-red);
}

.success-disdetta-reminder {
  background: #FFFBEB;
  border-radius: 8px;
  padding: 20px 28px;
  margin: 0 auto 28px auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.05);
}

.success-disdetta-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.success-disdetta-content {
  flex: 1;
}

.success-disdetta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.success-disdetta-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #78350F;
}

.success-disdetta-warning {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: #92400E;
  font-style: italic;
}

.success-booking-actions {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  padding: 12px 28px 18px 28px;
}

.success-action-link {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.success-action-link:hover {
  text-decoration: underline;
  color: var(--ps-wireframe-btn-blue-hover, #1E4E7A);
}

.success-bottom-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .success-booking-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 18px;
  }

  .success-banner-wireframe,
  .success-booking-card,
  .success-disdetta-reminder {
    padding-left: 18px;
    padding-right: 18px;
  }

  .success-booking-id,
  .success-booking-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* ==========================================================================
   BRAND, HEADER V2, USER PILL & HOMEPAGE
   ========================================================================== */
.brand-tree-icon {
  flex-shrink: 0;
}

.brand-logo-text-ps {
  display: flex;
  align-items: baseline;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
  margin-left: 8px;
}

.ps-brand-bold {
  font-weight: 800;
  color: #1E293B;
}

.ps-brand-light {
  font-weight: 400;
  color: #64748B;
}

.brand-logo-fse {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.fse-header-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.3px;
}

.header-fse-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0 0 0 36px;
  padding: 0;
}

.nav-fse-header-link {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-fse-header-link:hover,
.nav-fse-header-link.active {
  color: var(--ps-wireframe-navy);
  text-decoration: underline;
}

.btn-header-search {
  width: 36px;
  height: 36px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-header-search:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

/* User Pill v2 [ M P ▾ ] */
.user-session-pill-v2 {
  position: relative;
}

.user-pill-btn-v2 {
  background: var(--ps-wireframe-btn-blue);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.user-pill-btn-v2:hover {
  background: var(--ps-wireframe-btn-blue-hover);
}

.user-pill-icon {
  flex-shrink: 0;
}

.user-pill-initials {
  letter-spacing: 0.5px;
}

.user-pill-caret-v2 {
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  min-width: 210px;
  padding: 10px 0;
  z-index: 1000;
  display: none;
}

.user-dropdown-menu.active {
  display: block;
}

.user-dropdown-name {
  padding: 6px 16px 2px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ps-text-main);
}

.user-dropdown-cf {
  padding: 0 16px 8px 16px;
  font-size: 0.75rem;
  color: var(--ps-text-muted);
  font-family: monospace;
}

.user-dropdown-divider {
  border: none;
  border-top: 1px solid var(--ps-border-subtle);
  margin: 4px 0;
}

.user-dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--ps-text-main);
  cursor: pointer;
  transition: background 0.12s;
}

.user-dropdown-item:hover {
  background: #F1F5F9;
  color: var(--ps-wireframe-btn-blue);
}

.user-dropdown-logout {
  color: var(--ps-wireframe-red);
  font-weight: 600;
}

.user-dropdown-logout:hover {
  background: #FDF2F2;
  color: var(--ps-wireframe-red);
}

/* Accessibility font buttons v2 */
.btn-font-size-v2 {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.btn-font-size-v2.bold {
  font-weight: 800;
}

.btn-font-size-v2:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Sub-Navbar Bar (Public Homepage & Login) */
.sub-navbar-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ps-border-subtle);
  width: 100%;
}

.sub-navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
}

.nav-menu-links-ps {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-link-ps {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.nav-menu-link-ps:hover {
  text-decoration: underline;
}

.nav-caret {
  font-size: 0.7rem;
  color: var(--ps-wireframe-btn-blue);
}

/* ==========================================================================
   HOMEPAGE (PORTALE DELLA SALUTE)
   ========================================================================== */
.home-title-block {
  margin: 24px 0 16px 0;
}

.home-breadcrumb-row {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.home-bc-brand {
  color: var(--ps-wireframe-link-blue);
  font-weight: 700;
  cursor: pointer;
}

.home-bc-sep {
  color: #94A3B8;
  margin: 0 4px;
}

.home-bc-page {
  color: var(--ps-text-muted);
}

.home-main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.5px;
  margin: 0;
}

.home-red-divider {
  border: none;
  border-top: 1px solid var(--ps-wireframe-rose-light);
  margin: 28px 0;
  width: 100%;
}

.home-hero-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 36px 48px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-hero-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  margin-bottom: 16px;
}

.home-hero-lead {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ps-text-main);
  line-height: 1.5;
  margin: 0 auto 6px auto;
  max-width: 720px;
}

.home-hero-action {
  margin-top: 24px;
}

.btn-hero-accedi {
  background: var(--ps-wireframe-navy);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-hero-accedi:hover {
  background: var(--ps-wireframe-navy-hover);
}

.home-news-section {
  margin-top: 4px;
}

.home-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  margin-bottom: 18px;
}

.home-emergency-section {
  margin-bottom: 32px;
}

.emergency-intro-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ps-text-main);
  margin-bottom: 20px;
}

.emergency-cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.emergency-box-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 22px 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.emergency-box-card:hover {
  border-color: var(--ps-wireframe-rose-block);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(174, 113, 115, 0.15);
}

.emergency-box-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ps-wireframe-rose-block);
  line-height: 1.35;
}

/* ==========================================================================
   LOGIN SCREEN (ACCESSO FSE)
   ========================================================================== */
.login-screen-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 0 40px 0;
}

.login-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.login-method-card {
  background: #FFFFFF;
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.login-method-card:hover {
  border-color: #0066CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 102, 204, 0.12);
}

.btn-login-method-blue {
  background: #0066CC;
  color: #FFFFFF;
  border: 1px solid #0066CC;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.2);
}

.btn-login-method-blue:hover {
  background: #0052A3;
  border-color: #0052A3;
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.3);
}

.login-method-acronym-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-text-main);
  line-height: 1.35;
  text-align: center;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ps-border-subtle);
}


.brand-tree-icon {
  flex-shrink: 0;
}

.brand-logo-text-ps {
  display: flex;
  align-items: baseline;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
  margin-left: 8px;
}

.ps-brand-bold {
  font-weight: 800;
  color: #1E293B;
}

.ps-brand-light {
  font-weight: 400;
  color: #64748B;
}

.brand-logo-fse {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.fse-header-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.3px;
}

.header-fse-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0 0 0 36px;
  padding: 0;
}

.nav-fse-header-link {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-fse-header-link:hover,
.nav-fse-header-link.active {
  color: var(--ps-wireframe-navy);
  text-decoration: underline;
}

.btn-header-search {
  width: 36px;
  height: 36px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-header-search:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

/* User Pill v2 [ M P ▾ ] */
.user-session-pill-v2 {
  position: relative;
}

.user-pill-btn-v2 {
  background: var(--ps-wireframe-btn-blue);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.user-pill-btn-v2:hover {
  background: var(--ps-wireframe-btn-blue-hover);
}

.user-pill-icon {
  flex-shrink: 0;
}

.user-pill-initials {
  letter-spacing: 0.5px;
}

.user-pill-caret-v2 {
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: white;
  border: 1px solid var(--ps-border-color);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  min-width: 210px;
  padding: 10px 0;
  z-index: 1000;
  display: none;
}

.user-dropdown-menu.active {
  display: block;
}

.user-dropdown-name {
  padding: 6px 16px 2px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ps-text-main);
}

.user-dropdown-cf {
  padding: 0 16px 8px 16px;
  font-size: 0.75rem;
  color: var(--ps-text-muted);
  font-family: monospace;
}

.user-dropdown-divider {
  border: none;
  border-top: 1px solid var(--ps-border-subtle);
  margin: 4px 0;
}

.user-dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--ps-text-main);
  cursor: pointer;
  transition: background 0.12s;
}

.user-dropdown-item:hover {
  background: #F1F5F9;
  color: var(--ps-wireframe-btn-blue);
}

.user-dropdown-logout {
  color: var(--ps-wireframe-red);
  font-weight: 600;
}

.user-dropdown-logout:hover {
  background: #FDF2F2;
  color: var(--ps-wireframe-red);
}

/* Accessibility font buttons v2 */
.btn-font-size-v2 {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.btn-font-size-v2.bold {
  font-weight: 800;
}

.btn-font-size-v2:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Sub-Navbar Bar (Public Homepage & Login) */
.sub-navbar-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ps-border-subtle);
  width: 100%;
}

.sub-navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
}

.nav-menu-links-ps {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-link-ps {
  color: var(--ps-wireframe-btn-blue);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.nav-menu-link-ps:hover {
  text-decoration: underline;
}

.nav-caret {
  font-size: 0.7rem;
  color: var(--ps-wireframe-btn-blue);
}


.home-title-block {
  margin: 24px 0 16px 0;
}

.home-breadcrumb-row {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.home-bc-brand {
  color: var(--ps-wireframe-link-blue);
  font-weight: 700;
  cursor: pointer;
}

.home-bc-sep {
  color: #94A3B8;
  margin: 0 4px;
}

.home-bc-page {
  color: var(--ps-text-muted);
}

.home-main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  letter-spacing: -0.5px;
  margin: 0;
}

.home-red-divider {
  border: none;
  border-top: 1px solid var(--ps-wireframe-rose-light);
  margin: 28px 0;
  width: 100%;
}

.home-hero-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 36px 48px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-hero-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  margin-bottom: 16px;
}

.home-hero-lead {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ps-text-main);
  line-height: 1.5;
  margin: 0 auto 6px auto;
  max-width: 720px;
}

.home-hero-action {
  margin-top: 24px;
}

.btn-hero-accedi {
  background: var(--ps-wireframe-navy);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-hero-accedi:hover {
  background: var(--ps-wireframe-navy-hover);
}

.home-news-section {
  margin-top: 4px;
}

.home-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  margin-bottom: 18px;
}

.home-emergency-section {
  margin-bottom: 32px;
}

.emergency-intro-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ps-text-main);
  margin-bottom: 20px;
}

.emergency-cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.emergency-box-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 22px 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.emergency-box-card:hover {
  border-color: var(--ps-wireframe-rose-block);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(174, 113, 115, 0.15);
}

.emergency-box-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ps-wireframe-rose-block);
  line-height: 1.35;
}


.login-screen-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 0 40px 0;
}

.login-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.login-method-card {
  background: #FFFFFF;
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.login-method-card:hover {
  border-color: #0066CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 102, 204, 0.12);
}

.btn-login-method-blue {
  background: #0066CC;
  color: #FFFFFF;
  border: 1px solid #0066CC;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.2);
}

.btn-login-method-blue:hover {
  background: #0052A3;
  border-color: #0052A3;
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.3);
}

.login-method-acronym-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-text-main);
  line-height: 1.35;
  text-align: center;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ps-border-subtle);
}


/* ==========================================================================
   MODALE CALENDARIO DISPONIBILITÀ (Scegli altra data)
   ========================================================================== */
.avail-modal-card {
  background: white;
  border-radius: 6px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 36px 36px 36px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  position: relative;
  box-sizing: border-box;
}

.avail-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.avail-modal-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ps-wireframe-red);
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.avail-modal-subtitle {
  font-size: 0.94rem;
  color: #334155;
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.avail-modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #1E3A8A;
  cursor: pointer;
  padding: 0 4px;
  transition: opacity 0.15s;
}

.avail-modal-close:hover {
  opacity: 0.7;
}

.avail-modal-divider {
  height: 1px;
  background: #E2E8F0;
  width: 100%;
  margin: 16px 0 18px 0;
}

.avail-modal-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.avail-view-toggle {
  display: inline-flex;
  border: 2px solid var(--ps-wireframe-navy);
  border-radius: 9999px;
  overflow: hidden;
  background: white;
  padding: 2px;
}

.avail-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ps-wireframe-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.avail-toggle-btn.active {
  background: var(--ps-wireframe-navy);
  color: white;
}

.avail-modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.avail-col-divider {
  background: #E2E8F0;
  width: 1px;
  height: 100%;
}

.avail-col-data,
.avail-col-ora {
  display: flex;
  flex-direction: column;
}

.avail-col-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  margin-bottom: 14px;
}

/* LIST VIEW */
.avail-dates-list {
  display: flex;
  flex-direction: column;
  max-height: 290px;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 8px;
}

.avail-date-row {
  padding: 10px 4px;
  border-bottom: 1px solid #E2E8F0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ps-wireframe-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.1s;
}

.avail-date-row:hover:not(.selected) {
  background: var(--ps-bg-top-blush);
}

.avail-date-pill {
  padding: 4px 14px;
  border-radius: 9999px;
  display: inline-block;
  transition: all 0.15s;
}

.avail-date-row.selected .avail-date-pill {
  background: var(--ps-wireframe-red);
  color: white;
}

.avail-list-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
}

.btn-avail-secondary {
  background: white;
  border: 2px solid var(--ps-wireframe-navy);
  color: var(--ps-wireframe-navy);
  border-radius: 4px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-avail-secondary:hover {
  background: #F1F5F9;
}

.btn-avail-primary {
  background: var(--ps-wireframe-navy);
  border: none;
  color: white;
  border-radius: 4px;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-avail-primary:hover {
  background: var(--ps-wireframe-navy-hover);
}

/* CALENDAR VIEW */
.avail-calendar-selectors {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.avail-select-picker {
  border: 1.5px solid #94A3B8;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  font-size: 0.92rem;
  background: white;
  cursor: pointer;
  outline: none;
}

.avail-calendar-grid-wrap {
  margin-bottom: 24px;
}

.avail-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ps-wireframe-navy);
  margin-bottom: 10px;
}

.avail-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.avail-cal-day {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ps-wireframe-navy);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.avail-cal-day.muted {
  color: #94A3B8;
}

.avail-cal-day.disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: transparent !important;
  color: #CBD5E1 !important;
}

.avail-cal-day:hover:not(.selected) {
  background: #F1F5F9;
}

.avail-cal-day.selected {
  background: var(--ps-wireframe-red) !important;
  color: white !important;
  font-weight: 800;
}

/* ==========================================================================
   STEP 4: CUSTOM DATEPICKER POPOVER ("Cerca a partire da:")
   ========================================================================== */
.filter-date-picker-group {
  position: relative;
  max-width: 260px;
}

.custom-datepicker-input-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.custom-date-display {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #FFFFFF !important;
  padding-right: 38px !important;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ps-wireframe-navy);
  font-weight: 600;
  cursor: text;
}

.custom-date-display.has-value {
  padding-right: 64px !important;
}

.custom-date-display::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.btn-custom-date-trigger {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ps-wireframe-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
  z-index: 2;
}

.btn-custom-date-trigger:hover {
  background-color: #F1F5F9;
  color: #000;
}

.btn-custom-date-clear {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
}

.btn-custom-date-clear:hover {
  color: #E53E3E;
  background-color: #FEE2E2;
}

.custom-datepicker-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1050;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(19, 56, 87, 0.18);
  padding: 18px 20px 14px;
  width: 320px;
  box-sizing: border-box;
  animation: fadeInPop 0.15s ease-out;
}

@keyframes fadeInPop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-cal-header-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.custom-cal-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.custom-cal-selectors select:first-child {
  flex: 1.4;
}

.custom-cal-selectors select:last-child {
  flex: 1;
}

.custom-cal-divider {
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 14px;
}

.custom-cal-grid-wrap {
  margin-bottom: 12px;
}

.custom-cal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
  margin-top: 8px;
}

.btn-cal-action-today,
.btn-cal-action-clear {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-cal-action-today {
  color: var(--ps-wireframe-navy);
}

.btn-cal-action-today:hover {
  background-color: #F1F5F9;
  color: #000;
}

.btn-cal-action-clear {
  color: #64748B;
}

.btn-cal-action-clear:hover {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.avail-cal-actions {
  margin-top: auto;
  padding-top: 8px;
}

/* ORA & SUMMARY */
.avail-time-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  margin-bottom: 24px;
}

.avail-time-pill {
  border: 1.5px solid var(--ps-wireframe-navy);
  border-radius: 9999px;
  background: white;
  color: var(--ps-wireframe-navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.avail-time-pill:hover:not(.selected) {
  background: #F8FAFC;
}

.avail-time-pill.selected {
  background: var(--ps-wireframe-red);
  border-color: var(--ps-wireframe-red);
  color: white;
}

.avail-summary-section {
  border-top: 1px solid #E2E8F0;
  padding-top: 20px;
  margin-top: auto;
}

.avail-summary-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  margin-bottom: 6px;
}

.avail-summary-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ps-wireframe-navy);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .avail-modal-body-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .avail-col-divider {
    display: none;
  }

  .avail-time-pills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   SCREEN ASSISTENZA & SUPPORTO FSE
   ========================================================================== */
.assistenza-header-block {
  margin-bottom: 24px;
}

.assistenza-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ps-wireframe-navy);
  background: #E2E8F0;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.assistenza-lead-text {
  font-size: 0.96rem;
  color: #475569;
  max-width: 820px;
  line-height: 1.55;
  margin-top: 4px;
}

.assistenza-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .assistenza-grid-2col {
    grid-template-columns: 1fr;
  }
}

.assistenza-card {
  background: #FFFFFF;
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.assistenza-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ps-border-subtle);
}

.assistenza-card-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--ps-wireframe-rose-light, #F5EBEC);
  color: var(--ps-wireframe-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assistenza-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ps-wireframe-navy);
  margin-bottom: 3px;
}

.assistenza-card-subtitle {
  font-size: 0.84rem;
  color: var(--ps-text-muted);
}

.assistenza-phone-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 18px;
}

.assistenza-phone-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.assistenza-phone-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.assistenza-phone-number:hover {
  color: var(--ps-wireframe-red);
}

.assistenza-badge-free {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.assistenza-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.90rem;
  color: #334155;
}

.assistenza-info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.assistenza-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ps-wireframe-navy);
}

.text-wait-time {
  color: #16A34A;
  font-weight: 700;
}

.btn-call-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  padding: 11px 20px;
  font-size: 0.95rem;
  margin-top: auto;
}

.assistenza-success-card {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #166534;
  font-size: 0.92rem;
  line-height: 1.5;
}

.assistenza-form-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.assistenza-reassurance-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: #475569;
  margin-top: 4px;
}

.assistenza-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.assistenza-field-error {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.assistenza-error-msg {
  color: #DC2626;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 3px;
  display: none;
}

.assistenza-faq-section {
  background: #FFFFFF;
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  padding: 24px 28px;
}

.faq-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ps-wireframe-navy);
  margin-bottom: 4px;
}

.faq-header-subtitle {
  font-size: 0.84rem;
  color: var(--ps-text-muted);
  margin-bottom: 20px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--ps-border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.15s ease;
  background: #FFFFFF;
}

.faq-item:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.faq-question {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ps-wireframe-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: #64748B;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px 18px;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.6;
  border-top: 1px dashed var(--ps-border-subtle);
  padding-top: 12px;
}

.faq-item.active .faq-answer {
  display: block;
}


/* ==========================================================================
   MODAL: FILTRA PRENOTAZIONI & TOOLBAR FILTERS
   ========================================================================== */
.btn-filtra-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-filtra-nav.has-active-filters {
  background: var(--ps-wireframe-red);
}

.filter-count-badge {
  font-size: 1.1rem;
  line-height: 1;
  color: #FEE2E2;
}

.booking-active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 8px;
  padding: 10px 16px;
  background: var(--ps-surface-white);
  border: 1px solid var(--ps-border-color);
  border-radius: 6px;
  font-size: 0.85rem;
}

.filter-active-summary-label {
  font-weight: 700;
  color: var(--ps-text-main);
}

.filter-tag-pill {
  background: #F7EAEC;
  border: 1.5px solid #DFC4C7;
  padding: 4px 6px 4px 12px;
  border-radius: 16px;
  color: #5C222B;
  font-size: 0.83rem;
  box-shadow: 0 1px 3px rgba(190, 109, 117, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.filter-tag-pill:hover {
  border-color: var(--ps-wireframe-red);
  background: #F2DEE1;
}

.filter-tag-pill strong {
  color: #4A161E;
  font-weight: 700;
}

.filter-tag-pill-text {
  display: inline-block;
}

.filter-tag-pill-remove {
  background: #EED7DA;
  border: none;
  color: #6E2630;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  transition: all 0.15s ease;
}

.filter-tag-pill-remove:hover {
  background: var(--ps-wireframe-red);
  color: #FFFFFF;
  transform: scale(1.1);
}

.filter-tag-pill-remove:focus-visible {
  outline: 2px solid var(--ps-wireframe-red);
  outline-offset: 1px;
}

.btn-clear-filters-link {
  background: none;
  border: none;
  color: #8E2F3D;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: auto;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-clear-filters-link:hover {
  color: #5C1E27;
}

.filter-modal-card {
  background: #FFFFFF;
  border-radius: 6px;
  max-width: 630px;
  width: 100%;
  padding: 36px 42px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  position: relative;
  box-sizing: border-box;
}

.filter-modal-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  font-size: 2.3rem;
  line-height: 1;
  color: #2563EB;
  cursor: pointer;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.filter-modal-close:hover {
  opacity: 0.75;
}

.filter-modal-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--ps-wireframe-red);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.filter-modal-subtitle {
  font-size: 0.94rem;
  color: #334155;
  margin: 0 0 18px 0;
  line-height: 1.45;
}

.filter-modal-divider {
  height: 1px;
  background-color: #E2E8F0;
  margin-bottom: 24px;
}

.filter-modal-group {
  margin-bottom: 22px;
}

.filter-modal-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.filter-modal-select {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.95rem;
  color: var(--ps-wireframe-link-blue);
  border: 1.5px solid var(--ps-wireframe-link-blue);
  border-radius: 6px;
  background-color: #FFFFFF;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 10 12 5 17 10'%3E%3C/polyline%3E%3Cpolyline points='7 14 12 19 17 14'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.filter-modal-select:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.filter-modal-select option {
  color: #0F172A;
}

.filter-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.btn-filter-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--ps-wireframe-navy, #1E293B);
  color: var(--ps-wireframe-navy, #1E293B);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-outline:hover {
  background: #F1F5F9;
}

.btn-filter-apply {
  background: var(--ps-wireframe-navy, #1E293B);
  border: 1.5px solid var(--ps-wireframe-navy, #1E293B);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 26px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-apply:hover {
  background: var(--ps-wireframe-navy-hover, #334155);
}

@media (max-width: 600px) {
  .filter-modal-card {
    padding: 24px 20px;
  }

  .filter-modal-actions {
    flex-direction: column;
  }
}


/* ==========================================================================
   MODIFICA PRENOTAZIONE BANNER (Step 4)
   ========================================================================== */
.booking-modification-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--ps-wireframe-btn-blue);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(37, 97, 154, 0.08);
}

.booking-mod-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.booking-mod-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ps-wireframe-navy);
  margin-bottom: 4px;
}

.booking-mod-desc {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
}

/* ==============================================================================
   MODAL: CONFERMA DISDETTA PRENOTAZIONE
   ============================================================================== */
.cancel-confirm-modal-card {
  background: #FFFFFF;
  border-radius: 10px;
  max-width: 520px;
  width: 92%;
  padding: 36px 32px 28px;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.cancel-confirm-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #64748B;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.cancel-confirm-close:hover {
  color: var(--ps-wireframe-navy);
}

.cancel-confirm-icon {
  margin-bottom: 16px;
}

.cancel-confirm-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  margin: 0 0 12px;
}

.cancel-confirm-text {
  font-size: 0.95rem;
  color: #334155;
  margin: 0 0 8px;
  line-height: 1.5;
}

.cancel-confirm-warning {
  font-size: 0.85rem;
  color: #C9553A;
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.4;
}

.cancel-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-cancel-dismiss {
  background: white;
  color: var(--ps-wireframe-navy);
  border: 1.5px solid var(--ps-wireframe-navy);
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel-dismiss:hover {
  background: #F1F5F9;
}

.btn-cancel-confirm {
  background: #C9553A;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel-confirm:hover {
  background: #B34430;
}

/* ==============================================================================
   MODAL: SUCCESSO ANNULLAMENTO PRENOTAZIONE (Dark Green)
   ============================================================================== */
.cancel-success-modal-card {
  background: #1B3C2A;
  border-radius: 10px;
  max-width: 640px;
  width: 94%;
  padding: 44px 36px 36px;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.cancel-success-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.cancel-success-close:hover {
  color: white;
}

.cancel-success-icon {
  margin-bottom: 20px;
}

.cancel-success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.cancel-success-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  line-height: 1.6;
}

.cancel-success-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cancel-success-numero-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cancel-success-numero-value {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 5px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
}

/* ==========================================================================
   SCREEN: PROFILO SANITARIO (AREA PERSONALE)
   ========================================================================== */

.profilo-header-block {
  margin-bottom: 24px;
}

.profilo-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ps-wireframe-rose-completed, #F7EAEC);
  color: var(--ps-wireframe-red, #B83E4F);
  border: 1px solid var(--ps-wireframe-rose-light, #DFC4C7);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.profilo-subtitle {
  font-size: 0.98rem;
  color: var(--ps-text-main);
  margin: 0;
  line-height: 1.5;
}

/* Card Sezioni Profilo Sanitario */
.profilo-section-card {
  background: #FFFFFF;
  border: 1px solid var(--ps-border-color);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.profilo-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ps-border-subtle);
}

.profilo-section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.profilo-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ps-wireframe-rose-completed, #F7EAEC);
  color: var(--ps-wireframe-red, #B83E4F);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profilo-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ps-wireframe-red);
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.profilo-section-desc {
  font-size: 0.92rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.profilo-badge-active {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.80rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}

/* Sezione 1: Dati Anagrafici Readonly Grid */
.profilo-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.profilo-field-box {
  background: #F8FAFC;
  border: 1px solid var(--ps-border-subtle, #E2E8F0);
  border-radius: 6px;
  padding: 12px 16px;
}

.profilo-field-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 4px;
  display: block;
  letter-spacing: 0.4px;
}

.profilo-field-readonly {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text-main);
}

.profilo-field-cf {
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.8px;
  color: var(--ps-wireframe-navy);
}

.profilo-cert-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #1E3A8A;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 22px;
  line-height: 1.4;
}

.profilo-contacts-divider {
  border-top: 1px solid var(--ps-border-subtle);
  margin: 20px 0;
}

.profilo-contacts-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ps-wireframe-navy);
  margin: 0 0 4px 0;
}

.profilo-contacts-subtitle {
  font-size: 0.90rem;
  color: #475569;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.profilo-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-help-text {
  display: block;
  font-size: 0.84rem;
  color: #64748B;
  margin-top: 5px;
}

.profilo-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.profilo-alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  color: #166534;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: fadeInDetails 0.2s ease;
}

/* Sezione 2: Medico di Famiglia */
.profilo-medico-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 22px 24px;
}

.medico-main-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.medico-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--ps-wireframe-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.medico-role-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.medico-name-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ps-wireframe-navy);
  letter-spacing: -0.2px;
}

.medico-codice {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 2px;
}

.medico-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 22px;
  margin-bottom: 20px;
}

.medico-info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.medico-cell-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.3px;
}

.medico-cell-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ps-text-main);
}

.medico-link-tel,
.medico-link-email {
  color: var(--ps-wireframe-link-blue, #1D5C96);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.medico-link-tel:hover,
.medico-link-email:hover {
  color: #0E3E6B;
}

.medico-extra-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 16px 20px;
}

.medico-extra-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ps-wireframe-navy);
  margin-bottom: 8px;
}

.medico-extra-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.medico-extra-text {
  font-size: 0.92rem;
  color: var(--ps-text-main);
  line-height: 1.55;
  margin: 0;
}

/* Sezione 3: Le tue esenzioni */
.profilo-header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profilo-esenzioni-empty {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.esenzioni-empty-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #EEF2F6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #64748B;
}

.esenzioni-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ps-text-main);
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.esenzioni-empty-desc {
  font-size: 0.95rem;
  color: #475569;
  max-width: 560px;
  line-height: 1.55;
  margin: 0;
}

/* Responsive per Profilo Sanitario */
@media (max-width: 900px) {
  .profilo-data-grid {
    grid-template-columns: 1fr 1fr;
  }

  .medico-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profilo-contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .profilo-data-grid {
    grid-template-columns: 1fr;
  }

  .medico-info-grid {
    grid-template-columns: 1fr;
  }

  .profilo-section-card {
    padding: 18px 16px;
  }

  .profilo-section-header {
    flex-direction: column;
  }

  .profilo-header-actions-group {
    flex-direction: column;
    width: 100%;
  }

  .profilo-header-actions-group button {
    width: 100%;
  }
}