:root{
  --w: 1080px;
  --bg: #cfd1d4;         /* leggermente più scuro */
  --panel: #eff0f1;
  --panel2:#f6f6f7;
  --border:#c6c7cc;
  --border2:#b2b4bb;
  --text:#111;
  --muted:#4d4f55;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:var(--text);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--w);margin:0 auto;padding:20px}
.top{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 18px;border-bottom:1px solid var(--border);
  background:rgba(245,245,246,.9);
  backdrop-filter: blur(6px);
  position:sticky;top:0
}
.small{font-size:13px;color:var(--muted)}
h1{font-size:20px;margin:10px 0 14px;letter-spacing:.2px}
.hphoto{margin-bottom:8px}
h2{font-size:15px;margin:0 0 10px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.card{
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .08s ease, border-color .08s ease, box-shadow .08s ease;
}
.card:hover{
  border-color:var(--border2);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  transform: translateY(-1px);
}
.thumb{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:14px;
  background:#e7e7e9;
  margin-bottom:10px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(0,0,0,.06);
}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.title{font-weight:650}

button{
  border:1px solid var(--border2);
  background:#e6e7ea;
  color:var(--text);
  padding:9px 12px;border-radius:12px;cursor:pointer
}
button:hover{border-color:#8c8f98}
button.ghost{background:transparent}

input,textarea{
  width:100%;
  margin:6px 0 10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border2);
  background:#fbfbfc;
  color:var(--text)
}
textarea{min-height:110px;resize:vertical}
.err{color:#b00020}

.photo{display:flex;justify-content:center;align-items:center;margin:0}
.photo img{
  max-width:100%;
  max-height:86vh;      /* più grande */
  border-radius:14px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}

.box{
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  margin:16px 0
}
.box.subtle{opacity:.98}

.comment{border-top:1px solid rgba(0,0,0,.10);padding:10px 0}
.comment.pending{opacity:.85}
.row{display:flex;gap:8px;margin-top:8px}
.tbl{width:100%;border-collapse:collapse}
.tbl th,.tbl td{border-bottom:1px solid rgba(0,0,0,.10);padding:8px;text-align:left;vertical-align:top}

code{background:#fbfbfc;border:1px solid rgba(0,0,0,.10);padding:2px 6px;border-radius:10px}

.navrow{
  display:grid;
  grid-template-columns:64px 1fr 64px;
  gap:10px;
  align-items:center;
  margin:10px 0 18px
}
.navbtn{
  display:inline-flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:16px;
  border:1px solid var(--border2);
  background:linear-gradient(180deg,#fafafb,#e9eaed);
  font-size:22px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.navbtn:hover{border-color:#8c8f98;text-decoration:none}
.navbtn.disabled{opacity:.35;pointer-events:none}
