@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --pa-bg-1: #5a1fa6; /* viola */
    --pa-bg-2: #e3407a; /* magenta */
    --pa-bg-3: #0e8eb3; /* teal blu */
    --pa-card-bg: rgba(255,255,255,.06);
    --pa-card-border: rgba(255,255,255,.18);
    --pa-blur: saturate(140%) blur(6px);
    --pa-shadow: 0 10px 35px rgba(0,0,0,.25);
}

h1, h2, h3, h4, h5, h6 {
    color: #4d151c;
}

*:disabled {
    background-color: #f6f6f6 !important;
    opacity: 1;
}

label {
    margin-bottom: 4px;
    margin-top: 10px;
}

.form-check label {
    margin-top: 0;
    margin-bottom: 0;
}

.form-check-input:checked {
    background-color: #92151e;
    border-color: #0d6efd;
}

h1:focus {
    outline: none;
}

.btn-success {
    background-color: #92151e;
    border: none;
}

    .btn-success:hover {
        background-color: #cd5864;
    }

.btn-outline-primary {
    background-color: #4d151c;
    color: white;
    border: none;
}

    .btn-outline-primary:hover {
        background-color: #cd5864;
        border: none;
    }

.btn-primary {
    background: #4d151c;
}

    .btn-primary:hover {
        background-color: #cd5864;
        border: none;
    }


.btn-accedi {
    border: none !important;
    background-color: white !important;
    color: #4d151c !important;
}


.btn-registrati {
    border: none !important;
    background: #92151e !important;
    color: white !important;
}


html, body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.page-title {
    font-weight: 700;
    font-size: 3.5rem;
    text-align: center;
    z-index: 500;
    position: relative;
    color: white;
}

.page-subtitle {
    z-index: 500;
    position: relative;
    color: white;
}

.container-fluid {
    padding: 0 !important;
    overflow-x: hidden;
}

.admin-page {
    background-color: transparent;
    padding: 2rem;
    height: 100%;
    font-size: 1rem
}

    .admin-page .btn {
        font-size: .8rem;
    }

    .admin-page .btn-inline {
        margin-top: 22px;
    }


    .admin-page select {
        font-size: .8rem;
    }

    .admin-page input {
        font-size: .8rem;
    }

    .admin-page textarea {
        font-size: .8rem;
    }

    .admin-page td {
        font-size: .8rem;
        vertical-align: middle;
    }

    .admin-page th {
        font-size: .8rem;
        vertical-align: middle;
    }

    .admin-page .sidebar {
        list-style: none;
        padding: 0;
        /*border-left: solid 2px #999;*/
        border-right: solid 1px #e3e3e3;
    }

        .admin-page .sidebar .menu-title {
            border-left: solid 2px #999;
            border-bottom: solid 1px #e3e3e3;
            font-weight: bold;
            background-color: white;
            padding: 8px;
        }

            .admin-page .sidebar .menu-title:first-child {
                border-top: solid 1px rgb(227, 227, 227);
            }


    .admin-page .menu-item {
        display: flex;
        align-items: center;
        padding: .2rem;
    }

    .admin-page .sidebar .menu-item:has(.active) {
        border-left: solid 2px #2D3748;
    }

    .admin-page .sidebar .menu-item:hover {
        border-left: solid 2px #2D3748;
    }

    .admin-page .sidebar .menu-item {
        border-bottom: solid 1px #e3e3e3;
        background-color: white;
        border-left: solid 2px #999;
    }

        .admin-page .sidebar .menu-item a {
            text-decoration: none;
            color: #999;
            font-size: .9rem;
            display: block;
            padding: 8px;
            width: 100%;
        }

            .admin-page .sidebar .menu-item a.active {
                color: black;
            }

        .admin-page .sidebar .menu-item:hover {
            background-color: #f6f6f6;
        }

            .admin-page .sidebar .menu-item:hover a {
                color: black;
            }

.admin-page-header {
    background-color: #6d0e15;
    padding: 2rem;
    border-bottom: solid 1px rgba(0, 0, 0, 0.176);
    color: white;
}

.admin-pager {
    background-color: #f6f6f6;
    border: solid 1px #e3e3e3;
    padding: 10px;
}

.admin-pager-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .admin-pager-toolbar .btn-group {
        align-items: center;
    }


.rounded-btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
}

.public-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

    .public-btn-primary:hover {
        transform: translateY(-2px);
    }

.public-btn-outline-primary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .public-btn-outline-primary:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
    }


a:has(> .public-card) {
    text-decoration: none;
    color: inherit;
}

.public-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

    .public-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        /* border-color: #7c3aed;*/
    }

.public-card-registrazione {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 960px;
    margin: 0 auto;
}

    .public-card-registrazione .btn {
        font-size: .8rem;
    }

    .public-card-registrazione .border-big {
        height: 12px;
    }

    .public-card-registrazione label {
        font-weight: bold;
        margin-top: .5rem;
        margin-bottom: .5rem;
        font-size: .9rem;
    }

    .public-card-registrazione .form-check {
        display: flex;
        align-items: center;
        background-color: #EFF2FD;
        padding: 15px;
        margin-top: .5rem;
        border-radius: 15px;
    }

        .public-card-registrazione .form-check:hover {
            background: rgba(102, 126, 234, 0.2);
        }


    .public-card-registrazione .form-check-label {
        font-weight: normal !important;
        margin: 0;
    }

    .public-card-registrazione .form-check .form-check-input {
        margin-left: 0;
        margin-top: 0;
    }

.public-nav-registrazione {
    gap: 10px;
}

    .public-nav-registrazione .nav-link {
        padding: 0.75rem 1.5rem;
        background: #e2e8f0 !important;
        color: #718096;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        border-radius: 24px;
        text-align: left;
        cursor: default;
    }

        .public-nav-registrazione .nav-link.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        }

        .public-nav-registrazione .nav-link.completed {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
        }



.public-footer {
    /*background-color: #2D3748;*/
    padding: 1rem;
    color: white;
}

    .public-footer h4 {
        color: white;
    }

    .public-footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .public-footer ul li {
            margin-top: 1.5rem;
        }

            .public-footer ul li a {
                display: inline-block;
                text-decoration: none;
                color: white;
                transition: all 0.3s ease;
            }

                .public-footer ul li a:hover {
                    transform: translateX(5px);
                }

    .public-footer hr {
        border-color: white;
        margin-top: 4.5rem;
    }

    .public-footer .public-links-docs a {
        color: rgba(33, 37, 41, 0.75);
        text-decoration: none;
        font-size: 14px;
    }

.user-type {
    position: fixed;
    top: 3px;
    right: 1px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 24px;
    font-size: 0.7rem;
    z-index: 1001;
}


.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="10px"]::before {
    content: '10px';
}

.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before {
    content: '12px';
}

.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before {
    content: '14px';
}

.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before {
    content: '16px';
}


.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="10px"]::before {
    content: '10px';
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="12px"]::before {
    content: '12px';
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before {
    content: '14px';
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="16px"]::before {
    content: '16px';
}

a.logo img {
    width: 80px !important;
}



.top-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background-color: #6d0e15;
}

/* FOOTER */

/* Footer principale */
.public-footer {
    /*   background: #111;*/ /* nero elegante */
    background-color: #6d0e15;
    color: #ddd; /* testo grigio chiaro */
    /*font-family: "Helvetica Neue", Arial, sans-serif;*/
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 40px 0 20px 0;
    /* border-top: 2px solid #444;*/
}

    /* Logo */
    .public-footer .footer-logo img {
        width: 110px;
        padding-bottom: 20px;
        filter: brightness(0) invert(1); /* assicura logo bianco */
    }

    /* Righe principali */
    .public-footer .footer-row-1 {
        font-weight: bold;
        font-size: 1rem;
        margin-bottom: 5px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .public-footer .footer-row-2 {
        font-weight: normal;
        font-size: 1rem;
        margin-bottom: 10px;
        color: #fff;
    }

.public-footer-istituzionale .footer-row-3 {
    font-size: 0.7rem;
    margin-top:20px;
    margin-bottom: 10px;
    color: black;
    font-weight:bold;
}

.public-footer-istituzionale .footer-row-4 {
    font-weight: normal;
    font-size: 0.7rem;
    margin-bottom: 10px;
    color: black;
}

/* Testo GDPR */
.public-footer .footer-gdpr-txt {
    font-weight: normal;
    font-size: 0.7rem;
    margin-bottom: 5px;
    color: #fff;
}

/* Link GDPR */
.public-footer .footer-gdpr-link {
    font-weight: normal;
    font-size: 0.7rem;
    margin-bottom: 20px;
    color: #fff;
}

    .public-footer .footer-gdpr-link a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
        padding: 0 5px 0 0;
    }

        .public-footer .footer-gdpr-link a:hover {
            text-decoration: underline;
        }

.public-footer-istituzionale {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: white;
}

/* Responsive */
@media(max-width:1640px) {
    .user-type {
        display: none;
    }
}


@media(max-width:1024px) {

    .footer-gdpr-separator {
        display: none;
    }

    .public-footer .footer-gdpr-link a {
        display: block !important;
    }

    .top-background {
        bottom: 0;
        height: 100%;
    }

    .user-type {
        display: none;
    }

    ul#navMenu {
        border-top: 1px solid #cd5864;
        margin-top: 15px;
        border-bottom: 1px solid #cd5864;
        margin-bottom: 10px;
    }

        ul#navMenu li {
            text-align: center;
        }
}

@media (max-width: 768px) {
    .public-footer {
        text-align: center;
        padding: 30px 15px;
    }

        .public-footer .footer-logo img {
            margin: 0 auto 20px auto;
        }

        .public-footer .footer-gdpr-link {
            display: block;
        }

            .public-footer .footer-gdpr-link a {
                display: inline-block;
                margin: 3px 5px;
            }

    .user-type {
        display: none;
    }
}

@media print {
    /* Nasconde gli elementi non necessari */
    .navbar,
    .public-footer,
    .card-send-message {
        display: none !important;
    }

    /* Ottimizzazione generale per la stampa */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: #fff !important;
        margin: 0;
        padding: 10mm;
    }

    /* Rimuove tutti i bordi e sfondi dai form */
    form,
    fieldset,
    input,
    textarea,
    select,
    .form-control,
    .form-group,
    .input-group,
    .text-box {
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        background: none !important;
        outline: none !important;
        resize: none !important;
    }

        /* Stili per input e textarea */
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        input[type="date"],
        input[type="time"],
        input[type="datetime-local"],
        input[type="search"],
        input[type="url"],
        input[type="password"],
        textarea,
        select,
        .text-box,
        .form-control {
            /* Rimuove stili di form */
            border: none !important;
            border-bottom: 1px solid #ccc !important; /* Linea sottile per separazione visiva */
            border-radius: 0 !important;
            padding: 2px 0 !important;
            margin: 2px 0 !important;
            /* Testo completamente visibile */
            color: #000 !important;
            font-size: 11pt !important;
            font-weight: normal !important;
            /* Espande per mostrare tutto il contenuto */
            width: auto !important;
            min-width: 100% !important;
            height: auto !important;
            min-height: 1.2em !important;
            overflow: visible !important;
            /* Assicura che il testo sia leggibile */
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

    /* Textarea auto-espansione */
    textarea {
        height: auto !important;
        min-height: auto !important;
        overflow: hidden !important;
        page-break-inside: auto !important;
    }

    /* Select (dropdown) */
    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        border-bottom: 1px solid #ccc !important;
    }

    /* Label dei form */
    label {
        font-weight: bold !important;
        color: #000 !important;
        display: inline-block !important;
        margin-bottom: 2px !important;
        margin-top: 5px !important;
        page-break-after: avoid !important;
    }

    /* Checkbox e Radio button */
    input[type="checkbox"],
    input[type="radio"] {
        border: 1px solid #000 !important;
        width: 12px !important;
        height: 12px !important;
        margin-right: 5px !important;
        vertical-align: middle !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

        /* Mostra il valore checked */
        input[type="checkbox"]:checked,
        input[type="radio"]:checked {
            background-color: #000 !important;
        }

    /* Placeholder invisibile in stampa */
    ::placeholder {
        color: transparent !important;
    }

    ::-webkit-input-placeholder {
        color: transparent !important;
    }

    ::-moz-placeholder {
        color: transparent !important;
    }

    /* Pulsanti - li rende come testo semplice */
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .btn {
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #000 !important;
        font-weight: normal !important;
    }

        /* Nasconde i pulsanti di submit/reset se necessario */
        input[type="submit"],
        input[type="reset"],
        button[type="submit"] {
            display: none !important;
        }

    /* Gruppi di input */
    .input-group-addon,
    .input-group-btn {
        display: none !important;
    }

    /* Rimuove elementi decorativi */
    .form-control-feedback,
    .help-block,
    .input-group-addon {
        display: none !important;
    }

    /* Evita interruzioni di pagina nei form */
    form,
    .form-group,
    fieldset {
        page-break-inside: avoid !important;
    }

    /* Assicura che label e input rimangano insieme */
    label,
    label + input,
    label + textarea,
    label + select {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }

    /* Rimuove validazione visuale */
    .is-invalid,
    .is-valid,
    .was-validated {
        border-color: transparent !important;
    }

    /* Messaggi di errore nascosti */
    .invalid-feedback,
    .valid-feedback,
    .form-text {
        display: none !important;
    }
}
