/**
 * Welcome — bacheca attività attive
 */

.welcome-bacheca {
  --fest-orange: #f58220;
  --fest-orange-soft: #ff9a2e;
  --fest-purple: #602d91;
  --fest-navy: #15265c;
  --fest-text: #1a2744;
  --fest-text-muted: #4a5568;
  --fest-surface: #eef1f7;
  --fest-card: #ffffff;
  --fest-radius: 1.15rem;
  --fest-shadow: 0 4px 24px rgba(21, 38, 92, 0.08), 0 1px 3px rgba(21, 38, 92, 0.06);

  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0 0.75rem 2.5rem;
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif;
  color: var(--fest-text);
}

.misc-wrapper.misc-wrapper--welcome-bacheca {
  text-align: start;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem 0 2rem;
  max-width: 100%;
  min-block-size: auto;
  background: transparent;
}

html.welcome-bacheca-page,
html.welcome-bacheca-page body {
  background: #f6f7fb;
}

/*
 * Prova colorazione sfondo — varianti:
 *   default (nessun attributo) = colorato Fest
 *   data-bg="soft"  = più tenue
 *   data-bg="bold"  = più saturo
 */
.welcome-bacheca__bg {
  --bg-warm: #fff6ee;
  --bg-mid: #f3ebf8;
  --bg-cool: #e6edf8;

  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    var(--bg-warm) 0%,
    var(--bg-mid) 38%,
    var(--bg-cool) 100%
  );
}

.welcome-bacheca__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 8% 18%, rgba(245, 130, 32, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 95% 82%, rgba(96, 45, 145, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 55% 0%, rgba(21, 38, 92, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 72% 42%, rgba(245, 130, 32, 0.12) 0%, transparent 48%);
  pointer-events: none;
}

.welcome-bacheca__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(245, 130, 32, 0.07) 0%,
    transparent 32%,
    transparent 58%,
    rgba(96, 45, 145, 0.09) 78%,
    rgba(21, 38, 92, 0.06) 100%
  );
  pointer-events: none;
}

.welcome-bacheca__bg[data-bg="soft"] {
  --bg-warm: #faf8fc;
  --bg-mid: #f4f2f8;
  --bg-cool: #eef1f8;
}

.welcome-bacheca__bg[data-bg="soft"]::before {
  opacity: 0.55;
}

.welcome-bacheca__bg[data-bg="bold"] {
  --bg-warm: #ffe8d4;
  --bg-mid: #ecd8f5;
  --bg-cool: #d8e4f8;
}

.welcome-bacheca__bg[data-bg="bold"]::before {
  background:
    radial-gradient(ellipse 80% 60% at 5% 15%, rgba(245, 130, 32, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 75% 55% at 98% 88%, rgba(96, 45, 145, 0.48) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 5%, rgba(21, 38, 92, 0.22) 0%, transparent 48%);
}

.welcome-bacheca__bg-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--fest-orange) 0%,
    var(--fest-purple) 50%,
    var(--fest-navy) 100%
  );
  box-shadow: 0 3px 16px rgba(96, 45, 145, 0.25);
}

.welcome-bacheca__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 4L52 28L28 52L4 28Z' stroke='%23f58220' stroke-opacity='.22' stroke-width='.7' fill='none'/%3E%3Cpath d='M28 12L44 28L28 44L12 28Z' stroke='%23602d91' stroke-opacity='.18' stroke-width='.55' fill='none'/%3E%3Ccircle cx='28' cy='28' r='1.35' fill='%2315265c' fill-opacity='.15'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
}

.welcome-bacheca__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  mix-blend-mode: multiply;
}

.welcome-bacheca__bg-glow--orange {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: -14%;
  right: -10%;
  background: rgba(245, 130, 32, 0.45);
  mix-blend-mode: normal;
}

.welcome-bacheca__bg-glow--purple {
  width: min(54vw, 460px);
  height: min(54vw, 460px);
  bottom: -12%;
  left: -8%;
  background: rgba(96, 45, 145, 0.38);
  mix-blend-mode: normal;
}

.welcome-bacheca__bg-glow--navy {
  width: min(44vw, 400px);
  height: min(44vw, 400px);
  top: 42%;
  left: 48%;
  transform: translate(-50%, -50%);
  background: rgba(21, 38, 92, 0.18);
  filter: blur(100px);
  mix-blend-mode: normal;
}

/* Masthead compatto */
.welcome-bacheca__masthead {
  margin-bottom: 1.25rem;
  padding: 0 0.15rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.welcome-bacheca__masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0;
  border-bottom: none;
}

.welcome-bacheca__brand {
  max-width: min(200px, 50vw);
  flex-shrink: 0;
}

.welcome-bacheca__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
  object-position: left center;
}

.welcome-bacheca__masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.welcome-bacheca__masthead-body {
  max-width: 40rem;
}

.welcome-bacheca__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.welcome-bacheca__btn--ghost {
  color: var(--fest-navy);
  background: #fff;
  border-color: rgba(21, 38, 92, 0.2);
}

.welcome-bacheca__btn--ghost:hover {
  color: var(--fest-navy);
  background: #fff;
  border-color: var(--fest-navy);
}

.welcome-bacheca__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--fest-orange) 0%, var(--fest-orange-soft) 100%);
  box-shadow: 0 3px 12px rgba(245, 130, 32, 0.3);
}

.welcome-bacheca__btn--primary:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 130, 32, 0.38);
}

.welcome-bacheca__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fest-purple);
}

.welcome-bacheca__live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: welcome-pulse 2s ease-in-out infinite;
}

@keyframes welcome-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.welcome-bacheca__title {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--fest-navy);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.welcome-bacheca__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fest-text-muted);
  margin: 0;
  max-width: 32rem;
}

/* Board */
.welcome-bacheca__board {
  margin-bottom: 1rem;
}

.welcome-bacheca__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 38, 92, 0.1);
  box-shadow: 0 2px 10px rgba(21, 38, 92, 0.05);
}

.welcome-bacheca__search i {
  color: var(--fest-text-muted);
  font-size: 1.15rem;
}

.welcome-bacheca__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--fest-text);
  outline: none;
}

.welcome-bacheca__search-input::placeholder {
  color: #9aa3b2;
}

.welcome-bacheca__search-empty {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--fest-text-muted);
}

/* Carosello organizzazioni */
.welcome-bacheca__carousel {
  position: relative;
  margin-bottom: 1rem;
}

.welcome-bacheca__carousel-viewport {
  overflow: hidden;
}

.welcome-bacheca__carousel-track {
  display: flex;
  gap: 0.75rem;
  padding: 0.15rem 0 0.65rem;
  transition: transform 0.32s ease;
  will-change: transform;
}

.welcome-bacheca__carousel-slide {
  flex: 0 0 min(100%, 18rem);
  min-width: min(100%, 18rem);
  cursor: pointer;
}

.welcome-bacheca__carousel-slide-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(21, 38, 92, 0.1);
  box-shadow: 0 2px 10px rgba(21, 38, 92, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.welcome-bacheca__carousel-slide.is-active .welcome-bacheca__carousel-slide-inner {
  border-color: color-mix(in srgb, var(--org-accent, var(--fest-orange)) 40%, #fff);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--org-accent, var(--fest-orange)) 12%, transparent);
}

.welcome-bacheca__carousel-slide-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fest-navy);
  line-height: 1.2;
}

.welcome-bacheca__carousel-slide-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fest-text-muted);
}

.welcome-bacheca__org-avatar--lg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
}

.welcome-bacheca__carousel-slide-copy {
  min-width: 0;
}

.welcome-bacheca__carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-65%);
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 38, 92, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--fest-navy);
  box-shadow: 0 8px 20px rgba(21, 38, 92, 0.12);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.welcome-bacheca__carousel-nav:hover:not(:disabled) {
  transform: translateY(-65%) scale(1.05);
}

.welcome-bacheca__carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.welcome-bacheca__carousel-nav--prev {
  left: -0.35rem;
}

.welcome-bacheca__carousel-nav--next {
  right: -0.35rem;
}

.welcome-bacheca__carousel-nav i {
  font-size: 1.45rem;
}

.welcome-bacheca__carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.welcome-bacheca__carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(21, 38, 92, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.welcome-bacheca__carousel-dot.is-active {
  transform: scale(1.25);
  background: var(--fest-orange);
}

.welcome-bacheca__org-solo {
  margin-bottom: 1.35rem;
}

.welcome-bacheca__org-solo .welcome-bacheca__carousel-slide {
  flex: 1 1 auto;
  min-width: 0;
  cursor: default;
}

/* Pannello attività */
.welcome-bacheca__org-stage {
  padding-top: 0.25rem;
}

.welcome-bacheca__org-stage-body {
  padding: 0;
}

.welcome-bacheca__org-panel-body.is-active {
  animation: welcome-panel-in 0.32s ease both;
}

@keyframes welcome-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Organizzazioni (avatar condiviso) */
.welcome-bacheca__org-avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--org-accent, var(--fest-orange)) 35%, #fff);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--org-accent, var(--fest-orange)) 12%, transparent),
    0 8px 20px rgba(21, 38, 92, 0.1);
}

.welcome-bacheca__org-avatar img,
.welcome-bacheca__org-avatar-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.welcome-bacheca__org-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--org-accent, var(--fest-orange)) 0%,
    color-mix(in srgb, var(--org-accent, var(--fest-orange)) 60%, var(--fest-navy)) 100%
  );
}

.welcome-bacheca__org-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--org-accent, var(--fest-purple)) 70%, var(--fest-text-muted));
}

.welcome-bacheca__org-badge {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fest-navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 38, 92, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.welcome-bacheca__org-grid {
  gap: 1rem;
}

@keyframes welcome-org-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid eventi — card locandina A4 */
.welcome-bacheca__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .welcome-bacheca__grid {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .welcome-bacheca__org-grid {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  }
}

@media (min-width: 1200px) {
  .welcome-bacheca__org-grid {
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  }
}

.welcome-bacheca__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.welcome-bacheca__card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(21, 38, 92, 0.08);
  box-shadow: 0 2px 12px rgba(21, 38, 92, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.welcome-bacheca__card:hover .welcome-bacheca__card-shell {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(21, 38, 92, 0.1);
}

.welcome-bacheca__card-poster-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.welcome-bacheca__card-poster-link:focus-visible {
  outline: 2px solid var(--fest-orange);
  outline-offset: -2px;
}

.welcome-bacheca__card-menu {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--fest-navy);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(21, 38, 92, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.welcome-bacheca__card-menu:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(21, 38, 92, 0.16);
}

.welcome-bacheca__card-menu:focus-visible {
  outline: 2px solid var(--fest-orange);
  outline-offset: 2px;
}

.welcome-bacheca__card-poster {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #e8ecf4;
  overflow: hidden;
}

.welcome-bacheca__card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(21, 38, 92, 0.08);
}

.welcome-bacheca__card-poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.welcome-bacheca__card-poster--placeholder {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 28%, #fff) 0%,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 12%, #eef1f7) 38%,
    #e8ecf4 68%,
    color-mix(in srgb, var(--fest-purple) 16%, #e8ecf4) 100%
  );
}

.welcome-bacheca__card-poster--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 82% 88%, rgba(255, 255, 255, 0.35) 0%, transparent 40%);
  pointer-events: none;
}

.welcome-bacheca__card-poster-placeholder {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem 1rem;
}

.welcome-bacheca__card-poster-placeholder-logo {
  display: block;
  width: min(72%, 6.5rem);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(21, 38, 92, 0.16));
}

.welcome-bacheca__card-chip--poster {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(21, 38, 92, 0.15);
}

.welcome-bacheca__card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.welcome-bacheca__card-logo {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(21, 38, 92, 0.08);
  box-shadow: 0 2px 8px rgba(21, 38, 92, 0.06);
  overflow: hidden;
}

.welcome-bacheca__card-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.welcome-bacheca__card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--card-accent, var(--fest-orange)), var(--fest-purple));
}

.welcome-bacheca__card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  min-height: 5.75rem;
  padding: 0.8rem 0.85rem 0.9rem;
  color: inherit;
  text-decoration: none;
}

.welcome-bacheca__card-footer {
  border-top: 3px solid var(--card-accent, var(--fest-orange));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 7%, #fff) 0%,
    #f8f9fc 100%
  );
}

.welcome-bacheca__card:hover .welcome-bacheca__card-footer {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 10%, #fff) 0%,
    #fff 100%
  );
}

.welcome-bacheca__card-content:hover {
  color: inherit;
}

.welcome-bacheca__card-content:focus-visible {
  outline: 2px solid var(--fest-orange);
  outline-offset: -2px;
}

.welcome-bacheca__card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fest-navy);
  line-height: 1.25;
  min-height: 2.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.welcome-bacheca__card-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--fest-text-muted);
  min-height: 2.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.welcome-bacheca__card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  color: #c45f00;
  background: rgba(245, 130, 32, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 2rem;
}

/* Empty */
.welcome-bacheca__empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--fest-radius);
  border: 1px dashed rgba(21, 38, 92, 0.12);
  box-shadow: var(--fest-shadow);
}

.welcome-bacheca__empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.15), rgba(96, 45, 145, 0.12));
  color: var(--fest-purple);
  font-size: 1.75rem;
}

.welcome-bacheca__empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fest-navy);
  margin: 0 0 0.5rem;
}

.welcome-bacheca__empty-text {
  color: var(--fest-text-muted);
  margin: 0 0 1.25rem;
  max-width: 22rem;
  margin-inline: auto;
}

/* Footer */
.welcome-bacheca__footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

/* Modal */
body.modal-open > .modal-backdrop.show {
  --bs-backdrop-bg: #15265c;
  --bs-backdrop-opacity: 0.48;
  z-index: 1050;
}

#welcomeAttivitaModal {
  z-index: 1055;
}

#welcomeAttivitaModal.show .modal-dialog {
  position: relative;
  z-index: 1;
}

.welcome-bacheca__modal-dialog {
  width: min(22.5rem, calc(100% - 2rem));
  max-width: 22.5rem;
  margin: 1.75rem auto;
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.welcome-bacheca__modal-dialog.modal-dialog-centered {
  min-height: calc(100% - 3.5rem);
}

.welcome-bacheca__modal {
  overflow: hidden;
  border: 1px solid rgba(21, 38, 92, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 56px rgba(21, 38, 92, 0.2);
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif;
}

.welcome-bacheca__modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 120;
  background: #e8ecf4;
  overflow: hidden;
}

.welcome-bacheca__modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(21, 38, 92, 0.08);
}

.welcome-bacheca__modal-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.welcome-bacheca__modal-hero--placeholder {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 28%, #fff) 0%,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 12%, #eef1f7) 38%,
    #e8ecf4 68%,
    color-mix(in srgb, var(--fest-purple) 16%, #e8ecf4) 100%
  );
}

.welcome-bacheca__modal-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.welcome-bacheca__modal-hero-placeholder-logo {
  display: block;
  width: min(42%, 4.5rem);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(21, 38, 92, 0.14));
}

.welcome-bacheca__modal-panel {
  border-top: 3px solid var(--card-accent, var(--fest-orange));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card-accent, var(--fest-orange)) 7%, #fff) 0%,
    #fff 100%
  );
}

.welcome-bacheca__modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.35rem;
}

.welcome-bacheca__modal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.welcome-bacheca__modal-copy {
  min-width: 0;
}

.welcome-bacheca__modal-close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem;
  opacity: 0.55;
  transform: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  filter: none !important;
  border-radius: 0.35rem;
}

.welcome-bacheca__modal-close::before {
  display: none;
}

.welcome-bacheca__modal-close:hover,
.welcome-bacheca__modal-close:focus {
  opacity: 0.85;
  transform: none !important;
  box-shadow: none !important;
}

.welcome-bacheca__modal-media {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid rgba(21, 38, 92, 0.08);
  box-shadow: 0 2px 8px rgba(21, 38, 92, 0.06);
  overflow: hidden;
}

.welcome-bacheca__modal-logo {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.welcome-bacheca__modal-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--card-accent, var(--fest-orange)), var(--fest-purple));
}

.welcome-bacheca__modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fest-navy);
  line-height: 1.25;
}

.welcome-bacheca__modal-desc {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--fest-text-muted);
  line-height: 1.45;
}

.welcome-bacheca__modal-body {
  padding: 0.35rem 1rem 1.1rem;
}

.welcome-bacheca__modal-hint {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fest-text-muted);
  margin: 0 0 0.65rem;
}

.welcome-bacheca__modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.welcome-bacheca__modal-actions .welcome-bacheca__action[hidden] {
  display: none !important;
}

.welcome-bacheca__action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  text-align: left;
  text-decoration: none;
  color: var(--fest-text);
  background: #fff;
  border: 1px solid rgba(21, 38, 92, 0.08);
  border-radius: 0.7rem;
  box-shadow: 0 1px 4px rgba(21, 38, 92, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button.welcome-bacheca__action {
  font: inherit;
}

.welcome-bacheca__action:not(.is-disabled):hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--card-accent, var(--fest-orange)) 28%, rgba(21, 38, 92, 0.16));
  color: var(--fest-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 38, 92, 0.08);
}

.welcome-bacheca__action.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.welcome-bacheca__action strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fest-navy);
}

.welcome-bacheca__action small {
  display: block;
  font-size: 0.78rem;
  color: var(--fest-text-muted);
  margin-top: 0.1rem;
}

.welcome-bacheca__action-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.15rem;
  background: rgba(21, 38, 92, 0.08);
  color: var(--fest-navy);
}

.welcome-bacheca__action-icon--orange {
  background: rgba(245, 130, 32, 0.15);
  color: #c45f00;
}

.welcome-bacheca__action-icon--purple {
  background: rgba(96, 45, 145, 0.12);
  color: var(--fest-purple);
}

.welcome-bacheca__action-icon--navy {
  background: rgba(21, 38, 92, 0.1);
  color: var(--fest-navy);
}

@media (max-width: 575.98px) {
  .welcome-bacheca__masthead {
    padding: 1.1rem 1rem 1.25rem;
  }

  .welcome-bacheca__masthead-row {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .welcome-bacheca__masthead-actions {
    width: 100%;
  }

  .welcome-bacheca__masthead-actions .welcome-bacheca__btn {
    flex: 1;
  }

  .welcome-bacheca__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .welcome-bacheca__org-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-bacheca__carousel-nav--prev {
    left: 0.15rem;
  }

  .welcome-bacheca__carousel-nav--next {
    right: 0.15rem;
  }

  .welcome-bacheca__carousel-slide {
    flex-basis: 100%;
    min-width: 100%;
  }

  .welcome-bacheca__org-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-bacheca__org-badge {
    align-self: flex-start;
  }

  .welcome-bacheca__org-stage-body {
    padding: 1rem;
  }
}
