@import url("/fonts/fonts.css");

:root {
  --bg: #1b1b1b;
  --bg-2: #232323;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f1efea;
  --muted: rgba(241, 239, 234, 0.62);
  --accent: #f2e14c;          /* il giallo della "x" e della pennellata del logo */
  --display: "Advent Pro", "Raleway", sans-serif;
  --body: "Raleway", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #111; }

/* ─── Header ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(27, 27, 27, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.home .top { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.langs { display: flex; gap: 10px; padding-left: clamp(8px, 1.4vw, 20px); border-left: 1px solid var(--line); }
.langs a { font-size: 12px; letter-spacing: .14em; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  font: 400 12px var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
}

@media (max-width: 820px) {
  .menu-btn { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(18, 18, 18, 0.97);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav a { font-size: 20px; }
  .langs { border-left: 0; padding: 18px 0 0; border-top: 1px solid var(--line); gap: 22px; }
  .langs a { font-size: 15px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
}

/* ─── Home ───────────────────────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #000; }
.hero .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04);
}
.hero .slide.on { opacity: 1; animation: drift 9s ease-out forwards; }
@keyframes drift { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72)); }
.hero-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 11vh, 110px); }
.claim { font: 300 clamp(30px, 5.2vw, 68px)/1.05 var(--display); letter-spacing: .01em; margin: 0 0 30px; max-width: 14em; }
.claim span { display: block; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 26px; border: 1px solid rgba(255,255,255,.7);
  text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: #111; border-color: var(--text); }
.btn.solid { background: var(--text); color: #111; border-color: var(--text); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* ─── Pagine interne ─────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-head { padding: clamp(56px, 10vw, 120px) 0 clamp(28px, 4vw, 48px); }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--text); }
h1 { font: 300 clamp(40px, 7vw, 92px)/1 var(--display); margin: 0; letter-spacing: .005em; }
h1 .year { color: var(--muted); font-size: .45em; margin-left: .3em; letter-spacing: .06em; white-space: nowrap; }

.statement { max-width: 680px; padding-bottom: clamp(36px, 6vw, 72px); }
.statement p { margin: 0 0 1.1em; }
.statement blockquote {
  margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--accent);
  font: 400 clamp(22px, 2.6vw, 30px)/1.3 var(--display); color: var(--text);
}

/* Masonry */
.masonry { columns: 3 320px; column-gap: 14px; padding-bottom: clamp(56px, 8vw, 100px); }
.masonry figure { margin: 0 0 14px; break-inside: avoid; position: relative; cursor: zoom-in; overflow: hidden; background: var(--bg-2); }
.masonry img { width: 100%; transition: transform .6s ease, opacity .3s; }
.masonry figure:hover img { transform: scale(1.025); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  font-size: 13px; letter-spacing: .08em; background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .25s;
}
.masonry figure:hover figcaption { opacity: 1; }
@media (hover: none) { .masonry figcaption { opacity: 1; } }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 8px; } .masonry figure { margin-bottom: 8px; } }

/* Extra (T-shirt Spread the word) */
.extra { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; max-width: 680px; margin: 0 0 clamp(40px, 6vw, 72px); padding: 22px; border: 1px solid var(--line); }
.extra img { background: #fff; }
.extra p { margin: 0 0 14px; }
@media (max-width: 520px) { .extra { grid-template-columns: 1fr; } .extra img { max-width: 200px; } }

/* Collezioni */
.hero-band { position: relative; height: clamp(260px, 46vh, 520px); overflow: hidden; }
.hero-band img { width: 100%; height: 100%; object-fit: cover; }
.hero-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--bg)); }
.hero-band + .wrap .page-head { padding-top: 0; margin-top: -80px; position: relative; z-index: 2; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; padding-bottom: clamp(56px, 8vw, 100px); }
.card { position: relative; display: block; text-decoration: none; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; filter: brightness(.82); }
.card:hover img { transform: scale(1.04); filter: brightness(1); }
.card .label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.75)); }
.card h2 { font: 400 clamp(26px, 2.6vw, 34px)/1.05 var(--display); margin: 0; }
.card .y { font-size: 12px; letter-spacing: .2em; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0 0; margin-bottom: clamp(48px, 7vw, 90px); }
.pager a { text-decoration: none; max-width: 48%; }
.pager small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pager span { font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--display); }
.pager a:hover span { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 90px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.about .portrait { position: sticky; top: 100px; }
.about .text p { margin: 0 0 1.15em; }
.sign { font: 400 28px var(--display); margin-top: 1.4em; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about .portrait { position: static; } }

/* Contatto */
.contact { padding-bottom: clamp(70px, 12vw, 160px); }
.contact .mail { display: inline-block; font: 300 clamp(28px, 6vw, 76px)/1.1 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 10px 0 34px; word-break: break-word; }
.contact .mail:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Footer ─────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 26px var(--gutter); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .links { display: flex; gap: 20px; }
.home .foot { display: none; }

/* ─── Lightbox ───────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .97); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lb button { position: absolute; background: none; border: 0; color: var(--text); cursor: pointer; font: 300 40px/1 var(--display); padding: 16px; opacity: .7; }
.lb button:hover { opacity: 1; }
.lb .x { top: 8px; right: 12px; font-size: 34px; }
.lb .prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 600px) { .lb .prev, .lb .next { display: none; } }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pagine legali */
.legal { max-width: 760px; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 8vw, 100px); }
.legal h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: .6em; }
.legal h2 { font: 400 24px/1.25 var(--display); margin: 1.8em 0 .5em; }
.legal h3 { font-size: 15px; font-weight: 600; letter-spacing: .04em; margin: 1.4em 0 .3em; }
.legal p { color: var(--muted); font-size: 16px; }
.legal a { color: var(--text); }
