/* ============================================================
   PortaleSegnalazioniCAT
   Tema moderno - UI
   ============================================================ */


/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


    /* ------------------------------------------------------------
   CONTENUTO PRINCIPALE
   ------------------------------------------------------------ */

    body > .container {
        flex: 1;
        width: 100%;
    }

main {
    padding-top: 1.5rem;
}


/* ------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------ */

.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-brand {
    color: #172554 !important;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

    .navbar-brand:hover {
        color: #2563eb !important;
    }

.navbar .nav-link {
    color: #475569 !important;
    font-weight: 500;
    border-radius: 8px;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .navbar .nav-link:hover {
        color: #1d4ed8 !important;
        background-color: #eff6ff;
    }


    /* Logout */

    .navbar .nav-link.text-danger {
        color: #dc2626 !important;
    }

        .navbar .nav-link.text-danger:hover {
            color: #b91c1c !important;
            background-color: #fef2f2;
        }


/* ------------------------------------------------------------
   TITOLI
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #172554;
    font-weight: 650;
    letter-spacing: -0.02em;
}

h1 {
    margin-bottom: 1.5rem;
}


/* ------------------------------------------------------------
   CARD
   ------------------------------------------------------------ */

.card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}


/* ------------------------------------------------------------
   PULSANTI
   ------------------------------------------------------------ */

.btn {
    border-radius: 9px;
    font-weight: 600;
    padding: 0.55rem 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}

    .btn-outline-primary:hover {
        background-color: #2563eb;
        border-color: #2563eb;
    }

.btn:hover {
    transform: translateY(-1px);
}


/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */

.form-label {
    color: #334155;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 0.65rem 0.8rem;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:hover,
    .form-select:hover {
        border-color: #94a3b8;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    }


    /* ------------------------------------------------------------
   ACCESSIBILITA / FOCUS
   ------------------------------------------------------------ */

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }


/* ------------------------------------------------------------
   TABELLE
   ------------------------------------------------------------ */

.table {
    background-color: #ffffff;
    vertical-align: middle;
}

    .table thead th {
        color: #475569;
        background-color: #f8fafc;
        font-size: 0.875rem;
        font-weight: 600;
        border-bottom: 1px solid #e2e8f0;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .table tbody td {
        border-color: #f1f5f9;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}


/* ------------------------------------------------------------
   MESSAGGI
   ------------------------------------------------------------ */

.alert {
    border: 0;
    border-radius: 12px;
}

.alert-success {
    color: #166534;
    background-color: #dcfce7;
}

.alert-danger {
    color: #991b1b;
    background-color: #fee2e2;
}

.alert-warning {
    color: #854d0e;
    background-color: #fef3c7;
}

.alert-info {
    color: #1e40af;
    background-color: #dbeafe;
}


/* ------------------------------------------------------------
   LINK
   ------------------------------------------------------------ */

a {
    color: #2563eb;
}

    a:hover {
        color: #1d4ed8;
    }


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.footer {
    position: static;
    width: 100%;
    margin-top: 3rem;
    padding: 1.25rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb !important;
    color: #64748b !important;
    font-size: 0.875rem;
}

    .footer a {
        color: #475569;
        text-decoration: none;
    }

        .footer a:hover {
            color: #2563eb;
        }


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    main {
        padding-top: 1rem;
    }

    .card-body {
        padding: 1.1rem;
    }

    .navbar .nav-link {
        margin-top: 0.25rem;
    }
}


/* ------------------------------------------------------------
   HONEYPOT ANTI-BOT
   IMPORTANTE: NON MODIFICARE
   ------------------------------------------------------------ */

/*
   Il campo rimane presente nell'HTML ma viene posizionato
   fuori dall'area visibile.
*/

.honeypot-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   HOME - DASHBOARD MODERNA
   ============================================================ */

.home-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 1rem;
}


/* HERO */

.home-hero {
    margin-bottom: 2.5rem;
}

.home-hero-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    color: #1d4ed8;
    background-color: #dbeafe;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-hero h1 {
    max-width: 750px;
    margin-bottom: 0.8rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.home-hero p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* CARD PRINCIPALI */

.portal-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .portal-action-card:hover {
        transform: translateY(-4px);
        border-color: #bfdbfe;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05), 0 20px 40px rgba(15, 23, 42, 0.08);
    }


/* ICONE */

.portal-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 600;
}

.portal-action-icon-primary {
    color: #ffffff;
    background-color: #2563eb;
}

.portal-action-icon-secondary {
    color: #2563eb;
    background-color: #dbeafe;
}


/* CONTENUTO CARD */

.portal-action-content {
    flex: 1;
}

.portal-action-label {
    margin-bottom: 0.55rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portal-action-content h2 {
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

.portal-action-content p {
    max-width: 430px;
    margin-bottom: 1.5rem;
    color: #64748b;
    line-height: 1.65;
}


/* PULSANTI CARD */

.portal-action-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    text-align: left;
}

    .portal-action-button span {
        margin-left: 1rem;
        font-size: 1.25rem;
        transition: transform 0.15s ease;
    }

    .portal-action-button:hover span {
        transform: translateX(4px);
    }


/* STATO PORTALE */

.home-info {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #475569;
}

.home-info-indicator {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 0.9rem;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.home-info strong {
    margin-right: 0.4rem;
    color: #0f172a;
}

.home-info span {
    color: #64748b;
}


/* RESPONSIVE HOME */

@media (max-width: 767.98px) {

    .home-dashboard {
        padding-top: 1rem;
    }

    .home-hero {
        margin-bottom: 1.75rem;
    }

        .home-hero h1 {
            font-size: 2rem;
        }

    .portal-action-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .home-info {
        align-items: flex-start;
    }

        .home-info span {
            display: block;
            margin-top: 0.15rem;
        }
}
/* ============================================================
   NAVBAR MODERNA
   ============================================================ */

.portal-navbar {
    min-height: 72px;
    padding: 0.7rem 0;
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 14px rgba(15, 23, 42, 0.03);
}


/* ------------------------------------------------------------
   BRAND
   ------------------------------------------------------------ */

.portal-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1.5rem;
    text-decoration: none;
}

.portal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}

.portal-brand-name {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}


/* ------------------------------------------------------------
   MENU
   ------------------------------------------------------------ */

.portal-navbar .navbar-nav {
    align-items: center;
}

.portal-navbar .nav-link {
    position: relative;
    margin: 0 0.1rem;
    padding: 0.55rem 0.8rem !important;
    color: #475569 !important;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .portal-navbar .nav-link:hover {
        color: #1d4ed8 !important;
        background-color: #eff6ff;
    }


/* ------------------------------------------------------------
   AREA UTENTE
   ------------------------------------------------------------ */

.portal-navbar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.portal-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #1d4ed8;
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-user-name {
    max-width: 230px;
    overflow: hidden;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ------------------------------------------------------------
   LOGOUT
   ------------------------------------------------------------ */

.portal-logout-link {
    margin-left: 0.4rem;
    padding: 0.45rem 0.8rem;
    color: #dc2626;
    background-color: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

    .portal-logout-link:hover {
        color: #b91c1c;
        background-color: #fef2f2;
        border-color: #fca5a5;
    }


/* ------------------------------------------------------------
   MENU MOBILE
   ------------------------------------------------------------ */

.portal-navbar .navbar-toggler {
    padding: 0.4rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    box-shadow: none;
}

    .portal-navbar .navbar-toggler:focus {
        border-color: #93c5fd;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    }


/* ------------------------------------------------------------
   RESPONSIVE NAVBAR
   ------------------------------------------------------------ */

@media (max-width: 991.98px) {

    .portal-navbar {
        padding: 0.65rem 0;
    }

        .portal-navbar .navbar-collapse {
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid #e2e8f0;
        }

        .portal-navbar .navbar-nav {
            align-items: stretch;
        }

        .portal-navbar .nav-link {
            margin-bottom: 0.2rem;
        }

    .portal-navbar-user {
        align-items: center;
        margin-top: 0.8rem;
        margin-left: 0;
        padding-top: 0.8rem;
        border-top: 1px solid #e2e8f0;
    }

    .portal-user-name {
        max-width: none;
    }

    .portal-logout-link {
        margin-left: auto;
    }
}


@media (max-width: 575.98px) {

    .portal-brand-name {
        font-size: 0.95rem;
    }

    .portal-logo {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .portal-user-name {
        max-width: 160px;
    }
}

/* ============================================================
   LISTA SEGNALAZIONI
   ============================================================ */

.segnalazioni-page {
    width: 100%;
    padding: 2rem 0 1rem;
}


/* ------------------------------------------------------------
   HEADER PAGINA
   ------------------------------------------------------------ */

.segnalazioni-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.segnalazioni-header-action {
    flex: 0 0 auto;
    transform: translateY(10px);
}

.page-badge {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.7rem;
    color: #1d4ed8;
    background-color: #dbeafe;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.segnalazioni-header h1 {
    margin: 0 0 0.45rem;
    color: #0f172a;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.segnalazioni-header p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.segnalazioni-header-action {
    flex: 0 0 auto;
}


/* ------------------------------------------------------------
   CARD TABELLA
   ------------------------------------------------------------ */

.segnalazioni-table-card {
    overflow: hidden;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.05);
}

.segnalazioni-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

    .segnalazioni-table-header h2 {
        margin: 0 0 0.2rem;
        color: #0f172a;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .segnalazioni-table-header p {
        margin: 0;
        color: #64748b;
        font-size: 0.85rem;
    }


/* ------------------------------------------------------------
   TABELLA
   ------------------------------------------------------------ */

.portal-table {
    width: 100%;
    margin: 0;
    background-color: #ffffff;
}

    .portal-table thead th {
        padding: 0.9rem 1rem;
        color: #64748b;
        background-color: #f8fafc;
        border-top: 0;
        border-bottom: 1px solid #e2e8f0;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.025em;
        white-space: nowrap;
    }

    .portal-table tbody td {
        padding: 1rem;
        color: #475569;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.9rem;
        vertical-align: middle;
        white-space: nowrap;
    }

    .portal-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .portal-table tbody tr {
        transition: background-color 0.15s ease;
    }

        .portal-table tbody tr:hover {
            background-color: #f8fafc;
        }

.portal-table-primary {
    color: #0f172a !important;
    font-weight: 600;
}


/* ------------------------------------------------------------
   BADGE TIPO CLIENTE
   ------------------------------------------------------------ */

.portal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.portal-badge-blue {
    color: #1d4ed8;
    background-color: #dbeafe;
}

.portal-badge-purple {
    color: #7e22ce;
    background-color: #f3e8ff;
}

.portal-badge-green {
    color: #15803d;
    background-color: #dcfce7;
}


/* ------------------------------------------------------------
   NESSUN RISULTATO
   ------------------------------------------------------------ */

.portal-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.05);
}

.portal-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
    color: #2563eb;
    background-color: #dbeafe;
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 600;
}

.portal-empty-state h2 {
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-size: 1.35rem;
}

.portal-empty-state p {
    margin-bottom: 1.5rem;
    color: #64748b;
}


/* ------------------------------------------------------------
   NAVIGAZIONE INFERIORE
   ------------------------------------------------------------ */

.segnalazioni-footer-action {
    margin-top: 1.5rem;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    .segnalazioni-page {
        padding-top: 1rem;
    }

    .segnalazioni-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }
    
    .segnalazioni-header-action {
        transform: none;
    }

        .segnalazioni-header h1 {
            font-size: 1.8rem;
        }

    .segnalazioni-header-action .btn {
        width: 100%;
    }

    .segnalazioni-table-header {
        padding: 1rem;
    }

    .portal-table thead th,
    .portal-table tbody td {
        padding: 0.8rem;
    }

    .portal-empty-state {
        padding: 2.5rem 1.25rem;
    }
}
/* ============================================================
   NUOVA SEGNALAZIONE - FORM MODERNO
   ============================================================ */

.segnalazione-create-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 2rem 0 1rem;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.create-page-header {
    margin-bottom: 2rem;
}

    .create-page-header h1 {
        margin: 0 0 0.6rem;
        color: #0f172a;
        font-size: 2.4rem;
        font-weight: 700;
        letter-spacing: -0.035em;
    }

    .create-page-header p {
        max-width: 700px;
        margin: 0;
        color: #64748b;
        font-size: 1rem;
        line-height: 1.6;
    }


/* ------------------------------------------------------------
   SEZIONI FORM
   ------------------------------------------------------------ */

.create-section {
    margin-bottom: 1.5rem;
    overflow: visible;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.04);
}


/* ------------------------------------------------------------
   HEADER SEZIONE
   ------------------------------------------------------------ */

.create-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 18px 18px 0 0;
}

.create-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

.create-section-header h2 {
    margin: 0 0 0.15rem;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.create-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}


/* ------------------------------------------------------------
   CORPO SEZIONE
   ------------------------------------------------------------ */

.create-section-body {
    padding: 1.5rem;
}


/* ------------------------------------------------------------
   CAMPI FORM
   ------------------------------------------------------------ */

.create-section .form-label {
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.create-section .form-control,
.create-section .form-select {
    min-height: 46px;
    padding: 0.65rem 0.8rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.create-section textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.create-section .form-control:hover,
.create-section .form-select:hover {
    border-color: #94a3b8;
}

.create-section .form-control:focus,
.create-section .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}


/* ------------------------------------------------------------
   TESTI DI SUPPORTO
   ------------------------------------------------------------ */

.create-section .form-text {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
}


/* ------------------------------------------------------------
   VALIDAZIONE
   ------------------------------------------------------------ */

.create-section .text-danger {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.input-validation-error {
    border-color: #dc2626 !important;
}

    .input-validation-error:focus {
        border-color: #dc2626 !important;
        box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.12) !important;
    }


/* ------------------------------------------------------------
   MESSAGGIO CONTATTI
   ------------------------------------------------------------ */

.create-info-message {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    color: #1e40af;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 0.85rem;
}


/* ------------------------------------------------------------
   RICERCA CLIENTE
   ------------------------------------------------------------ */

#clienteSearchResults {
    position: relative;
    z-index: 10;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

    #clienteSearchResults .list-group-item {
        padding: 0.8rem 1rem;
        color: #334155;
        background-color: #ffffff;
        border-color: #f1f5f9;
        cursor: pointer;
    }

        #clienteSearchResults .list-group-item:hover,
        #clienteSearchResults .list-group-item:focus {
            color: #1d4ed8;
            background-color: #eff6ff;
        }


/* Cliente selezionato */

#clienteSelected {
    color: #166534;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 0.875rem;
}


/* ------------------------------------------------------------
   AZIONI FINALI
   ------------------------------------------------------------ */

.create-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

    .create-form-actions .btn {
        min-width: 160px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    .segnalazione-create-page {
        padding-top: 1rem;
    }

    .create-page-header h1 {
        font-size: 1.9rem;
    }

    .create-section-header {
        padding: 1rem;
    }

    .create-section-body {
        padding: 1.1rem;
    }

    .create-section-number {
        width: 38px;
        height: 38px;
    }

    .create-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .create-form-actions .btn {
            width: 100%;
        }
}
/* ============================================================
   LOGIN - ACCESSO PORTALE
   ============================================================ */

.login-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 3rem 0 1rem;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

    .login-header h1 {
        margin: 0 0 0.7rem;
        color: #0f172a;
        font-size: 2.6rem;
        font-weight: 700;
        letter-spacing: -0.04em;
    }

    .login-header p {
        margin: 0;
        color: #64748b;
        font-size: 1.05rem;
    }


/* ------------------------------------------------------------
   CARD ACCESSO
   ------------------------------------------------------------ */

.login-option-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .login-option-card:hover {
        transform: translateY(-4px);
        border-color: #bfdbfe;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05), 0 20px 40px rgba(15, 23, 42, 0.08);
    }


/* ------------------------------------------------------------
   ICONE ACCESSO
   ------------------------------------------------------------ */

.login-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20);
}

.login-option-icon-secondary {
    color: #2563eb;
    background-color: #dbeafe;
    box-shadow: none;
}


/* ------------------------------------------------------------
   CONTENUTO
   ------------------------------------------------------------ */

.login-option-content {
    flex: 1;
}

.login-option-label {
    margin-bottom: 0.55rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.login-option-content h2 {
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-option-content p {
    margin-bottom: 1.25rem;
    color: #64748b;
    line-height: 1.65;
}


/* ------------------------------------------------------------
   STATO EXTERNAL ID
   ------------------------------------------------------------ */

.login-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.7rem;
    color: #92400e;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}


/* ------------------------------------------------------------
   PULSANTE ACCESSO
   ------------------------------------------------------------ */

.login-option-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    text-align: left;
}

    .login-option-button span:last-child {
        margin-left: 1rem;
        font-size: 1.25rem;
        transition: transform 0.15s ease;
    }

    .login-option-button:hover span:last-child {
        transform: translateX(4px);
    }


/* ------------------------------------------------------------
   REGISTRAZIONE
   ------------------------------------------------------------ */

.login-register {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
}

    .login-register a {
        color: #2563eb;
        font-weight: 700;
        text-decoration: none;
    }

        .login-register a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }


/* ------------------------------------------------------------
   INDICATORE SICUREZZA
   ------------------------------------------------------------ */

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.85rem;
}

.login-security-indicator {
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 991.98px) {

    .login-page {
        max-width: 700px;
    }

    .login-option-card {
        min-height: auto;
    }
}


@media (max-width: 767.98px) {

    .login-page {
        padding-top: 1.5rem;
    }

    .login-header {
        margin-bottom: 1.75rem;
    }

        .login-header h1 {
            font-size: 2rem;
        }

    .login-option-card {
        padding: 1.5rem;
    }

    .login-register {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
/* ============================================================
   REGISTRAZIONE CLIENTE
   ============================================================ */

.register-page {
    max-width: 950px;
    margin: 0 auto;
    padding: 2.5rem 0 1rem;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.register-header {
    margin-bottom: 2.25rem;
    text-align: center;
}

    .register-header h1 {
        margin: 0 0 0.7rem;
        color: #0f172a;
        font-size: 2.5rem;
        font-weight: 700;
        letter-spacing: -0.04em;
    }

    .register-header p {
        max-width: 650px;
        margin: 0 auto;
        color: #64748b;
        font-size: 1rem;
        line-height: 1.6;
    }


/* ------------------------------------------------------------
   SEZIONI
   ------------------------------------------------------------ */

.register-section {
    margin-bottom: 1.5rem;
    overflow: visible;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.04);
}


/* ------------------------------------------------------------
   HEADER SEZIONE
   ------------------------------------------------------------ */

.register-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 18px 18px 0 0;
}

.register-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

.register-section-header h2 {
    margin: 0 0 0.15rem;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.register-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}


/* ------------------------------------------------------------
   CORPO SEZIONE
   ------------------------------------------------------------ */

.register-section-body {
    padding: 1.5rem;
}


/* ------------------------------------------------------------
   CAMPI
   ------------------------------------------------------------ */

.register-section .form-label {
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.register-section .form-control {
    min-height: 46px;
    padding: 0.65rem 0.8rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .register-section .form-control:hover {
        border-color: #94a3b8;
    }

    .register-section .form-control:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
    }

.register-section .form-text {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
}


/* ------------------------------------------------------------
   TIPOLOGIA CLIENTE
   ------------------------------------------------------------ */

.register-customer-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.register-customer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .register-customer-option:hover {
        background-color: #f8fafc;
        border-color: #93c5fd;
    }

    .register-customer-option:has(.form-check-input:checked) {
        background-color: #eff6ff;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
    }

    .register-customer-option .form-check-input {
        flex: 0 0 auto;
        margin-top: 0.2rem;
    }

    .register-customer-option span {
        display: flex;
        flex-direction: column;
    }

    .register-customer-option strong {
        color: #0f172a;
        font-size: 0.9rem;
    }

    .register-customer-option small {
        margin-top: 0.2rem;
        color: #64748b;
        font-size: 0.8rem;
    }


/* ------------------------------------------------------------
   INFORMATIVA
   ------------------------------------------------------------ */

.register-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.register-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #1d4ed8;
    background-color: #dbeafe;
    border-radius: 50%;
    font-weight: 700;
}

.register-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.register-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
}


/* ------------------------------------------------------------
   TURNSTILE
   ------------------------------------------------------------ */

.register-security {
    padding: 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.register-security-title {
    margin-bottom: 1rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}


/* ------------------------------------------------------------
   VALIDAZIONE
   ------------------------------------------------------------ */

.register-form .text-danger {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}


/* ------------------------------------------------------------
   AZIONI
   ------------------------------------------------------------ */

.register-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

    .register-actions .btn {
        min-width: 210px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    .register-page {
        padding-top: 1.5rem;
    }

    .register-header h1 {
        font-size: 2rem;
    }

    .register-section-header {
        padding: 1rem;
    }

    .register-section-body {
        padding: 1.1rem;
    }

    .register-section-number {
        width: 38px;
        height: 38px;
    }

    .register-customer-type {
        grid-template-columns: 1fr;
    }

    .register-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .register-actions .btn {
            width: 100%;
            min-width: 0;
        }
}
/* ============================================================
   FOOTER MODERNO
   ============================================================ */

.portal-footer {
    width: 100%;
    margin-top: 3rem;
    padding: 1.5rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.portal-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}


/* Brand */

.portal-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

.portal-footer-brand div {
    display: flex;
    flex-direction: column;
}

.portal-footer-brand strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-footer-brand span:not(.portal-footer-logo) {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.78rem;
}


/* Link footer */

.portal-footer-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #64748b;
    font-size: 0.82rem;
}

    .portal-footer-links a {
        color: #475569;
        font-weight: 600;
        text-decoration: none;
    }

        .portal-footer-links a:hover {
            color: #2563eb;
        }


/* Responsive */

@media (max-width: 575.98px) {

    .portal-footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .portal-footer-links {
        width: 100%;
        justify-content: space-between;
    }
}
/* ============================================================
   PRIVACY
   ============================================================ */

.privacy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 0 1rem;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.privacy-header {
    margin-bottom: 2rem;
}

    .privacy-header h1 {
        margin: 0 0 0.6rem;
        color: #0f172a;
        font-size: 2.4rem;
        font-weight: 700;
        letter-spacing: -0.035em;
    }

    .privacy-header p {
        max-width: 650px;
        margin: 0;
        color: #64748b;
        font-size: 1rem;
        line-height: 1.6;
    }


/* ------------------------------------------------------------
   CONTENUTO
   ------------------------------------------------------------ */

.privacy-card {
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 12px 30px rgba(15, 23, 42, 0.04);
}

.privacy-section h2 {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
}

.privacy-section p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   AVVISO
   ------------------------------------------------------------ */

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    color: #334155;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.privacy-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #92400e;
    background-color: #fef3c7;
    border-radius: 50%;
    font-weight: 700;
}

.privacy-notice strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #78350f;
}

.privacy-notice p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.6;
}


/* ------------------------------------------------------------
   AZIONI
   ------------------------------------------------------------ */

.privacy-actions {
    margin-top: 1.5rem;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    .privacy-page {
        padding-top: 1.5rem;
    }

    .privacy-header h1 {
        font-size: 2rem;
    }

    .privacy-card {
        padding: 1.25rem;
    }
}

/* ============================================================
   LISTA SEGNALAZIONI - RICERCA E FILTRI
   ============================================================ */

.segnalazioni-filter-card {
    margin-bottom: 1.5rem;
    padding: 1.4rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.02), 0 10px 25px rgba(15, 23, 42, 0.04);
}


/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */

.segnalazioni-filter-form .form-label {
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
}

.segnalazioni-filter-form .form-control,
.segnalazioni-filter-form .form-select {
    height: 46px;
    padding: 0.65rem 0.85rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .segnalazioni-filter-form .form-control:hover,
    .segnalazioni-filter-form .form-select:hover {
        border-color: #94a3b8;
    }

    .segnalazioni-filter-form .form-control:focus,
    .segnalazioni-filter-form .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
    }


/* ------------------------------------------------------------
   TESTO DI SUPPORTO
   ------------------------------------------------------------ */

.segnalazioni-filter-form .form-text {
    margin-top: 0.4rem;
    color: #94a3b8;
    font-size: 0.78rem;
}


/* ------------------------------------------------------------
   PULSANTE CERCA
   ------------------------------------------------------------ */

.segnalazioni-filter-form button[type="submit"] {
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}


/* ------------------------------------------------------------
   FILTRI ATTIVI
   ------------------------------------------------------------ */

.segnalazioni-filter-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.82rem;
}

    .segnalazioni-filter-active span {
        display: inline-flex;
        align-items: center;
        padding: 0.3rem 0.65rem;
        color: #1d4ed8;
        background-color: #eff6ff;
        border-radius: 999px;
        font-weight: 600;
    }

    .segnalazioni-filter-active a {
        color: #475569;
        font-weight: 600;
        text-decoration: none;
    }

        .segnalazioni-filter-active a:hover {
            color: #2563eb;
        }


/* ------------------------------------------------------------
   DISTANZA DALLA TABELLA
   ------------------------------------------------------------ */

.segnalazioni-filter-card + .segnalazioni-table-card,
.segnalazioni-filter-card + .portal-empty-state {
    margin-top: 0;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 991.98px) {

    .segnalazioni-filter-card {
        padding: 1.25rem;
    }

    .segnalazioni-filter-form button[type="submit"] {
        width: 100%;
    }
}


@media (max-width: 575.98px) {

    .segnalazioni-filter-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .segnalazioni-filter-active {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }
}