@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root { --bg: #0c0c0c; --panel: #151514; --line: rgba(255,255,255,.12); --text: #f4f4f2; --soft: #a3a39e; --faint: #6e6e69; --amber: #f59e0b; --ease: cubic-bezier(.2,.8,.2,1); --g: clamp(20px, 4vw, 64px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body.gal { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* intestazione */
.top { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; gap: 18px; height: 72px; padding: 0 var(--g); transition: background .3s, backdrop-filter .3s; }
.top.solid { background: rgba(12,12,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand img { height: 34px; display: block; filter: invert(1); }
.crumb { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.28); font-weight: 600; color: var(--soft); white-space: nowrap; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-weight: 600; }
.top nav a { color: var(--soft); transition: color .2s; }
.top nav a:hover { color: var(--text); }
.top nav .pill { color: #0c0c0c; background: var(--text); padding: 7px 14px; font-size: 13px; transition: background .2s, color .2s; }
.top nav .pill:hover { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

/* apertura */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #151514; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease), transform 9s linear; }
.hero-bg img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.15) 38%, rgba(12,12,12,.88) 100%); }
.hero-in { position: relative; z-index: 2; width: 100%; padding: 0 var(--g) 56px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.5); }
.hero h1 { margin: 0; font-size: clamp(42px, 8.4vw, 124px); line-height: .96; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.hero p { margin: 22px 0 0; max-width: 52ch; font-size: clamp(15px, 1.6vw, 19px); color: rgba(255,255,255,.82); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 36px 0 0; padding: 0; }
.stats div { display: grid; gap: 2px; }
.stats dt { order: 2; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.stats dd { order: 1; margin: 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cue { position: absolute; right: var(--g); bottom: 56px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); transition: background .2s, color .2s; }
.cue:hover { background: var(--text); color: #0c0c0c; }
.cue svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* elenco */
main { padding: 72px var(--g) 40px; }
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.bar h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.bar h2 small { margin-left: 8px; font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 38px; padding: 0 16px; border: 1px solid var(--line); background: none; color: var(--soft); font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chips button:hover { border-color: var(--soft); color: var(--text); }
.chips button[aria-selected=true] { background: var(--text); border-color: var(--text); color: #0c0c0c; }
.chips b { margin-left: 6px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { width: 240px; max-width: 100%; height: 38px; padding: 0 12px 0 38px; background: var(--panel); border: 1px solid var(--line); border-radius: 0; color: var(--text); font: inherit; outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--soft); }
.search input::placeholder { color: var(--faint); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 44px 28px; }
.card { display: block; }
.card .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .pic img, .card:focus-visible .pic img { transform: scale(1.045); }
.card .go { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--text); color: #0c0c0c; font-weight: 700; font-size: 13px; transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.card:hover .go, .card:focus-visible .go { transform: none; opacity: 1; }
.card .txt { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.card .meta { margin-top: 2px; color: var(--soft); font-size: 14px; }
.card .n { flex: none; color: var(--faint); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.skel { aspect-ratio: 16 / 10; background: linear-gradient(100deg, #151514 30%, #1c1c1a 50%, #151514 70%); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--soft); }
.empty button { margin-top: 14px; }

/* contatto */
.cta { padding: 120px var(--g); text-align: left; border-top: 1px solid var(--line); margin-top: 72px; }
.cta h2 { margin: 0; font-size: clamp(34px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.cta p { margin: 22px 0 0; max-width: 46ch; color: var(--soft); font-size: 17px; }
.btn { margin-top: 36px; display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 26px; background: var(--text); color: #0c0c0c; font-weight: 700; transition: gap .3s var(--ease), background .2s, color .2s; }
.btn:hover { gap: 20px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.foot { border-top: 1px solid var(--line); font-size: 14px; }
.foot a { color: var(--soft); transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 32px var(--g); }
.foot-logo { height: 56px; display: block; filter: invert(1); }
.foot-social { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; }
.foot-social svg { width: 16px; height: 16px; stroke-width: 1.6; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 20px var(--g); border-top: 1px solid var(--line); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 20px var(--g) max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.foot-bottom p { margin: 0; }
.foot-links { display: flex; gap: 24px; }
.foot .m-only { display: none; }

@media (max-width: 720px) {
  .foot-social { display: none; }
  .foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
  .foot .m-only { display: inline; } .foot .d-only { display: none; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .top { height: 60px; }
  .brand img { height: 28px; }
  .crumb { display: none; }
  .top nav { gap: 14px; }
  .hero { min-height: 66svh; } /* -20% rispetto a prima */
  .hero-in { padding-bottom: 36px; }
  .cue { display: none; }
  .search, .search input { width: 100%; }
  .tools { width: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; }
  .chips button { flex: none; }
  .grid { gap: 36px 0; }
  .cta { padding: 80px var(--g); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
