/* Empatiamoci Pet ODV — stile Windows (Fluent) */
:root {
  --bg: #f3f3f3;
  --layer: #f9f9f9;
  --card: #ffffff;
  --card-hover: #f6f6f6;
  --stroke: #e5e5e5;
  --stroke-strong: #d1d1d1;
  --text: #1b1b1b;
  --text-2: #5c5c5c;
  --text-3: #707070;
  --accent: #0f6cbd;
  --accent-hover: #115ea3;
  --accent-press: #0c3b5e;
  --accent-text: #0f6cbd;
  --accent-soft: #ebf3fc;
  --on-accent: #ffffff;
  --danger: #c42b1c;
  --danger-soft: #fde7e9;
  --success: #0e7a0d;
  --success-soft: #dff6dd;
  --warning: #8a5300;
  --warning-soft: #fff4ce;
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .04);
  --shadow-8: 0 4px 8px rgba(0, 0, 0, .12), 0 0 2px rgba(0, 0, 0, .1);
  --shadow-28: 0 14px 28px rgba(0, 0, 0, .22), 0 0 8px rgba(0, 0, 0, .1);
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Roboto", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202020;
    --layer: #272727;
    --card: #2d2d2d;
    --card-hover: #333333;
    --stroke: #3a3a3a;
    --stroke-strong: #4a4a4a;
    --text: #ffffff;
    --text-2: #c8c8c8;
    --text-3: #a8a8a8;
    --accent: #115ea3;
    --accent-hover: #0f6cbd;
    --accent-press: #0c3b5e;
    --accent-text: #62abf5;
    --accent-soft: #1d2d3d;
    --danger: #ff99a4;
    --danger-soft: #442726;
    --success: #6ccb5f;
    --success-soft: #1f3a1d;
    --warning: #fce100;
    --warning-soft: #433519;
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-8: 0 4px 8px rgba(0, 0, 0, .35), 0 0 2px rgba(0, 0, 0, .3);
    --shadow-28: 0 14px 28px rgba(0, 0, 0, .5), 0 0 8px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--stroke-strong) transparent; scrollbar-width: thin; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); caret-color: var(--accent-text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent); color: var(--on-accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--stroke-strong); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--r-s); }
a { color: var(--accent-text); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(26px, 6vw, 40px); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: "Cascadia Mono", "Consolas", ui-monospace, monospace; letter-spacing: .02em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.titlebar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px;
  height: 52px; padding: 0 8px 0 16px; padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 30px; height: 30px; border-radius: var(--r-m); background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font: 600 15px/1.1 var(--font-display); white-space: nowrap; }
.brand-name small { font-weight: 400; color: var(--text-2); font-size: 12px; margin-left: 2px; }

.nav {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--layer) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--stroke);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-2); text-decoration: none; font-size: 11.5px; position: relative;
}
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent-text);
}
main { padding: 20px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); max-width: 1080px; margin: 0 auto; outline: none; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; }
  .titlebar { grid-column: 1 / -1; }
  .nav {
    position: sticky; top: 53px; height: calc(100vh - 53px); flex-direction: column; gap: 2px;
    padding: 12px 8px; border-top: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-s); font-size: 14px; }
  .nav a:hover { background: var(--card-hover); color: var(--text); }
  .nav a[aria-current="page"] { background: var(--card); box-shadow: var(--shadow-2); color: var(--text); }
  .nav a[aria-current="page"] svg { color: var(--accent-text); }
  .nav a[aria-current="page"]::before { top: 11px; left: 0; width: 3px; height: 18px; border-radius: 3px; }
  main { padding: 28px 32px 64px; margin: 0; width: 100%; }
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 6px 14px; border-radius: var(--r-s);
  font: 500 14px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--stroke); border-bottom-color: var(--stroke-strong);
  background: var(--card); color: var(--text);
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--card-hover); }
.btn:active { color: var(--text-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: transparent; border-bottom-color: rgba(0, 0, 0, .25); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:active { background: var(--accent-press); color: rgba(255, 255, 255, .8); }
.btn.subtle { background: transparent; border-color: transparent; }
.btn.subtle:hover { background: var(--card-hover); }
.btn.danger { color: var(--danger); }
.btn.big { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn.icon { padding: 6px; width: 36px; }
.btn.block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.titlebar .btn span { display: none; }
@media (min-width: 520px) { .titlebar .btn span { display: inline; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-m); background: var(--layer); border: 1px solid var(--stroke); }
.seg button { border: 0; background: transparent; color: var(--text-2); font: 500 14px var(--font); padding: 6px 14px; border-radius: 5px; cursor: pointer; min-height: 32px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow-2); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; }
.field > span em { font-style: normal; font-weight: 400; color: var(--text-2); }
.hint { font-size: 13px; color: var(--text-2); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--text); background: var(--card);
  border: 1px solid var(--stroke); border-bottom: 1px solid var(--text-3); border-radius: var(--r-s);
  padding: 8px 11px; min-height: 40px; transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { background: var(--card-hover); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--card); border-bottom-color: var(--accent-text); box-shadow: inset 0 -1px 0 var(--accent-text); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .form .row2 { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--stroke-strong); background: var(--card); font-size: 14px; font-weight: 500;
}
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent-text); color: var(--accent-text); }
.choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.hp { position: absolute; left: -5000px; }
.form-error { color: var(--danger); font-size: 14px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-m); box-shadow: var(--shadow-2); }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.section-head a svg { width: 16px; height: 16px; }
.lead { color: var(--text-2); max-width: 62ch; margin-top: 10px; font-size: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.page-head p { color: var(--text-2); margin-top: 6px; max-width: 60ch; }

/* home */
.hero { padding: 8px 0 4px; }
.hero h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sos {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px;
  border-radius: var(--r-m); background: var(--warning-soft); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--warning) 25%, transparent);
}
.sos > svg { color: var(--warning); width: 24px; height: 24px; }
.sos div { flex: 1 1 220px; }
.sos strong { display: block; }
.sos p { font-size: 14px; color: var(--text-2); }
.sos-actions { display: flex; gap: 8px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; margin: 0; padding: 2px 0; } }

/* animal tiles */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } }
.tile {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
  font: inherit; color: inherit; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-m);
  box-shadow: var(--shadow-2); transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tile:hover { box-shadow: var(--shadow-8); transform: translateY(-1px); }
.tile .ph { aspect-ratio: 4 / 5; position: relative; background: var(--layer); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.tile .name { font: 600 16px/1.25 var(--font-display); }
.tile .meta { font-size: 13px; color: var(--text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-s);
  font-size: 12px; font-weight: 600; line-height: 18px; background: var(--layer); color: var(--text-2);
}
.tile .badge { position: absolute; left: 8px; top: 8px; background: var(--card); box-shadow: var(--shadow-2); }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.info { background: var(--accent-soft); color: var(--accent-text); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--stroke-strong); background: var(--layer); }
.noimg svg { width: 42%; height: 42%; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-2); display: grid; justify-items: center; gap: 10px; }
.empty svg { width: 40px; height: 40px; color: var(--stroke-strong); }
.empty strong { color: var(--text); font-size: 16px; }

/* list rows (segnalazioni, eventi) */
.list { display: grid; gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-2); }
.row { display: flex; gap: 14px; padding: 12px 14px; background: var(--card); align-items: flex-start; }
.row .thumb { width: 76px; height: 76px; border-radius: var(--r-s); overflow: hidden; flex: none; background: var(--layer); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.row .main .t { font-weight: 600; font-size: 15px; }
.row .main .d { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .main .m { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); align-items: center; }
.row .main .m span { display: inline-flex; align-items: center; gap: 4px; }
.row .main .m svg { width: 15px; height: 15px; }
.row .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.row.resolved { opacity: .72; }
.date-chip {
  width: 56px; flex: none; border-radius: var(--r-s); overflow: hidden; text-align: center;
  border: 1px solid var(--stroke); background: var(--card);
}
.date-chip b { display: block; background: var(--accent); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0; }
.date-chip span { display: block; font: 600 22px/1.3 var(--font-display); padding: 2px 0 4px; font-variant-numeric: tabular-nums; }

/* aiutaci */
.help-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .help-grid { grid-template-columns: 1fr 1fr; } }
.pane { padding: 20px; display: grid; gap: 14px; align-content: start; }
.pane-head { display: flex; gap: 12px; align-items: center; }
.pane-head .ic { width: 40px; height: 40px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.pane-head .ic svg { width: 22px; height: 22px; }
.pane p { color: var(--text-2); }
.copyline {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: var(--r-s);
  background: var(--layer); border: 1px solid var(--stroke);
}
.copyline .v { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.copyline small { display: block; font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--text-2); letter-spacing: 0; }
.big5 { font: 700 30px/1.1 var(--font-display); letter-spacing: .01em; }

/* contatti */
.contact-list { display: grid; gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--r-m); overflow: hidden; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); color: var(--text); text-decoration: none; }
.contact-list a:hover { background: var(--card-hover); }
.contact-list svg { color: var(--accent-text); }
.contact-list .x { flex: 1; min-width: 0; }
.contact-list small { display: block; color: var(--text-2); font-size: 13px; }
.contact-list .chev { color: var(--text-3); width: 16px; height: 16px; }
.map { margin-top: 16px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 16 / 10; background: var(--layer); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- sheet (dettaglio e moduli) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); animation: fade .25s ease-out; }
.sheet {
  position: relative; background: var(--layer); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow-28);
  max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; width: 100%;
  animation: rise .42s var(--ease);
}
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 10px 10px 20px; border-bottom: 1px solid var(--stroke); }
.sheet-head h2 { flex: 1; font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; filter: blur(4px); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 760px) {
  .sheet-wrap { align-items: center; justify-items: center; padding: 24px; }
  .sheet { width: min(720px, 100%); border-radius: var(--r-l); max-height: 88vh; }
  @keyframes rise { from { transform: translateY(16px) scale(.98); opacity: 0; filter: blur(4px); } }
}
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { animation: none; } .tile { transition: none; } }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-m); background: var(--card); aspect-ratio: 4 / 3; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img, .gallery .noimg { width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--stroke-strong); }
.dots i.on { background: var(--accent-text); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--r-m); overflow: hidden; margin: 16px 0; }
.facts div { background: var(--card); padding: 10px 12px; }
.facts small { display: block; font-size: 12px; color: var(--text-2); }
.facts b { font-weight: 600; font-size: 14.5px; display: block; }
.facts b::first-letter { text-transform: uppercase; }
.prose { white-space: pre-line; color: var(--text); max-width: 65ch; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 20px 0; }
.done .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.done .ic svg { width: 30px; height: 30px; stroke-width: 2; }
.done p { color: var(--text-2); max-width: 44ch; }

.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick .prev { width: 72px; height: 72px; border-radius: var(--r-s); object-fit: cover; border: 1px solid var(--stroke); }
.photo-pick label { cursor: pointer; }
.photo-pick input { display: none; }

/* ---------- misc ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-m); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-28); transition: transform .3s var(--ease), opacity .2s;
  max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 60px 0; color: var(--text-2); }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--accent-text); border-right-color: transparent; animation: spin .8s linear infinite; }
.offline-note { font-size: 13px; color: var(--text-2); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.footer-note { margin-top: 48px; font-size: 13px; color: var(--text-2); }
.demo-bar { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--text); font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent-text) 25%, transparent); }

/* logo, foto di apertura, attività */
.brand-logo { width: 34px; height: 34px; border-radius: var(--r-m); object-fit: cover; }
.hero.has-photo { display: grid; gap: 20px; }
.hero-photo { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--layer); box-shadow: var(--shadow-8); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (min-width: 760px) {
  .hero.has-photo { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 36px; }
  .hero.has-photo .hero-photo { order: 2; aspect-ratio: 4 / 5; max-height: 520px; }
  .hero.has-photo .sos { grid-column: 1 / -1; }
}
.about .prose { color: var(--text-2); }
.acts-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 700px) { .acts-grid { grid-template-columns: repeat(4, 1fr); } }
.act { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-m); box-shadow: var(--shadow-2); transition: box-shadow .2s var(--ease); }
.act:hover { box-shadow: var(--shadow-8); }
.act .ph { aspect-ratio: 4 / 3; background: var(--layer); }
.act .ph img { width: 100%; height: 100%; object-fit: cover; }
.act .body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.act .name { font: 600 15px/1.3 var(--font-display); }
.act .meta { font-size: 13px; color: var(--text-2); }
.act-list { display: grid; gap: 16px; }
.act-row { display: grid; overflow: hidden; }
.act-row .ph { aspect-ratio: 16 / 9; background: var(--layer); }
.act-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.act-row .body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.act-row .aud { display: flex; gap: 6px; align-items: center; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.act-row .aud svg { width: 18px; height: 18px; }
.act-row .meta { font-size: 13.5px; color: var(--text-2); }
@media (min-width: 760px) { .act-row { grid-template-columns: 300px 1fr; } .act-row .ph { aspect-ratio: auto; min-height: 100%; } }
