* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f7;
    color: #222;
}
.topbar {
    background: #0d0d1a;
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar .titolo { font-weight: bold; font-size: 16px; }
.topbar nav a {
    color: #cfd8e3;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}
.topbar nav a:hover, .topbar nav a.attivo { color: #ffffff; font-weight: bold; }
.contenitore { max-width: 640px; margin: 0 auto; padding: 16px; }
.scatola {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
h2 { margin-top: 0; color: #0d0d1a; }
.sotto { color: #888; font-size: 13px; margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: bold; color: #444; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=date], input[type=time], textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
textarea { min-height: 90px; resize: vertical; }
input[type=file] { width: 100%; margin-top: 4px; }
.servizi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.servizi label {
    display: flex; align-items: center; gap: 6px;
    background: #f0f2f5; padding: 8px 12px; border-radius: 20px;
    font-size: 13px; font-weight: normal; margin: 0; cursor: pointer;
}
.servizi input { width: auto; }
.btn {
    display: inline-block;
    background: #1a6985;
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 14px;
    text-decoration: none;
}
.btn:hover { background: #144f66; }
.btn.rosso { background: #c0392b; }
.btn.rosso:hover { background: #962b20; }
.btn.piccolo { padding: 6px 12px; font-size: 12px; margin-top: 0; }
.msg { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.msg.ok { background: #e6f6ea; color: #1e7e34; }
.msg.errore { background: #fdecea; color: #b02a1e; }
.galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.galleria .foto { position: relative; }
.galleria img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; display: block; }
.galleria form { position: absolute; top: 4px; right: 4px; }
.galleria button {
    background: rgba(0,0,0,.6); color: white; border: none; border-radius: 50%;
    width: 24px; height: 24px; font-size: 13px; cursor: pointer; line-height: 1;
}
.anteprima-cover { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: block; background:#eee; }
.anteprima-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; margin-bottom: 8px; display: block; background:#eee; }
.evento { border-bottom: 1px solid #eee; padding: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
.evento:last-child { border-bottom: none; }
.evento img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background:#eee; }
.evento .info { flex: 1; }
.evento .data { color: #1a6985; font-weight: bold; font-size: 13px; }
.suggerimento { font-size: 12px; color: #999; margin-top: 4px; }
