/* Nicolò Martire — nicolomartire.com */

/* Font del sito: Nexa */
@font-face { font-family: "Nexa"; src: url("fonts/Nexa-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("fonts/Nexa-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("fonts/Nexa-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --veil: rgba(10, 10, 10, .78);
  --panel: rgba(18, 18, 18, .82);
  --line: rgba(255, 255, 255, .14);
  --text: #f1f1f1;
  --muted: #a9a9a9;
  --red: #c9604d;      /* rosso "In arrivo" / L'ora rossa */
  --red-hi: #dd7563;   /* per testi piccoli: contrasto AA sul nero */

  --font: "Nexa", "Montserrat", system-ui, sans-serif; /* Montserrat solo come riserva */
  --gutter: clamp(16px, 5vw, 72px);
  --rail: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 700; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }

/* SFONDO FISSO */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(1); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: linear-gradient(rgba(10,10,10,.55), rgba(10,10,10,0));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10,10,10,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.logo { display: block; padding: 6px 0; color: var(--text); text-decoration: none; }
.logo__mark { display: block; width: 46px; height: 45px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: miter; stroke-miterlimit: 1.5; }
.logo:hover { color: var(--red-hi); }

.nav__menu ul { display: flex; gap: clamp(16px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: inline-block; padding: 12px 0;
  font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: rgba(241,241,241,.72);
  transition: color .2s;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--text); }
.nav__menu a.is-active { font-weight: 700; }
.nav__toggle { display: none; }

/* SOCIAL RAIL */
.rail {
  position: fixed; right: 20px; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.rail a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); transition: color .2s, transform .2s var(--ease); }
.rail a:hover { color: var(--red-hi); transform: scale(1.08); }
.rail svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rail .fill { fill: currentColor; stroke: none; }

/* LAYOUT */
.section { position: relative; background: var(--veil); padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 120px); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 calc(var(--gutter) + var(--rail)) 0 var(--gutter); }

.title {
  margin: 0 0 clamp(36px, 5vw, 64px);
  font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
}
.subtitle {
  margin: 0 0 20px;
  font-size: clamp(19px, 2vw, 24px); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}
.subtitle .lc { text-transform: none; }
.subtitle--lg { font-size: clamp(24px, 2.6vw, 30px); margin-top: clamp(64px, 8vw, 104px); }
p { margin: 0 0 16px; max-width: 68ch; }

/* HOME */
.home {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
  background: linear-gradient(to top, rgba(10,10,10,.55), transparent 45%);
}
.home__name {
  margin: 0;
  font-size: clamp(42px, 8.2vw, 144px); font-weight: 700; line-height: .95;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--red);
  animation: rise 1.6s var(--ease) both .2s;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* MUSICA */
.album { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.album__cover {
  aspect-ratio: 1; max-width: 420px; width: 100%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 62%, rgba(255,255,255,.32), rgba(255,255,255,.04) 30%, transparent 55%), #121212;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.album__cover span { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.album__text p { color: #dcdcdc; }
@media (min-width: 860px) { .album { grid-template-columns: minmax(260px, 420px) 1fr; } }

.player { margin: clamp(56px, 7vw, 88px) 0; }
.player iframe { display: block; border: 0; border-radius: 12px; background: #181818; }

.singles { display: grid; gap: 48px; }
.single { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.single img { width: 96px; height: 96px; object-fit: cover; }
.single__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.single__meta { margin: 2px 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.single p:not(.single__meta) { color: #dcdcdc; }
@media (min-width: 640px) { .single { grid-template-columns: 140px 1fr; gap: 32px; } .single img { width: 140px; height: 140px; } }

.actions { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 8px 0 0; padding: 0; }
.actions a {
  display: inline-block; padding: 10px 0;
  font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.actions a:hover { color: var(--red-hi); border-color: var(--red-hi); }

/* RITRATTO */
.bio { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.bio__img { width: 100%; max-width: 440px; aspect-ratio: 3 / 4; object-fit: cover; }
.bio__text p { color: #e2e2e2; }
@media (min-width: 900px) { .bio { grid-template-columns: minmax(280px, 400px) 1fr; } }

.collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: clamp(64px, 8vw, 104px); }
.collage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 760px) { .collage { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.doc { display: grid; gap: 28px; align-items: center; margin-top: clamp(64px, 8vw, 104px); }
@media (min-width: 900px) { .doc { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  background: rgba(10,10,10,.45); color: #fff;
  transition: background .2s, transform .2s var(--ease);
}
.video__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video:hover .video__play { background: var(--red); border-color: var(--red); transform: scale(1.05); }

/* LIVE */
.live { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.live__img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .live { grid-template-columns: minmax(260px, 340px) 1fr; } }
.live__dates .subtitle:not(:first-child) { margin-top: 48px; }

.soon { margin: 0; padding: 16px 20px; background: var(--panel); color: #dcdcdc; }
.gigs { list-style: none; margin: 0; padding: 0; background: var(--panel); }
.gigs li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.gigs li:last-child { border-bottom: 0; }
.gigs time { font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gigs__city { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gigs--past li { grid-template-columns: 1fr auto; color: #cfcfcf; }
@media (max-width: 520px) {
  .gigs li { grid-template-columns: 56px 1fr; }
  .gigs li .gigs__city { grid-column: 2; }
  .gigs--past li { grid-template-columns: 1fr; gap: 2px; }
  .gigs--past li .gigs__city { grid-column: 1; }
}

.booking { display: grid; gap: 32px; align-items: end; margin-top: clamp(56px, 7vw, 88px); }
.booking img { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; justify-self: end; }
@media (min-width: 760px) { .booking { grid-template-columns: 1fr 260px; } }
@media (max-width: 759px) { .booking img { display: none; } }
.mail {
  display: inline-block; margin-top: 4px; padding: 6px 0;
  font-size: clamp(17px, 2vw, 21px); font-weight: 400;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--red-hi); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: clamp(56px, 7vw, 88px); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .is-wide { grid-column: span 2; aspect-ratio: 8 / 5; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; list-style: none; margin: 0; padding: 0; }
.band img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 14px; }
.band strong { display: block; font-size: 15px; letter-spacing: .04em; }
.band span { display: block; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) { .band { grid-template-columns: repeat(4, 1fr); } }

/* INFO & PRESS */
.download {
  display: flex; align-items: center; gap: 20px;
  max-width: 520px; padding: 20px 24px; margin-bottom: 16px;
  background: rgba(255,255,255,.12); border: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.download:hover, .mx3:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
.mx3 {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  margin-bottom: clamp(56px, 7vw, 88px);
  background: rgba(255,255,255,.12); border: 1px solid var(--line);
  font-size: 17px; font-weight: 400; letter-spacing: .08em; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.download svg { width: 34px; height: 42px; flex: none; }
.download .fill { fill: #f1f1f1; }
.download .fold { fill: none; stroke: #0a0a0a; stroke-width: 1.4; }
.download text { font: 600 8px var(--font); fill: #0a0a0a; letter-spacing: .04em; }
.download strong { display: block; font-size: 20px; letter-spacing: .1em; }
.download small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.contacts { margin: 0; display: grid; gap: 18px; }
.contacts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contacts dd { margin: 0; }
.contacts a { display: inline-block; padding: 4px 0; font-size: 18px; text-underline-offset: 5px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--red-hi); }

/* FOOTER */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px calc(var(--gutter) + var(--rail)) 28px var(--gutter);
  background: #050505; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer a { text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--text); }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* MOBILE */
@media (max-width: 820px) {
  :root { --rail: 0px; }
  .nav__toggle {
    display: grid; align-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10,10,10,.96);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__menu ul { flex-direction: column; align-items: center; gap: 8px; }
  .nav__menu a { font-size: 22px; letter-spacing: .16em; }
  .menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .menu-open .nav__menu { opacity: 1; visibility: visible; }
  .menu-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .logo { position: relative; z-index: 2; }

  .rail {
    top: auto; bottom: 40px; right: 0; left: 0; transform: none;
    flex-direction: row; justify-content: center; gap: 16px; z-index: 101;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .rail { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
