/* ── Strariccione Team Form ── */
.stf-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

.stf-notice {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}
.stf-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ── Form Grid ── */
.stf-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
}

.stf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px 20px;
}

.stf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stf-field.stf-wide {
    grid-column: span 2;
}
.stf-field.stf-small {
    min-width: 100px;
}
.stf-field.stf-required label::after {
    content: ' *';
    color: #c00;
}

.stf-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stf-field input,
.stf-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s;
}
.stf-field input:focus,
.stf-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* ── Buttons ── */
.stf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}
.stf-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s;
}
.stf-btn-primary {
    background: #0073aa;
    color: #fff;
}
.stf-btn-primary:hover {
    background: #005a87;
    color: #fff;
}
.stf-btn-download {
    background: #2e7d32;
    color: #fff;
}
.stf-btn-download:hover {
    background: #1b5e20;
    color: #fff;
}

/* ── Tabella ── */
.stf-table-wrap {
    margin-top: 32px;
}
.stf-table-wrap h3 {
    margin-bottom: 10px;
}
.stf-empty {
    color: #888;
    font-style: italic;
}
.stf-scroll {
    overflow-x: auto;
}
.stf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 900px;
}
.stf-table thead {
    background: #0073aa;
    color: #fff;
}
.stf-table thead th {
    padding: 10px 8px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}
.stf-table tbody tr:nth-child(even) {
    background: #f2f7fb;
}
.stf-table tbody tr:hover {
    background: #e0f0fa;
}
.stf-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .stf-field.stf-wide {
        grid-column: span 1;
    }
    .stf-grid {
        grid-template-columns: 1fr;
    }
}
