.expo-cataleg,
.expo-cataleg * {
  box-sizing: border-box;
}

/* ---------- Filtres ---------- */
.expo-filtres {
  margin-bottom: 30px;
}

.expo-sectors,
.expo-lletres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.expo-sector,
.expo-lletra {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  border: 2px solid #fff;
  background: #dadada;
  color: #fff;
  padding: 11px;
  line-height: 1;
  transition:
    background 0.1s linear,
    color 0.1s linear,
    border-color 0.1s linear;
}

.expo-lletra {
  text-align: center;
}

.expo-sector:hover,
.expo-sector.actiu,
.expo-lletra:hover,
.expo-lletra.actiu {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ---------- Graella de targetes ---------- */
.expo-grid {
  display: grid;
  grid-template-columns: repeat(var(--expo-cols, 3), 1fr);
  gap: 50px 80px;
}

@media (max-width: 900px) {
  .expo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .expo-grid {
    grid-template-columns: 1fr;
  }
}

.expo-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

.expo-card-logo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e30614;
  padding: 18px;
  overflow: hidden;
}

.expo-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.expo-card-ph {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  padding: 0 12px;
  display: -webkit-box; /* màxim 5 línies, per si algun nom és molt llarg */
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mida segons la llargada del nom */
.expo-card-ph--l {
  font-size: 28px;
}
.expo-card-ph--m {
  font-size: 22px;
}
.expo-card-ph--s {
  font-size: 18px;
}
.expo-card-ph--xs {
  font-size: 15px;
}

/* 2 columnes en pantalles mitjanes: targetes més estretes */
@media (max-width: 900px) and (min-width: 561px) {
  .expo-card-ph--l {
    font-size: 22px;
  }
  .expo-card-ph--m {
    font-size: 18px;
  }
  .expo-card-ph--s {
    font-size: 15px;
  }
  .expo-card-ph--xs {
    font-size: 13px;
  }
}

.expo-card-body {
  padding: 14px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.expo-card-web {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  max-width: 100%;
  padding-bottom: 6px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

.expo-card-web-domini {
  overflow-wrap: anywhere; /* dominis llargs: que no surtin de la targeta */
}

.expo-card-web:hover {
  text-decoration: underline;
}

.expo-card-web-icon {
  flex: none;
  position: relative;
  top: -1px;
}

.expo-card-peu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: #dadada;
}

.expo-card-stand-label,
.expo-card-stand-num {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.expo-card-stand-num {
  white-space: nowrap;
}

.expo-buit {
  margin-top: 20px;
  font-weight: 600;
}
