/* ============================================================
 * ACPU14 - admin.css
 * Stile del pannello admin
 * ============================================================ */

/* ===== LOGIN ===== */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(14px);
    border: 2px solid gold;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.6);
    animation: fadeIn .4s ease-out;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

.login-logo {
    width: 100px; height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border: 3px solid gold;
    box-shadow: 0 0 25px rgba(255,215,0,.5);
}
.login-logo img { width: 90%; height: 90%; object-fit: contain; }
.login-logo .fallback { font-size: 2rem; font-weight: 900; color: #1565c0; }

.login-card h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.login-sub {
    color: gold;
    font-size: .85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card label {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all .2s;
}
.login-card label:focus-within {
    border-color: gold;
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 3px rgba(255,215,0,.15);
}
.login-card label i { color: gold; width: 18px; font-size: 1rem; }
.login-card input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}
.login-card input::placeholder { color: rgba(255,255,255,.4); }

.btn-primary {
    margin-top: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1565c0, #03a9f4);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(3,169,244,.4);
}

.btn-link {
    display: inline-block;
    margin-top: 20px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .85rem;
    transition: color .2s;
}
.btn-link:hover { color: gold; }

/* ===== ALERT ===== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: .9rem;
    display: flex; align-items: center; gap: 10px;
    text-align: left;
}
.alert-error { background: rgba(244,67,54,.15); border: 1px solid #f44336; color: #ef9a9a; }
.alert-success { background: rgba(76,175,80,.15); border: 1px solid #4caf50; color: #a5d6a7; }
.alert-info { background: rgba(3,169,244,.15); border: 1px solid #03a9f4; color: #81d4fa; }
.alert-warning { background: rgba(255,152,0,.15); border: 1px solid #ff9800; color: #ffcc80; }

/* ===== HEADER ADMIN ===== */
.admin-header {
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255,215,0,.3);
    padding: 15px 20px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-header .brand {
    display: flex; align-items: center; gap: 12px;
    color: #fff; text-decoration: none;
}
.admin-header .brand img {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: white;
    object-fit: contain;
    border: 2px solid gold;
    padding: 3px;
}
.admin-header .brand-text {
    display: flex; flex-direction: column;
}
.admin-header .brand-text strong {
    font-size: 1rem; letter-spacing: 1px;
}
.admin-header .brand-text small {
    font-size: .7rem; color: gold; letter-spacing: 1.5px;
}
.admin-header nav {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap;
}
.admin-header nav a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .85rem;
    padding: 8px 14px;
    border-radius: 30px;
    transition: all .2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.admin-header nav a:hover, .admin-header nav a.active {
    background: rgba(255,215,0,.12);
    color: gold;
}
.admin-header .user-box {
    display: flex; align-items: center; gap: 10px;
    color: #fff;
    font-size: .85rem;
}
.admin-header .user-box .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0, #03a9f4);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; text-transform: uppercase;
    border: 2px solid rgba(255,255,255,.2);
}
.admin-header .btn-logout {
    color: #ef9a9a;
    font-size: 1.1rem;
    padding: 6px 10px;
    transition: all .2s;
}
.admin-header .btn-logout:hover { color: #f44336; transform: scale(1.1); }

/* ===== MAIN ADMIN ===== */
.admin-main {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 20px 60px;
}
.admin-title {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 15px;
    margin-bottom: 25px;
}
.admin-title h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex; align-items: center; gap: 12px;
}
.admin-title h1 i { color: gold; }
.admin-title .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-admin {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    border: 2px solid;
    transition: all .2s;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}
.btn-admin-primary {
    background: linear-gradient(135deg, #1565c0, #03a9f4);
    border-color: transparent;
    color: #fff;
}
.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(3,169,244,.4);
}
.btn-admin-outline {
    border-color: rgba(255,215,0,.5);
    color: gold;
}
.btn-admin-outline:hover { background: rgba(255,215,0,.12); }
.btn-admin-danger {
    border-color: #f44336;
    color: #ef9a9a;
}
.btn-admin-danger:hover { background: rgba(244,67,54,.15); }

/* ===== CONTATORI ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.stat-card {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,.2);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex; align-items: center; gap: 15px;
    transition: all .2s;
}
.stat-card:hover {
    border-color: gold;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,.4);
}
.stat-card .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-card.total .icon       { background: rgba(3,169,244,.2); color: #03a9f4; }
.stat-card.confermate .icon  { background: rgba(76,175,80,.2); color: #4caf50; }
.stat-card.attesa .icon      { background: rgba(255,152,0,.2); color: #ff9800; }
.stat-card.ritirate .icon    { background: rgba(244,67,54,.2); color: #f44336; }
.stat-card .info { flex: 1; min-width: 0; }
.stat-card .num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.stat-card .lbl {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
}

/* ===== FILTRI ===== */
.filters-bar {
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,.2);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.filters-bar label {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.filters-bar select, .filters-bar input {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.filters-bar select:focus, .filters-bar input:focus { border-color: gold; }
.filters-bar option { background: #1a237e; color: #fff; }

/* ===== TABELLA ===== */
.table-wrap {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,.2);
    border-radius: 16px;
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.admin-table thead {
    background: linear-gradient(135deg, rgba(21,101,192,.6), rgba(3,169,244,.4));
}
.admin-table th {
    padding: 14px 16px;
    text-align: left;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 16px;
    color: rgba(255,255,255,.9);
    border-top: 1px solid rgba(255,255,255,.06);
    vertical-align: middle;
}
.admin-table tbody tr:hover { background: rgba(255,215,0,.05); }

.admin-table .logo-cell {
    width: 56px;
    padding: 8px 12px;
}
.admin-table .logo-mini {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border: 2px solid gold;
}
.admin-table .logo-mini img { width: 90%; height: 90%; object-fit: contain; }
.admin-table .logo-mini .fallback {
    font-size: .7rem; font-weight: 900; color: #1565c0;
}

.badge-stato-table {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-stato-table.confermata { background: rgba(76,175,80,.2); color: #a5d6a7; border: 1px solid #4caf50; }
.badge-stato-table.attesa     { background: rgba(255,152,0,.2); color: #ffcc80; border: 1px solid #ff9800; }
.badge-stato-table.ritirata   { background: rgba(244,67,54,.2); color: #ef9a9a; border: 1px solid #f44336; }

.row-actions {
    display: flex; gap: 6px; justify-content: flex-end;
}
.row-actions a, .row-actions button {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}
.row-actions a:hover, .row-actions button:hover {
    background: rgba(255,255,255,.08);
    border-color: currentColor;
}
.row-actions .btn-edit:hover   { color: #03a9f4; }
.row-actions .btn-delete:hover { color: #f44336; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,.5);
}
.empty-state i {
    font-size: 3rem;
    color: rgba(255,215,0,.3);
    margin-bottom: 15px;
    display: block;
}

/* ===== FORM ===== */
.admin-form {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,.2);
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.form-section {
    margin-bottom: 28px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 {
    color: gold;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}
.form-group {
    display: flex; flex-direction: column; gap: 6px;
}
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.form-group label .req { color: #f44336; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="color"],
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: all .2s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: gold;
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 3px rgba(255,215,0,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: #1a237e; color: #fff; }
.form-group input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }

.form-help {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

.form-actions {
    display: flex; gap: 12px; justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
}

/* Upload logo */
.logo-upload {
    display: flex; align-items: center; gap: 20px;
    flex-wrap: wrap;
}
.logo-preview {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid gold;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-preview img { width: 90%; height: 90%; object-fit: contain; }
.logo-preview .fallback { font-size: 2rem; font-weight: 900; color: #1565c0; }

.upload-controls { flex: 1; min-width: 220px; }
.upload-controls input[type="file"] { display: none; }
.upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,.08);
    border: 2px dashed rgba(255,215,0,.4);
    border-radius: 12px;
    color: gold;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
}
.upload-btn:hover { border-color: gold; background: rgba(255,215,0,.1); }
.upload-info { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-header { padding: 12px 15px; }
    .admin-header .brand-text strong { font-size: .9rem; }
    .admin-header .brand-text small  { font-size: .6rem; }
    .admin-title h1 { font-size: 1.4rem; }
    .admin-form { padding: 20px 15px; }
    .admin-table th, .admin-table td { padding: 10px 10px; font-size: .8rem; }
    .stat-card .num { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block; width: 100%;
    }
    .admin-table tr {
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,215,0,.15);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 12px;
    }
    .admin-table td {
        border: none;
        padding: 8px 0;
        display: flex; justify-content: space-between; align-items: center;
        gap: 12px;
    }
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: gold;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .admin-table td.logo-cell { justify-content: flex-start; }
    .row-actions { justify-content: flex-end; }
}

/* ===== SECTION TITLE ===== */
.section-title {
    color: gold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,215,0,.2);
}
.section-title i { color: #03a9f4; }

/* ===== COUNTDOWN MINI ===== */
.countdown-mini {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,.3);
    border-radius: 30px;
    padding: 10px 18px;
    color: gold;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.countdown-mini strong { font-size: 1.3rem; color: #f59e0b; }
.countdown-mini i { color: gold; }

/* ===== TEAM LEADER CARD ===== */
.tl-card {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,215,0,.3);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.tl-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid gold;
    overflow: hidden;                 /* ⬅️ FORZA il taglio */
    flex-shrink: 0;
    box-shadow: 0 0 25px rgba(255,215,0,.4);
    position: relative;               /* ⬅️ crea contesto */
    box-sizing: border-box;           /* ⬅️ include padding */
}
.tl-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;              /* ⬅️ mantiene proporzioni */
    object-position: center;
    max-width: 90%;                   /* ⬅️ blocca ingrandimenti */
    max-height: 90%;
    display: block;
}
.tl-logo svg {                        /* ⬅️ per SVG inline */
    width: 90% !important;
    height: 90% !important;
    max-width: 90%;
    max-height: 90%;
}
.tl-logo .fallback {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1565c0;
    letter-spacing: 3px;
}
.tl-info { flex: 1; min-width: 220px; }
.tl-info h2 { color: #fff; font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; }
.tl-regione { color: gold; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.tl-info p { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tl-info p i { color: #03a9f4; width: 16px; }

/* ===== DEADLINES ===== */
.deadlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.deadline-card {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,.2);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all .2s;
}
.deadline-card:hover {
    border-color: gold;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.4);
}
.deadline-card.highlight {
    border-color: gold;
    background: linear-gradient(135deg, rgba(255,215,0,.08), rgba(3,169,244,.05));
}
.deadline-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(3,169,244,.15);
    color: #03a9f4;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.deadline-card.highlight .deadline-icon {
    background: rgba(255,215,0,.2);
    color: gold;
}
.deadline-body h4 {
    color: #fff; font-size: .95rem;
    font-weight: 700; margin-bottom: 4px;
}
.deadline-body p {
    color: rgba(255,255,255,.6);
    font-size: .8rem; margin-bottom: 8px;
}
.deadline-date {
    display: inline-block;
    background: rgba(3,169,244,.15);
    color: #03a9f4;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.deadline-card.highlight .deadline-date {
    background: rgba(255,215,0,.2);
    color: gold;
}

/* ===== INFO BLOCKS ===== */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.info-block {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 15px 18px;
    text-decoration: none;
    color: #fff;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: all .2s;
}
.info-block:hover {
    border-color: gold;
    background: rgba(255,215,0,.05);
    transform: translateX(4px);
}
.info-block > i {
    color: gold;
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}
.info-block strong {
    display: block;
    color: #fff;
    font-size: .95rem;
    margin-bottom: 3px;
}
.info-block small {
    color: rgba(255,255,255,.55);
    font-size: .78rem;
}

@media (max-width: 600px) {
    .tl-card { padding: 18px; text-align: center; justify-content: center; }
    .tl-info p { justify-content: center; }
}

/* ============================================================
 * FIX DEFINITIVO: Contenimento immagini (bandiere SVG)
 * Blocca SVG giganti in tutte le card del sito
 * ============================================================ */

/* Contenitore logo — vale per TUTTE le classi usate */
.tl-logo,
.logo-mini,
.logo-preview,
.logo-box,
.central-logo {
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Immagine dentro il logo — contiene SEMPRE */
.tl-logo img,
.logo-mini img,
.logo-preview img,
.logo-box img,
.central-logo img {
    width: 85% !important;
    height: 85% !important;
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Se è un SVG inline (raro ma possibile) */
.tl-logo svg,
.logo-mini svg,
.logo-preview svg,
.logo-box svg,
.central-logo svg {
    width: 85% !important;
    height: 85% !important;
    max-width: 85% !important;
    max-height: 85% !important;
    display: block !important;
}

/* Il fallback (testo "BA", "RM"...) — centrato */
.tl-logo .fallback,
.logo-mini .fallback,
.logo-preview .fallback,
.logo-box .fallback {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #1565c0 !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Sfondo dei cerchi */
.tl-logo,
.logo-preview,
.logo-box {
    background: white !important;
}

/* Responsive — cerchi più piccoli su mobile */
@media (max-width: 600px) {
    .tl-logo,
    .logo-preview,
    .logo-box {
        width: 90px !important;
        height: 90px !important;
    }
    .tl-logo .fallback,
    .logo-preview .fallback,
    .logo-box .fallback {
        font-size: 1.4rem !important;
    }
}