/* Titolo principale della pagina */
.cms-page-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5eaf0;
	padding-inline: 16px;
}

.cms-page-title {
    color: #102a43;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

/* Contenuto legacy WordPress */
.cms-legacy-content {
    color: #344054;
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
	padding-inline: 16px;
}

/* Sezioni principali */
.cms-legacy-content h2 {
    color: #123b60;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 1rem 1.25rem;
    margin: 2.5rem 0 0;
    background-color: #f2f6fa;
    border-left: 5px solid var(--bs-primary, #0d6efd);
    border-radius: 0.35rem 0.35rem 0 0;
}

/* Prima sezione */
.cms-legacy-content > h2:first-child {
    margin-top: 0;
}

/* Sottosezioni */
.cms-legacy-content h3 {
    color: #123b60;
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.4;
    margin: 1.75rem 0 0.75rem;
}

/* Livello ulteriore */
.cms-legacy-content h4 {
    color: #344054;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

/* Paragrafi */
.cms-legacy-content p {
    margin-bottom: 1rem;
}

/* Link */
.cms-legacy-content a {
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-legacy-content a:hover {
    color: #084298;
}

/* Immagini */
.cms-legacy-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Tabelle */
.cms-legacy-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.cms-legacy-content th,
.cms-legacy-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.cms-legacy-content th {
    background-color: #f2f6fa;
    font-weight: 600;
}

/* Elenchi */
.cms-legacy-content ul,
.cms-legacy-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.cms-legacy-content li {
    margin-bottom: 0.35rem;
}

.cms-event-content img {
    max-width: 100%;
    height: auto;
}

/* Immagine principale */
.cms-event-image img {
    object-fit: cover;
}

.cms-regional-orders-map {
    max-width: 160px;
    height: auto;
}

.cms-regional-order {
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease;
}

.cms-regional-order:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1) !important;
}

.cms-regional-order h2 {
    color: #123b60;
    line-height: 1.4;
}

.cms-regional-order-contacts {
    font-size: 0.95rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.cms-regional-order-contacts a {
    font-weight: 500;
}

.cms-contact-icon {
    display: inline-block;
    margin-right: 0.2rem;
}

.cms-election-table {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.cms-election-table .table {
    min-width: 700px;
    margin-bottom: 0;
}

.cms-election-table th,
.cms-election-table td {
    padding: 1rem;
}

.cms-election-table thead th {
    color: #123b60;
    font-weight: 700;
    vertical-align: middle;
}

.cms-election-table tbody th {
    font-weight: 700;
    white-space: nowrap;
}

.cms-election-table a {
    font-weight: 600;
    text-underline-offset: 3px;
}

@media (max-width: 576px) {
    .cms-election-table th,
    .cms-election-table td {
        padding: 0.75rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cms-legacy-content {
        font-size: 1rem;
    }

    .cms-legacy-content h2 {
        font-size: 1.15rem;
        padding: 0.85rem 1rem;
        margin-top: 1.75rem;
    }

}