/* ==========================================================================
   Base & Tokens (consolidated)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

:root {
    /* Palette principale */
    --brand: #109356; /* verde pulsanti component */
    --brand-dark: #0d7a45;
    --brand-darker: #0a6338;
    --brand-700: #0a7e47; /* per footer */
    --primary: #027bff;
    --primary-dark: #0155cc;
    --primary-darker: #014499;
    --primary-500: #3b82f6;

    --indigo-100: #f0fdfc;
    --ink-600: #374151;
    --ink-500: #475569;

    --gray-50: #f8f9fa;
    --gray-100: #f3f4f6;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --muted: #6c757d;
    --text: #212529;

    --success: #28a745;
    --warning: #ffc107;
    --badge-blue: #004d9b;

    /* Raggi/ombre/transizioni */
    --radius-6: 6px;
    --radius-8: 8px;
    --radius-10: 10px;
    --radius-12: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .10);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, .2);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, .15);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --transition: .2s ease;
}

/* Base */
html, body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

a {
        text-decoration: none;
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}



/* Accessibilità */
:focus-visible {
    outline: 3px solid rgba(2, 123, 255, .35);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Layout helpers */
.container { /* padding: 10px 20px; */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Lists reset */
ul {
    display: flex;
    list-style: none;
    padding-inline-start: 0;
    margin: 0;
}

ul li {
    margin-right: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    width: auto;
    padding: 10px;
    background: linear-gradient(48deg, #0d9f5d 0%, #04492b 100%);
    clear: both;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.button_login {
    padding: 5px 25px;
    background-color: var(--brand);
    color: #fff !important;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition);
}

.button_login:hover {
    transform: translateY(-1px);
}

.logo_design {
    background-image: url(https://openpass4climate.eu/wp-content/uploads/2024/01/logo-openclass4climate.png);
    width: 65px !important;
    height: 65px !important;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.section-padding {
    margin-block: 2.5%;
}

.nav_logo {
    width: 80px;
    height: 100px;
    object-position: center;
    object-fit: contain;
}

.bold-text {
    font-weight: 700;
}

.light-text {
    font-weight: 300;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    background: linear-gradient(135deg, #fff 0%, var(--indigo-100) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0f2f1;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 150, 136, .08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */

.btn {
    padding: .6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.btn-email {
    background-color: var(--brand);
    color: #fff;
    border: 2px solid transparent;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, .25);
}

.btn-outline {
    background: transparent;
    color: var(--primary-500);
    border: 2px solid var(--primary-500);
}

.btn-outline:hover {
    color: #fff;
    background: var(--primary-500);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #027bff 0%, #0155cc 100%);
    color: #fff;
    transition: all .3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #025dc1 0%, #01409c 100%);
    transition: all .3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, .25);
}

.btn-cancel {
    background: var(--gray-100);
    color: var(--muted);
}

.btn-cancel:hover {
    background: #e5e7eb;
}

/* ==========================================================================
   Modal (consolidated)
   ========================================================================== */

.modal-overlay_Nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity .3s ease;
}

.modal-overlay_Nav.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(.9) translateY(20px);
    transition: transform .3s ease;
}

.modal-overlay_Nav.active .modal {
    transform: scale(1) translateY(0);
}

/* Header */
.popup-header, .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

/* Close */
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition), color var(--transition);
    padding: .5rem;
}

.close-btn:hover {
    background-color: var(--gray-100);
    color: #495057;
}

/* ==========================================================================
   Forms (shared)
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0 0 3px 0;
    border-radius: 5px;
    border: 1px solid #c2c2c2;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-control {
    width: 100%;
    padding: 10px 0 10px 5px;
    border: 1px solid var(--gray-400);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, .25);
}

.form-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* ==========================================================================
   Profile Dropdown
   ========================================================================== */

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    transition: all var(--transition);
}

.profile-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    max-width: 320px;
    max-height: 400px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    margin-top: .5rem;
    overflow-y: auto;
}

.profile-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 8px 8px 0 0;
}

.user-name {
    font-weight: 600;
    color: var(--text);
    margin: 0;
    font-size: 14px;
}

.user-email {
    color: var(--muted);
    font-size: 12px;
    margin: .25rem 0 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    color: #495057;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: #212529;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: .5rem 0;
}

.dropdown-item.danger {
    color: #dc3545;
}

.dropdown-item.danger:hover {
    background: #f8d7da;
    color: #721c24;
}

/* Linked emails */
.dropdown-section {
    padding: .5rem 0;
}

.section-header {
    padding: .5rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    transition: background-color var(--transition);
}

.email-item:hover {
    background: var(--gray-50);
}

.email-item.primary {
    background: #f8f9ff;
}

.email-item.primary:hover {
    background: #f0f0ff;
}

.email-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
    min-width: 0;
}

.email-address {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-badge {
    font-size: 10px;
    padding: .125rem .375rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .25px;
    width: fit-content;
}

.email-badge.primary {
    background: #e3f2fd;
    color: #1976d2;
}

.email-badge.unverified {
    background: #fff3cd;
    color: #856404;
}

.email-status {
    font-size: 16px;
    margin-left: .5rem;
}

.email-status.verified {
    color: var(--success);
}

.email-status.unverified {
    color: var(--warning);
}

.no-emails {
    padding: 1rem;
    text-align: center;
}

.text-muted {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

/* Content text override */
.light-text {
    color: #000;
    line-height: 1.5;
    margin: 1rem 0;
}

/* ==========================================================================
   CARD ACTIONS / SHARE / COPY (component styles)
   ========================================================================== */

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

/* CTA */
.button-card {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-10);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 4px 14px rgba(16, 147, 86, .25);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.button-card::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .20), transparent);
    transition: left .5s var(--ease);
}

.button-card:hover::before {
    left: 100%;
}

.button-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 147, 86, .4);
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-darker) 100%);
}

.button-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(16, 147, 86, .25);
}

.button-card a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-card a::after {
    content: "→";
    transition: transform .3s var(--ease);
}

.button-card:hover a::after {
    transform: translateX(4px);
}

/* pulse */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.button-card.clicked {
    animation: buttonPulse .3s var(--ease);
}


.share-btn, .copy-link-btn {
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

/* Share primary */
.share-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 123, 255, .3);
    margin-bottom: 10px;
}

.share-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, .1);
    transition: width .3s var(--ease);
}

.share-btn:hover::before {
    width: 100%;
}

.share-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(2, 123, 255, .4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
}

.share-btn.clicked {
    animation: buttonPulse .3s var(--ease);
}

/* Copy glass */
.copy-link-btn {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--ink-600);
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-sm);
}

/* Disabled */
.share-btn:disabled, .copy-link-btn:disabled {
    cursor: not-allowed;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    color: #374151 !important;
    opacity: .6;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(107, 114, 128, .3) !important;
}

.share-btn:disabled::before, .copy-link-btn:disabled::before {
    display: none;
}

/* Copy success */
.copy-link-btn.copied {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-color: var(--brand);
    animation: copySuccess 3s var(--ease) forwards;
}

.copy-link-btn.copied::after {
    content: '✓ Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink-600);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    animation: showTooltip 2s var(--ease);
}

@keyframes copySuccess {
    0% {
        background: rgba(255, 255, 255, .1);
        color: var(--ink-600);
        border-color: rgba(255, 255, 255, .2);
    }
    10%, 70% {
        background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
        color: #fff;
        border-color: var(--brand);
    }
    100% {
        background: rgba(255, 255, 255, .1);
        color: var(--ink-600);
        border-color: rgba(255, 255, 255, .2);
    }
}

@keyframes showTooltip {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Variante “modern” */
.card.modern .card-actions {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05);
}

.card.modern .button-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 4px 14px rgba(16, 147, 86, .25);
}

.card.modern .share-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(2, 123, 255, .3);
}

.card.modern .copy-link-btn {
    background: rgba(55, 65, 81, .05);
    color: var(--ink-500);
    border: 1px solid rgba(55, 65, 81, .1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-right {
        gap: .5rem;
    }

    .btn {
        padding: .5rem .8rem;
        font-size: .8rem;
    }

    .modal {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        display: block !important;
        text-align: center;
    }

    .hero-title .card-img {
        text-align: center;
        margin: auto;
    }

    .hero-title .card-title {
        text-align: center;
        margin: 20px 0 8px;
    }

    .hero-title .card-status {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .card-information, .card-description {
        text-align: center;
    }


    .private-section {
        grid-template-columns:1fr;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .card-actions {
        padding: 12px 0;
        margin-top: 16px;
    }

    .button-card a {
        font-size: 13px;
    }

    .share-btn, .copy-link-btn {
        padding: 10px 12px;
        font-size: 11px;
    }
}


/* ==========================================================================
   VARIABLES (Add if missing)
   ========================================================================== */
:root {
    --muted: #6c757d;
    --gray-50: #f8f9fa;
    --transition: 0.3s ease;
    --brand: #10d976;
    --brand-dark: #0ca75a;
    --brand-darker: #0a623f;
    --primary: #027bff;
    --primary-dark: #0056d6;
    --primary-darker: #0040a8;
    --success: #28a745;
    --warning: #ffc107;
    --ink-600: #374151;
    --ink-500: #6b7280;
    --radius-8: 8px;
    --radius-10: 10px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Dropdown hover smooth
   ========================================================================== */
.dropdown-item.danger, .email-item, .share-btn, .copy-link-btn, .button-card {
    transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* ==========================================================================
   Button overlay fix
   ========================================================================== */
.button-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .20), transparent);
    transition: left .5s var(--ease);
}


/* ==========================================================================
   Tooltip animation fix
   ========================================================================== */
.copy-link-btn.copied::after {
    content: '✓ Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink-600);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    animation: showTooltip 2s var(--ease) forwards; /* forwards ensures it stays visible */
}

/* ==========================================================================
   Email hover fallback
   ========================================================================== */
.email-item:hover {
    background: var(--gray-50, #f8f9fa); /* fallback added */
}

/* ==========================================================================
   Small fixes mobile
   ========================================================================== */
@media (max-width: 400px) {
    .button-card a {
        font-size: 13px;
        line-height: 1.3;
    }

    .share-btn, .copy-link-btn {
        padding: 10px 12px;
        font-size: 11px;
    }
}


.card .card-img {
    padding: 0;
}

.hero-title {
    display: block;
}

.card-img {
    width: 90%;
    height: 100%;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    object-position: center;
    position: relative;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
}

button > a {
    text-align: center;
    width: 100%;
}

/* Base button style (shared) */
.btn-animation {
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-animation:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-animation:hover::before {
    left: 100%;
}


/* Variants */

/* Red (delete) */
.btn-red {
    background: linear-gradient(48deg, #dc3545 0%, #c82333 100%);
}

.btn-red:hover {
    background: linear-gradient(48deg, #c82333 0%, #a71e2a 100%);
}


/* Blue */
.btn-blue {
    background: linear-gradient(48deg, #027bff 0%, #0033B3 100%);
    box-shadow: 0 2px 8px rgba(0, 117, 255, 0.33);

}


.btn-blue:hover {
    background: linear-gradient(48deg, #027bff 0%, #0033B3 100%);
}

/* White */
.btn-white {
    background: linear-gradient(48deg, #ffffff 0%, #e1e1e1 100%);
    box-shadow: 0 2px 8px rgba(236, 236, 236, 0.3);
    color: var(--primary-darker);
}

.btn-white:hover {
    background: linear-gradient(48deg, #ffffff 0%, #e1e1e1 100%);
}


/* Green */
.btn-green {
    background: linear-gradient(48deg, #0d9f5d 0%, #04492b 100%);
    box-shadow: 0 2px 8px rgba(63, 225, 12, 0.3);

}

.btn-green:disabled, .btn-blue:disabled, .btn-red:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    cursor: not-allowed;
    color: #374151 !important;
    opacity: .6;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(107, 114, 128, .3) !important;

}


.btn-green:hover {
    background: linear-gradient(48deg, #0d9f5d 0%, #04492b 100%);
}


a.btn-animation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}


.btn-red:disabled::before, .btn-blue:disabled::before, .btn-blue:disabled::before {
    display: none;
}


#badgeFormPopup .btn,
#badgeFormPopup input[type=submit] {
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease) !important;
}

#badgeFormPopup .btn-primary,
#badgeFormPopup .btn-primary:hover,
#badgeFormPopup .btn-primary:focus,
#badgeFormPopup .btn-primary:active,
#badgeFormPopup input[type=submit],
#badgeFormPopup input[type=submit]:hover,
#badgeFormPopup input[type=submit]:focus,
#badgeFormPopup input[type=submit]:active {
    background-image: linear-gradient(135deg, #027bff 0%, #0155cc 100%) !important;
    background-color: transparent !important;
    color: #fff;
    border: none;
    opacity: 1 !important; /* blocca eventuali fade globali */
}

#badgeFormPopup .btn-primary:hover,
#badgeFormPopup input[type=submit]:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(2, 123, 255, .35);
}


.background-header {
    height: 22vh;
    min-height: 180px;
    overflow: hidden;
    background: linear-gradient(225deg, #0033B3 0%, #0F6DFF 60%) top right/70% 100% no-repeat,
    linear-gradient(225deg, #0A7E47 0%, #0D9F5D 100%) top left/50% 100% no-repeat;
    color: #fff;
}


.badge-information {
    background-color: #004d9b;
    color: #fff;
    padding: 50px 28px;
    border-radius: 10px;
    display: block !important; /* <— stop al flex */
    margin-bottom: 20px;
    box-sizing: border-box;
}

.container-badge-information {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    width: 100% !important;
    min-width: 0;
    flex: 1 1 100% !important;
}

.badge-information-text {
    justify-self: center;
    text-align: center;
    max-width: 72ch;
    width: auto;
    white-space: normal !important;
}

.container-badge-information > img {
    justify-self: start;
}

.container-badge-information .btn-back {
    justify-self: end;
    float: none !important;
}

@media (max-width: 768px) {
    .badge-information {
        padding: 28px 16px;
    }

    .container-badge-information {
        grid-template-columns:1fr;
        justify-items: center;
        row-gap: 14px;
    }

    .badge-information-text {
        max-width: 32ch;
    }
}




.badge-information{
  display:block !important;
  padding:28px 16px;
  border-radius:10px;
}

.container-badge-information{
  display:grid !important;
  grid-template-columns:1fr;
  width:100% !important;
  max-width:none !important;
  justify-items:center;
  align-items:center;
  row-gap:14px;
}

.container-badge-information > img,
.card-img-information{
  display:block;
  margin:0 auto 12px !important;
  justify-self:center !important;
  align-self:center !important;
  float:none !important;
  max-width:120px;
  height:auto;
}



