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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #F9FBFB; /* Bianco sporco dal logo */
    color: #4a4a4a;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centra il testo nel container */
}

h1, h2 {
    color: #2A8B8B; /* Verde Ottanio dal logo */
    font-weight: 700;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

p {
    line-height: 1.6;
    color: #555;
}

form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Nuovo stile per il form di ricerca */
.search-form {
    margin-top: 30px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 50px; /* Bordi super arrotondati */
    padding: 5px;
    background-color: #f9f9f9;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #F38B4D; /* Arancione per l'accento */
}

/* Stile specifico per l'input nella barra di ricerca */
.input-wrapper input[type="text"] {
    border: none;
    background: transparent;
    margin: 0;
    padding: 10px 20px;
    flex-grow: 1;
}
.input-wrapper input[type="text"]:focus {
    outline: none;
}

button {
    padding: 12px 30px;
    background: #F38B4D; /* Arancione dal logo */
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

button:hover {
    background: #e07a3a; /* Una tonalità di arancione più scura */
}

/* Stile per i pulsanti icona nella barra di ricerca */
.input-wrapper button {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    margin-left: 5px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 45px; /* Centra l'icona verticalmente */
}

.admin-link, .back-link {
    text-align: center;
    margin-top: 30px;
}

.admin-link a, .back-link a {
    color: #a0a0a0;
    text-decoration: none;
}

.admin-link a:hover, .back-link a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 30px 0;
}

.comments-section .comment {
    background-color: #f9f9f9;
    border-left: 4px solid #78C9B8; /* Turchese dal logo */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.comment-author {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.comment-message {
    margin: 0;
}

.comment-timestamp {
    margin: 10px 0 0 0;
    font-size: 0.8em;
    color: #7f8c8d;
    text-align: right;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
