/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

section {
  /* Le section restano in alto e prendono solo lo spazio del contenuto */
}

footer {
  margin-top: auto;
  padding: 1em;
  text-align: center;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.top-bar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  z-index: 999;
}

/* === GRID SYSTEM === */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  max-width:1480px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
  min-width: 0;
}

/* Column sizes */
[class*="col-"] {
  padding: 0 15px;
}

.col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.logo{width:150px; margin:0 0 20px;}
.hamburger {
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  top:25px;
  left:40px;
  z-index: 999;
}

.hamburger span {
  display: block;
  width: 25px;
  height:1px;
  background: #fff;
  border-radius: 2px;
}

.hero-banner {
    background: url('../images/bg.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100vh; /* altezza schermo intero */
    display: flex;
    justify-content: center; /* se vuoi centrare testo */
    align-items: center;
    text-align: center;
}

.login .col-12 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}
.menu #sidebarCollapse{background: #111076;}
.menu #sidebar .sidebar-header{padding:20px;background:#07065f;}
.menu #sidebar{background:#111076;min-width:220px;max-width:220px;}
.menu #sidebar ul.components li a:hover{background: #07065f;}
#sidebar .btn-logout{background-color: #09055f;display:flex;}
.wrapper.active #content{margin-left:0 !important;}
.login input[type="text"], .login input[type="password"]{width:100%;max-width: 100%;}
.login .logo{width:150px; margin:0 auto 20px;}
.login form {
    background: #fff;
    width:400px;
    padding: 20px;border-radius:10px;text-align: left;
}
.top-bar .logo{margin-left: -15px;margin-top: -15px;}
.top-bar .btn{padding: 3px 11px 5px;font-size: 14px;margin:3px 5px;}
input[type="text"], input[type="password"], input[type="number"], select{text-indent:15px;background: #f4f4f4; border:0px solid #ebebeb; padding:12px 0;color: #53565a !important; font-size:15px;margin:10px;border-radius:5px;margin:5px 10px 15px;}
.paese{width:60px;}
.container.elenco, .container.menu{margin-top:0; padding:10px 30px 0;}
.form-block{display: flex;}
.form-block label{display: flex;}
.form-block p{display:inline-block;
  width:130px; /* o max-width: 160px */
  margin-right: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
/* === RESPONSIVE === */
@media (max-width: 768px) {
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .hide-sm { display: none !important; }
#sidebar {margin-left: -110%;}
}

@media (min-width: 769px) and (max-width: 1024px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width:980px) {
.menu #sidebar{margin-left: -110%;position:fixed;}
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #111076;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;margin: 10px 0;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #565e64;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 20px;
}

.navbar a {
  margin-right: 15px;
  color: #333;
}

.navbar a:last-child {
  margin-right: 0;
}
table{border-collapse:collapse;width:100%;}
table thead{background:#eee;}
table thead th{border:1px solid #ddd;padding: 10px;}
table tbody{background:#f7f7f7;}
table tbody td{border:1px solid #ddd;padding: 10px;}
table tbody th{border:1px solid #ddd;padding: 10px;}
table .btn{padding:5px 10px;}
table .btn .material-icons{padding:5px 5px;font-size:15px;}
table input[type="text"], table input[type="password"], table input[type="number"], table select{background: #e6e6e6;}


footer{font-size:12px; padding:20px;text-align: center;}
/* === CARD === */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.card-text {
  color: #555;
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.pt-1 { padding-top: 1rem; }
.pb-1 { padding-bottom: 1rem; }
.hidden { display: none !important; }
