/* Body per la visualizzazione tabella (PHP) */
.tabella-body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Body per la pagina index.html (form) */
.index-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #c9d6ff 0%, #e2e2e2 100%);
    margin: 0;
    padding: 0;
}

/* -------- Stili condivisi -------- */

h1 {
    text-align: center;
    color: #333;
}

table {
    width: 70%;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

form {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease-in-out;
    margin: 40px auto 0 auto;
    /* le altre regole del form già in style.css */
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
    outline: none;
}

#suggestions {
    position: absolute;
    background: white;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    display: none;
    z-index: 10;
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
}

#suggestions div:hover {
    background: #f5f5f5;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
}

input[type="submit"]:hover {
    background-color: #43a047;
    box-shadow: 0 4px 12px rgba(76,175,80,0.2);
    transform: scale(1.02);
}

@media (max-width: 600px) {
    form {
        padding: 25px;
    }
    h1 {
        font-size: 1.4em;
    }
}

.main-nav {
  background: #4CAF50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0;
  margin-bottom: 25px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.main-nav li {
  margin: 0 18px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  padding: 14px 0;
  display: inline-block;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #e2e2e2;
  text-decoration: underline;
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh; /* centra verticalmente */
}
