﻿/* ============================================================
   INDICE — style-add.css
   ============================================================
   Riga   20  Font + variabili CSS (:root)
   Riga   37  Tabella gare (#tg) — filtri, colonne, paginazione DataTables
   Riga  323  LOGIN PAGE 2026 — .lp-* (classi custom, no !important)
   Riga  637  DASHBOARD 2026  — .db-*, .content-wrapper, .box (AdminLTE)
   Riga 1088  SIDEBAR 2026    — .main-sidebar, .main-header, navbar (AdminLTE)
   Riga 1739  DROPDOWN MENU   — .dropdown-menu (Bootstrap)
   Riga 1779  Navbar page title
   Riga 1795  Form controls dashboard — .form-control, Select2 (Bootstrap)
   Riga 1832  Logout / email utente nel dropdown
   Riga 1707  Sidebar — last item separator
   Riga 1868  Modal cambio password — input, header, footer (Bootstrap)
   Riga 1958  Modal allegaFile — #modal-allegaFile (classi custom, no !important)
   Riga 2045  Bottone Cerca + umrisultato — #RP_GRID_umrisultato, .box
   Riga 2247  Footer — link privacy/cookie
   ============================================================ */

    /* font */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

.lora-400 {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

:root {
    --yellow: #FED620;
    --orange: #FED620;
    --black: #000;
    --white: #fff;
}

/* !important: style-dd.css di Redigo sovrascrive il colore del btn-primary con specificità più alta */
.theme-primary .btn-primary {
    color: var(--black) !important;
}

.theme-primary .btn-primary:hover,
.theme-primary .btn-primary:active,
.theme-primary .btn-primary:focus,
.theme-primary .btn-primary.active {
    color: var(--black) !important;
    background-color: #f5ca00 !important;
    border-color: #e0b800 !important;
}

/* bottone mostra filtri */
#mostra_filtri {
    background-color: #fed620;
    display: none;
}

#mostra_filtri.cliccato {
    background-color: #fff;
    border: 1px solid black;
    color: #000;
}

#filtri button:hover,
#mostra_filtri:hover {
    opacity: 0.8 !important;
}

/* bottoni filtri */
#bottone_cerca {
    background-color: #fed620;
}

/* immagini */
#tg img {
    width: 70px;
    border: 2px #fed620 solid;
    border-radius: 100%;
}

/* testi grigi */
#tg span {
    color: #8d8d8dff;
    font-size: 14px;
}

/* font tabella */
#tg thead th.text-center {
    text-align: center !important;
    vertical-align: middle !important;
}

#tg td {
    font-size: 16px;
    height: 100px;
}

.dt-column-title {
    color: white !important;
    font-size: 17px !important;
}

/* arrotondamento tabella */
#tg thead tr th:first-child {
    border-top-left-radius: 8px;
}

#tg thead tr th:last-child {
    border-top-right-radius: 8px;
}

#tg tbody>tr:last-child>td:first-child {
    border-bottom-left-radius: 8px;
}

#tg tbody>tr:last-child>td:last-child {
    border-bottom-right-radius: 8px;
}

#tg>tbody>tr:hover>* {
    background-color: #fffffffa;
}

/* colonne */
#tg th[data-dt-column="0"],
#tg td[data-dt-column="0"] {
    width: 9% !important;
}

#tg th[data-dt-column="1"],
#tg td[data-dt-column="1"] {
    width: 15% !important;
}

#tg th[data-dt-column]:not([data-dt-column="0"]):not([data-dt-column="1"]):not([data-dt-column="2"]),
#tg td[data-dt-column]:not([data-dt-column="0"]):not([data-dt-column="1"]):not([data-dt-column="2"]) {
    width: 10% !important;
}

td.dt-empty {
    display: none;
}

div.dt-paging {
    margin: 5px !important;
    display: flex;
    justify-content: flex-end;
}

/* Paginazione DataTables restyling */
/* !important qui: DataTables inietta stili inline e classi proprie ad alta specificità */
.dataTables_paginate .first,
.dataTables_paginate .last { display: none !important; }

.dataTables_paginate {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 0 !important;
}
.dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: none !important;
    background: transparent !important;
    color: #555 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s !important;
    box-shadow: none !important;
}
.dataTables_paginate .paginate_button:hover {
    background: #f5f5f7 !important;
    color: #000 !important;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: #FED620 !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
}
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    color: #ccc !important;
    cursor: default !important;
    background: transparent !important;
}

/* errore */
#nessun_elemento_trovato {
    font-size: 17px;
    display: none;
}

#filtri label {
    min-width: 5rem;
}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
    border-bottom: none;
}

#tg ::selection,
#filtri ::selection {
    background: #fed620;
    color: black;
}

@media screen and (max-width: 767px) {

    /* filtrei della tabella */
    #filtri {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    #filtri.aperti {
        display: block;
    }

    #filtri span label {
        display: inline-block;
        width: 30%;
    }

    #filtri span {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    #filtri span input,
    select {
        width: 45%;
        margin-left: auto;
        margin-right: auto;
    }

    /* mostra filtri */
    #mostra_filtri {
        padding: 0 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    #filtri span button {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

    /* colonne tbella */
    #tg-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #tg {
        min-width: 1424px;
    }

    #tg col:nth-child(1) {
        width: 100px;
    }

    #tg col:nth-child(2) {
        width: 200px;
    }

    #tg col:nth-child(3) {
        width: 100px;
    }

    #tg col:nth-child(n+4) {
        width: 150px;
    }

    #filtri .bottoni {
        padding: 0 5rem;
    }
}

/* old sidebar rules removed â€” see SIDEBAR 2026 section below */

.dt-paging::selection,
.paging_numbers::selection,
.pagination::selection,
.dt-paging-button::selection,
.ellipsis::selection {
    background-color: #FED620 !important;
    color: #000 !important;
}

/* scollbar */
/* ::-webkit-scrollbar {
    width: 0;
    height: 0;
} */

#tg-wrap,
#tg {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* ============================
   LOGIN PAGE 2026
   ============================ */

/* reset layout per pagina login */
body:has(.lp-wrapper) {
    background-color: #1a1a1a;
    overflow: hidden;
}

.lp-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

/* --- Pannello sinistro brand --- */
.lp-brand {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #1a1a1a 0%, #2b2b2b 60%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* decorazione geometrica yellow */
.lp-brand::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #FED620;
    opacity: 0.08;
}

.lp-brand::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #FED620;
    opacity: 0.05;
}

.lp-brand-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FED620, transparent);
}

.lp-brand-inner {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.lp-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 20px rgba(254, 214, 32, 0.3));
}

.lp-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
    line-height: 1;
}

.lp-accent {
    color: #FED620;
}

.lp-subtitle {
    color: #aaa;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.lp-divider {
    width: 40px;
    height: 3px;
    background: #FED620;
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.lp-tagline {
    color: #666;
    font-size: calc(0.9rem + 2px);
    font-style: italic;
}

/* --- Pannello destro form --- */
.lp-form-panel {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.lp-form-inner {
    width: 100%;
    max-width: 380px;
}

.lp-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- Campi form --- */
.lp-field {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.lp-field:focus-within {
    border-color: #FED620;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(254, 214, 32, 0.15);
}

.lp-field-icon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.lp-field:focus-within .lp-field-icon {
    color: #1a1a1a;
}

.lp-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    padding: 0.85rem 0.5rem 0.85rem 0;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.lp-input::placeholder {
    color: #aaa;
}

.lp-field-toggle {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* --- Link recupero/registrati --- */
.lp-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.lp-link {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.lp-link:hover {
    color: #000;
}

/* --- Bottone submit --- */
.lp-btn-submit {
    width: 100%;
    background: #FED620;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.lp-btn-submit:hover {
    background: #f5ca00;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(254, 214, 32, 0.35);
}

.lp-btn-submit:active {
    transform: translateY(0);
}

/* --- Language switcher --- */
.lp-lang {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.lp-lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.lp-lang-link:hover {
    color: #333;
}

/* --- Responsive mobile --- */
@media (max-width: 768px) {
    body:has(.lp-wrapper) {
        overflow: auto;
    }

    .lp-wrapper {
        flex-direction: column;
        position: relative;
        height: auto;
        min-height: 100vh;
    }

    .lp-brand {
        display: none;
    }

    .lp-logo {
        width: 80px;
        margin-bottom: 1rem;
    }

    .lp-title {
        font-size: 2.5rem;
    }

    .lp-form-panel {
        padding: 2rem 1.5rem 5rem;
    }
}

/* --- Form controls dentro .lp-form-inner --- */
.lp-form-inner .form-control,
.lp-form-inner input[type="text"],
.lp-form-inner input[type="email"],
.lp-form-inner input[type="password"] {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.82rem 1rem;
    font-size: 0.95rem;
    color: #1a1a1a;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.lp-form-inner .form-control:focus,
.lp-form-inner input[type="text"]:focus,
.lp-form-inner input[type="email"]:focus,
.lp-form-inner input[type="password"]:focus {
    border-color: #FED620;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(254,214,32,0.18);
    outline: none;
}

/* ============================
   DASHBOARD 2026
   ============================ */
/* !important in questa sezione: AdminLTE definisce .content-wrapper, .box, .box-body
   con regole proprie ad alta specificità — senza !important vengono sovrascritte. */

/* Sfondo bianco content-wrapper */
.content-wrapper {
    background-color: #fff !important;
}

/* Hall of fame â€” nome completato */
.hof-completed-name {
    background-color: #FED620 !important;
    font-weight: 700;
}

/* Completed hero */
@keyframes medal-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%       { transform: translateY(-10px) rotate(1deg); }
}
@keyframes medal-glow {
    0%, 100% { filter: drop-shadow(0 6px 20px rgba(254,214,32,0.45)) drop-shadow(0 0 40px rgba(254,214,32,0.15)); }
    50%       { filter: drop-shadow(0 12px 40px rgba(254,214,32,0.75)) drop-shadow(0 0 70px rgba(254,214,32,0.35)); }
}
@keyframes hero-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes title-pop {
    0%   { transform: scale(0.85); opacity: 0; }
    70%  { transform: scale(1.05); }
    100% { transform: scale(1);    opacity: 1; }
}
@keyframes stars-drift {
    0%   { opacity: 0.4; transform: scale(1)   translateY(0); }
    50%  { opacity: 0.9; transform: scale(1.12) translateY(-6px); }
    100% { opacity: 0.4; transform: scale(1)   translateY(0); }
}

.db-completed-hero {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    margin-bottom: 1.5rem;
    background: radial-gradient(ellipse at 50% 0%, #3a2a00 0%, #1a1400 55%, #111 100%);
    border-radius: 20px;
    border: 2px solid #FED620;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(254,214,32,0.08), 0 12px 48px rgba(0,0,0,0.55);
}
/* raggi decorativi in background */
.db-completed-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 0deg at 50% 110%, rgba(254,214,32,0.04) 0deg 10deg, transparent 10deg 20deg);
    pointer-events: none;
}
/* striscia shimmer sopra il bordo */
.db-completed-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FED620, #fff8c0, #FED620, transparent);
    background-size: 400px 100%;
    animation: hero-shimmer 2.4s linear infinite;
}

.db-completed-hero__medal {
    max-width: 300px;
    width: 52%;
    display: block;
    margin: 0 auto 1.5rem;
    animation: medal-float 4s ease-in-out infinite, medal-glow 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.db-completed-hero__stars {
    font-size: 1.6rem;
    letter-spacing: 0.5rem;
    color: #FED620;
    display: block;
    margin-bottom: 0.5rem;
    animation: stars-drift 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.db-completed-hero__title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #FED620;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.7rem;
    animation: title-pop 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 24px rgba(254,214,32,0.6), 0 2px 0 rgba(0,0,0,0.5);
}

.db-completed-hero__sub {
    font-size: 1.15rem;
    color: #d4c07a;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .db-completed-hero__title  { font-size: 2.2rem; }
    .db-completed-hero__medal  { width: 68%; }
    .db-completed-hero__stars  { font-size: 1.2rem; }
}

/* Ambassador banner */
.db-ambassador-banner {
    background: linear-gradient(90deg, #1a1a1a, #2b2b2b);
    border: 1.5px solid #FED620;
    border-radius: 12px;
    color: #FED620;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
}

/* Profile card */
.db-profile-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}
.db-profile-photo-wrap { flex-shrink: 0; }
.db-profile-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FED620;
    display: block;
}
.db-profile-photo--placeholder {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 3px solid #FED620;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #FED620;
    letter-spacing: -1px;
    user-select: none;
}
.db-profile-info { flex: 1; min-width: 0; }
.db-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.db-meta-badge {
    background: #f5f5f7;
    color: #555;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}
.db-profile-edit-btn {
    background: #FED620;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.db-profile-edit-btn:hover {
    background: #f5ca00;
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* Progress card */
.db-progress-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.db-progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.db-progress-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.2rem;
}
.db-progress-sub {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}
.db-progress-link {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.db-progress-link:hover { color: #1a1a1a; }

/* Stamps */
.db-stamps {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.db-stamp {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2.5px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s;
    background: #f5f5f5;
}
.db-stamp--done {
    border: 2.5px solid #FED620;
    box-shadow: 0 0 0 3px rgba(254,214,32,0.25);
    background: #fff;
}
.db-stamp--empty {
    border: 2.5px dashed #ddd;
    background: #f0f0f0;
}
.db-stamp-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
}
.db-stamp-img--grey {
    filter: grayscale(100%) opacity(0.35);
}
.db-stamp-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 80px;
}
.db-stamp-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Progress bar */
.db-progress-bar-wrap {
    background: #f0f0f0;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}
.db-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FED620, #f5ca00);
    border-radius: 99px;
    transition: width 0.6s ease;
    min-width: 0;
}

/* Motivational line */
.db-motivational {
    font-size: 0.82rem;
    font-weight: 600;
    color: #aaa;
    margin-top: 0.2rem;
}
.db-motivational .fa-trophy { color: #FED620; }
.db-motivational .fa-fire   { color: #f5a623; }

/* Quick links */
.db-quick-link {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: box-shadow 0.2s, transform 0.15s;
}
.db-quick-link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #1a1a1a;
}
.db-quick-link-icon {
    width: 42px; height: 42px;
    background: #FED620;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1a1a1a;
    flex-shrink: 0;
}
.db-quick-link-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}
.db-quick-link-sub {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1px;
}

/* Alert completamento profilo */
.db-alert-profile {
    background: #fff8e1;
    border: 1.5px solid #FED620;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.db-alert-icon {
    color: #f5a623;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.db-alert-text {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}
.db-alert-btn {
    background: #FED620;
    color: #1a1a1a;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.db-alert-btn:hover { background: #f5ca00; color: #1a1a1a; }

/* Passaporto virtuale â€” variante gialla */
.db-quick-link--passport {
    background: #FED620;
    color: #1a1a1a;
    border-color: #f5ca00;
    box-shadow: 0 1px 10px rgba(254,214,32,0.25);
}
.db-quick-link--passport:hover {
    color: #1a1a1a;
    box-shadow: 0 4px 18px rgba(254,214,32,0.4);
}
.db-quick-link--passport .db-quick-link-title { color: #1a1a1a; }
.db-quick-link--passport .db-quick-link-sub { color: #5a4d00; }
.db-quick-link--passport .fa-download { color: #1a1a1a; }
.db-quick-link-icon--dark {
    background: #1a1a1a;
    color: #FED620;
}

/* Ultimo accesso */
.db-last-access {
    text-align: right;
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 1rem;
    padding-right: 0.25rem;
}
.db-last-access strong { color: #888; }

/* Mobile */
@media (max-width: 576px) {
    .db-profile-card { flex-wrap: wrap; }
    .db-profile-edit-btn { width: 100%; text-align: center; }
    .db-profile-name { font-size: 1.15rem; }
    .db-stamp { width: 90px; height: 90px; }
    .db-stamp-wrap { width: 90px; }
    .db-stamp-img { width: 78px; height: 78px; }
    .db-alert-profile { flex-wrap: wrap; }
    .db-alert-btn { width: 100%; text-align: center; }
}

/* Dashboard layout â€” full width */
.content-wrapper {
    background-color: #f2f3f7 !important;
}
.content-wrapper .container-full {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ============================
   SIDEBAR 2026
   ============================ */
/* !important in questa sezione: AdminLTE usa !important sui propri stili di sidebar,
   navbar e content-wrapper. Per sovrascriverli serve !important anche qui.
   Non rimuovere senza aver verificato che AdminLTE non li rimetta. */

/* Sidebar background */
.main-sidebar,
.main-sidebar .sidebar {
    background: #2a2b30 !important;
}

.main-header {
    position: relative !important;
}
.main-header .logo,
.main-header div.logo-box {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    background: #2a2b30 !important;
    width: 230px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 10 !important;
}
.main-header .logo img,
.main-header div.logo-box img {
    width: 100px !important;
    height: auto !important;
}
.main-header .navbar,
.main-header .navbar-static-top {
    margin-left: 230px !important;
    min-height: 50px !important;
}
.main-sidebar {
    padding-top: 120px !important;
}

/* Separatore e margine tra logo e menu */
.sidebar-menu {
    margin-top: 8px !important;
    border-top: 1px solid #3d3e44 !important;
    padding-top: 8px !important;
}
.main-header .navbar,
.main-header .navbar-static-top {
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    box-shadow: none !important;
    margin-left: 230px !important;
}

/* box contenuto: sempre full-width, no margini auto laterali */
.content .box,
.content-wrapper .content .box {
    width: 100% !important;
    max-width: 100% !important;
}
.content .box-body,
.content-wrapper .content .box-body {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Rimuovi bordi e gap AdminLTE */
body,
.wrapper {
    background: #ffffff !important;
}
html {
    scrollbar-gutter: stable !important;
    overflow-y: scroll !important;
}
.content-wrapper {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    background-color: #f2f3f7 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh !important;
    width: calc(100vw - 230px) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* scrollbar-gutter: stable su html riserva sempre lo spazio scrollbar,
   quindi Bootstrap non deve aggiungere padding-right di compensazione */
body.modal-open {
    padding-right: 0 !important;
}
/* Icone/testi nella navbar diventano scuri */
.main-header .navbar .nav > li > a,
.main-header .navbar .navbar-text,
.main-header .navbar i {
    color: #333 !important;
}
.main-header .navbar .nav > li > a:hover {
    background: #f5f5f5 !important;
    color: #000 !important;
}

/* Nascondi hamburger su desktop */
@media (min-width: 768px) {
    .sidebar-toggle,
    [data-widget="pushmenu"],
    .navbar-toggle,
    .Stoggle,
    .btn-group.nav-item {
        display: none !important;
    }
}

/* Tab switcher Menu / REDIGO */
.box-header .nav-pills {
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    display: flex;
    justify-content: center;
}
.box-header .nav-pills .nav-link {
    border-radius: 7px;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    transition: background 0.18s, color 0.18s;
    border: none;
    background: transparent;
    transform: none !important;
}
.box-header .nav-pills .nav-link.active,
.box-header .nav-pills .nav-link:hover {
    background: #FED620 !important;
    color: #1a1a1a !important;
    transform: none !important;
}

/* Sidebar width â€” piÃ¹ stretta */
.main-sidebar {
    width: 230px !important;
    overflow: visible !important;
}
.main-sidebar .sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
}
.main-sidebar *,
.multinav {
    overflow: visible !important;
    scrollbar-width: none !important;
}
.main-sidebar ::-webkit-scrollbar,
.multinav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}
.content-wrapper,
.main-footer {
    margin-left: 230px !important;
}
.multinav {
    width: 230px !important;
    max-width: 230px !important;
}
@media (max-width: 767px) {
    /* Nascondi logo-box â€” su mobile Ã¨ nel navbar */
    .main-header .logo,
    .main-header div.logo-box {
        display: none !important;
    }

    /* Navbar full width, flex ordinato: hamburger | titolo | icona */
    .main-header .navbar,
    .main-header .navbar-static-top {
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 8px !important;
        height: 56px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
    }
    /* Hamburger â€” primo a sinistra */
    .main-header .navbar .app-menu,
    .main-header .navbar .sidebar-toggle,
    .main-header .navbar [data-widget="pushmenu"] {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    /* Titolo pagina â€” centro */
    .main-header .navbar .navbar-page-title {
        order: 2 !important;
        flex: 1 !important;
        padding: 0 10px !important;
        font-size: 1.1rem !important;
    }
    /* Icona utente â€” destra */
    .main-header .navbar .navbar-custom-menu,
    .main-header .navbar .r-side {
        order: 3 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    /* Hamburger visibile */
    .sidebar-toggle,
    [data-widget="pushmenu"],
    .navbar-toggle {
        display: flex !important;
    }

    /* Sidebar â€” nascosta fuori schermo, slide-in con push */
    html body .main-sidebar {
        display: block !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        height: calc(100vh - 56px) !important;
        z-index: 9999 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        transform: translateX(-230px) !important;
        -webkit-transform: translateX(-230px) !important;
        transition: transform 0.28s ease !important;
        -webkit-transition: -webkit-transform 0.28s ease !important;
    }
    /* Sidebar visibile + push content */
    html body.sidebar-open .main-sidebar {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
    }

    /* Backdrop â€” chiude sidebar al click fuori */
    #sidebar-backdrop {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 56px);
        z-index: 9998;
        background: transparent;
    }
    body.sidebar-open #sidebar-backdrop {
        display: block;
    }

    /* Logo mobile in cima alla sidebar */
    .sidebar-mobile-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 90px !important;
        padding: 70px 10px !important;
        background: #2a2b30 !important;
        margin-bottom: 0 !important;
    }
    .sidebar-mobile-logo img {
        height: 105px !important;
        width: auto !important;
    }
    .sidebar-mobile-logo ~ *,
    .main-sidebar .sidebar,
    .main-sidebar section.sidebar,
    .main-sidebar .pt-3 {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Content â€” full width, sotto navbar fissa */
    .content-wrapper,
    .main-footer {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 56px !important;
        overflow-x: hidden !important;
        transition: transform 0.28s ease !important;
        -webkit-transition: -webkit-transform 0.28s ease !important;
    }
    /* Push content quando sidebar aperta */
    body.sidebar-open .content-wrapper,
    body.sidebar-open .main-footer {
        transform: translateX(230px) !important;
        -webkit-transform: translateX(230px) !important;
    }

    /* Form campi */
    .box-body {
        padding: 12px !important;
    }
    .form-control,
    .form-select {
        width: 100% !important;
        font-size: 16px !important;
    }
    .input-group .form-control {
        width: auto !important;
        flex: 1 1 auto !important;
    }
    .select2-container {
        width: 100% !important;
    }
    /* Box header flex wrap */
    .box-header.with-border {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 10px 12px !important;
    }
    .content {
        padding: 10px !important;
    }
    .container-full {
        padding: 0 !important;
    }
}

/* Sidebar menu items â€” stile MyCSI */
.sidebar-menu {
    padding-left: 0 !important;
    padding-right: 0;
    margin: 0;
    list-style: none;
}
.sidebar-menu > li > a {
    display: flex !important;
    align-items: center !important;
    width: 230px;
    height: 50px !important;
    padding: 0 1rem 0 0.75rem !important;
    color: #FFFFFF !important;
    font-size: 15px;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    background: transparent !important;
    transition: color 0.18s, border-color 0.18s, background 0.18s !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    transform: none !important;
    box-sizing: border-box;
}
.sidebar-menu > li > a i {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    flex-shrink: 0;
    margin-right: 10px;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.18);
    border-radius: 100px;
    color: #aaa;
    transition: color 0.18s, background-color 0.18s;
    padding-left: 1px !important;

}
.sidebar-menu > li > a .pull-right-container {
    margin-left: auto;
    display: flex !important;
    align-items: center;
}
/* freccia treeview via ::after â€” non dipende dal widget AdminLTE */
.sidebar-menu .treeview > a::after {
    content: '\f054'; /* fa-chevron-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    color: #777;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.22s ease, color 0.18s;
}
.sidebar-menu .treeview.menu-open > a::after {
    transform: rotate(90deg);
    color: #FED620;
}
/* nasconde eventuali frecce duplicate da AdminLTE */
.sidebar-menu .treeview > a .pull-right-container,
#redigo .pull-right-container { display: none !important; }
/* Hover â€” solo colore giallo, niente movimento */
.main-sidebar .sidebar-menu > li:hover > a,
.main-sidebar .sidebar-menu > li.active > a,
.main-sidebar .sidebar-menu > li.menu-open > a,
.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a {
    color: #FED620 !important;
    border-left-color: #FED620 !important;
    background: rgba(254, 214, 32, 0.06) !important;
    transform: none !important;
    margin-left: 0 !important;
    padding-left: 0.75rem !important;
}
.main-sidebar .sidebar-menu > li:hover > a i,
.main-sidebar .sidebar-menu > li.active > a i,
.main-sidebar .sidebar-menu > li.menu-open > a i,
.sidebar-menu > li:hover > a i,
.sidebar-menu > li.active > a i,
.sidebar-menu > li.menu-open > a i {
    color: #FED620 !important;
    background-color: rgba(254, 214, 32, 0.12) !important;
}
.sidebar-menu > li:hover > a span,
.sidebar-menu > li.active > a span,
.sidebar-menu > li.menu-open > a span,
.sidebar-menu .treeview-menu > li:hover > a,
.sidebar-menu .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu > li:hover > a span,
.sidebar-menu .treeview-menu > li.active > a span,
.sidebar-menu .treeview-menu .treeview-menu > li:hover > a,
.sidebar-menu .treeview-menu .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu .treeview-menu > li:hover > a span,
.sidebar-menu .treeview-menu .treeview-menu > li.active > a span {
    color: #FED620 !important;
}

/* Submenu (treeview) â€” stile MyCSI */
.sidebar-menu .treeview-menu {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    background: rgba(0,0,0,0.15);
    overflow: hidden !important;
}
.sidebar-menu .treeview-menu > li {
    padding: 0 !important;
    margin: 0 !important;
}
.sidebar-menu .treeview-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0.75rem;
    padding: 0 1rem 0 1.5rem !important;
    height: 46px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s;
    transform: none !important;
}
.sidebar-menu .treeview-menu > li > a span {
    text-align: left !important;
    flex: 1;
    margin-top: -6px !important;
}
.sidebar-menu .treeview-menu > li > a i {
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    color: #888;
    flex-shrink: 0;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.sidebar-menu .treeview-menu > li:hover > a,
.sidebar-menu .treeview-menu > li.active > a {
    color: #FED620 !important;
    transform: none !important;
    background: transparent !important;
    border-left-color: transparent !important;
}
.sidebar-menu .treeview-menu > li:hover > a i,
.sidebar-menu .treeview-menu > li.active > a i {
    color: #FED620 !important;
    background: none !important;
    border-radius: 0 !important;
}

/* menu principale: livello 2 e 3 â€” stessa indentazione di #redigo */
.sidebar-menu .treeview-menu > li > a {
    padding-left: 3.2rem !important;
}
.sidebar-menu .treeview-menu .treeview-menu > li > a {
    padding-left: 4.8rem !important;
}

/* redigo: rimuove qualsiasi separatore/bordo tra li nel menu */
#redigo .sidebar-menu li.header { display: block !important; }
#redigo .sidebar-menu hr { display: none !important; }
#redigo .sidebar-menu > li,
#redigo .sidebar-menu li {
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* redigo: annulla ps-5 (Bootstrap padding-left 3rem) sul contenitore menu */
#redigo .ps-5 {
    padding-left: 0 !important;
}
/* redigo: gerarchia indentazione */
#redigo .treeview-menu,
#redigo ul.treeview-menu {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#redigo .treeview-menu > li,
#redigo ul.treeview-menu > li {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* redigo: item attivo â€” testo e icona gialli */
#redigo .sidebar-menu li.active > a,
#redigo .sidebar-menu li.active > a span,
#redigo .treeview-menu li.active > a,
#redigo .treeview-menu li.active > a span {
    color: #FED620 !important;
}
#redigo .sidebar-menu li.active > a i,
#redigo .treeview-menu li.active > a i {
    color: #FED620 !important;
    background: none !important;
}

/* livello 2 */
#redigo .treeview-menu > li > a {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 3.2rem !important;
    font-size: 12px !important;
}
/* livello 3 */
#redigo .treeview-menu .treeview-menu > li > a {
    padding-left: 4.8rem !important;
    font-size: 11px !important;
}
#redigo .treeview-menu .treeview-menu > li > a i {
    font-size: 11px !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Pulizia cache â€” incollato in fondo alla sidebar */
.sidebar-bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 230px;
    background: #2a2b30;
    border-top: 1px solid #38393f;
    z-index: 1050;
}
.sidebar-bottom-action a {
    display: flex;
    align-items: center;
    padding: 0 1rem 0 0.75rem;
    height: 38px;
    color: #999;
    font-size: 12px;
    font-family: Poppins, sans-serif;
    text-decoration: none;
    transition: color 0.18s, background 0.18s;
    border-left: 3px solid transparent;
    gap: 0.5rem;
}
.sidebar-bottom-action a:hover {
    color: #FED620;
    border-left-color: #FED620;
    background: rgba(254,214,32,0.06);
}
.sidebar-bottom-action a i {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0,0,0,0.18);
    border-radius: 100px;
    color: #888;
    flex-shrink: 0;
    transition: color 0.18s, background-color 0.18s;
}
.sidebar-bottom-action a:hover i {
    color: #FED620;
    background-color: rgba(254,214,32,0.12);
}

/* Separator before "Torna al sito" */
.sidebar-menu > li:last-child {
    margin-top: 0.5rem;
    padding-bottom: 1rem;
}
.sidebar-menu > li:last-child > a {
    border-top: 1px solid #38393f !important;
}
.sidebar-menu > li > a > span {
    position: relative;
    top: -1px;
}
.sidebar-menu > li > a > i.si-nudge-r {
    position: relative;
    left: 1px;
}

/* Pulizia cache link */
a.link-white.small {
    color: #555 !important;
    font-size: 0.75rem !important;
    margin-top: 1.5rem !important;
    padding: 0.4rem 1.5rem !important;
    letter-spacing: 0.3px;
    transition: color 0.15s;
    display: block;
    text-align: left !important;
}
a.link-white.small:hover {
    color: #FED620 !important;
}

/* ============================
   DROPDOWN MENU
   ============================ */
/* !important in questa sezione: Bootstrap e AdminLTE stilano .dropdown-menu
   con border, padding e border-radius propri — serve !important per rimpiazzarli. */
.dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    padding: 6px !important;
    min-width: 180px !important;
    background: #fff !important;
    margin-top: 6px !important;
}
.dropdown-menu > li > a,
.dropdown-menu .dropdown-item {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: background 0.15s, color 0.15s !important;
}
.dropdown-menu > li > a:hover,
.dropdown-menu .dropdown-item:hover {
    background: #f5f5f7 !important;
    color: #000 !important;
}
.dropdown-menu > li > a:active,
.dropdown-menu .dropdown-item:active {
    background: #FED620 !important;
    color: #000 !important;
}
.dropdown-menu .divider,
.dropdown-menu .dropdown-divider {
    margin: 4px 8px !important;
    border-color: #efefef !important;
}


/* Navbar page title */
.navbar-page-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0;
    height: 100%;
    letter-spacing: 0.2px;
}
.navbar-page-title i {
    color: #1a1a1a;
    font-size: 1.3rem;
}

/* Form controls dashboard — bordi grigi (come login, no giallo) */
/* !important qui: Bootstrap e AdminLTE stilano .form-control con border e box-shadow
   propri; senza !important il tema AdminLTE rimette i bordi colorati. */
.content-wrapper .form-control,
.content-wrapper .form-select,
.theme-primary .form-control,
.theme-primary .form-select {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.content-wrapper .form-control:focus,
.content-wrapper .form-select:focus,
.theme-primary .form-control:focus,
.theme-primary .form-select:focus {
    border-color: #b0b0b0 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.07) !important;
    outline: none !important;
}
/* Select2 â€” bordo grigio come gli altri campi */
.content-wrapper .select2-container--default .select2-selection--single,
.content-wrapper .select2-container--default .select2-selection--multiple,
.theme-primary .select2-container--default .select2-selection--single,
.theme-primary .select2-container--default .select2-selection--multiple {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.content-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.content-wrapper .select2-container--default.select2-container--open .select2-selection--single,
.theme-primary .select2-container--default.select2-container--focus .select2-selection--single,
.theme-primary .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #b0b0b0 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.07) !important;
    outline: none !important;
}

/* Logout rosso nel dropdown */
.dropdown-menu a[href*="action=logout"],
.dropdown-menu .dropdown-item[href*="action=logout"] {
    color: #dc3545 !important;
}
.dropdown-menu a[href*="action=logout"] i,
.dropdown-menu .dropdown-item[href*="action=logout"] i {
    color: #dc3545 !important;
}
.dropdown-menu a[href*="action=logout"]:hover,
.dropdown-menu .dropdown-item[href*="action=logout"]:hover {
    background: #fff0f0 !important;
    color: #b02a37 !important;
}
.dropdown-menu a[href*="action=logout"]:hover i,
.dropdown-menu .dropdown-item[href*="action=logout"]:hover i {
    color: #b02a37 !important;
}

/* Email utente â€” p.dropdown-item non cliccabile, niente hover */
.dropdown-menu p.dropdown-item,
.dropdown-menu p.dropdown-item:hover,
.dropdown-menu p.dropdown-item:focus {
    cursor: default !important;
    background: transparent !important;
    pointer-events: none !important;
}

.sidebar-menu > li:last-child {
    border-top: 1px solid #38393f !important;
    padding-top: 0.5rem !important;
}
.sidebar-menu > li:last-child > a {
    border-top: none !important;
}

/* Modal cambio password — input */
/* !important qui: Bootstrap ha specificità alta su .modal-body .form-control,
   .modal-header, .modal-footer — serve !important per rimpiazzare colori e bordi. */
.modal-body .input-group {
    border-radius: 8px !important;
    overflow: hidden !important;
}
.modal-body .input-group .form-control {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-right: none !important;
    border-radius: 0 !important;
}
.modal-body .input-group .form-control:focus {
    border-color: #FED620 !important;
    box-shadow: none !important;
    z-index: 1 !important;
}
.modal-body .input-group .input-group-text {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    width: 42px !important;
    justify-content: center !important;
}
.modal-body .input-group .input-group-text i {
    width: 1em !important;
    text-align: center !important;
}
.modal-body .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-left: 1px solid #e0e0e0 !important;
    margin-left: 0 !important;
}
.modal-body .input-group .form-control { border-radius: 8px 0 0 8px !important; }
.modal-body .input-group .input-group-text { border-radius: 0 8px 8px 0 !important; }

/* Modal cambio password */
.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
}
.modal-header {
    background: #1a1a1a !important;
    border-bottom: none !important;
    padding: 1.1rem 1.5rem !important;
}
.modal-header .modal-title,
.modal-header h4,
.modal-header h5 {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.modal-header .btn-close {
    filter: invert(1) opacity(0.7) !important;
}
.modal-body {
    background: #fff !important;
    padding: 1.5rem !important;
}
.modal-body .form-control {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}
.modal-body .form-control:focus {
    border-color: #FED620 !important;
    box-shadow: 0 0 0 3px rgba(254,214,32,0.18) !important;
}
.modal-body .input-group-text {
    background: #f8f8f8 !important;
    border: 1.5px solid #e0e0e0 !important;
    color: #888 !important;
}
.modal-body a {
    color: #888 !important;
    font-size: 0.85rem !important;
}
.modal-footer {
    background: #fff !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 0.9rem 1.5rem !important;
    gap: 0.5rem !important;
}

/* Modal allegaFile â€” centering + stile */
#modal-allegaFile {
    overflow: hidden;
}
#modal-allegaFile .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3rem);
    justify-content: center;
}
#modal-allegaFile .modal-body {
    padding: 2rem 1.5rem;
}
#modal-allegaFile .modal-body form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#modal-allegaFile .modal-body input[type="file"] {
    width: 100%;
    align-self: stretch;
}
#modal-allegaFile .modal-body input[type="submit"],
#modal-allegaFile .modal-body button[type="submit"] {
    width: 50%;
    margin-top: 1.25rem;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
}
/* Nascondi la x originale di Redigo nell'header */
#modal-allegaFile .modal-header > button:not(.modal-close-btn),
#modal-allegaFile .modal-header > .close,
#modal-allegaFile .modal-header > a.close {
    display: none;
}
/* Stile bottoni nel body */
#modal-allegaFile .modal-body input[type="file"] {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    background: #f5f5f5;
    cursor: pointer;
    color: #000;
}
#modal-allegaFile .modal-body input[type="submit"],
#modal-allegaFile .modal-body button[type="submit"] {
    background: #FED620;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
#modal-allegaFile .modal-body input[type="submit"]:hover,
#modal-allegaFile .modal-body button[type="submit"]:hover {
    background: #f5ca00;
}

/* X button modale â€” globale */
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #aaa;
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
    z-index: 10;
}
.modal-close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.modal-header {
    position: relative !important;
}

/* Bottone Cerca â€” umrisultato filtri */
.theme-primary #bottone_cerca {
    background: #FED620 !important;
    color: #000 !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.theme-primary #bottone_cerca:hover {
    background: #f5ca00 !important;
}

/* â”€â”€ umrisultato â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
div.d-flex.align-items-center.justify-content-start { display: none !important; }
div.content-header { display: none !important; }
.paginate_button.first { display: none !important; }
.paginate_button.last { display: none !important; }
#RP_GRID_umrisultato_paginate a.paginate_button:hover { color: #000 !important; background: #f0f0f0 !important; border: none !important; }

#RP_GRID_umrisultato_paginate .paginate_button.previous,
#RP_GRID_umrisultato_paginate .paginate_button.next {
    font-size: 0 !important;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    padding: 0.35rem 0.75rem;
    line-height: 1;
    color: transparent;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    transition: all 0.15s ease;
}
#RP_GRID_umrisultato_paginate .paginate_button.previous::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f053";
    font-size: 0.8rem;
    color: #555;
}
#RP_GRID_umrisultato_paginate .paginate_button.next::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054";
    font-size: 0.8rem;
    color: #555;
}
#RP_GRID_umrisultato_paginate .paginate_button.previous:hover,
#RP_GRID_umrisultato_paginate .paginate_button.next:hover {
    border-color: #FED620 !important;
    background: #FED620 !important;
    box-shadow: 0 2px 8px rgba(254,214,32,0.35);
    transform: translateY(-1px);
    transition: all 0.15s ease;
}
#RP_GRID_umrisultato_paginate .paginate_button.previous:hover::before,
#RP_GRID_umrisultato_paginate .paginate_button.next:hover::before {
    color: #1a1a1a;
}
#RP_GRID_umrisultato_paginate .paginate_button.previous.disabled,
#RP_GRID_umrisultato_paginate .paginate_button.next.disabled {
    border-color: #e8e8e8 !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

.box {
    background: #fff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.box-body {
    background: #fff;
    padding: 1.25rem;
}

#RP_GRID_umrisultato thead th,
#RP_GRID_umrisultato thead td {
    background-color: #efefef;
    color: #444;
}
#RP_GRID_umrisultato tbody tr td { background-color: #fafafa; }
#RP_GRID_umrisultato tbody tr:nth-child(even) td { background-color: #f4f4f4; }
#RP_GRID_umrisultato tbody tr:hover td { background-color: #eaeaea; }

.box-body[style*="padding-bottom"] {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    max-width: 480px;
    margin: 1.5rem auto;
    gap: 1rem;
}
.box-body[style*="padding-bottom"] > span {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}
.box-body[style*="padding-bottom"] > span label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}
.box-body[style*="padding-bottom"] select {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100%;
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1.5l7 7 7-7' stroke='%23999' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 7px;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    font-size: 0.95rem;
    color: #1a1a1a;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s;
}
.box-body[style*="padding-bottom"] select:focus {
    background-color: #efefef;
    outline: none;
    box-shadow: 0 0 0 3px rgba(254,214,32,0.25);
}
.box-body[style*="padding-bottom"] > span .select2-container {
    width: 100%;
}
.box-body[style*="padding-bottom"] .select2-container--default .select2-selection--single {
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    height: auto;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    box-shadow: none;
}
.box-body[style*="padding-bottom"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: normal;
    padding: 0;
}
.box-body[style*="padding-bottom"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 12px;
}
.box-body[style*="padding-bottom"] .select2-container--default.select2-container--focus .select2-selection--single,
.box-body[style*="padding-bottom"] .select2-container--default.select2-container--open .select2-selection--single {
    background-color: #efefef;
    box-shadow: 0 0 0 3px rgba(254,214,32,0.25);
}
.box-body[style*="padding-bottom"] .bottoni {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0;
    width: 100%;
}
@media (max-width: 767px) {
    .box-body[style*="padding-bottom"] {
        max-width: 100%;
        padding: 0.75rem;
    }
    .box-body[style*="padding-bottom"] > span {
        flex-direction: column;
        align-items: flex-start;
    }
    .box-body[style*="padding-bottom"] > span select,
    .box-body[style*="padding-bottom"] > span .select2-container {
        width: 100%;
        flex: unset;
    }
    .box-body[style*="padding-bottom"] .bottoni button {
        width: 100%;
    }
}

/* umrisultato â€” solo utenti USER */
body.umrisultato-user .dataTables_length { display: none !important; }
body.umrisultato-user .dataTables_filter { display: none !important; }
body.umrisultato-user .dataTables_info { display: none !important; }
body.umrisultato-user th.handler,
body.umrisultato-user td.handler { display: none !important; }
body.umrisultato-user th.sorting::before,
body.umrisultato-user th.sorting::after,
body.umrisultato-user th.sorting_asc::before,
body.umrisultato-user th.sorting_asc::after,
body.umrisultato-user th.sorting_desc::before,
body.umrisultato-user th.sorting_desc::after { display: none !important; }

/* footer: testo versione nero, link policy gialli */
.main-footer .pull-right.d-none.d-sm-inline-block,
.main-footer .float-right.d-none.d-sm-inline-block {
    color: #111 !important;
}
.main-footer a[href*="privacy"],
.main-footer a[href*="cookie"],
.main-footer a[href*="policy"] {
    color: #be933b !important;
    font-weight: 600;
}
