:root {
  --app-section-shell-max-width: 760px;
  --app-page-gutter: 16px;
  --search-results-shell-max-width: 900px;
  --search-results-grid-min-column: 280px;
  --search-results-grid-gap: 20px;
  --search-results-card-height-limit: clamp(320px, 70vh, 380px);
  --search-results-card-aspect-ratio: 6 / 5;
  --search-results-card-face-inset: 14px;
  --app-congressi-row-card-width: 165px;
  --app-congressi-row-gap: 16px;
  --app-congressi-poster-aspect-ratio: 1 / 1;
  --app-congressi-event-poster-min-height: 220px;
  --app-congressi-event-poster-padding-top: 100%;
  --app-congressi-event-panel-max-height: min(42vh, 320px);
  --app-tips-row-card-width: clamp(128px, 33vw, 150px);
  --app-tips-row-gap: 10px;
  --app-tips-card-aspect-ratio: 2 / 3;
  --app-tips-row-card-aspect-ratio: 0.63;
  --app-tips-home-card-width: 29%;
  --app-bacheca-media-panel-max-width: 720px;
  --app-bacheca-media-grid-columns: 2;
  --app-bacheca-media-grid-gap: 10px;
  --app-bacheca-media-tile-ratio: 1 / 1;
  --app-messages-list-max-height: min(62vh, 560px);
  --app-messages-chat-min-height: min(74vh, 640px);
  --app-messages-bubble-max-width: min(82%, 420px);
  --app-messages-list-side-gap: 10px;
  --app-panel-compact-max-width: 356px;
  --app-panel-standard-max-width: 360px;
  --app-panel-media-max-width: 430px;
  --app-area-panel-max-width: 560px;
  --app-date-panel-max-width: 420px;
  --app-presence-panel-width: min(96vw, 760px);
  --app-profile-music-panel-max-width: 520px;
  --app-profile-rewards-max-width: 620px;
  --app-profile-rewards-clearance: 32px;
  --app-auth-clearance: 24px;
  --app-panel-center-x: 50%;
  --app-overlay-side-gap: 18px;
  --app-overlay-small-side-gap: 16px;
  --app-overlay-media-side-gap: 10px;
  --app-profile-dialog-side-gap: 12px;
  --app-settings-side-gap: 12px;
  --app-results-side-gap: 12px;
  --app-tips-required-max-width: 340px;
  --app-tips-required-clearance: 48px;
  --app-tips-cover-ratio: 16 / 9;
  --app-reclaim-carousel-max-width: calc(100% - 24px);
  --app-system-banner-side-gap: 16px;
  --app-system-banner-landscape-max-width: 360px;
  --app-system-banner-landscape-viewport-width: 92vw;
  --app-notifications-right: 16px;
  --app-native-safe-left: 0px;
  --app-native-safe-right: 0px;
  --app-menu-max-width: 380px;
  --app-menu-tablet-max-width: 86vmin;
  --app-menu-side-clearance: 44px;
  --app-notifications-max-width: 320px;
  --app-notifications-landscape-max-width: 340px;
  --app-notifications-clearance: 24px;
  --app-notifications-landscape-clearance: 28px;
  --app-reclaim-embedded-banner-side-gap: 12px;
  --app-reclaim-embedded-home-side-gap: 16px;
  --app-reclaim-embedded-popup-side-gap: 18px;
  --app-feedback-toast-max-width: 340px;
  --app-feedback-toast-clearance: 24px;
  --app-menu-language-width: min(240px, 76vw);
  --app-menu-profile-width: min(220px, 72vw);
  --app-submit-history-width: min(270px, calc(100% - 36px));
}

body.is-capacitor {
  --app-header-row-height: 48px;
  --app-header-action-size: 44px;
  --app-header-side-inset: 12px;
  --app-header-top-gap: 14px;
  --app-header-subtitle-gap: 3px;
  --app-header-subtitle-line-height: 13px;
  --app-layout-section-gap: 14px;
  --app-layout-heading-gap: 8px;
  --app-layout-item-gap: 10px;
  --app-layout-inline-gap: 6px;
  --app-layout-compact-inline-gap: 3px;
  --app-layout-copy-gap: 2px;
  --app-layout-heading-line-height: 1.1;
  --app-layout-summary-inset: 8px;
  --app-layout-summary-columns: none;
  --app-layout-summary-flow: column;
  --app-layout-summary-track: max-content;
  --app-layout-summary-distribution: space-between;
  --app-layout-summary-cell-padding: 0px;
  --app-layout-counter-min-width: 0px;
  --app-layout-summary-divider: 0px;
  --app-layout-summary-max-width: none;
  --app-layout-section-leading: 0px;
  --app-layout-pair-columns: repeat(2, minmax(0, max-content));
  --app-tips-featured-width: 1135;
  --app-tips-featured-height: 598;
  --app-tips-featured-scale: 0.94;
}

.results-section-back {
  display: none;
}

body.is-capacitor :is(#nearbyOverlay, #areaStepPopup) {
  z-index: 890;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: calc(var(--app-safe-top, env(safe-area-inset-top, 0px)) + var(--app-header-top-gap)) max(env(safe-area-inset-right, 0px), var(--app-safe-right, 0px)) 0 max(env(safe-area-inset-left, 0px), var(--app-safe-left, 0px));
  background: var(--app-bg);
  backdrop-filter: none;
  transition: none;
}

body.is-capacitor #nearbyOverlay .results-sheet-wrapper {
  width: 100%;
  min-height: 0;
  transition: none;
}

body.is-capacitor :is(#nearbyOverlay .results-sheet, #areaStepPopup .area-step-popup__panel) {
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.is-capacitor :is(#nearbySheetHandle, #areaStepPopup .area-step-popup__head) {
  flex: 0 0 var(--app-header-row-height);
  height: var(--app-header-row-height);
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 0 var(--app-header-side-inset);
  touch-action: auto;
}

body.is-capacitor #nearbySheetHandle .handle-bar {
  display: none;
}

body.is-capacitor :is(#nearbyResultsBackBtn, #areaStepBackBtn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--app-header-action-size);
  height: var(--app-header-action-size);
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
}

body.is-capacitor :is(#nearbyResultsBackBtn, #areaStepBackBtn) svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-capacitor #nearbyOverlay .results-header {
  position: relative;
  padding-inline: var(--app-header-side-inset);
}

body.is-capacitor #nearbyHeaderTitle {
  position: absolute;
  top: calc(0px - var(--app-header-row-height));
  left: calc(var(--app-header-side-inset) + var(--app-header-action-size));
  right: calc(var(--app-header-side-inset) + var(--app-header-action-size));
  height: var(--app-header-row-height);
  line-height: var(--app-header-row-height);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

body.is-capacitor #areaStepPopup {
  align-items: stretch;
}

body.is-capacitor :is(#areaStepBackdrop, #areaStepCloseBtn) {
  display: none;
}

body.is-capacitor #areaStepPopup .area-step-popup__panel {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.is-capacitor #areaStepPopup .area-step-popup__head {
  grid-template-columns: var(--app-header-action-size) minmax(0, 1fr) var(--app-header-action-size);
  gap: 0;
  border-bottom: 0;
}

body.is-capacitor :is(#areaStepTitle, #nearbyHeaderTitle) {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

body.is-capacitor #areaStepTitle {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.is-capacitor #areaStepPopup .area-step-popup__subtitle {
  padding-inline: var(--app-header-side-inset);
  border-bottom: 0;
}

body.is-capacitor #areaStepList {
  min-height: 0;
  padding-inline: var(--app-header-side-inset);
  gap: var(--app-layout-item-gap);
}

body.is-capacitor #areaStepList > .area-step-popup__option {
  flex-shrink: 0;
  min-height: var(--app-header-action-size);
}

body.is-capacitor #areaStepList > .area-step-popup__option:not(.is-selected),
body.is-capacitor #areaStepList .area-step-popup__empty {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

body.is-capacitor #areaStepList > .area-step-popup__option:not(.is-selected) {
  color: var(--text);
}

body.is-capacitor #areaStepList .area-step-popup__option-count {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

body.is-capacitor #areaStepList :is(.area-step-popup__section, .area-step-popup__empty),
body.is-capacitor #areaStepPopup .area-step-popup__subtitle {
  color: var(--muted);
}

body.is-capacitor :is(#areaStepList, #nearbyOverlay .results-sheet-body) {
  will-change: opacity;
}

body.is-capacitor :is(#areaStepList, #nearbyOverlay .results-sheet-body) {
  padding-bottom: var(--live-scroll-bottom-clearance);
}

body.is-capacitor #nearbyResults .results-day-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--search-results-grid-gap);
}

body.is-capacitor #nearbyResults .results-day-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--search-results-grid-min-column), 1fr));
  gap: var(--search-results-grid-gap);
}

body.is-capacitor #nearbyResults .results-day-group > .day-separator {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111317;
}

body.is-capacitor #nearbyResults .results-day-group:last-child::after {
  content: '';
  flex: 0 0 var(--results-scroll-tail-height, 0px);
  pointer-events: none;
}

body.is-capacitor :is(#appHomeContent, #appCongressiContent, #appTipsContent)
:is(.home-top-events-preview__title, .home-nearby-feed-preview__title,
    .app-congressi-block__title, .app-tips-group__title,
    #appCongressiFavoritesStatus, #appTipsFilterStatus) {
  padding-inline: var(--app-header-side-inset);
}

body.is-capacitor :is(#appHomeContent, #appCongressiContent, #appTipsContent, #appProfileContent, #appProfileVisitContent) {
  --app-native-page-shell-max-width: 100%;
  --app-page-gutter: 0px;
  --app-native-safe-left: max(var(--app-safe-left, 0px), env(safe-area-inset-left, 0px));
  --app-native-safe-right: max(var(--app-safe-right, 0px), env(safe-area-inset-right, 0px));
  --app-congressi-row-gap: var(--app-layout-item-gap);
  --app-tips-row-gap: var(--app-layout-item-gap);
  row-gap: var(--app-layout-section-gap);
}

.profile-top-bar__stat--punti {
  --app-profile-symbol-width: 0.9931640625;
  --app-profile-symbol-height: 0.994140625;
}

.profile-top-bar__stat--scarpette {
  --app-profile-symbol-width: 0.849609375;
  --app-profile-symbol-height: 0.6953125;
}

body.is-capacitor.app-view-home #appHomeContent.home-v2 {
  --home-v2-max-width: 428px;
}

@media (min-width: 768px) and (orientation: portrait) {
  body.is-capacitor {
    --app-native-page-shell-max-width: 100%;
  }
}

@media (min-width: 1000px) and (orientation: landscape) {
  body.is-capacitor {
    --app-native-page-shell-max-width: 100%;
  }
}

body.is-capacitor #appProfileContent,
body.is-capacitor #appProfileVisitContent,
body.app-view-profile #appProfileContent,
body.app-view-profile-visit #appProfileVisitContent {
  --profile-content-padding-left: calc(var(--app-page-gutter) + max(env(safe-area-inset-left, 0px), var(--app-native-safe-left)));
  --profile-content-padding-right: calc(var(--app-page-gutter) + max(env(safe-area-inset-right, 0px), var(--app-native-safe-right)));
}

body.app-view-profile #appProfileContent,
body.app-view-profile-visit #appProfileVisitContent {
  --profile-mockup-left-control: 3.28vw;
  --profile-mockup-right-control: 3.05vw;
  --profile-hero-avatar-size: clamp(66px, 17vw, 78px);
  --profile-hero-avatar-top: clamp(10px, 2.35vw, 14px);
  --profile-hero-action-size: 44px;
  --profile-hero-action-top: clamp(58px, 14.54vw, 76px);
  --profile-control-left-space: max(var(--profile-content-padding-left), var(--profile-mockup-left-control));
  --profile-control-right-space: max(var(--profile-content-padding-right), var(--profile-mockup-right-control));
}

@media (orientation: landscape) {
  body.is-capacitor #appProfileContent,
  body.is-capacitor #appProfileVisitContent,
  body.app-view-profile #appProfileContent,
  body.app-view-profile-visit #appProfileVisitContent {
    --profile-content-padding-left: calc(var(--app-page-gutter) + max(env(safe-area-inset-left, 0px), var(--app-native-safe-left)));
    --profile-content-padding-right: calc(var(--app-page-gutter) + max(env(safe-area-inset-right, 0px), var(--app-native-safe-right)));
  }
}

.app-messages-thread-row {
  --messages-delete-reveal-width: 33.3333%;
}

@media (orientation: portrait) {
  body.is-capacitor {
    --app-native-safe-left: max(var(--app-safe-left, 0px), env(safe-area-inset-left, 0px));
    --app-native-safe-right: max(var(--app-safe-right, 0px), env(safe-area-inset-right, 0px));
    --app-panel-center-x: calc((100% + var(--app-native-safe-left) - var(--app-native-safe-right)) / 2);
    --app-page-gutter: 0px;
    --app-native-page-shell-max-width: 100%;
    --search-results-shell-max-width: 100%;
    --app-results-side-gap: 0px;
    --app-messages-list-side-gap: 0px;
    --app-settings-side-gap: 0px;
    --app-overlay-side-gap: 0px;
    --app-overlay-small-side-gap: 0px;
    --app-overlay-media-side-gap: 0px;
    --app-profile-dialog-side-gap: 0px;
    --app-auth-clearance: calc(var(--app-native-safe-left) + var(--app-native-safe-right));
    --app-profile-rewards-clearance: calc(var(--app-native-safe-left) + var(--app-native-safe-right));
    --app-tips-required-clearance: calc(var(--app-native-safe-left) + var(--app-native-safe-right));
    --app-notifications-clearance: calc(var(--app-native-safe-left) + var(--app-native-safe-right));
    --app-notifications-right: var(--app-native-safe-right);
    --app-menu-side-clearance: 0px;
    --app-system-banner-side-gap: 0px;
  }

}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card {
  width: 90.6%;
  height: auto;
  margin-inline: auto;
  aspect-ratio: auto;
  max-height: none;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card:not(.event-card--sponsored) .event-card-inner {
  border-color: rgba(148, 163, 184, 0.3);
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front {
  position: relative;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 44.7fr) minmax(0, 55.3fr);
  align-items: stretch;
  gap: 11px;
  padding: 4px;
  border-radius: inherit;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-poster {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front .rating-badge,
body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front .event-type-pill {
  display: none;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front .flip-btn,
body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front .flip-btn:hover {
  position: static;
  inset: auto;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 32px;
  gap: 2px 8px;
  align-items: center;
  align-content: start;
  min-width: 0;
  width: 100%;
  height: auto;
  transform: none;
  padding: 3px 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: left;
  overflow-wrap: anywhere;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-title {
  grid-column: 1 / 3;
  width: 100%;
  min-width: 0;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-title {
  max-width: calc(100% - 8px);
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-title,
body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-location > span,
body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-venue {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-location,
body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-time {
  display: contents;
  font-weight: 400;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-location {
  font-size: 12px;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-time {
  font-size: 10.5px;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-location > svg {
  width: 15px;
  height: 15px;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-meta-icon {
  grid-column: 1;
  width: 13px;
  height: 13px;
  color: #ffe48a;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-location > span,
body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-time > span {
  grid-column: 2;
  min-width: 0;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay) .event-card-front-venue {
  grid-column: 2;
  min-width: 0;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 400;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay, #appCongressiEventOverlay) .event-card-front-genres {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay, #appCongressiEventOverlay) .event-card-front-genre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  height: 18px;
  border-radius: 7px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay, #appCongressiEventOverlay) .event-card-front-genre--salsa {
  background: #d9303d;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay, #appCongressiEventOverlay) .event-card-front-genre--bachata {
  background: #8720fc;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList, #appCongressiOverlay, #appCongressiEventOverlay) .event-card-front-genre--kizomba {
  background: #e47025;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-content {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-info {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 3px 2px 0 0;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-info .flip-btn {
  padding: 0;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-time-row {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-vote {
  grid-column: 3;
  width: 32px;
  min-width: 0;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: none;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-vote:focus-visible {
  outline: 2px solid #f6b84b;
  outline-offset: -2px;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-actions .event-link {
  min-width: 0;
  height: 26px;
  padding: 0 4px;
  gap: 5px;
  border-radius: 9px;
  font-size: 8.5px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-actions .event-link--maps {
  flex: 0 0 74px;
  border: 1px solid #64748b;
  background: linear-gradient(135deg, #0c1b2b, #0c141f);
  color: #fff;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-actions a.event-link--maps::after {
  content: "Maps";
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-actions .event-link-map-mark {
  width: 12px;
  height: 17px;
  aspect-ratio: auto;
  align-self: center;
  border-radius: 0;
  object-fit: contain;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-actions .event-card-front-participants {
  flex: 1 1 0;
  min-width: 0;
  height: 26px;
  min-height: 26px;
  padding: 3px 6px;
  gap: 3px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #ffffff;
  background: transparent;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-participants.home-nearby-feed-preview__social--empty {
  visibility: hidden;
  pointer-events: none;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front-participants .home-voter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.is-capacitor :is(#nearbyResults, #homeNearbyFeedList) .event-card-front .flip-btn:focus-visible {
  outline: 2px solid #f6b84b;
  outline-offset: -3px;
}

body.is-capacitor .app-congressi-event-poster {
  min-height: 0;
  width: calc(100% - 2 * var(--app-header-side-inset));
  margin-inline: var(--app-header-side-inset);
  aspect-ratio: 16 / 9;
  border: 0;
  box-shadow: none;
  background-size: cover;
}

body.is-capacitor .app-congressi-event-shell {
  overflow: hidden;
  gap: 0;
}

body.is-capacitor .app-congressi-event-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 0;
  scrollbar-width: none;
}

body.is-capacitor .app-congressi-event-body::-webkit-scrollbar {
  display: none;
}

body.is-capacitor .app-congressi-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}

body.is-capacitor .app-congressi-event-back,
body.is-capacitor #appCongressiEventOverlay #appCongressiEventFavorite .event-favorite-heart {
  width: var(--app-header-action-size);
  height: var(--app-header-action-size);
}

body.is-capacitor .app-congressi-event-poster::before {
  display: none;
}

body.is-capacitor .app-congressi-event-poster::after {
  display: none;
}

body.is-capacitor .app-congressi-event-metadata {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 16px var(--app-header-side-inset) 0;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
}

body.is-capacitor .app-congressi-event-metadata__date {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

body.is-capacitor .app-congressi-event-metadata__date > span,
body.is-capacitor .app-congressi-event-metadata__location .event-card-front-location > span,
body.is-capacitor .app-congressi-event-metadata__location .event-card-front-venue {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-capacitor .app-congressi-event-metadata__time .event-card-front-time,
body.is-capacitor .app-congressi-event-metadata__price {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}

body.is-capacitor .app-congressi-event-metadata__date > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-capacitor .app-congressi-event-metadata svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #ffe48a;
}

body.is-capacitor .app-congressi-event-metadata__location {
  display: grid;
  min-width: 0;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: start;
}

body.is-capacitor .app-congressi-event-metadata__location:empty {
  display: none;
}

body.is-capacitor .app-congressi-event-metadata__location .event-card-front-location {
  display: contents;
}

body.is-capacitor .app-congressi-event-metadata__location .event-card-front-venue {
  grid-column: 2;
  color: #9ca3af;
  font-size: 14px;
}

body.is-capacitor .app-congressi-event-media > .app-congressi-event-description {
  position: relative;
  margin: 16px var(--app-header-side-inset) 0;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.is-capacitor .app-congressi-event-description__preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  max-height: 3.1em;
  overflow: hidden;
}

body.is-capacitor .app-congressi-event-description__preview .app-congressi-event-desc {
  font: inherit;
  color: inherit;
  display: inline;
  white-space: normal;
}

body.is-capacitor .app-congressi-event-description__preview > svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: #ffe48a;
}

body.is-capacitor .app-congressi-event-description__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #111419;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.is-capacitor .app-congressi-event-description__full {
  margin: 0;
  padding-right: 28px;
  white-space: pre-line;
}

body.is-capacitor .app-congressi-event-price-description {
  position: relative;
  flex: 1;
  min-width: 0;
}

body.is-capacitor .app-congressi-event-price-description .app-congressi-event-description__panel {
  left: auto;
  width: calc(200% + 70px);
}

body.is-capacitor .app-congressi-event-description__close {
  position: sticky;
  top: 0;
  float: right;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #252a32;
  color: #f8fafc;
  font-size: 24px;
  cursor: pointer;
}

body.is-capacitor .app-congressi-event-body.has-expanded-description {
  overflow-y: hidden;
}

body.is-capacitor .app-congressi-event-attendance {
  margin: 20px var(--app-header-side-inset) 0;
  padding: 16px;
  border-radius: 16px;
  background: #1c1f24;
}

body.is-capacitor .app-congressi-event-attendance .event-attendance-wrap {
  max-width: none;
  align-items: stretch;
  gap: 12px;
}

body.is-capacitor .app-congressi-event-attendance .event-attendance-label {
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  text-shadow: none;
}

body.is-capacitor .app-congressi-event-attendance .event-attendance-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.is-capacitor .app-congressi-event-attendance .event-attendance-option {
  min-height: 46px;
  gap: 6px;
  padding: 10px 6px;
  border-color: transparent;
  border-radius: 10px;
  background: #2b2e34;
  color: #f8fafc;
  font: inherit;
  font-size: 14px;
  box-shadow: none;
}

body.is-capacitor .app-congressi-event-attendance [data-attendance-choice="yes"]::before { content: "✓"; }
body.is-capacitor .app-congressi-event-attendance [data-attendance-choice="maybe"]::before { content: "?"; }
body.is-capacitor .app-congressi-event-attendance [data-attendance-choice="no"]::before { content: "×"; }

body.is-capacitor .app-congressi-event-attendance .event-attendance-option.is-selected {
  border-color: #f6b84b;
  background: rgba(246, 184, 75, 0.2);
  box-shadow: none;
}

body.is-capacitor .app-congressi-event-pass {
  width: calc(100% - 2 * var(--app-header-side-inset));
  min-width: 0;
  margin: 20px var(--app-header-side-inset) 0;
}

body.is-capacitor .app-congressi-event-pass .event-link {
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: #fbbd2c;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}

body.is-capacitor .app-congressi-event-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin: 16px var(--app-header-side-inset) 0;
}

body.is-capacitor #appCongressiEventCard .app-congressi-event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  text-decoration: none;
  cursor: pointer;
}

body.is-capacitor .app-congressi-event-action svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-capacitor .app-congressi-event-action.disabled {
  opacity: 0.45;
  cursor: default;
}

body.is-capacitor .app-congressi-event-info .app-congressi-event-booking-row {
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - 2 * var(--app-header-side-inset));
  margin-inline: var(--app-header-side-inset);
}

.profile-heart-congress-poster-viewer {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  padding:
    calc(var(--app-status-bar-safe-top, env(safe-area-inset-top, 0px)) + 18px)
    calc(max(env(safe-area-inset-right, 0px), var(--app-native-safe-right)) + var(--app-overlay-side-gap))
    calc(env(safe-area-inset-bottom, 0px) + 18px)
    calc(max(env(safe-area-inset-left, 0px), var(--app-native-safe-left)) + var(--app-overlay-side-gap));
  background: rgba(2, 6, 23, 0.92);
  overscroll-behavior: contain;
}

.profile-heart-congress-poster-viewer[hidden] {
  display: none;
}

.profile-heart-congress-poster-viewer__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(
    100dvh -
    var(--app-status-bar-safe-top, env(safe-area-inset-top, 0px)) -
    env(safe-area-inset-bottom, 0px) -
    36px
  );
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.profile-heart-congress-poster-viewer__close {
  position: absolute;
  top: calc(var(--app-status-bar-safe-top, env(safe-area-inset-top, 0px)) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 250, 252, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  display: inline-grid;
  place-items: center;
  padding: 0 0 3px;
  font: 500 32px/1 'Nunito', sans-serif;
  cursor: pointer;
}

.profile-heart-congress-poster-viewer__close:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.96);
  outline-offset: 2px;
}

body .profile-heart-congress-poster-viewer.is-event-poster {
  background: #000;
}

body.is-capacitor .app-congressi-event-poster__expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

body.is-capacitor .app-congressi-event-poster__expand:focus-visible {
  outline: 2px solid #f6b84b;
  outline-offset: 2px;
}

/* Ricerca eventi: stessi filtri, colori e scorciatoie del riferimento. */
.results-quick-dates { display: none; }
body.is-capacitor #nearbyOverlay .results-header { display: block !important; }
body.is-capacitor #nearbyOverlay .results-filter-chip {
  border-color: #737d8a;
  background: #101318;
  color: #f8fafc;
  box-shadow: none;
}
body.is-capacitor #nearbyOverlay .results-filter-chip.is-selected,
body.is-capacitor #nearbyQuickDates button.is-selected {
  border-color: #f6c94f;
  background: linear-gradient(135deg, #ffe583, #f6b936);
  color: #111;
}
body.is-capacitor .results-quick-dates[hidden] { display: none; }
body.is-capacitor .results-quick-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}
body.is-capacitor .results-quick-dates__days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.is-capacitor #nearbyQuickDates button {
  min-width: 0;
  min-height: 32px;
  padding: 6px;
  border: 1px solid #737d8a;
  border-radius: 999px;
  background: #101318;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
body.is-capacitor #nearbyQuickDates > button { border-color: #737d8a; }
body.is-capacitor #nearbyQuickDates svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* Riusa il pulsante e il calendario esistenti come terza azione della Home. */
body.is-capacitor #appHomeContent.home-v2 .home-v2-filter-tabs #findNearMeBtn {
  order: 0;
}
