body{
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.translation-column {
    font-size: 16px;
}

#pagine-utili{
    position: fixed;
    top: 40px;
    right: 10px;
    z-index: 10000;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
}

#pagine-utili a {
    text-decoration: none;
    color: #007cba;
    margin-right: 10px;
}

/* Stili personalizzati per il template traduzioni */
.translation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-container-4 {
    grid-template-columns: repeat(4,1fr);
    display: grid;
    gap: 30px;
}

.translation-column {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.translation-column h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
    color: #007cba;
}

.language-selector {
    margin-bottom: 20px;
}

.language-selector select {
    width: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    float: left;
}

.content-area {
    min-height: 300px;
    line-height: 1.6;
}

.sync-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sync-btn, .export-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* margin-top: 20px; */
}

.sync-btn {
    background-color: #f0f0f0;
    color: #333;
}

.sync-btn:hover {
    background-color: #e0e0e0;
}

.sync-btn.active {
    background-color: #007cba;
    color: white;
}

.export-btn {
    background-color: #0073aa;
    color: white;

}

.export-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.export-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Modal per esportazione InDesign */
.export-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.export-options {
    margin: 20px 0;
}

.export-options label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.export-options label:hover {
    background-color: #f8f9fa;
}

.export-options input[type="radio"] {
    margin-right: 10px;
}

.export-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
}

.export-info p {
    margin: 8px 0;
}

.export-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.export-btn.primary {
    background-color: #007cba;
    color: white;
    padding: 12px 24px;
}

.export-btn.primary:hover {
    background-color: #005a87;
}

.export-btn.secondary {
    background-color: #6c757d;
    color: white;
    padding: 12px 24px;
}

.export-btn.secondary:hover {
    background-color: #545b62;
}

/* Notifiche */
.export-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.grid-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
}

.export-notification.success {
    background-color: #28a745;
}

.export-notification.error {
    background-color: #dc3545;
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stili per la vista sincronizzata */
.paragraph-sync {
    font-size: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.paragraph-sync:hover,
.paragraph-sync.highlighted {
    background-color: #f0f8ff;
    border-color: #007cba;
}

.paragraph-original,
.paragraph-translation {
    padding: 10px;
    border-radius: 4px;
}

.paragraph-original {
    background-color: #f8f9fa;
}

.paragraph-translation {
    background-color: #fff8e1;
}

.paragraph-missing {
    background-color: #fee;
    color: #999;
    font-style: italic;
    text-align: center;
}

.paragraph-counter {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-weight: 600;
}

/* Tabelle nel contenuto */
.content-area table,
.entry-content table,
.paragraph-sync table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 1.75em 0;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
}

.content-area table caption,
.entry-content table caption,
.paragraph-sync table caption {
    caption-side: top;
    font-weight: 600;
    text-align: left;
    padding: 0 0 0.75em;
    color: #444;
}

.content-area table th,
.entry-content table th,
.content-area table td,
.entry-content table td,
.paragraph-sync table th,
.paragraph-sync table td {
    border: 1px solid #d9d9d9;
    padding: 10px 14px;
    vertical-align: top;
    text-align: left;
}

.content-area table thead th,
.entry-content table thead th,
.paragraph-sync table thead th {
    background: #007cba;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.content-area table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
.paragraph-sync table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.content-area table tbody tr:hover,
.entry-content table tbody tr:hover,
.paragraph-sync table tbody tr:hover {
    background: #f0f8ff;
}

/* Stato evidenziato (facoltativo via classe) */
.content-area table tr.highlight,
.entry-content table tr.highlight,
.paragraph-sync table tr.highlight {
    background: #fff3cd !important;
}

/* Tabelle compatte (aggiungere classe .table-compact al tag table) */
.content-area table.table-compact th,
.entry-content table.table-compact th,
.content-area table.table-compact td,
.entry-content table.table-compact td,
.paragraph-sync table.table-compact th,
.paragraph-sync table.table-compact td {
    padding: 6px 10px;
    font-size: 14px;
}

/* Contenitore responsive opzionale (wrappare la tabella in .table-responsive) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 20px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a7a7a7;
}

/* Messaggio per celle vuote (aggiungere classe .empty) */
.content-area table td.empty,
.entry-content table td.empty,
.paragraph-sync table td.empty {
    color: #999;
    font-style: italic;
}

/* Pulsanti o link nelle celle */
.content-area table a.button,
.entry-content table a.button,
.paragraph-sync table a.button {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}

.content-area table a.button:hover,
.entry-content table a.button:hover,
.paragraph-sync table a.button:hover {
    background: #005a87;
}

h2{
    text-transform: uppercase;
}
.custom-fields{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.riga_figura{
    display: grid;
    grid-template-columns: 2fr 3fr;
    column-gap: 30px;
}
.riga_figura.grande{
    display: grid;
    grid-template-columns: 2fr 3fr;
    column-gap: 30px;
}
.riga_figura.media{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}
.riga_figura.piccola{
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 30px;
}
.riga_figura.grande img {
    max-width: 400px;
    max-height: 400px;
}
.riga_figura.media img {
    max-width: 280px;
    max-height: 280px;
}
.riga_figura.piccola img {
    max-width: 180px;
    max-height: 180px;
}


.riga_figura img {
    /* padding: 50px; */
    padding-top: 15px;
    width: 100%;
}
.align-items-center {
    align-items: center;
}

/* Stile per selettore lingua e simboli in single-deas.php */
.translation-grid-2 {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.content-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 2rem;
    width: 1200px;
    margin: 0 auto;
}

.main-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    margin-top: 0;
}

/* Stile per i campi personalizzati */
.custom-fields {
    margin-bottom: 2rem;
}

.custom-field {
    margin-bottom: 0.5rem;
}

.custom-field.titolo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.75rem;
}

.custom-field.sottotitolo {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Stile per la lista dei simboli */
.simboli-list {
    margin: 1.5rem 0;
}

.simboli-list h3 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 0.75rem;
}

.simboli-active {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    /*flex-direction: column;*/

    flex-direction: row;

}

.simboli-active li {
    /*background-color: #f0f7ff;*/
    /*border: 1px solid #d1e6ff;*/
    /*color: #0066cc;*/
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    display: grid;
    align-items: center;
    gap: 10px;
    width: 45%;
    grid-template-columns: 100px auto;
}

.simboli-active li img {
    max-height: 35px;
    max-width: 65px;
}

/* Fix field con icone */
.fix-field {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.fix-field img {
    transition: transform 0.2s ease;
}

.fix-field img:hover {
    transform: scale(1.05);
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.lang-label {
    color: #666;
}

.available-languages {
    margin-left: auto;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-list li {
    display: flex;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.language-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.5rem 0.75rem;
}

.language-list li:hover {
    background-color: #e9ecef;
}

.language-list li.active {
    background-color: #007bff;
}

.language-list li.active a {
    color: white;
}

.language-list li.active .lang-code,
.language-list li.active .lang-name {
    color: white;
}

.lang-code {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: #007bff;
}

.lang-name {
    color: #555;
}

.deas-content {
    line-height: 1.6;
    color: #333;
}

/* Indicatore di caricamento */
.loading-translation {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.translation-error {
    padding: 1rem;
    margin: 1rem 0;
    background-color: #fff3f3;
    border-left: 3px solid #d9534f;
    color: #d9534f;
}

#original-content table, #original-content tbody, #original-content td, #original-content th, #original-content thead {
    border: solid 1px #666;
    border-collapse: collapse;
    padding: 5px;
    text-align: center;
}
img{
    max-width: 100%;
}
.text-align-right{
    text-align: right;
}
.uppercase{
    text-transform: uppercase;
}
select.accua-glossario-select {
    width: 100%;
    padding: 5px;
    font-size: 16px;
}
#accua-glossario {
    margin-top: 30px;
}

.accua-glossario-content {
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 30px;
    background: #fff;
}

.accua-glossario-widget {
    padding: 20px;
}

.selection-controls {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.language-selector-wrapper label,
.post-selector-wrapper label,
.post-eifu-selector-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.language-selector-wrapper select,
.post-selector-wrapper select,
.post-eifu-selector-wrapper select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.post-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.comparison-titles {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Stili per i box di contenuto - ora identici */
.translation-column {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Stili per evidenziare le differenze */
.diff-highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(255, 235, 59, 0.3);
}

/* Stili per la vista sincronizzata - contenuti identici */
.paragraph-sync {
    font-size: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.paragraph-sync:hover,
.paragraph-sync.highlighted {
    background-color: #f0f8ff;
    border-color: #007cba;
}

.paragraph-content {
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.paragraph-missing {
    background-color: #fee;
    color: #999;
    font-style: italic;
    text-align: center;
}

.paragraph-counter {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-weight: 600;
}

/* Pulsante per toggle evidenziazione */
#highlight-mode-btn {
    background-color: #ffc107;
    color: #000;
}

#highlight-mode-btn.active {
    background-color: #ff9800;
    color: #fff;
}

#highlight-mode-btn:hover {
    background-color: #ffb300;
}


.selection-controls-flex {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    /* padding: 20px; */
}

.affianca-toolbar-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.affianca-actions-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.affianca-actions-row .sync-btn {
    margin-top: 0;
}

.selection-controls-flex .post-selectors, .post-eifu-selector-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0; 
    padding-top: 0; 
    border-top: none;
}

.selection-controls-flex .post-selector-wrapper {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .selection-controls-flex {
        flex-wrap: wrap;
    }

    .selection-controls-flex .post-selectors,
    .post-eifu-selector-wrapper {
        grid-template-columns: 1fr;
    }
}


/* stile manuale */
blockquote {
    background: #fff6c3;
    padding: 1px 60px;
    margin-left: 0;
    background-image: url(../i/avvertenze.svg);
    background-repeat: no-repeat;
    background-size: 25px 25px;
    background-position: 20px 45%;
}
/* Fix per le dimensioni delle immagini della gallery */
.deas-content .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.deas-content .gallery-item {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

.deas-content .gallery-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
}

.deas-content .gallery-icon {
    text-align: center;
}

.deas-content .gallery-caption {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Menu */
.toolbar {
    grid-column: 1 / -1;
}
.menu-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

a.tab-link {
    display: inline-block;
    text-decoration: none;
    background: #f0f2f4;
    color: #555;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-left: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

a.tab-link.active {
    background: #fff;
    color: #0073aa;
    border-color: #fff;
    font-weight: 600;
    box-shadow: 0px -4px 8px rgb(100 100 100 / 10%);
}

a.tab-link:hover {
    background: #e2e6ea;
    color: #333;
}
a.tab-link.active:hover {
    background: #fff;
    color: #0073aa;
    /* border-color: #ccc; */
    font-weight: 600;
}

/* Tab come <span> (disabilitato senza contesto EIFU) */
span.tab-link {
    display: inline-flex;
    align-items: center;
    background: #f0f2f4;
    color: #555;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
}

span.tab-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Select EIFU nel menu-container (pagine generiche senza contesto) */
.tab-eifu-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-right: 4px;
}

.tab-eifu-select {
    font-size: 14px;
    color: #333;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    max-width: 260px;
}

.tab-eifu-select:focus {
    outline: 2px solid #0073aa;
    border-color: #0073aa;
}

.print-button {
    display: inline-block; 
    padding: 10px 20px; 
    background-color: #0073aa; 
    color: white; 
    text-decoration: none; 
    border-radius: 3px;
}

/* Toolbar semplice per utenti non loggati (senza tab) */
.toolbar--simple {
    width: 1264px;
    margin: 0 auto;
}

#major-publishing-actions {
    padding: 10px;
    clear: both;
    border-top: 1px solid #dcdcde;
    background: #f6f7f7;
    display: flex;
    align-items: flex-start !important;
    justify-content: space-between;
    flex-direction: column !important;
}

/* ============================================================
   RESPONSIVE - single-deas
   ============================================================ */

/* Tablet (max 1280px): sblocca il container fisso */
@media (max-width: 1280px) {
    .content-container {
        width: 100%;
        box-sizing: border-box;
    }

    .toolbar--simple {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Tablet (max 1024px): layout a colonna singola */
@media (max-width: 1024px) {
    .translation-grid-2 {
        padding: 1rem;
    }

    .content-container {
        padding: 1.5rem;
    }

    .riga_figura,
    .riga_figura.grande,
    .riga_figura.media,
    .riga_figura.piccola {
        grid-template-columns: 1fr;
    }

    .simboli-active li {
        width: 100%;
    }
}

/* Mobile (max 768px): single-deas */
@media (max-width: 768px) {
    .translation-grid-2 {
        padding: 0.75rem;
    }

    .content-container {
        padding: 1rem;
        border-radius: 0;
    }

    /* Header con titolo e logo */
    .custom-fields {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Simboli CE/MD/etc. e logo brand */
    .custom-fields.align-items-center {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .fix-field {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Figure e didascalie */
    .riga_figura,
    .riga_figura.grande,
    .riga_figura.media,
    .riga_figura.piccola {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Legenda simboli */
    .simboli-active {
        flex-direction: column;
    }

    .simboli-active li {
        width: 100%;
        grid-template-columns: 70px auto;
    }

    /* Tabelle nel contenuto principale */
    #original-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 13px;
    }

    /* Menu toolbar */
    .menu-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .print-button {
        padding: 8px 14px;
        font-size: 13px;
    }

    .main-title {
        font-size: 1.5rem;
    }
}


@media (max-width: 768px) {
    .post-selectors {
        grid-template-columns: 1fr;
    }

    .paragraph-sync {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .deas-content .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive (fallback se non si usa .table-responsive) */
@media (max-width: 768px) {
    .content-area table,
    .entry-content table,
    .paragraph-sync table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 14px;
    }
    .content-area table th,
    .entry-content table th,
    .content-area table td,
    .entry-content table td,
    .paragraph-sync table th,
    .paragraph-sync table td {
        padding: 8px 10px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .translation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .sync-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sync-btn, .export-btn {
        text-align: center;
    }

    .paragraph-sync {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .export-actions {
        flex-direction: column;
    }
    .language-switcher {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .available-languages {
        margin-left: 0;
        width: 100%;
    }

    .language-list {
        gap: 0.3rem;
    }

    .fix-field {
        flex-wrap: wrap;
    }
}


@media print {

    #pagine-utili {
        display: none;
    }
    .admin-menu.translation-grid-2, .available-languages{
        display: none;
    }
    body{
        background: #ffffff;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    .content-container {
        background-color: #ffffff;
        box-shadow: unset;
        padding: 2rem;
    }
    .translation-grid-2{
        padding: 0;
    }

 
    :root {
        /*--wp--style--global--content-size: 95%;*/
        /*--wp--style--global--wide-size: 95%;*/

        --wp--preset--font-size--x-large: 15px;
    }

    /* Interruzioni di pagina
    .preventivo-child-page {
        page-break-before: always;
    }

    /* Prima pagina senza interruzione * /
    .preventivo-child-pages .preventivo-child-page:first-child {
        page-break-before: auto;
    }

    /* Evita interruzioni all'interno di elementi importanti * /
    .preventivo-product,
    .preventivo-child-page {
        page-break-inside: avoid;
    }*/ 
        
    footer p,
    footer p.has-small-font-size {
        font-size: 10px !important;
    }

    .print-header-container {
        display: grid;
        grid-template-columns: 60px 2fr 1fr;
        align-items: center;
        justify-content: start;
        align-content: center;
    }
    .print-header-container p{
        margin: 0;
    }

    .print-header {
        position: running(printHeader);
        border-bottom: 1px solid #ccc;
        padding: 10px;
        font-size: 8pt;
        line-height: 10pt;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    .print-footer {
        position: running(printFooter);
        border-top: 1px solid #ccc;
        padding: 5px;
        font-size: 8pt;
        line-height: 10pt;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    .print-footer-container {
        display: grid;
        grid-template-columns:1fr 2fr;
        gap: 30px;
        align-items: center;
        justify-content: space-between;
    }
    .conteggio-page{
        text-align: right;
    }
    .conteggio-page::after {
        content: "" counter(page) "/" counter(pages);
    }
    ol.wp-block-list {
        padding-left: 0;
    }
    .riga_figura { 
        grid-template-columns: 1fr 3fr; 
    }
    #img-brand {
        height: 40px;
    }
        
    @page {
        @top-center {
            content: element(printHeader);
        }
        @bottom-center {
            content: element(printFooter);
        }
        margin-top: 5mm;    /* spazio per l'intestazione */
        margin-bottom: 20mm; /* spazio per il piè di pagina */
        margin-left: 15mm;    /* margine laterale sinistro */
        margin-right: 15mm;   /* margine laterale destro */
    }

    .has-global-padding{
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Dimensione paragrafi per la stampa */
    p {
        font-size: 8pt !important;
        line-height: 1.3 !important;
    }

    /* Dimensione liste per la stampa */
    ul, ol, li, table, td, th, div {
        font-size: 8pt !important;
        line-height: 1.3 !important;
    }
    h1{
        font-size: 15pt !important;
        line-height: 1.3 !important;
        font-weight: bold !important;
    }
    h1 span {
        font-weight: 400 !important;
    }
    h2, .sottotitolo{
        font-size: 11pt !important;
        line-height: 1.3 !important;
        break-after: avoid;
    }
    h3 {
        font-size: 9pt !important;
        line-height: 1.3 !important;
        font-weight: bold !important;
    }
    ul {
        padding: 0px 16px;
    }

    .fix-field img {
        width: 50px; 
    }
    .fix-field {
        gap: 1.2rem; 
    }
    .custom-fields {
        margin-bottom: 0;
    }
    .logo{
        width: 120px;
    }
    .simboli-list ul img {
        width: 45px;
    }
    /* Nasconde elementi normali del sito */
    header, footer, .site-header, .site-footer {
        display: none !important;
    }  

    .simboli-active li { 
        grid-template-columns: 50px auto;
    }

    #spazio-finale-print{
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: absolute; bottom: 0; width: 100%;
    }

    #dati-aziendali {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    /* Classi per forzare page break con paged.js */
    .page-break-before {
        break-before: page !important;
        page-break-before: always !important;
    }
    .didascalia-wrapper h2 { 
        font-size: 11pt !important; 
        font-weight: bold !important; 
        line-height: 1.3 !important; 
        text-transform: uppercase !important; 
        margin: 0 0 1mm 0 !important;
    }
}

