
/* === NAVBAR CENTRATA E COMPLETA A TUTTO SCHERMO === */
.custom-navbar {
    background-color: #0D2261 !important;
    width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important;
}

/* === SFONDO GLOBALE BIANCO === */
body {
    background-color: #ffffff !important;
    margin: 0;
    padding: 0;
}

/* === CONTENITORE CENTRALE GRIGIO CHIARISSIMO PER FORM === */
.main-wrapper {
    background-color: #f8f9fa;
    max-width: 1200px;
    width: 100%;
    border: 1px solid #0D6EFD;
    border-radius: 8px;
    padding: 0;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* === ETICHETTA OVERLAY === */
.label-overlay {
    top: -0.4rem;
    left: 1rem;
    background: #ffffff;
    border-radius: 10px;
    z-index: 2;
    font-size: 0.85rem;
    line-height: 1;
}

/* === STILE INPUT / SELECT / TEXTAREA COERENTE === */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select,
.form-control {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #ffffff !important; /* BIANCO fin da subito */
    color: #000000;
    border: 1px solid #ced4da;
    border-radius: 10px;
    box-shadow: none;
}

/* === FORZATURA COLORE BIANCO PER AUTOFILL === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    background-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    color: #000000 !important;
}

/* === BOTTONE ARANCIONE CON TESTO BIANCO === */
.btn-orange {
    background-color: #f28c28;
    color: #ffffff;
    border: none;
}
.btn-orange:hover {
    background-color: #d97706;
    color: #ffffff;
}

/* === RESPONSIVE ADATTIVO === */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem;
        border-radius: 12px;
        margin: 1rem;
    }
}

.form-header {
    background-color: #0D6EFD;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}
.custom-footer {
    background-color: #0D2261;
}

    .form-header i {
        font-size: 1.8rem;
    }

.text-orange {
    color: #FFD700; /* Arancione brillante Bootstrap-like */
    font-weight: bold;
}

.header-bar {
    background-color: #0D2261;
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

html, body {
    height: 100%;
}

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

form#form1 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer.custom-footer {
    margin-top: auto;
}

.main-wrapper {
    background-color: #f1f1f1;
    border: 1px solid #0D6EFD;
    border-radius: 1rem;
    overflow: hidden; /* importante per contenere l'header arrotondato */
    max-width: 1200px;
    width: 100%;
}

.content-wrapper {
    background-color: #f1f1f1;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 2rem 1rem;
}

.table thead th {
    background-color: #3AAED8 !important;
    color: #fff;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.table td, .table th {
    border: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 0.95rem;
    padding: 0.75rem;
}

.table tbody tr:hover {
    background-color: #eaf1ff;
    transition: 0.3s ease;
}

.table {
    border-radius: 1rem;
    overflow: hidden;
}

.table-responsive {
    border-radius: 1rem;
}