/* ── Markus Bandi – v1.4 ─────────────────────────────────────────────────── */

/* Header section */
.bandi-header-section { margin-bottom: 24px; }
.bandi-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a4a8a;
    margin: 0 0 8px;
}
.bandi-section-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* Search */
.bandi-search-wrap {
    margin-bottom: 28px;
    max-width: 860px;
}
.bandi-search-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    color: #222;
    background: #fff;
}
.bandi-search-input:focus {
    border-color: #1a4a8a;
    box-shadow: 0 0 0 3px rgba(26,74,138,.12);
}
.bandi-search-input::placeholder { color: #aaa; }
.bandi-nessun-risultato {
    margin-top: 12px;
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
}

/* Container */
.bandi-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 860px;
}

/* Card base */
.bando-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.bando-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }

/* Card stati – bordo sinistro colorato */
.bando-attivo    { border-left: 4px solid #22c55e; }
.bando-scaduto   { border-left: 4px solid #ef4444; opacity: .82; }
.bando-in-arrivo { border-left: 4px solid #f59e0b; }

/* Header row */
.bando-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.bando-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

/* Badge */
.bando-stato-badge {
    flex-shrink: 0;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.bando-badge-attivo    { background: #22c55e; }
.bando-badge-scaduto   { background: #ef4444; }
.bando-badge-in-arrivo { background: #f59e0b; }

/* Description */
.bando-descrizione {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Meta grid */
.bando-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-bottom: 20px;
}
.bando-meta-item { display: flex; flex-direction: column; gap: 2px; }
.bando-meta-item.bando-meta-full { grid-column: 1 / -1; }
.bando-meta-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bando-meta-value { font-size: 0.92rem; color: #222; }

/* Footer / CTA button */
.bando-footer { margin-top: 4px; }
.bando-link-btn {
    display: inline-block;
    background: #1a4a8a;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.bando-link-btn:hover { background: #163d73; transform: translateY(-1px); }
.bando-scaduto .bando-link-btn { background: #888; }
.bando-scaduto .bando-link-btn:hover { background: #666; }

/* Responsive */
@media (max-width: 600px) {
    .bando-meta { grid-template-columns: 1fr; }
    .bando-header { flex-direction: column; }
}

/* ── Bando in evidenza ─────────────────────────────────────────────────── */
.bando-in-evidenza {
	position: relative;
	border: 2px solid #f5c518 !important;
	background: linear-gradient(135deg, #fffbea 0%, #ffffff 65%);
	box-shadow: 0 4px 20px rgba(245,197,24,.28);
}
.bando-in-evidenza:hover { box-shadow: 0 6px 26px rgba(245,197,24,.4); }
.bando-evidenza-ribbon {
	display: inline-block;
	background: #f5c518;
	color: #1a1a2e;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 12px;
	letter-spacing: .02em;
}