/* =============================================
   SPOTLIGHT — Promoted agencies & investor projects
   Bootstrap 5 compatible
   ============================================= */

/* Slot wrapper */
.spotlight-slot {
    margin: 2rem 0;
}

.spotlight-slot--row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.spotlight-slot--row .spotlight-card {
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 400px;
}

.spotlight-slot--stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Base card */
.spotlight-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}

.spotlight-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.spotlight-card__inner {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---- Agency card ---- */
.spotlight-card--agency .spotlight-card__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.spotlight-card--agency .spotlight-card__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background: #f9fafb;
    flex-shrink: 0;
}

.spotlight-card--agency .spotlight-card__logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.spotlight-card__title-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.spotlight-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
    line-height: 1.3;
}

.spotlight-card__verified {
    color: #2563eb;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---- Investor project card ---- */
.spotlight-card--investor .spotlight-card__thumb {
    margin: -1.25rem -1.25rem 1rem;
    height: 140px;
    overflow: hidden;
}

.spotlight-card--investor .spotlight-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-card--investor .spotlight-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spotlight-card__investor {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

/* Shared body elements */
.spotlight-card__desc {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.spotlight-card__meta-item {
    font-size: 0.78rem;
    color: #6b7280;
}

.spotlight-card__meta-item i {
    margin-right: 0.2rem;
}

/* Footer */
.spotlight-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.spotlight-card__cta {
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
}

/* "Sponzorisano" badge */
.spotlight-label {
    font-size: 0.7rem;
    color: #9ca3af;
    font-style: italic;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 640px) {
    .spotlight-slot--row {
        flex-direction: column;
    }

    .spotlight-slot--row .spotlight-card {
        max-width: 100%;
    }
}
