/* Area Riservata — stili in linea con palette Farcom (verde #00a03a, blu #283582) */

.ar-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.ar-wrapper .ar-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 25px;
    min-height: 100%;
}

.ar-wrapper .ar-card h3 {
    color: #00a03a;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: Roboto, sans-serif;
    font-weight: 700;
}

.ar-wrapper .ar-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.ar-wrapper .form-group {
    margin-bottom: 15px;
}

.ar-wrapper .form-group label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
    min-height: 36px;       /* garantisce spazio per 2 righe → input allineati orizzontalmente */
    line-height: 1.35;
}

.ar-wrapper .form-group label small {
    font-weight: 400;
    color: #888;
    font-size: 11px;
}

.ar-wrapper .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

.ar-wrapper .form-control:focus {
    border-color: #00a03a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 160, 58, 0.15);
}

.ar-wrapper .ar-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    font-family: Roboto, sans-serif;
}

.ar-wrapper .ar-btn-green {
    background: #00a03a;
    color: #fff;
}

.ar-wrapper .ar-btn-green:hover {
    background: #006d28;
    color: #fff;
}

.ar-wrapper .ar-btn-download {
    padding: 8px 18px;
    font-size: 13px;
}

.ar-wrapper .ar-btn-download i {
    margin-right: 6px;
}

.ar-wrapper .ar-link-small {
    color: #777;
    font-size: 12px;
    margin-left: 15px;
    text-decoration: underline;
}

.ar-wrapper .ar-link-small:hover {
    color: #00a03a;
}

.ar-wrapper .ar-error {
    color: #d11;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.ar-wrapper .ar-hint {
    color: #777;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.ar-wrapper .ar-alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ar-wrapper .ar-alert-success {
    background: #e6f7ec;
    border: 1px solid #00a03a;
    color: #006d28;
}

.ar-wrapper .ar-alert-info {
    background: #e7f0fa;
    border: 1px solid #283582;
    color: #283582;
}

.ar-wrapper .ar-alert-error {
    background: #fdecea;
    border: 1px solid #d11;
    color: #b00;
}

/* Lista comunicazioni */

.ar-wrapper .ar-userbar {
    text-align: right;
    color: #555;
    font-size: 13px;
    padding: 10px 0 20px;
    border-bottom: 1px solid #e9e9e9;
    margin-bottom: 20px;
}

.ar-wrapper .ar-userbar a {
    color: #00a03a;
    text-decoration: none;
}

.ar-wrapper .ar-userbar a:hover {
    text-decoration: underline;
}

.ar-wrapper .ar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.ar-wrapper .ar-filters select,
.ar-wrapper .ar-filters input[type=search] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
}

.ar-wrapper .ar-filters input[type=search] {
    flex: 1;
    min-width: 200px;
}

.ar-wrapper .ar-comunicazione {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 18px;
    transition: box-shadow 0.2s ease;
}

.ar-wrapper .ar-comunicazione:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: #ccc;
}

.ar-wrapper .ar-com-meta {
    margin-bottom: 8px;
    font-size: 13px;
    color: #777;
}

.ar-wrapper .ar-date {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-right: 12px;
}

.ar-wrapper .ar-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 6px;
    color: #fff;
}

.ar-wrapper .ar-badge-sindacato {
    background: #283582;
}

.ar-wrapper .ar-badge-protected {
    background: #777;
}

.ar-wrapper .ar-badge-protected i {
    margin-right: 4px;
}

.ar-wrapper .ar-com-title {
    color: #283582;
    font-size: 18px;
    margin: 5px 0 8px;
    font-family: Roboto, sans-serif;
    font-weight: 700;
}

.ar-wrapper .ar-com-abstract {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

.ar-wrapper .ar-com-abstract p {
    margin-bottom: 0;
}

.ar-wrapper .ar-com-content {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 16px;
    padding-top: 12px;
    border-top: 1px dashed #e9e9e9;
}

.ar-wrapper .ar-com-content p:last-child {
    margin-bottom: 0;
}

.ar-wrapper .ar-empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    font-style: italic;
}

.ar-wrapper .ar-pagination {
    text-align: center;
    margin: 30px 0;
}

.ar-wrapper .ar-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #e9e9e9;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
}

.ar-wrapper .ar-pagination .page-numbers.current,
.ar-wrapper .ar-pagination .page-numbers:hover {
    background: #00a03a;
    color: #fff;
    border-color: #00a03a;
}

@media (max-width: 768px) {
    .ar-wrapper .ar-card {
        padding: 20px;
    }
    .ar-wrapper .ar-comunicazione {
        padding: 15px;
    }
    .ar-wrapper .ar-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========== Dashboard admin/editor ========== */

.ar-dashboard .ar-user-role {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    margin-left: 6px;
}

.ar-dashboard .ar-tabs {
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
    border-bottom: 2px solid #e9e9e9;
    display: flex;
    gap: 0;
}

.ar-dashboard .ar-tabs li {
    margin: 0;
}

.ar-dashboard .ar-tabs li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.ar-dashboard .ar-tabs li a i {
    margin-right: 6px;
    color: #00a03a;
}

.ar-dashboard .ar-tabs li a:hover {
    color: #00a03a;
}

.ar-dashboard .ar-tabs li.active a {
    color: #00a03a;
    border-bottom-color: #00a03a;
}

.ar-dashboard .ar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ar-dashboard .ar-section-header h3 {
    color: #00a03a;
    margin: 0;
    font-family: Roboto, sans-serif;
    font-weight: 700;
}

.ar-dashboard .ar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 25px;
    font-size: 14px;
}

.ar-dashboard .ar-table th,
.ar-dashboard .ar-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9e9e9;
    text-align: left;
    vertical-align: middle;
}

.ar-dashboard .ar-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ar-dashboard .ar-table tr:hover {
    background: #fafafa;
}

.ar-dashboard .ar-table .ar-cell-email {
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 240px;
}

.ar-dashboard .ar-link-danger {
    color: #d11 !important;
    margin-left: 8px;
}

.ar-dashboard .ar-link-danger:hover {
    color: #b00 !important;
    text-decoration: underline;
}

.ar-dashboard .ar-fieldset {
    border: 1px solid #e9e9e9;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ar-dashboard .ar-fieldset legend {
    width: auto;
    padding: 0 10px;
    color: #00a03a;
    font-weight: 600;
    font-family: Roboto, sans-serif;
}

.ar-dashboard .ar-form textarea,
.ar-dashboard .ar-form select {
    font-family: "Open Sans", sans-serif;
}

.ar-dashboard .ar-req {
    color: #d11;
}

.ar-dashboard .ar-form .form-group {
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .ar-dashboard .ar-tabs {
        flex-direction: column;
    }
    .ar-dashboard .ar-tabs li a {
        border-bottom: 1px solid #e9e9e9;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }
    .ar-dashboard .ar-tabs li.active a {
        border-bottom-color: #e9e9e9;
        border-left-color: #00a03a;
    }
    .ar-dashboard .ar-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ar-dashboard .ar-table {
        font-size: 12px;
    }
}
