/* Area Riservata Styles */

.section-title-wrapper {
    margin-bottom: 20px;
}

.section-title-wrapper h2 {
    margin: 0;
}

/* User Read-only Info */
.user-readonly-info {
    margin-bottom: 30px;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

.acf-form-submit input {
    border-radius: 50px !important;
}
.user-readonly-info h3 {
    margin-top: 0;
    color: #666;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-readonly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.user-readonly-field {
    display: flex;
    flex-direction: column;
}

.user-readonly-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: bold;
}

.user-readonly-value {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

/* Mappe Search Box */
.mappe-search-container h3 {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-box {
    margin-bottom: 30px;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

.search-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.search-select-wrapper {
    margin-bottom: 20px;
}

.search-box select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Search Results */
#mappe-results-container {
    transition: opacity 0.3s ease;
}

.mappe-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    margin-bottom: 5px;
}
.mappe-result-item a {
    color: #ffffff !important;
}

.mappe-result-title {
    font-weight: 500;
    color: #333;
}

.mappe-result-button {
    padding: 2px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.mappe-result-button:hover {
    background: #005177;
    color: #fff;
}

/* Load More */
.load-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

#load-more-mappe {
    padding: 10px 30px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#load-more-mappe:hover {
    background: #ebebeb;
}

/* Messages */
.mappe-no-results {
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.mappe-placeholder {
    color: #999;
    font-style: italic;
}

/* Alerts and Info Boxes */
.alert-warning {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
    color: #856404;
    border-radius: 4px;
}

.user-info {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.user-info h3 {
    margin-top: 0;
    color: #333;
}
