/* Partners — card partner (larghezza contenuto = site-shell) */

.pt-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.pt-hero {
  padding: 3.75rem 0 2.25rem;
}

.pt-hero h1,
.pt-detail-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.pt-lead,
.pt-detail-lead {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.pt-filters {
  margin-bottom: 1.75rem;
}

.pt-filter-form {
  padding: 1.15rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 18, 26, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pt-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
}

.pt-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 10rem;
}

.pt-filter-field--grow {
  flex: 1;
  min-width: min(100%, 18rem);
}

.pt-filter-field span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pt-filter-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.pt-filter-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.75);
  color: var(--text);
  font: inherit;
}

.pt-filter-btn {
  padding: 0.78rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.12);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pt-filter-btn:hover {
  background: rgba(61, 214, 198, 0.2);
  border-color: rgba(61, 214, 198, 0.5);
}

.pt-grid-section {
  padding-bottom: 5rem;
}

.pt-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
}

.pt-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 52%),
    rgba(14, 18, 26, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  min-height: 420px;
}

.pt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(61, 214, 198, 0.38);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.pt-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pt-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.pt-card-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 2.25rem 2rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(61, 214, 198, 0.08), transparent 65%),
    rgba(8, 12, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pt-card-logo img {
  max-width: min(100%, 280px);
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
  transition: transform 0.35s ease;
}

.pt-card:hover .pt-card-logo img {
  transform: scale(1.04);
}

.pt-card-logo-fallback {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 18px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  background: rgba(61, 214, 198, 0.12);
  border: 1px solid rgba(61, 214, 198, 0.25);
}

.pt-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #041014;
  background: var(--accent);
}

.pt-card-body {
  padding: 1.5rem 1.6rem 0.75rem;
  flex: 1;
}

.pt-card-meta {
  margin: 0 0 0.4rem;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pt-card-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pt-card-summary {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pt-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 1.6rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.pt-card-cta::after {
  content: "→";
  transition: transform 0.22s ease;
}

.pt-card:hover .pt-card-cta::after {
  transform: translateX(4px);
}

.pt-card-site {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 1.6rem 1.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pt-card-site::after {
  content: "↗";
  font-size: 0.82rem;
  color: var(--accent);
}

.pt-card-site:hover {
  border-color: rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
}

.pt-card--featured {
  border-color: rgba(61, 214, 198, 0.24);
}

@media (min-width: 960px) {
  .pt-card--featured {
    grid-column: span 2;
  }

  .pt-card--featured .pt-card-inner {
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    grid-template-rows: 1fr auto;
    min-height: 380px;
  }

  .pt-card--featured .pt-card-link {
    display: contents;
  }

  .pt-card--featured .pt-card-logo {
    grid-row: 1 / 3;
    min-height: 100%;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .pt-card--featured .pt-card-body {
    padding-top: 2rem;
  }

  .pt-card--featured .pt-card-title {
    font-size: 1.65rem;
  }

  .pt-card--featured .pt-card-summary {
    -webkit-line-clamp: 5;
    font-size: 1.02rem;
  }

  .pt-card--featured .pt-card-cta {
    margin-left: 0;
    padding-left: 1.6rem;
    align-self: end;
    padding-bottom: 0.25rem;
  }

  .pt-card--featured .pt-card-site {
    grid-column: 2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    margin-left: 1.6rem;
    align-self: end;
    justify-self: start;
  }
}

.pt-empty {
  margin: 2rem 0;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Dettaglio */
.pt-detail-hero {
  position: relative;
  isolation: isolate;
  padding: 3.25rem 0 2.75rem;
  overflow: hidden;
}

.pt-detail-hero-inner {
  position: relative;
  z-index: 2;
}

.pt-detail-site {
  margin: 1.25rem 0 0;
}

.pt-detail-site a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.1);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.pt-detail-site a::after {
  content: "↗";
}

.pt-detail-logo {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1240px) / 2));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
}

.pt-detail-logo img {
  max-width: min(42vw, 320px);
  max-height: 200px;
  object-fit: contain;
}

.pt-detail-body {
  padding-bottom: 5rem;
}

.pt-tags {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pt-tags li {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  color: var(--muted);
}

.pt-content {
  max-width: 70ch;
  line-height: 1.75;
}

.pt-content :is(h2, h3, h4) {
  margin: 2rem 0 0.85rem;
  letter-spacing: -0.02em;
}

.pt-content p {
  margin: 0 0 1.1rem;
  color: rgba(232, 238, 246, 0.9);
}

.pt-back {
  margin: 2.75rem 0 0;
}

.pt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.pt-back-link::before {
  content: "←";
}

@media (max-width: 720px) {
  .pt-hero { padding: 2.5rem 0 1.5rem; }
  .pt-filter-row { flex-direction: column; align-items: stretch; }
  .pt-filter-btn { width: 100%; }
  .pt-card { min-height: 0; }
  .pt-detail-logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-card,
  .pt-card-logo img,
  .pt-card-cta::after {
    transition: none;
  }
  .pt-card:hover {
    transform: none;
  }
  .pt-card:hover .pt-card-logo img {
    transform: none;
  }
}
