/* ============================================================
   1. FOUNDATION – BASE STYLES FYMERA (Design System Unified)
   ============================================================ */

/* Reset minimi per coerenza */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, sans-serif;
    color: var(--color-text-body);
    margin: 0;
}

/* Spaziatura pagina tema */
.entry-content,
.site-content,
.content-area {
    padding-top: 40px !important;
}

/* Card generiche standard */
.fy-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 24px;
    transition: var(--transition-smooth);
}

.fy-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Titoli generali */
.fy-title {
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
}

/* Input base uniformati a tutto il sito */
.fy-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.fy-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Select coerenti */
.fy-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: var(--color-white);
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 14px center;

    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 14px 18px;
    font-size: 16px;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.fy-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Bottoni Fymera */
.fy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 15px;

    padding: 14px 28px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 4px 15px rgba(236, 50, 40, 0.3);
    transition: var(--transition-fast);
}

.fy-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 8px 25px rgba(236, 50, 40, 0.4);
    transform: translateY(-2px);
}

.fy-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(236, 50, 40, 0.25);
}

/* Badge standard */
.fy-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

/* Responsive – layer base */
@media (max-width: 600px) {
    .fy-card {
        padding: 20px;
    }

    .fy-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ============================================================
   2. FORM REGISTRAZIONE FYMERA — Versione Uniformata
   ============================================================ */

/* CARD PRINCIPALE */
.fymera-reg {
    width: 100%;
    max-width: 720px;
    margin: 80px auto 120px;

    padding: 48px 48px 40px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);

    transition: var(--transition-smooth);
}

/* Titles */
.fymera-reg-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--color-primary);
}

.fymera-reg-sub {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-body);
    margin: 0 0 32px;
}

/* GRID */
.fymera-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.fymera-grid .full {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .fymera-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 28px;
        row-gap: 22px;
    }
}

/* FIELD WRAPPER */
.fymera-reg .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* LABEL */
.fymera-reg label {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-main) !important;
}

/* INPUTS + SELECT — Uniformati al DS */
.fymera-reg input[type="text"],
.fymera-reg input[type="email"],
.fymera-reg input[type="password"],
.fymera-reg select {
    width: 100%;
    padding: 14px 18px;

    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    font-size: 16px;
    color: var(--color-text-main);
    box-sizing: border-box;

    outline: none;
    transition: var(--transition-fast);
}

.fymera-reg input:focus,
.fymera-reg select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* SELECT FIX */
.fymera-reg select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23111827' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 14px center;
}

/* CHECKBOX WRAPPER */
.fymera-check {
    margin-top: 32px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-body);
}

.fymera-check input[type="checkbox"] {
    margin-right: 6px;
}

/* BUTTON — Uniformato ai bottoni Fymera */
.fymera-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin-top: 24px;

    padding: 16px;
    background: var(--color-primary);
    color: var(--color-white);

    border-radius: var(--radius-pill);
    border: none;

    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 50, 40, 0.35);
    transition: var(--transition-fast);
}

.fymera-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(236, 50, 40, 0.45);
}

.fymera-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(236, 50, 40, 0.25);
}

/* LINK LOGIN */
.fymera-login-link {
    margin-top: 18px;
    font-size: 14px;
    text-align: center;
    color: var(--color-text-body);
}

.fymera-login-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* MESSAGGI */
#fymera-reg-response {
    margin-top: 24px;
    font-size: 14px;
    text-align: center;
}

#fymera-reg-response .ok {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 12px;
    border-radius: var(--radius-md);
}

#fymera-reg-response .error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: var(--radius-md);
}

/* PASSWORD TOGGLE */
.fymera-password-wrapper {
    position: relative;
}

.fymera-password-wrapper input {
    padding-right: 48px !important;
}

.fymera-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon,
.eye-icon-off {
    width: 22px;
    height: 22px;
    fill: var(--color-text-light);
}

.eye-icon-off {
    display: none;
}

.fymera-toggle-password.visible .eye-icon {
    display: none;
}

.fymera-toggle-password.visible .eye-icon-off {
    display: block;
}

/* OTP input */
input[name="otp"] {
    font-size: 22px;
    letter-spacing: 6px;
    text-align: center;
    font-weight: 700;
}

/* Shake error */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.fymera-reg.shake {
    animation: shake 0.35s ease;
}

.fymera-reg.success {
    opacity: 0.8;
    transform: scale(0.98);
    transition: 0.3s ease;
}

/* TIMER + RESEND */
#fymera-timer {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-text-body);
}

.fymera-resend {
    margin-top: 6px;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.fymera-resend.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* FORGOT PASSWORD */
.fymera-forgot {
    font-size: 13px;
    color: var(--color-primary);
    margin-top: 4px;
    display: inline-block;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 600px) {
    .fymera-reg {
        margin: 40px 16px 80px;
        padding: 32px 20px 28px;
    }

    .fymera-btn {
        font-size: 15px;
    }
}

/* ============================================================
   3. WIZARD FYMERA — MODERN SAAS STYLE (2025)
   ============================================================ */

/* WRAPPER PRINCIPALE */
#fymera-wizard {
    max-width: 720px;
    margin: 60px auto 100px;
    padding: 48px;
    
    background: #ffffff;
    border-radius: 20px; /* Angoli più moderni */
    border: 1px solid #e5e7eb; /* Bordo sottile grigio */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.04); /* Ombra morbida e profonda */
    
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    position: relative;
    overflow: hidden;
}

/* Header Decorativo (Opzionale: Barra colorata in alto) */
#fymera-wizard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #d62828 0%, #ff6b6b 100%);
}

/* TITOLI */
.fw-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-align: center;
}

.fw-sub {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
}

/* STEPS (Animazione Fade) */
.fw-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInStep 0.4s ease-out;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LABELS */
.fw-label {
    font-weight: 600;
    font-size: 15px;
    color: #374151; /* Grigio scuro, non nero */
    margin-bottom: 8px;
    display: block;
}

/* INPUTS & SELECTS (Stile "Chunky" e Tattile) */
.fw-step input[type="text"],
.fw-step input[type="email"],
.fw-step input[type="number"],
.fw-step select {
    width: 100%;
    padding: 14px 16px; /* Più spazio interno */
    font-size: 16px;
    color: #111827;
    background-color: #f9fafb; /* Sfondo grigio chiarissimo */
    border: 1px solid #d1d5db;
    border-radius: 10px; /* Arrotondamento moderno */
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Stato Focus (Bordo Colorato + Ombra) */
.fw-step input:focus,
.fw-step select:focus {
    outline: none;
    background-color: #fff;
    border-color: #d62828;
    box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.15); /* Ring focus rosso */
}

/* Custom Select Arrow */
/* FIX SELECT – stile uniforme e leggibile */
.fw-step select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    background: #fff;
    height: auto;
    min-height: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

/* NAVIGATION (Bottoni) */
.fw-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

/* Pulsanti Base */
.fw-next,
.fw-prev,
.fw-submit {
    padding: 14px 32px; /* Più larghi */
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px; /* Meno pillola, più rettangolo stondato */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

/* Pulsante Primario (Avanti/Invia) */
.fw-next,
.fw-submit {
    background-color: #d62828;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(214, 40, 40, 0.2), 0 2px 4px -1px rgba(214, 40, 40, 0.1);
}

.fw-next:hover,
.fw-submit:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(214, 40, 40, 0.3);
}

.fw-next:active {
    transform: translateY(0);
}

/* Pulsante Secondario (Indietro) */
.fw-prev {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.fw-prev:hover {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

/* ============================================================
   CHECKBOX CARDS (Grid & Selezione) - Lo stile che ti piaceva
   ============================================================ */
.fw-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fw-check {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-weight: 500;
    color: #374151;
    user-select: none; /* Previene selezione testo al click */
}

/* Checkbox Input */
.fw-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    margin: 0 !important;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: grid;
    place-content: center;
}

/* Icona Spunta (Fatta con CSS puro per evitare problemi icone) */
.fw-check input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white; /* Diventa bianco */
    background-color: white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Stato Checked */
.fw-check:has(input:checked) {
    border-color: #d62828 !important;
    background-color: #fef2f2 !important;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.08);
}

.fw-check input:checked {
    background-color: #d62828 !important;
    border-color: #d62828 !important;
}

.fw-check input:checked::before {
    transform: scale(1);
}

.fw-check:hover {
    border-color: #d62828;
    transform: translateY(-2px);
}

/* ERROR MESSAGE */
.fw-error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   FIX TASTO "COMPLETA PROFILAZIONE" (Uniformità)
   ============================================================ */

/* Forza lo stile del bottone di invio per essere identico a "Avanti" */
button.fw-submit {
    background-color: #d62828 !important; /* Il tuo rosso */
    color: #ffffff !important;
    
    border: none !important;
    border-radius: 8px !important;
    
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none !important; /* Evita maiuscolo forzato dal tema */
    letter-spacing: normal !important;
    
    cursor: pointer !important;
    box-shadow: 0 4px 6px -1px rgba(214, 40, 40, 0.2), 0 2px 4px -1px rgba(214, 40, 40, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Assicura che non sia largo il 100% se non richiesto */
    width: auto; 
    display: inline-block;
}

/* Effetto Hover identico */
button.fw-submit:hover {
    background-color: #b91c1c !important; /* Rosso scuro */
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(214, 40, 40, 0.3) !important;
}

/* Su mobile, se vuoi che sia largo tutto lo schermo */
@media (max-width: 600px) {
    button.fw-submit {
        width: 100% !important;
    }
}

/* RESPONSIVE */
@media (max-width: 700px) {
    #fymera-wizard {
        padding: 24px;
        margin: 20px 10px;
    }
    
    .fw-checkbox-grid {
        grid-template-columns: 1fr; /* Colonna singola su mobile */
    }
    
    .fw-nav {
        flex-direction: column-reverse; /* "Avanti" sopra, "Indietro" sotto */
        gap: 12px;
    }
    
    .fw-next, .fw-prev, .fw-submit {
        width: 100%;
    }
    
    .fw-title { font-size: 26px; }
}
/* ============================================================
   4. BANDO TOP + MINI CARD — Stile Fymera Moderno
   ============================================================ */

/* WRAPPER GENERALE */
.fymera-bando-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', system-ui, sans-serif; /* Assicurati di avere un font moderno */
    color: #1f2937;
}

/* TITOLO SEZIONE CON SOTTOLINEATURA */
.bando-top-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

/* ============================================================
   CARD PRINCIPALE (BIG) - HERO STYLE
   ============================================================ */
.bando-card-big {
    position: relative;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    margin-bottom: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bando-card-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d62828; /* Highlight on hover */
}

/* Badge "Consigliato" */
.bando-card-big::before {
    content: "★ TOP MATCH";
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d62828; /* Var Primary */
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

/* Title */
.bando-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    max-width: 85%; /* Lascia spazio al badge */
    line-height: 1.3;
}

/* Description */
.bando-desc {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Meta Container (Grid interna) */
.bando-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-top: auto; /* Spinge in basso se c'è spazio */
}

.bando-meta p {
    margin: 0;
    font-size: 15px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* COMPATIBILITÀ VISUAL (Progress Bar) */
.compat-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.compat-bar-bg {
    flex-grow: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.compat-bar-fill {
    height: 100%;
    background: #10b981; /* Verde successo */
    border-radius: 4px;
}

.compat-text {
    font-weight: 700;
    color: #10b981;
    font-size: 14px;
    white-space: nowrap;
}

/* Button Big */
.bando-card-big .fymera-btn {
    align-self: flex-start;
    background: #d62828;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    text-align: center;
}
.bando-card-big .fymera-btn:hover {
    background: #b91c1c;
}

/* ============================================================
   MINI CARDS GRID
   ============================================================ */
.bando-mini-list {
    display: grid;
    /* Responsive automatico: minimo 300px per card */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px;
}

.bando-card-mini {
    padding: 24px;
    background: #ffffff; /* Meglio bianco pulito */
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bando-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #d62828;
}

/* Title Mini */
.bando-mini-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Meta Mini */
.bando-mini-meta {
    margin-bottom: 20px;
}

.bando-mini-meta p {
    margin: 6px 0;
    font-size: 14px;
    color: #6b7280;
}

.bando-mini-meta strong {
    color: #374151;
}

/* Mini Compatibilità Text */
.compat-small {
    margin-top: 10px !important;
    display: inline-block;
    padding: 4px 8px;
    background: #ecfdf5; /* Verde chiarissimo */
    color: #059669;      /* Verde scuro */
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px !important;
}

/* Mini Button */
.mini-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #fff;
    color: #d62828;
    border: 1px solid #d62828;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.mini-btn:hover {
    background: #d62828;
    color: #fff;
}

/* RESPONSIVE AGGIUSTAMENTI */
@media (max-width: 600px) {
    .bando-card-big {
        padding: 24px;
    }
    .bando-title {
        font-size: 22px;
        max-width: 100%; /* Su mobile il badge può stare sopra o di lato */
    }
    .bando-card-big .fymera-btn {
        width: 100%;
    }
}
/* ============================================================
   RESPONSIVE MOBILE OTTIMIZZATO (max-width: 600px)
   ============================================================ */
@media (max-width: 600px) {
    
    /* 1. Wrapper Generale: Padding laterale di sicurezza */
    .fymera-bando-top {
        padding: 30px 16px !important;
    }

    /* --- CARD BIG MOBILE --- */
    .bando-card-big {
        padding: 24px !important;
        margin-bottom: 40px !important;
        border-radius: 12px;
        /* Rimuovi descrizione per salvare spazio */
    }
    
    /* Nascondi descrizione nella card grande su mobile */
    .bando-desc {
        display: none !important;
    }

    /* Badge "Top Match" statico sopra il titolo */
    .bando-card-big::before {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }

    .bando-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Meta Info in colonna */
    .bando-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Tasto Big Card Full Width */
    .bando-card-big .fymera-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 12px 0;
    }

    /* --- MINI CARDS MOBILE FIX --- */
    
    /* 2. Griglia a 1 Colonna Secca */
    .bando-mini-list {
        display: flex !important;       /* Flexbox è più sicuro di Grid su certi mobile vecchi */
        flex-direction: column !important;
        gap: 20px !important;           /* Spazio tra le card */
    }

    /* 3. Stile Mini Card Mobile */
    .bando-card-mini {
        width: 100% !important;         /* Occupa tutto lo spazio disponibile */
        box-sizing: border-box;         /* Include padding nella larghezza */
        padding: 20px !important;
        margin: 0 !important;           /* Reset margini esterni */
        
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Ombra leggera per stacco */
    }

    .bando-mini-title {
        font-size: 17px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    /* Meta info più compatte */
    .bando-mini-meta p {
        font-size: 13px;
        margin: 4px 0;
    }

    /* Badge compatibilità più visibile */
    .compat-small {
        margin-top: 12px !important;
        margin-bottom: 15px !important;
        font-size: 12px !important;
        width: fit-content;
    }

    /* 4. Tasto Mini Card: Grande e Cliccabile */
    .bando-card-mini .mini-btn {
        display: block !important;
        width: 100% !important;
        padding: 12px 0 !important; /* Più alto per il dito */
        font-size: 14px;
        background-color: #fff;
        color: #d62828;
        border: 1px solid #d62828;
        text-align: center;
        border-radius: 8px;
        margin-top: auto; /* Spinge il bottone in fondo */
    }
    
    /* Active state per feedback tocco */
    .bando-card-mini .mini-btn:active {
        background-color: #d62828;
        color: #fff;
    }
}

/* ============================================================
   5. DASHBOARD FYMERA — MODERN SAAS STYLE (2025)
   ============================================================ */

/* WRAPPER GENERALE */
.fymera-dashboard {
    max-width: 1280px;
    margin: 40px auto 80px;
    padding: 0 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

/* HEADER DASHBOARD */
.dash-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.dash-sub {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ============================================================
   LAYOUT GRID (Responsive Sidebar)
   ============================================================ */
.dash-layout {
    display: grid;
    grid-template-columns: 320px 1fr; /* Sidebar fissa a sinistra */
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .dash-layout {
        grid-template-columns: 1fr; /* Colonna unica su tablet/mobile */
    }
}

/* ============================================================
   SIDEBAR (Sticky Profile)
   ============================================================ */
.dash-sidebar {
    position: sticky;
    top: 100px; /* Si ferma sotto l'header */
    z-index: 10;
}

/* Card Profilo */
.profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px; /* Più arrotondato */
    padding: 32px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    text-align: center; /* Centrato per impatto visivo */
}

/* Header Profilo (Avatar + Nome) */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d62828 0%, #ff6b6b 100%); /* Gradiente moderno */
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 15px -3px rgba(214, 40, 40, 0.3);
}

.profile-header-text .profile-org {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.profile-header-text .profile-forma {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Griglia Dati Profilo (Lista pulita) */
.profile-grid {
    text-align: left;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.profile-grid p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
}

.profile-grid p strong {
    color: #1f2937;
    font-weight: 600;
}

/* Tag Stato */
.tag-ok {
    background: #ecfdf5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.tag-bad {
    background: #fef2f2;
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================================
   MAIN CONTENT (Cards)
   ============================================================ */
.dash-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); /* Ombra molto leggera */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.dash-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

/* ============================================================
   SUGGESTED BANDI (Grid Cards)
   ============================================================ */
.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.suggested-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.suggested-card:hover {
    border-color: #d62828;
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.08);
    transform: translateY(-2px);
}

.suggested-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.suggested-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.6;
}

.suggested-score {
    font-size: 12px;
    font-weight: 700;
    color: #059669; /* Verde */
    background: #ecfdf5;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 16px;
}

/* ============================================================
   BUTTONS (Moderni)
   ============================================================ */
.dash-btn {
    display: inline-block;
    background: #d62828;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px; /* Meno pillola, più rettangolo moderno */
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
}

.dash-btn:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.25);
}

/* Bottone Secondario (Ghost) */
.dash-btn.secondary {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}
.dash-btn.secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    box-shadow: none;
}

.dash-btn.full {
    width: 100%;
    margin-top: 10px;
}

.dash-btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.mini-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #d62828;
    background: #fff;
    border: 1px solid #d62828;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.mini-btn:hover {
    background: #d62828;
    color: #fff;
}

/* ============================================================
   ALERT (Notification Style)
   ============================================================ */
.fymera-alert {
    background: #fff;
    border-left: 4px solid #f59e0b; /* Arancione warning */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.fymera-alert strong {
    color: #b45309;
    font-size: 16px;
    margin-bottom: 4px;
}

/* ============================================================
   FIX RESPONSIVE MOBILE DEFINITIVO (Smartphone)
   Incolla questo alla FINE del tuo CSS
   ============================================================ */

@media only screen and (max-width: 768px) {

    /* 1. WRAPPER: Meno spazio ai lati per guadagnare pixel */
    .fymera-bando-top {
        padding: 30px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- CARD GRANDE (BIG) --- */
    
    /* Nascondi la descrizione lunga */
    .bando-desc {
        display: none !important;
    }

    /* Riduci padding interno */
    .bando-card-big {
        padding: 20px !important;
        margin-bottom: 30px !important;
    }

    /* Badge "Top Match" statico sopra il titolo */
    .bando-card-big::before {
        position: static !important;
        display: inline-block !important;
        margin-bottom: 10px !important;
    }

    /* Titolo più compatto */
    .bando-title {
        font-size: 20px !important;
        max-width: 100% !important;
    }

    /* Meta dati in colonna (non affiancati) */
    .bando-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Bottone grande: larghezza totale */
    .bando-card-big .fymera-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin-top: 15px !important;
    }

    /* --- MINI CARDS (Il problema principale) --- */

    /* Griglia a 1 COLONNA SECCA */
    .bando-mini-list {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Una colonna */
        gap: 20px !important;
        width: 100% !important;
    }

    /* Card singola occupa tutto lo spazio */
    .bando-card-mini {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Titolo Mini leggibile */
    .bando-mini-title {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }

    /* Badge compatibilità ben visibile */
    .compat-small {
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        display: inline-block !important;
    }

    /* Bottone Mini: larghezza totale e alto per il dito */
    .mini-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 12px 0 !important;
        margin-top: auto !important; /* Spinge in fondo */
    }
}

/* ============================================================
   6. USER BANDI — MODERN DASHBOARD STYLE
   ============================================================ */

/* WRAPPER PRINCIPALE */
.fymera-user-bandi {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}

/* HEADER SEZIONE */
.ub-header {
    margin-bottom: 40px;
}
.ub-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.ub-sub {
    color: #6b7280;
    font-size: 16px;
}

/* GRID LAYOUT */
.ub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* CARD DESIGN */
.ub-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* HEADER CARD (Top section) */
.ub-card-header {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fcfcfc;
}

.ub-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ub-date-added {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* STATUS BADGES */
.ub-status-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

/* Colori Stati */
.status-nuovo { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; } /* Blu */
.status-in_valutazione { background: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; } /* Arancione */
.status-in_attesa { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; } /* Grigio */
.status-approvato { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; } /* Verde */
.status-non_ammesso { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; } /* Rosso */

.ub-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.ub-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}
.ub-card-title a:hover {
    color: #d62828;
}

/* CARD BODY */
.ub-card-body {
    padding: 24px;
}

/* Info Row (Scadenza & Compatibilità) */
.ub-info-row {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}
.ub-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ub-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}
.ub-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* Compatibilità Bar */
.ub-compat-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}
.ub-compat-bar {
    flex-grow: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.ub-compat-fill {
    height: 100%;
    background: #059669;
    border-radius: 3px;
}
.ub-compat-text {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}

/* Actions */
.ub-actions {
    margin-bottom: 30px;
}
.ub-btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    background: #fff;
}
.ub-btn-outline:hover {
    border-color: #374151;
    background: #f9fafb;
    color: #111;
}

/* TIMELINE SECTION */
.ub-timeline-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ub-timeline {
    position: relative;
    border-left: 2px solid #f3f4f6;
    margin-left: 8px;
    padding-left: 24px;
}

.ub-timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.ub-timeline-item:last-child {
    margin-bottom: 0;
}

/* Dot Timeline */
.ub-timeline-dot {
    position: absolute;
    left: -31px; /* (padding-left 24 + border 2 + dot half 5) */
    top: 5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #d62828;
    border-radius: 50%;
    z-index: 2;
}

.ub-timeline-content {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
}

.ub-news-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.ub-news-title {
    display: block;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}
.ub-news-desc {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.ub-no-news {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

/* EMPTY STATE */
.ub-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
}
.ub-empty-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.ub-empty-state h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 8px;
}
.ub-empty-state p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 15px;
}
.ub-btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #d62828;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}
.ub-btn-primary:hover {
    background: #b91c1c;
}

/* Responsive */
@media (max-width: 600px) {
    .ub-info-row {
        flex-direction: column;
        gap: 16px;
    }
}



/* ============================================================
   7. DOCUMENTI — CLEAN STYLE (NO EMOJI)
   ============================================================ */

/* WRAPPER */
.fymera-docs-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1f2937;
}

/* HEADER */
.doc-header-main { margin-bottom: 30px; }
.fymera-docs-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.fymera-docs-sub {
    color: #6b7280;
    font-size: 16px;
}

/* TABS (Pillole Minimal) */
.fymera-doc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.fymera-doc-tab {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.fymera-doc-tab:hover {
    color: #1f2937;
    background: #f9fafb;
}

.fymera-doc-tab.active {
    color: #d62828;
    border-bottom: 2px solid #d62828;
}

/* CONTENT TABS */
.fymera-doc-tab-content { display: none; }
.fymera-doc-tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from {opacity:0} to {opacity:1} }

/* GRID */
.fymera-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* CARD */
.fymera-doc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px; /* Angoli meno rotondi = più professionale */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s;
}

/* Indicatore laterale di stato */
.fymera-doc-card.status-ok { border-left: 4px solid #10b981; }
.fymera-doc-card.status-pending { border-left: 4px solid #f59e0b; }

.fymera-doc-card:hover {
    border-color: #d62828;
}

/* CARD HEADER */
.doc-card-top { margin-bottom: 15px; }
.doc-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.doc-label {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    max-width: 70%;
}

/* BADGE STATO (Testo pulito) */
.doc-status-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.status-ok .doc-status-badge { background: #ecfdf5; color: #059669; }
.status-pending .doc-status-badge { background: #fffbeb; color: #b45309; }

/* FILE LIST */
.doc-files-area {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 50px;
}

.doc-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.doc-files-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
.doc-files-list li:last-child { border-bottom: none; }

.file-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}
.file-link:hover { color: #d62828; text-decoration: underline; }

.file-delete {
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-left: 10px;
}
.file-delete:hover { text-decoration: underline; }

.doc-empty-state {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 10px 0;
}

/* UPLOAD BUTTON (Pulsante Tecnico) */
.custom-file-upload {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    transition: 0.2s;
}
.custom-file-upload:hover {
    border-color: #d62828;
    color: #d62828;
    background: #fff5f5;
}
.custom-file-upload input[type="file"] { display: none; }

/* MESSAGGI */
.fymera-msg {
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 4px;
}
.fymera-msg.success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.fymera-msg.error { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }


/* ============================================================
   8. RESPONSIVE MASTER LAYER — Tablet & Mobile
   ============================================================ */

/* ============================
   BREAKPOINT: ≤ 900px (Tablet)
   ============================ */
@media (max-width: 900px) {

    /* Dashboard layout */
    .dash-layout {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
        top: auto;
    }

    /* Mini cards 3 → 2 colonne */
    .bando-mini-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================
   BREAKPOINT: ≤ 700px
   ============================ */
@media (max-width: 700px) {

    /* Due colonne → una colonna */
    .fymera-doc-list {
        grid-template-columns: 1fr;
    }
}

/* ============================
   BREAKPOINT: ≤ 600px (Mobile)
   ============================ */
@media (max-width: 600px) {

    /* ====================================
       FORM REGISTRAZIONE
    ==================================== */
    .fymera-reg {
        margin: 40px 16px 80px;
        padding: 32px 20px 28px;
    }

    .fymera-btn {
        width: 100%;
    }

    .fymera-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    /* Wizard */
    #fymera-wizard {
        padding: 28px 20px;
    }

    .fw-nav {
        flex-direction: column;
        gap: 12px;
    }

    .fw-next,
    .fw-prev,
    .fw-submit {
        width: 100%;
    }
    
    /* ====================================
       USER BANDI
    ==================================== */
    .ub-title {
        font-size: 26px;
    }

    .ub-card {
        padding: 18px;
    }

    .ub-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* ====================================
       DOCUMENTI
    ==================================== */
    .fymera-docs-wrapper {
        padding: 0 16px;
    }

    .fymera-doc-tabs {
        gap: 8px;
        padding-bottom: 6px;
    }

    .fymera-doc-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .fymera-doc-card {
        padding: 16px;
    }
}

/* ============================
   BREAKPOINT: ≤ 400px (Small Mobile)
   ============================ */
@media (max-width: 400px) {

    .fymera-reg-title,
    .dash-title,
    .ub-title {
        font-size: 24px;
    }

    .fymera-btn,
    .ub-btn,
    .dash-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .bando-title {
        font-size: 18px;
    }

    .ub-card-title {
        font-size: 18px;
    }
}


.dash-btn.logout {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  margin-top: 8px;
}

.dash-btn.logout:hover {
  background: #111;
  color: #fff;
}


