/*************************************
INIZIO GENERICO
**************************************/
body {
  font-family: var(--font);
  background-color: var(--bg-body);
  /* sfondo da configurazione: desktop di default, mobile su schermi piccoli */
  background-image: var(--img-background);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-color);
  margin: 0;
  /* padding-bottom: var(--footer-height); */
  padding-top: 0; /* Header è inglobato nella Home, padding solo per il contenuto */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767.98px) {
  body {
    background-image: var(--img-background-mobile);
  }
}

/* titoli sullo sfondo: colore da configurazione */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
}

/* Superfici bianche: dentro, testo e titoli tornano scuri */
.app-card,
.login-card,
.session-card,
.file-card,
.info-card,
.video-card,
.news-card,
.survey-card,
.my-session-card,
.vcard-display-card,
.accordion-item,
.captcha-container,
.modal-content,
.offcanvas,
.fixed-footer,
.dropdown-menu,
.btn-action-card,
.notification-dialog {
  --text-color: var(--dark-slate);
  --heading-color: var(--dark-slate);
  color: var(--text-color);
}

a,
a:hover {
  text-decoration: none;
  color: var(--primary-brand);
}
/* link "semplici" (senza classi, per lo piu' dentro i testi): distinguibili dal testo anche senza il colore */
a:not([class]),
a:not([class]):hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-container {
  margin-top: 20px;
  padding-bottom: 20px;
}
.background-primary-custom {
  background-color: var(--primary-brand);
}
.section-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary-brand);
}
.color-primary {
  color: var(--primary-brand);
}
.welcome-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--heading-color);
}

.app-header {
  height: var(--header-height);
  background: var(--primary-brand);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-brand {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--surface);
  letter-spacing: -0.5px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
  position: relative;
}

.btn-menu {
  height: 40px;
  padding: 0 9px; /* il glifo parte alla stessa distanza dal bordo dell'icona notifiche (40px, glifo centrato) */
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  line-height: 1;
  transition: all 0.2s;
}
.btn-menu span {
  font-size: 1rem;
  font-weight: 600;
}
.btn-menu:active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--surface);
}

.btn-icon:active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--surface);
}

.badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background-color: #e63946;
  border: 2px solid var(--primary-brand);
}

/*************************************
FINE GENERICO
**************************************/

/*************************************
INIZIO FOOTER QRCODE
**************************************/
.fixed-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  /* nessuna banda bianca: solo una sfumatura scura per staccare il pulsante dallo sfondo */
  background: linear-gradient(to top, rgba(30, 8, 45), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1020;
  pointer-events: none;
}

.btn-qr-round {
  pointer-events: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-brand);
  border: 4px solid var(--surface);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.4);
  transition: transform 0.2s;
  margin-bottom: 10px;
}

.btn-qr-round:active {
  transform: scale(0.95);
}

.modal-content {
  border-radius: var(--radius-main);
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.btn-cta-main {
  background: var(--colore-button);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(var(--colore-button-rgb), 0.3);
}
/*************************************
FINE FOOTER QRCODE
**************************************/

.app-card {
  background: var(--surface);
  border-radius: var(--radius-main);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

/* --- MENU OFFCANVAS STYLES (Global Component) --- */
.offcanvas {
  border-top-right-radius: var(--radius-main);
  border-bottom-right-radius: var(--radius-main);
  background: var(--surface);
  color: var(--dark-slate);
  width: 85%;
  max-width: 320px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

.profile-area-menu {
  background: var(--primary-light);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  position: relative;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-deep);
  padding: 2px;
  background-color: var(--primary-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}
.user-info h6,
.user-info .user-name {
  font-weight: 700;
  margin: 0;
  color: var(--dark-slate);
  font-size: 1.05rem;
}
.user-info span {
  font-size: 0.8rem;
  color: var(--primary-deep);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-close-custom {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 8px;
}

.menu-scroll-area {
  overflow-y: auto;
  flex-grow: 1;
  padding: 10px 0;
}
.menu-label {
  padding: 20px 24px 8px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5c6670;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-item {
  padding: 12px 24px;
  color: var(--mid-slate);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.menu-item-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.menu-item:hover,
.menu-item.active {
  background: var(--primary-light);
  color: var(--primary-brand);
  border-left-color: var(--primary-brand);
}
.menu-item i {
  width: 24px;
  font-size: 1.2rem;
  margin-right: 12px;
  text-align: center;
  color: #8fa6b6;
  transition: color 0.2s;
}
.menu-item:hover i,
.menu-item.active i {
  color: var(--primary-brand);
}
.menu-item .chevron {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.submenu {
  background: #fcfcfc;
  display: none;
  padding: 5px 0;
  border-top: 1px solid var(--light-slate);
  border-bottom: 1px solid var(--light-slate);
}
.submenu.show {
  display: block;
}
.submenu-item {
  padding: 10px 24px 10px 64px;
  color: var(--mid-slate);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.submenu-item:hover {
  color: var(--primary-brand);
  background: rgba(0, 0, 0, 0.01);
}
.submenu-item i {
  font-size: 0.7rem;
  color: #5c6670;
}

.menu-footer {
  padding: 24px;
  border-top: 1px solid var(--light-slate);
  background: #fff;
}
.menu-lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-slate);
  border-radius: var(--radius-main);
  background: var(--surface);
  color: var(--dark-slate);
  font-weight: 600;
  cursor: pointer;
}
.menu-lang i {
  color: var(--primary-brand);
}
.menu-lang-label {
  flex: 1;
}
.menu-lang-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
}
.menu-lang:hover,
.menu-lang:focus-within {
  border-color: var(--primary-brand);
  background: var(--primary-light);
}
/* select nativa invisibile sopra il riquadro (come nel login) */
.menu-lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.btn-logout {
  width: 100%;
  padding: 12px;
  border: 1px solid #ffe3e3;
  color: #e03131;
  background: #fff5f5;
  border-radius: var(--radius-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.btn-logout:hover,
.btn-logout:focus,
.btn-logout:active {
  background: #ffe3e3;
  border-color: #ffc9c9;
  color: #b02a37;
}

/*************************************
INIZIO CONCIERGE WHATSAPP
**************************************/
.concierge-card {
  background: linear-gradient(135deg, #128c7e, #25d366) !important;
  color: #fff;
  border: none;
  padding: 30px 24px;
  text-align: center;
  border-radius: var(--radius-main);
}
.concierge-card .card-title {
  color: #fff;
  justify-content: center;
}
.concierge-card .card-title i {
  color: #fff;
}
.btn-whatsapp {
  background: #fff;
  color: #128c7e;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-main);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  margin-top: 15px;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active {
  color: #0d6e63;
}
/*************************************
FINE CONCIERGE WHATSAPP
**************************************/
@media (min-width: 992px) {
  .corpo-pagina {
    max-width: 1200px;
    margin: 0 auto;
  }
}
.mt-top-page {
  margin-top: 70px !important;
}
.has-error .control-label {
  color: #dc3545;
  font-weight: bold;
}
#loader-page {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: transparent;
}

#loader-page div {
  color: var(--primary-brand) !important;
}
.alert-info {
  color: white;
}
.btn-custom-primary {
  background: linear-gradient(
    135deg,
    var(--primary-brand),
    var(--primary-deep)
  );
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.3);
  transition: transform 0.2s;
  cursor: pointer;
}
.btn-notif-menu {
  padding: 12px;
  border: 1px solid var(--primary-brand);
  color: #fff;
  background: var(--primary-brand);
  border-radius: var(--radius-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative; /* Posizionamento relativo per il badge */
}
.btn-notif-menu:hover {
  background: var(--primary-brand);
  color: white;
}
/* Stile base per i pallini di stato */
.status-dot-on,
.status-dot-off {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Stato Attivo (Verde) */
.status-dot-on {
  background-color: #28a745; /* Verde Success */
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.7);
}

/* Stato Disattivato (Giallo/Arancio) */
.status-dot-off {
  background-color: #ffc107; /* Giallo Warning */
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/*************************************
INIZIO MODALE NOTIFICA HOME
**************************************/
.notification-box {
  position: fixed;
  left: 0;
  top: -100%;
  right: 0;
  width: 100%;
  z-index: 9999;
  transition: 0.3s all;
  margin-top: env(safe-area-inset-top);
}

.notification-box.show {
  top: 0;
}

.notification-dialog.android-style {
  background: #ffffff;
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 1px -1px rgba(0, 0, 0, 0.12),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
  padding: 16px 16px;
}

.notification-dialog.android-style .notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-dialog.android-style .notification-header .in {
  display: flex;
  align-items: center;
}

.notification-dialog.android-style .notification-header .in .imaged {
  margin-right: 8px;
}

.notification-dialog.android-style .notification-header .in strong {
  font-size: 13px;
  font-weight: 400;
  color: #141515;
}

.notification-dialog.android-style .notification-header .in span {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 11px;
}

.notification-dialog.android-style .notification-header .in span:before {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  content: "•";
}

.notification-dialog.android-style .notification-header .close-button {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #a1a1a2;
}

.notification-dialog.android-style .notification-header .close-button:hover,
.notification-dialog.android-style .notification-header .close-button:active {
  color: #4f5050;
}

.notification-dialog.android-style .notification-content {
  font-size: 13px;
  line-height: 1.4em;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.notification-dialog.android-style .notification-content .subtitle {
  font-size: 15px;
  margin: 0 0 5px 0;
  line-height: 1.4em;
  font-weight: 500;
}

.notification-dialog.android-style .notification-content .in {
  padding-right: 16px;
}

.notification-dialog.android-style .icon-box {
  width: 46px;
  height: 46px;
  font-size: 46px;
  color: #a1a1a2;
}

.notification-dialog.android-style .notification-footer {
  border-top: 1px solid #e1e1e1;
  margin: 16px -16px -16px -16px;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.notification-dialog.android-style .notification-footer .notification-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-brand) !important;
  font-size: 13px;
  border-right: 1px solid #e1e1e1;
  padding: 16px 6px;
}

.notification-dialog.android-style
  .notification-footer
  .notification-button
  i.bi,
.notification-dialog.android-style
  .notification-footer
  .notification-button
  i.icon,
.notification-dialog.android-style
  .notification-footer
  .notification-button
  ion-icon {
  font-size: 20px;
  line-height: 1em;
  margin-right: 8px;
}

.notification-dialog.android-style
  .notification-footer
  .notification-button:last-child {
  border-right: 0;
}

.notification-dialog.android-style
  .notification-footer
  .notification-button:hover,
.notification-dialog.android-style
  .notification-footer
  .notification-button:active {
  color: var(--primary-brand);
  background: rgba(225, 225, 225, 0.3);
}

.notification-dialog.ios-style {
  margin: 10px;
  background: #3b4859;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.notification-dialog.ios-style .notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px 10px 0 0;
}

.notification-dialog.ios-style .notification-header .in {
  display: flex;
  align-items: center;
}

.notification-dialog.ios-style .notification-header .in .imaged {
  margin-right: 8px;
}

.notification-dialog.ios-style .notification-header .in strong {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
}

.notification-dialog.ios-style .notification-header .right {
  display: flex;
  align-items: center;
}

.notification-dialog.ios-style .notification-header .right span {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.notification-dialog.ios-style .notification-header .close-button {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  opacity: 0.5;
}

.notification-dialog.ios-style .notification-header .close-button:hover,
.notification-dialog.ios-style .notification-header .close-button:active {
  opacity: 0.7;
}

.notification-dialog.ios-style .icon-box {
  width: 46px;
  height: 46px;
  font-size: 46px;
  color: #a1a1a2;
}

.notification-dialog.ios-style .notification-content {
  font-size: 13px;
  line-height: 1.4em;
  padding: 14px 16px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
}

.notification-dialog.ios-style .notification-content .subtitle {
  font-size: 15px;
  margin: 0 0 5px 0;
  line-height: 1.4em;
  color: #fff;
  font-weight: 500;
}

.notification-dialog.ios-style .notification-content .in {
  padding-right: 16px;
}

.notification-dialog.ios-style .notification-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.notification-dialog.ios-style .notification-footer .notification-button {
  color: #fff !important;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 6px;
}

.notification-dialog.ios-style .notification-footer .notification-button i.bi,
.notification-dialog.ios-style .notification-footer .notification-button i.icon,
.notification-dialog.ios-style
  .notification-footer
  .notification-button
  ion-icon {
  font-size: 20px;
  line-height: 1em;
  margin-right: 10px;
  color: #fff;
}

.notification-dialog.ios-style
  .notification-footer
  .notification-button:last-child {
  border-right: 0;
}

.notification-dialog.ios-style .notification-footer .notification-button:hover,
.notification-dialog.ios-style
  .notification-footer
  .notification-button:active {
  color: var(--primary-brand);
  background: rgba(255, 255, 255, 0.02);
}
.logo-popup {
  width: 250px;
}
/*************************************
FINE MODALE NOTIFICA HOME
**************************************/

/*************************************
INIZIO HEADER PAGINE 
**************************************/
.hero-wrapper {
  position: relative;
  background: #000;
  height: 20vh;
  min-height: 200px;
  border-bottom-left-radius: var(--radius-main);
  border-bottom-right-radius: var(--radius-main);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.hero-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
  z-index: 1;
}
.hero-view.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-view img,
.hero-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
}
.view-switcher {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 3px;
  display: flex;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.switch-btn {
  border: none;
  background: transparent;
  color: #fff;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 18px;
  text-transform: uppercase;
}
.switch-btn.active {
  background: #fff;
  color: var(--primary-brand);
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 40px 20px 20px;
  color: white;
  z-index: 3;
  pointer-events: none;
}
.carousel-control-prev,
.carousel-control-next {
  width: 15%;
  opacity: 0.8;
  transition: opacity 0.2s;
  background: linear-gradient(
    to right,
    rgba(var(--bs-primary-rgb), 0.2) 0%,
    transparent 100%
  );
}
.carousel-control-next {
  background: linear-gradient(
    to left,
    rgba(var(--bs-primary-rgb), 0.2) 0%,
    transparent 100%
  );
}
/*************************************
FINE HEADER PAGINE 
**************************************/

/*************************************
INIZIO BTN CARD GENERICO
**************************************/
label {
  font-weight: bold;
}
.btn-action-card {
  background: var(--surface);
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--dark-slate);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-action-card:hover,
.btn-action-card:focus {
  color: var(--dark-slate);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.btn-action-card:active {
  transform: scale(0.97);
}

.btn-action-card i {
  font-size: 1.5rem;
  color: var(--primary-brand);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
}

.btn-action-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid-slate);
}
/*************************************
FINE BTN CARD GENERICO
**************************************/

/*************************************
INIZIO INPUT FORM
**************************************/
.is-invalid select {
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  border-color: #dc3545 !important;
}
.form-check-input:checked {
  background-color: var(--primary-brand);
  border-color: var(--primary-brand);
}
.btn-check:checked + .btn-outline-primary {
  background-color: var(--primary-brand);
  border-color: var(--primary-brand);
}
.form-section-title {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}
.form-floating > .form-control,
.form-select {
  border-radius: var(--radius-main);
  border: 1px solid var(--light-slate);
  background-color: #fff;
  color: var(--dark-slate);
}
.form-floating > .form-control:focus,
.form-select:focus {
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.form-floating > label {
  color: var(--mid-slate);
}
/*************************************
FINE INPUT FORM
**************************************/

/*************************************
INIZIO BOTTONI 
**************************************/
.btn-submit {
  background: var(--colore-button);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 10px;
  box-shadow: 0 10px 25px rgba(var(--colore-button-rgb), 0.3);
  transition: transform 0.2s;
}
/* Bottone secondario discreto con i colori del brand */
.btn-outline-brand {
  background: transparent;
  color: var(--primary-brand);
  border: 1px solid var(--primary-brand);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline-brand:hover,
.btn-outline-brand:focus,
.btn-outline-brand:active {
  background: var(--primary-light);
  color: var(--primary-deep);
  border-color: var(--primary-deep);
}
/* Bottone pieno con i colori del brand (stesse dimensioni di btn-outline-brand) */
.btn-brand {
  background: var(--colore-button);
  color: #fff;
  border: 1px solid var(--colore-button);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: filter 0.2s;
}
/* Bottoni pieni del brand: stesso comportamento in tutti gli stati.
   Il .btn di Bootstrap scurisce il testo in hover/focus/active: qui resta sempre bianco. */
.btn-submit,
.btn-login,
.btn-brand,
.btn-cta-main,
.btn-navigate,
.btn-custom-primary {
  color: #fff;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.btn-submit:hover,
.btn-login:hover,
.btn-brand:hover,
.btn-cta-main:hover,
.btn-navigate:hover,
.btn-custom-primary:hover,
.btn-submit:focus,
.btn-login:focus,
.btn-brand:focus,
.btn-cta-main:focus,
.btn-navigate:focus,
.btn-custom-primary:focus,
.btn-submit:active,
.btn-login:active,
.btn-brand:active,
.btn-cta-main:active,
.btn-navigate:active,
.btn-custom-primary:active {
  color: #fff;
}
.btn-submit:hover,
.btn-login:hover,
.btn-brand:hover,
.btn-cta-main:hover,
.btn-navigate:hover,
.btn-custom-primary:hover {
  filter: brightness(0.92);
}
.btn-submit:active,
.btn-login:active,
.btn-brand:active,
.btn-cta-main:active,
.btn-navigate:active,
.btn-custom-primary:active {
  transform: scale(0.98);
}
/* Anello di focus nei colori del brand (Bootstrap usa un blu fisso) */
.btn:focus,
.btn-check:focus + .btn {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}
/* Variante rossa (azioni distruttive) */
.btn-outline-brand.btn-danger-brand {
  color: #dc3545;
  border-color: #dc3545;
}
.btn-outline-brand.btn-danger-brand:hover,
.btn-outline-brand.btn-danger-brand:focus {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
  border-color: #b02a37;
}
.btn-solid-danger-brand {
  background: #dc3545;
  color: #fff;
  border: 1px solid #dc3545;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-solid-danger-brand:hover,
.btn-solid-danger-brand:focus,
.btn-solid-danger-brand:active {
  background: #b02a37;
  border-color: #b02a37;
  color: #fff;
}
/* Variante neutra (annulla) */
.btn-outline-brand.btn-muted-brand {
  color: var(--mid-slate);
  border-color: var(--light-slate);
}
.btn-outline-brand.btn-muted-brand:hover,
.btn-outline-brand.btn-muted-brand:focus {
  background: var(--light-slate);
  color: var(--dark-slate);
  border-color: var(--light-slate);
}
/*************************************
INIZIO CARD "SALVATO"
**************************************/
.saved-card {
  text-align: center;
  padding: 2rem 1.25rem;
}
.saved-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: var(--primary-brand);
  box-shadow: var(--shadow-float);
}
.saved-card-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-slate);
  margin-bottom: 0.5rem;
}
.saved-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark-slate);
  word-break: break-word;
  margin-bottom: 1.5rem;
}
.saved-card-caption {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-slate);
  margin-bottom: 1.25rem;
}
.saved-card-img {
  max-width: 100%;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}
.challenge-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colore-titoli);
}
.challenge-divider span {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--colore-bg-titoli);
}
.challenge-divider::before,
.challenge-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.challenge-subtitle {
  font-size: 1rem;
  color: var(--mid-slate);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  text-align: center;
}
.challenge-subtitle strong {
  color: var(--colore-titoli);
}
.seniority-answers {
  text-align: left;
  margin-bottom: 1.5rem;
}
.seniority-answers .item {
  padding: 1rem 0;
  border-top: 1px solid var(--light-slate);
}
.seniority-answers .item:first-child {
  border-top: 0;
}
.seniority-answers .question {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 0.35rem;
}
.seniority-answers .answer {
  color: var(--dark-slate);
  white-space: pre-line;
  word-break: break-word;
}
.summary-list {
  margin: 0;
}
.summary-title {
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--light-slate);
  font-size: 0.9rem;
}
.summary-item:last-child {
  border-bottom: 0;
}
.summary-item dt {
  flex: 0 1 45%;
  font-weight: 400;
  color: var(--mid-slate);
}
.summary-item dd {
  flex: 1 1 auto;
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--dark-slate);
  word-break: break-word;
}
.summary-item dd i {
  margin-right: 6px;
}
/*************************************
FINE CARD "SALVATO"
**************************************/
/* Azione secondaria di testo (es. Annulla) */
.btn-link-muted {
  display: block;
  margin: 12px auto 0;
  padding: 4px 12px;
  background: none;
  border: none;
  color: var(--mid-slate);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-link-muted:hover,
.btn-link-muted:focus {
  color: var(--dark-slate);
}
/*************************************
FINE BOTTONI 
**************************************/
.imaged {
  max-width: 240px;
}

@media (max-width: 767.98px) {
  .mobile-no-padding {
    padding-left: 0;
    padding-right: 0;
  }
}

.user-profile-widget #img-header-evento {
  max-width: 250px;
}

/*************************************
INIZIO PASS (accredito.php)
**************************************/
.pass-intro {
  text-align: center;
  margin-bottom: 20px;
}
.pass-intro h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.pass-intro p {
  font-size: 0.95rem;
  margin: 0;
}
.pass-card {
  text-align: center;
  padding: 28px 20px;
  box-shadow: var(--shadow-float);
}
.pass-qr {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--light-slate);
  border-radius: var(--radius-main);
}
.pass-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.pass-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed var(--light-slate);
}
.pass-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: var(--primary-brand);
}
.pass-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  word-break: break-word;
}

/* --- Toast (showToast in main.js) --- */
.app-toast-container {
  position: fixed;
  top: calc(var(--header-height, 60px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.app-toast {
  --toast-color: var(--primary-brand);
  --text-color: var(--dark-slate);
  --heading-color: var(--dark-slate);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--dark-slate);
  border-radius: 16px;
  border-left: 5px solid var(--toast-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  animation: app-toast-in 0.3s ease-out;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.app-toast.hide {
  opacity: 0;
  transform: translateY(-10px);
}
.app-toast-error {
  --toast-color: #dc3545;
}
.app-toast-success {
  --toast-color: #198754;
}
.app-toast-warning {
  --toast-color: #e0a100;
}
.app-toast-info {
  --toast-color: var(--primary-brand);
}
.app-toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--toast-color);
  background: color-mix(in srgb, var(--toast-color) 14%, #fff);
}
.app-toast-body {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}
.app-toast-close {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--mid-slate);
  padding: 4px;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}
.app-toast-close:hover {
  color: var(--dark-slate);
}
@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Accessibilita' --- */
/* link "salta al contenuto": visibile solo con la tastiera */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10001;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--dark-slate);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.skip-link:focus {
  top: 12px;
  color: var(--dark-slate);
}
/* etichetta di gruppo (radio/checkbox): stessa resa delle label */
div.form-label {
  font-weight: bold;
}
/* focus ben visibile per chi naviga da tastiera */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
