/* PDFEditabile.it - Main Styles */

:root {
    --color-primary: #0066cc;
    --color-success: #00aa66;
    --color-danger: #cc3300;
    --color-bg: #f5f5f5;
    --color-text: #333333;
    --color-border: #dddddd;
    --spacing: 1rem;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Titoli con font Poppins */
h1, h2, h3, h4, h5, h6,
.logo {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
}

/* Main */
.main {
    min-height: calc(100vh - 300px);
}

.section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Upload Zone */
.upload-zone {
    text-align: center;
    padding: 3rem;
    border: 3px dashed var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(0, 102, 204, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-zone h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: #666;
    margin-bottom: 1.5rem;
}

.upload-info {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem !important;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #008855;
}

/* Progress */
.upload-progress {
    text-align: center;
    padding: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s;
}

.progress-text {
    font-weight: 600;
    color: var(--color-primary);
}

/* Loader / Spinner */
.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 102, 204, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.loader-text {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Editor */
.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-info {
    font-weight: 600;
}

.zoom-info {
    font-weight: 600;
    color: var(--color-primary);
    min-width: 50px;
    text-align: center;
}

.btn-zoom {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    background: white;
    border: 1px solid var(--color-border);
}

.btn-zoom:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.editor-canvas-container {
    position: relative;
    overflow: auto;
    max-height: 800px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

#pdf-canvas {
    display: block;
    margin: 0 auto;
}

/* Editor Layout */
.editor-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 968px) {
    .editor-content {
        grid-template-columns: 1fr;
    }
}

/* Fields Panel */
.fields-panel {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-height: 800px;
    overflow-y: auto;
}

.fields-panel h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.fields-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-item {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-border);
    transition: border-color 0.2s;
}

.field-item:focus-within {
    border-color: var(--color-primary);
}

.field-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.field-item input,
.field-item textarea,
.field-item select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-item input:focus,
.field-item textarea:focus,
.field-item select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.field-item textarea {
    resize: vertical;
    min-height: 80px;
}

.field-item-page {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

/* No fields message */
.no-fields-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-fields-message svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Fields Overlay (deprecated but kept for compatibility) */
.fields-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none; /* Hidden by default, using fields panel instead */
}

.field-overlay {
    position: absolute;
    border: 2px solid transparent;
    background: rgba(0, 102, 204, 0.1);
    transition: all 0.2s;
    pointer-events: all;
    padding: 4px;
    font-size: 14px;
}

.field-overlay:hover {
    border-color: rgba(0, 102, 204, 0.5);
    background: rgba(0, 102, 204, 0.15);
}

.field-overlay:focus {
    border-color: var(--color-primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.field-overlay--invalid {
    border-color: var(--color-danger);
    background: rgba(204, 51, 0, 0.1);
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.footer p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.footer-copyright {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.footer-details {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.footer-privacy {
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section {
        padding: 1rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

    .editor-toolbar {
        flex-direction: column;
    }

    .editor-canvas-container {
        max-height: 600px;
    }
}

/* Field Input (for standalone version) */
.field-input {
    pointer-events: all;
    font-family: inherit;
}

.field-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #999;
}

.toast.toast-info {
    border-left-color: var(--color-primary);
}

.toast.toast-success {
    border-left-color: var(--color-success);
}

.toast.toast-error {
    border-left-color: var(--color-danger);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    color: #999;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility */
[hidden] {
    display: none !important;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Modal Notification System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.modal-icon.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.modal-icon.error {
    background: #ffebee;
    color: #c62828;
}

.modal-icon.warning {
    background: #fff3e0;
    color: #e65100;
}

.modal-icon.info {
    background: #e3f2fd;
    color: #1565c0;
}

.modal-title {
    flex: 1;
}

.modal-title h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-title p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #666;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin: 0.5rem 0;
    color: #666;
}

.modal-body code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #c62828;
}

.modal-body pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 1rem 0;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Progress Modal */
.modal-progress {
    text-align: center;
}

.modal-progress .loader {
    margin: 2rem auto;
}

.modal-progress-text {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
}

.modal-progress-steps {
    margin-top: 1.5rem;
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    background: #f9f9f9;
}

.progress-step.active {
    background: #e3f2fd;
    border-left: 3px solid #1565c0;
}

.progress-step.completed {
    background: #e8f5e9;
}

.progress-step-icon {
    font-size: 1.5rem;
}

.progress-step-text {
    flex: 1;
    font-size: 0.95rem;
    color: #666;
}

.progress-step.active .progress-step-text {
    color: #1565c0;
    font-weight: 500;
}

.progress-step.completed .progress-step-text {
    color: #2e7d32;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-width: none;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 0.75rem 1.5rem 1.5rem;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-title h2 {
        font-size: 1.25rem;
    }
}

/* ========================================
   PDF ADVANCED EDITOR STYLES
   ======================================== */

/* Editor Control Bar (Top) */
.pdf-editor-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-editor-controls.hidden {
    display: none;
}

.controls-left,
.controls-center,
.controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls-center {
    flex: 1;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d0d0d0;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.control-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.control-btn.icon-btn {
    padding: 0.5rem;
    font-size: 1.2rem;
    min-width: 36px;
}

.control-btn.exit-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.control-btn.exit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.control-btn.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.control-btn.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.control-divider {
    width: 1px;
    height: 24px;
    background: #d0d0d0;
    margin: 0 0.25rem;
}

.control-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.control-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.editor-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.field-counter {
    font-size: 0.875rem;
    color: #666;
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* Component Toolbar (Left Sidebar) */
.pdf-editor-toolbar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 280px;
    background: white;
    border-right: 2px solid #e0e0e0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.pdf-editor-toolbar.hidden {
    display: none;
}

.toolbar-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toolbar-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.toolbar-search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.toolbar-components {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.toolbar-component {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s;
}

.toolbar-component:hover {
    background: #f8f9fa;
    border-color: #999;
    transform: translateX(4px);
}

.toolbar-component:active {
    cursor: grabbing;
}

.component-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.component-info {
    flex: 1;
    min-width: 0;
}

.component-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.125rem;
}

.component-desc {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Properties Panel (Right Sidebar) */
.pdf-properties-panel {
    position: fixed;
    right: 0;
    top: 60px;
    bottom: 0;
    width: 300px;
    background: white;
    border-left: 2px solid #e0e0e0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.pdf-properties-panel.hidden {
    display: none;
}

.properties-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.properties-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.property-section {
    margin-bottom: 1.5rem;
}

.property-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.property-field {
    margin-bottom: 1rem;
}

.property-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.375rem;
}

.property-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.property-input:focus {
    outline: none;
    border-color: #667eea;
}

.property-input-small {
    width: 80px;
    display: inline-block;
}

.property-value {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #666;
}

/* PDF Editor Overlay */
.pdf-editor-overlay {
    background: transparent;
    user-select: none;
}

/* PDF Field Elements */
.pdf-field {
    border-radius: 4px;
    font-family: Arial, sans-serif;
    user-select: none;
}

.pdf-field.selected {
    z-index: 101 !important;
}

.resize-handle {
    border-radius: 50%;
    transition: all 0.2s;
}

.resize-handle:hover {
    transform: scale(1.3);
}

/* No Selection Message */
.no-selection-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

/* Scrollbar Styling */
.toolbar-components::-webkit-scrollbar,
.properties-content::-webkit-scrollbar {
    width: 6px;
}

.toolbar-components::-webkit-scrollbar-track,
.properties-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.toolbar-components::-webkit-scrollbar-thumb,
.properties-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.toolbar-components::-webkit-scrollbar-thumb:hover,
.properties-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .pdf-editor-toolbar {
        width: 240px;
    }

    .pdf-properties-panel {
        width: 260px;
    }
}

@media (max-width: 968px) {
    .pdf-editor-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .controls-left,
    .controls-center,
    .controls-right {
        width: 100%;
        justify-content: space-between;
    }

    .pdf-editor-toolbar,
    .pdf-properties-panel {
        width: 100%;
        max-width: 320px;
    }

    .control-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .editor-title {
        font-size: 0.875rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hide sidebars by default on mobile - toggle with buttons */
    .pdf-editor-toolbar,
    .pdf-properties-panel {
        position: fixed;
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-transition: transform 0.3s ease;
        -moz-transition: transform 0.3s ease;
        -ms-transition: transform 0.3s ease;
        -o-transition: transform 0.3s ease;
        transition: transform 0.3s ease;
        z-index: 10000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }

    .pdf-properties-panel {
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
        transform: translateX(100%);
        left: auto;
        right: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    }

    .pdf-editor-toolbar:not(.hidden),
    .pdf-properties-panel:not(.hidden) {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }

    /* Touch-friendly controls */
    .control-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        -webkit-tap-highlight-color: transparent;
    }

    .control-btn.icon-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem;
        font-size: 1.3rem;
    }

    /* Larger resize handles for touch */
    .resize-handle {
        width: 16px !important;
        height: 16px !important;
        -webkit-tap-highlight-color: transparent;
    }

    /* Component items touch-friendly */
    .component-item {
        min-height: 50px;
        padding: 0.875rem;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Toolbar search */
    .toolbar-search {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Editor controls compact on mobile */
    .pdf-editor-controls {
        padding: 0.375rem 0.5rem;
        top: 0;
    }

    .controls-center {
        flex-direction: column;
        gap: 0.25rem;
    }

    .field-counter {
        font-size: 0.75rem;
    }

    /* Canvas container mobile */
    .editor-canvas-container {
        max-height: calc(100vh - 180px);
        -webkit-overflow-scrolling: touch;
    }

    /* Properties panel mobile */
    .property-input {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Checkbox and radio touch-friendly */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .pdf-editor-controls {
        padding: 0.25rem;
    }

    .control-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .control-btn.icon-btn {
        padding: 0.375rem;
        font-size: 1.1rem;
    }

    .editor-title {
        display: none; /* Hide title on very small screens */
    }

    .pdf-editor-toolbar,
    .pdf-properties-panel {
        width: 90vw;
        max-width: 90vw;
    }

    .component-item {
        padding: 0.75rem;
    }

    .component-name {
        font-size: 0.875rem;
    }

    .component-description {
        font-size: 0.75rem;
    }
}

/* Cross-browser CSS improvements */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Smooth scrolling for all browsers */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Disable text selection during drag */
.pdf-editor-overlay,
.pdf-field {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improved transitions cross-browser */
.pdf-field,
.control-btn,
.component-item {
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

/* Transform improvements */
.resize-handle:hover {
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -ms-transform: scale(1.3);
    -o-transform: scale(1.3);
    transform: scale(1.3);
}

/* Flexbox fallbacks */
.pdf-editor-controls {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.controls-left,
.controls-center,
.controls-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

/* ========================================
   HOMEPAGE & FEATURES PAGES STYLES
   ======================================== */

/* Header with Navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.logo a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.btn-hero {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.feature-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.feature-link:hover {
    color: #0052a3;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--color-bg);
    padding: 4rem 0;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-description {
    color: #666;
    line-height: 1.6;
}

.cta-box {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-success);
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.benefit-content p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: var(--color-bg);
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

/* Footer Enhanced */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-main {
    grid-column: 1;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: contents;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.footer-privacy-badge {
    font-size: 1rem;
    color: var(--color-success);
}

/* Editor Wrapper */
.editor-wrapper {
    padding: 3rem 0;
}

.upload-section {
    margin-bottom: 2rem;
}

.editor-section-content {
    margin-top: 2rem;
}

/* ========================================
   FEATURE PAGES STYLES
   ======================================== */

/* Feature Hero */
.feature-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: 3rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.feature-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Feature Content Layout */
.feature-content {
    padding: 2rem 0;
}

.feature-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.feature-article {
    max-width: 100%;
}

.feature-article h3 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.feature-article h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-article p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Feature Boxes */
.features-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-box {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.feature-box h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0 !important;
    color: var(--color-primary);
}

.feature-box p {
    font-size: 0.95rem;
    margin: 0;
    color: #666;
}

/* Step Cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    padding-top: 3rem;
}

.step-card-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h4 {
    margin: 0 0 0.75rem 0 !important;
    text-align: center;
}

.step-card p {
    text-align: center;
    font-size: 0.95rem;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.benefit-text h4 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.2rem;
}

.benefit-text p {
    margin: 0;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-box {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
}

.info-box h4 {
    margin: 0 0 1rem 0 !important;
    font-size: 1.1rem;
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: #666;
}

.info-box-green {
    background: #f1f8f4;
    border-color: var(--color-success);
}

.info-box-green h4 {
    color: var(--color-success);
}

.info-box-yellow {
    background: #fffbf0;
    border-color: #ffc107;
}

.info-box-yellow h4 {
    color: #f57c00;
}

.info-box-red {
    background: #fff5f5;
    border-color: var(--color-danger);
}

.info-box-red h4 {
    color: var(--color-danger);
}

/* Use Cases List */
.use-cases-list {
    list-style: none;
    margin: 1.5rem 0;
}

.use-cases-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.use-cases-list li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* FAQ Simple */
.faq-simple details {
    background: var(--color-bg);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius);
}

.faq-simple summary {
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.faq-simple p {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.cta-section h3 {
    color: white;
    margin: 0 0 0.5rem 0 !important;
}

.cta-section p {
    color: white;
    opacity: 0.95;
    font-size: 1.1rem;
}

/* Sidebar */
.feature-sidebar {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.sidebar-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-box h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.sidebar-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.sidebar-box-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-box-highlight h4,
.sidebar-box-highlight p {
    color: white;
}

.sidebar-box-highlight a {
    color: white;
    text-decoration: underline;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.sidebar-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

.sidebar-checklist {
    list-style: none;
    padding: 0;
}

.sidebar-checklist li {
    margin-bottom: 0.5rem;
    color: #666;
}

.sidebar-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.1rem;
}

.process-step p {
    font-size: 0.9rem;
    margin: 0;
}

.process-arrow {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Privacy Flow */
.privacy-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.privacy-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.privacy-step h4 {
    margin: 0.5rem 0 !important;
    font-size: 1rem;
}

.privacy-step p {
    font-size: 0.85rem;
    margin: 0;
}

.privacy-arrow {
    font-size: 2rem;
    color: var(--color-primary);
}

.privacy-badge-large {
    text-align: center;
    background: #f1f8f4;
    color: var(--color-success);
    padding: 2rem;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    margin: 2rem 0;
    border: 2px solid var(--color-success);
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-col {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.comparison-col h4 {
    margin: 0 0 1rem 0 !important;
}

.comparison-col ul {
    margin: 0;
    padding-left: 1.5rem;
}

.comparison-col li {
    margin-bottom: 0.5rem;
}

.comparison-table-detailed {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table-detailed table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table-detailed th,
.comparison-table-detailed td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table-detailed th {
    background: var(--color-bg);
    font-weight: 600;
}

.comparison-table-detailed .highlight-col {
    background: #f1f8f4;
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.tech-item h4 {
    margin: 0 0 0.5rem 0 !important;
    color: var(--color-primary);
}

.tech-highlight {
    background: #fffbf0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
    margin: 2rem 0;
}

.tech-highlight h4 {
    margin: 0 0 1rem 0 !important;
}

/* Security Features */
.security-features,
.security-guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item,
.guarantee-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.guarantee-icon,
.security-item h4::before {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.security-item h4,
.guarantee-item h4 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.1rem;
}

/* Browser Support */
.browser-support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.browser-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.browser-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.browser-item h4 {
    margin: 0.5rem 0 !important;
    font-size: 1rem;
}

.browser-item p {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 1rem 0;
}

.support-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f5e9;
    color: var(--color-success);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Shortcuts */
.shortcuts-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 2rem 0;
}

.shortcut-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.shortcut-row:last-child {
    border-bottom: none;
}

.shortcut-key {
    flex: 0 0 180px;
    font-weight: 600;
}

.shortcut-key kbd {
    background: var(--color-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 0.9rem;
}

.shortcut-desc {
    flex: 1;
    color: #666;
}

.shortcuts-mini {
    list-style: none;
    padding: 0;
}

.shortcuts-mini li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.shortcuts-mini kbd {
    background: var(--color-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Performance Items */
.performance-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.perf-item {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.perf-item h4 {
    margin: 0 0 0.5rem 0 !important;
}

/* Explanation Box */
.explanation-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--color-primary);
}

.explanation-box h4 {
    margin: 0 0 0.5rem 0 !important;
    color: var(--color-primary);
}

.explanation-box p {
    margin: 0 0 1.5rem 0;
}

.explanation-box p:last-child {
    margin-bottom: 0;
}

/* Verification Steps */
.verification-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.verification-step {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.verification-step h4 {
    margin: 0 0 0.5rem 0 !important;
    color: var(--color-primary);
}

/* Best Practices */
.best-practices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.practice-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.practice-icon {
    font-size: 1.5rem;
    color: var(--color-success);
    flex-shrink: 0;
}

.practice-item p {
    margin: 0;
}

/* Trust Badge Section */
.trust-badge-section {
    background: var(--color-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.trust-item h4 {
    margin: 0.5rem 0 !important;
}

.trust-item p {
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    .feature-content .container {
        grid-template-columns: 1fr;
    }

    .feature-sidebar {
        position: relative;
        top: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-flow,
    .privacy-flow {
        flex-direction: column;
    }

    .process-arrow,
    .privacy-arrow {
        transform: rotate(90deg);
    }

    .comparison-table {
        grid-template-columns: 1fr;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .feature-hero-title {
        font-size: 1.75rem;
    }

    .feature-hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .features-grid-small,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ENHANCED HEADER & FOOTER STYLES
   ======================================== */

/* Enhanced Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-hidden {
    transform: translateY(-100%);
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-cta {
    white-space: nowrap;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    padding-left: 2rem;
}

/* Body lock when mobile menu is open */
body.nav-open {
    overflow: hidden;
}

/* Enhanced Footer */
.footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 3rem 0 1.5rem;
    border-top: none;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    font-size: 2.5rem;
}

.footer-logo {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.footer-tagline {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-badge {
    background: rgba(0, 170, 102, 0.1);
    color: var(--color-success);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 170, 102, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-company-info {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-company-info li {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.footer-company-info strong {
    color: white;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #b0b0b0;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-privacy-badge {
    text-align: center;
    background: rgba(0, 170, 102, 0.1);
    color: var(--color-success);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    border: 1px solid rgba(0, 170, 102, 0.2);
}

.footer-privacy-badge strong {
    color: var(--color-success);
}

/* Mobile Responsive Header & Footer */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .header-nav.nav-open {
        transform: translateX(0);
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }

    .nav-link::after {
        display: none;
    }

    .btn-cta {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--color-bg);
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.dropdown-open .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .dropdown-item:hover {
        padding-left: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-main {
        text-align: center;
    }

    .footer-logo-section {
        justify-content: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .header {
        padding: 0.75rem 0;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-badge {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 1rem;
    }

    .footer-privacy-badge {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================================
   LEGAL PAGES STYLES
   Stili professionali per pagine legali (Terms, Privacy, Cookie Policy)
   ============================================================================ */

.legal-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

.legal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    border-bottom: 3px solid #0066cc;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.legal-meta {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0066cc;
    margin: 0 0 1rem;
    padding-top: 1rem;
}

.legal-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #004499;
}

.legal-section strong {
    font-weight: 600;
    color: #1a1a1a;
}

.legal-section code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table thead {
    background: #0066cc;
    color: #ffffff;
}

.cookie-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid #eee;
    color: #444;
}

.cookie-table tbody tr:hover {
    background: #f8f9fa;
}

.cookie-table code {
    background: #f0f0f0;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.85em;
    color: #d63384;
}

/* Header e Footer Semplificati per Legal Pages */
.header-simple {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.header-nav-simple {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav-simple .nav-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-nav-simple .nav-link:hover {
    color: #0066cc;
}

.footer-simple {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-simple-content {
    text-align: center;
}

.footer-simple-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-simple-content a {
    color: #6db3f2;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.footer-simple-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }

    .header-nav-simple {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================================================
   IMPROVED UI ANIMATIONS
   Animazioni e transizioni migliorate per UX professionale
   ============================================================================ */

/* Smooth Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

.btn-hero:hover,
.btn-cta:hover {
    animation: pulse 1.5s infinite;
}

/* Smooth Hover Effects */
.feature-card,
.benefit-item,
.step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.benefit-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left-width: 6px;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Improved Focus States */
*:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline-color: #004499;
    outline-width: 4px;
}

/* Progress Bar Animation */
@keyframes progress {
    0% {
        width: 0%;
    }
}

.progress-fill {
    animation: progress 2s ease-out forwards;
}

/* Badge Shine Effect */
@keyframes shine {
    0% {
        background-position: -100%;
    }
    100% {
        background-position: 200%;
    }
}

.hero-badge,
.footer-badge {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* ============================================================================
   ACCESSIBILITY IMPROVEMENTS
   Miglioramenti per accessibilità e screen readers
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0066cc;
    color: #ffffff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .feature-card,
    .benefit-item {
        border: 2px solid #000;
    }
}

/* ============================================================================
   PRINT STYLES
   Stili ottimizzati per stampa
   ============================================================================ */

@media print {
    .header,
    .footer,
    .nav,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .legal-content {
        box-shadow: none;
        padding: 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

