/* ============================================
   BLOG STYLES - Matching Home Page Design
   ============================================ */

/* Hero Section Blog - Same as Home */
.blog-hero {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 6rem 0;
    text-align: center;
}

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

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.95;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

/* Blog Grid - 3 columns layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    cursor: pointer;
}

.blog-card:nth-child(even) {
    direction: ltr;
}

.blog-card:nth-child(even) > * {
    direction: ltr;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
}

.blog-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: none;
}

.blog-card-image::before {
    content: '📰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.2;
    z-index: 1;
}

.blog-card-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 2;
}

.blog-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 20px 0 20px;
    width: fit-content;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.3);
}

.blog-card-content {
    padding: 2rem 2rem 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: auto;
    justify-content: flex-start;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-card-title:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.blog-card:hover .blog-card-title {
    color: #f59e0b;
}

.blog-card-title-link {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.blog-card-title-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.blog-card:hover .blog-card-title-link {
    color: #f59e0b;
}

.blog-card-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-footer {
    padding: 0;
}

.blog-read-more {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.blog-read-more:hover {
    color: #d97706;
    gap: 0.75rem;
}

.blog-card:hover .blog-read-more {
    color: #d97706;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

.blog-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.blog-empty-text {
    font-size: 1.1rem;
    color: #64748b;
}

/* Pagination - Same Style as Home */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.blog-pagination a {
    background: #f8fafc;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.blog-pagination a:hover {
    background: #fcd34d;
    color: #1e293b;
    border-color: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.blog-pagination .active {
    background: #fcd34d;
    color: #1e293b;
    border: 2px solid #fcd34d;
}

/* Single Post */
.blog-post-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: gap 0.3s ease;
}

.blog-back-link:hover {
    gap: 12px;
}

.blog-post-header {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.blog-post-category {
    display: inline-block;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.blog-post-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.3);
}

.blog-post-category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 211, 77, 0.4);
    text-decoration: none;
    color: #1e293b;
}

.blog-post-category-link i {
    font-size: 1rem;
}

.blog-meta-category-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-meta-category-link:hover {
    color: #d97706;
    text-decoration: underline;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 20px;
}

.blog-post-meta {
    display: flex;
    gap: 25px;
    color: #718096;
    font-size: 0.95rem;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.blog-post-meta i {
    color: #f59e0b;
    margin-right: 8px;
}

.blog-post-content {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    overflow: hidden;
}

.blog-post-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    width: auto !important;
}

.blog-post-content figure {
    max-width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.blog-post-content figure img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: #d97706;
}

.blog-post-content code {
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.blog-post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.blog-post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.blog-post-footer {
    background: #f7fafc;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    color: #718096;
    font-size: 0.95rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card:nth-child(even) {
        direction: ltr;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-hero {
        padding: 4rem 0;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .blog-container {
        margin: 3rem auto;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-footer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .blog-card-description {
        font-size: 0.9rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-content {
        padding: 30px 20px;
    }
    
    .blog-post-header {
        padding: 30px 20px;
    }
    
    .blog-pagination a,
    .blog-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 3rem 0;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-container {
        margin: 2rem auto;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card-footer {
        padding: 0 1.25rem 1.25rem;
    }
    
    .blog-card-image {
        height: 160px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-pagination a,
    .blog-pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}


/* ============================================
   BLOG POST FEATURED IMAGE
   ============================================ */

.blog-post-featured-image {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.blog-post-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* ============================================
   BLOG AUTHOR SECTION
   ============================================ */

.blog-author-section {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.blog-author-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-author-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-author-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.blog-author-content h2 a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-author-content h2 a:hover {
    color: #d97706;
}

.blog-author-title {
    font-size: 0.95rem;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 20px;
}

.blog-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.blog-author-link:hover {
    gap: 12px;
    color: #d97706;
}

@media (max-width: 768px) {
    .blog-author-section {
        padding: 30px 20px;
    }
    
    .blog-author-card {
        padding: 20px;
    }
    
    .blog-author-content h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   BLOG COMMENTS SECTION
   ============================================ */

.blog-comments-section {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 50px;
}

.blog-comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-comments-title i {
    color: #f59e0b;
}

/* Comments List */
.blog-comments-list {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-no-comments {
    color: #718096;
    font-style: italic;
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 12px;
}

.blog-comment {
    margin-bottom: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.blog-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-comment-author {
    color: #1a202c;
    font-size: 1rem;
}

.blog-comment-date {
    color: #a0aec0;
    font-size: 0.85rem;
}

.blog-comment-content {
    color: #2d3748;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Comment Form */
.blog-comment-form-container {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
}

.blog-comment-form-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 25px;
}

.blog-comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #2d3748;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 5px;
}

.g-recaptcha {
    margin: 10px 0;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #1e293b;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 211, 77, 0.4);
}

.btn-submit-comment:active {
    transform: translateY(0);
}

/* Alerts */
.blog-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.blog-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.blog-alert-success i {
    color: #10b981;
}

.blog-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.blog-alert-error i {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-comments-section {
        padding: 30px 20px;
    }
    
    .blog-comment-form-container {
        padding: 20px;
    }
    
    .blog-comments-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-comments-section {
        padding: 20px;
    }
    
    .blog-comment-form-container {
        padding: 15px;
    }
    
    .blog-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-comments-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   PRINT STYLES - Ottimizzazione Stampa
   ============================================ */

@media print {
    /* Nascondi elementi non necessari */
    .blog-back-link,
    .blog-hero,
    .blog-pagination,
    .blog-comments-section,
    .blog-author-section,
    .footer,
    .header,
    nav,
    .whatsapp-widget {
        display: none !important;
    }
    
    /* Contenitore principale */
    .blog-post-container,
    .blog-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Header articolo */
    .blog-post-header {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-after: avoid;
    }
    
    .blog-post-title {
        font-size: 2rem;
        page-break-after: avoid;
    }
    
    .blog-post-meta {
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
        page-break-after: avoid;
    }
    
    /* Immagine in evidenza */
    .blog-post-featured-image {
        margin: 20px 0;
        page-break-inside: avoid;
        max-width: 100%;
    }
    
    .blog-post-image {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Contenuto articolo */
    .blog-post-content {
        background: white !important;
        box-shadow: none !important;
        border: none;
        padding: 0;
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
        margin-top: 20px;
        margin-bottom: 10px;
        page-break-after: avoid;
    }
    
    .blog-post-content h3 {
        font-size: 1.2rem;
        margin-top: 15px;
        margin-bottom: 8px;
        page-break-after: avoid;
    }
    
    .blog-post-content p {
        margin-bottom: 10px;
        orphans: 3;
        widows: 3;
    }
    
    .blog-post-content ul,
    .blog-post-content ol {
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .blog-post-content li {
        margin-bottom: 5px;
    }
    
    .blog-post-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .blog-post-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .blog-post-content code {
        background: #f5f5f5 !important;
        border: 1px solid #ddd;
        padding: 2px 4px;
        color: #000;
    }
    
    .blog-post-content pre {
        background: #f5f5f5 !important;
        border: 1px solid #ddd;
        color: #000;
        page-break-inside: avoid;
    }
    
    .blog-post-footer {
        background: white !important;
        border-top: 1px solid #ddd;
        margin-top: 20px;
        padding-top: 10px;
        font-size: 0.9rem;
        color: #666;
    }
    
    /* Griglia blog in stampa */
    .blog-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .blog-card {
        display: flex;
        flex-direction: column;
        background: white;
        border: 1px solid #ddd;
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
        box-shadow: none;
    }
    
    .blog-card:nth-child(even) {
        direction: ltr;
    }
    
    .blog-card-image {
        width: 100%;
        height: auto;
        max-height: 250px;
        margin-bottom: 0;
    }
    
    .blog-card-category {
        display: inline-block;
        background: white;
        border: 1px solid #ddd;
        color: #000;
        padding: 4px 12px;
        border-radius: 15px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        margin: 10px 15px 0 15px;
        width: fit-content;
    }
    
    .blog-card-content {
        pointer-events: auto;
        padding: 15px;
    }
    
    .blog-card-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
        page-break-after: avoid;
    }
    
    .blog-card-title-link {
        color: #000;
        text-decoration: none;
    }
    
    .blog-card-title-link::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .blog-card-description {
        font-size: 0.9rem;
        margin-bottom: 8px;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    
    .blog-card-meta {
        font-size: 0.8rem;
        border-top: 1px solid #ddd;
        padding-top: 8px;
    }
    
    .blog-read-more {
        display: none;
    }
    
    /* Rimuovi effetti hover */
    .blog-card:hover,
    .blog-post-category-link:hover,
    .blog-read-more:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Colori per stampa B/N */
    body {
        color: #000;
        background: white;
    }
    
    /* Evita page break nel mezzo di elementi importanti */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        page-break-inside: avoid;
        max-width: 100%;
    }
    
    table {
        page-break-inside: avoid;
    }
}
