/* ============================================================================
   PRINT.CSS — amministrazionetrasparente.online
   Stili per la stampa
   ============================================================================ */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

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

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    /* Nascondi elementi non necessari in stampa */
    .header,
    .footer,
    .skip-link,
    .nav,
    .header__toggle,
    .btn,
    .btn-group,
    .cta-section,
    .nav__cta,
    #contact-form,
    .form-success,
    .faq__icon {
        display: none !important;
    }

    /* Layout */
    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 1em 0;
    }

    /* Evita interruzioni di pagina */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }

    img,
    .card,
    table {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Tabelle */
    table {
        border-collapse: collapse;
    }

    th,
    td {
        border: 1px solid #ccc;
        padding: 4px 8px;
    }

    /* Grid come colonna singola */
    .grid {
        display: block;
    }

    .grid > * {
        margin-bottom: 1em;
    }

    /* Card senza bordi decorativi */
    .card {
        border: 1px solid #ccc;
        padding: 0.5em;
        margin-bottom: 1em;
    }

    /* Page header visibile in stampa */
    .page-header {
        padding: 0.5em 0;
        border-bottom: 2px solid #000;
        margin-bottom: 1em;
    }
}
