/* ==========================================================
   Pietro Vicentini — batteria e live electronics
   Stile: grigio-azzurro dei PDF di 800 Kids, accento blu
   dei link, titoli stretti e maiuscoli, etichette mono.
   I colori si cambiano qui sotto, nella sezione :root.
   ========================================================== */

/* ---------- Caratteri: gli stessi di kmru.info ----------
   Karla (titoli e testi) e Space Mono (etichette): licenza OFL, nella cartella fonts/.
   New Edge 666 (il carattere dei testi di kmru.info, di Rosetype) è a pagamento:
   con la licenza web, metti il file in fonts/ come "NewEdge666-Regular.woff2" e togli
   il commento qui sotto. Prende il posto di Karla nei testi; senza il file resta Karla. */
/* @font-face { font-family: "New Edge 666"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/NewEdge666-Regular.woff2") format("woff2"); } */
@font-face { font-family: "Karla"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/karla-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/karla-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-style: italic; font-display: swap; font-weight: 200 800; src: url("../fonts/karla-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: italic; font-display: swap; font-weight: 200 800; src: url("../fonts/karla-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/space-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/space-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/space-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/space-mono-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #EDEFF3;          /* grigio-azzurro dei PDF */
  --bg-2: #E2E5EB;
  --paper: #F8F9FB;
  --ink: #111318;
  --ink-2: #3E424B;
  --muted: #6E737D;
  --line: rgba(17, 19, 24, .13);
  --line-2: rgba(17, 19, 24, .30);

  --dark: #111318;
  --dark-2: #1A1D24;
  --bone: #EDEFF3;
  --bone-2: #A9AEB8;
  --dline: rgba(237, 239, 243, .13);
  --dline-2: rgba(237, 239, 243, .30);

  --accent: #2B6CD4;      /* blu dei link nei PDF */
  --accent-2: #5B93F0;
  --accent-ink: #FFFFFF;

  --display: "Karla", "Helvetica Neue", Arial, sans-serif;
  --sans: "New Edge 666", "Karla", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec: clamp(80px, 10vw, 132px);
  --radius: 2px;
  --head-h: 72px;
}

/* Tema scuro (pulsante luna/sole in testata) */
:root[data-theme="dark"] {
  --bg: #0E1014;
  --bg-2: #15181E;
  --paper: #1A1D24;
  --ink: #E9EBF0;
  --ink-2: #BCC1CA;
  --muted: #8C929D;
  --line: rgba(233, 235, 240, .12);
  --line-2: rgba(233, 235, 240, .28);
  --dark: #08090C;
  --dark-2: #12141A;
  --accent: #4C86E8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--bone); }
.section--dark p { color: var(--bone-2); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; line-height: .94; letter-spacing: -.035em; }
h1 { font-size: clamp(56px, 8.4vw, 118px); }
h2 { font-size: clamp(40px, 5.4vw, 72px); }
h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.section--dark h2 em { color: var(--accent-2); }
p { margin: 0 0 1em; color: var(--ink-2); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.label .num { color: var(--muted); }
.label--light { color: var(--bone); }
.label--light::before { background: var(--accent-2); }
.label--light .num { color: var(--bone-2); }

.head { margin-bottom: clamp(40px, 6vw, 68px); }
.head h2 { margin-top: 18px; }
.head > p { max-width: 520px; margin: 22px 0 0; }
.head--split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; }
.head--split > p { margin: 0 0 6px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--line-2); background: transparent; border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent svg { fill: currentColor; stroke: none; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.section--dark .btn--accent:hover { background: var(--bone); border-color: var(--bone); color: var(--dark); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 3px; transition: color .2s ease;
}
.link::after { content: "→"; transition: transform .2s ease; }
.link:hover { color: var(--accent); }
.link:hover::after { transform: translateX(3px); }

/* ---------- Menù ----------
   Su computer (oltre 1080 px) è una colonna fissa a sinistra;
   su tablet e telefono una barra in alto con il menu a tendina. */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark svg { width: 36px; height: 36px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; }
.logo__mark .fill { fill: var(--accent); stroke: none; }
.logo:hover .logo__mark svg { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo__txt { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: -.02em; }
.logo__txt small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nav, .side__soc, .header .header__cta { display: none; }
.side__foot { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__right { display: flex; align-items: center; gap: 10px; }

@media (min-width: 1081px) {
  :root { --side: 264px; --head-h: 0px; }
  html { scroll-padding-top: 0; }
  body { padding-left: var(--side); }
  .header {
    position: fixed; inset: 0 auto 0 0; width: var(--side); height: auto;
    background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 0; border-right: 1px solid var(--line);
  }
  .header__in { flex-direction: column; align-items: stretch; gap: 0; padding: 30px 26px 26px; overflow-y: auto; }
  .nav { display: flex; flex-direction: column; margin-top: 52px; border-top: 1px solid var(--line); }
  .nav a {
    display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line);
    font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1.15; letter-spacing: -.01em;
    transition: color .2s ease, padding .25s ease;
  }
  .nav a:hover, .nav a.is-on { color: var(--accent); padding-left: 6px; }
  .side__foot { margin: auto 0 0; padding-top: 32px; display: grid; gap: 20px; }
  .header .header__cta { display: inline-flex; width: 100%; }
  .side__soc { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
  .side__soc a { color: var(--muted); transition: color .2s ease; }
  .side__soc a::after { content: " ↗"; }
  .side__soc a:hover { color: var(--accent); }
  .header__right { justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
  .burger, .drawer, .overlay { display: none !important; }
}
.lang { display: inline-flex; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.lang span { padding: 6px 5px; color: var(--muted); }
.lang span.on { color: var(--ink); }
.tema { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; }
.tema svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tema .i-sun { display: none; }
:root[data-theme="dark"] .tema .i-sun { display: block; }
:root[data-theme="dark"] .tema .i-moon { display: none; }
/* Menu su telefono, come loshop3d.it: tre linee che diventano una ×,
   pannello che scorre da destra e pagina scurita dietro */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, top .28s ease; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.overlay { position: fixed; inset: 0; z-index: 85; background: rgba(8, 9, 12, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.overlay.show { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 90; height: 100vh; height: 100dvh; width: min(340px, 86vw);
  background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(8, 9, 12, .22);
  padding: calc(var(--head-h) + 20px) 26px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility 0s .34s;
}
.drawer.open { transform: translateX(0); visibility: visible; transition: transform .34s cubic-bezier(.4, 0, .2, 1); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; transition: color .2s ease; }
.drawer nav a:hover { color: var(--accent); }
.drawer__cta { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.btn--call svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawer__cta .btn--accent svg { fill: currentColor; stroke: none; }
.drawer__foot { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.drawer__foot a { color: var(--muted); transition: color .2s ease; }
.drawer__foot a:hover { color: var(--accent); }
.drawer__soc { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
html.menu-open { overflow: hidden; }
.lang--drawer { display: flex; width: max-content; margin-bottom: 14px; font-size: 12px; }
.lang--drawer span { padding: 8px 10px; border: 1px solid var(--line); }
.lang--drawer span.on { border-color: var(--ink); }
@media (min-width: 561px) { .lang--drawer { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 520px; margin: 26px 0 34px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__img { margin: 0; position: relative; }
.hero__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__img figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; color: var(--muted); }
.hero__facts {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 7vw, 88px); padding-top: 0; padding-bottom: clamp(48px, 6vw, 80px);
}
.hero__facts li { display: flex; gap: 16px; padding: 22px 24px 0 0; border-top: 1px solid var(--line-2); }
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); padding-top: 3px; }
.hero__facts strong { display: block; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; line-height: 1.1; }
.hero__facts span span { color: var(--muted); font-size: 15px; }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__txt > p { max-width: 560px; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line-2); }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts .mono { color: var(--accent); padding-top: 3px; }

/* ---------- EP ---------- */
.ep { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ep__cover { margin: 0; position: sticky; top: calc(var(--head-h) + 24px); }
.ep__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ep__cover figcaption { padding-top: 12px; color: var(--muted); }
.embed { position: relative; background: var(--paper); border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--sc iframe { height: 450px; }
.ep__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.ep__tot { color: var(--muted); }
.quote { margin: clamp(40px, 5vw, 60px) 0 0; padding: 26px 0 0 26px; border-left: 2px solid var(--accent); }
.quote p { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(20px, 2vw, 26px); line-height: 1.22; color: var(--ink); margin: 0; }

/* ---------- Live session ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .3s ease; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--bone);
  background: linear-gradient(180deg, rgba(8,9,12,0) 45%, rgba(8,9,12,.6));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.play__btn { width: 92px; height: 92px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .3s ease, background-color .3s ease; }
.play__btn svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; transition: fill .3s ease; }
.play__txt { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.video__play:hover .play__btn { transform: scale(1.07); background: var(--bone); }
.video__play:hover .play__btn svg { fill: var(--dark); }
@media (hover: hover) { .video:hover img { transform: scale(1.02); } }
.video__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; color: var(--bone-2); }
.link--light { color: var(--bone); border-bottom-color: var(--accent-2); }
.link--light:hover { color: var(--accent-2); }

/* ---------- Cosa faccio ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg-2); padding: 30px 26px 30px; display: flex; flex-direction: column; min-height: 320px; transition: background-color .3s ease; }
.card__n { display: none; }
.card h3 { margin-top: 40px; }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 15.5px; margin-bottom: 24px; }
.card .link { align-self: flex-start; margin-top: auto; }
@media (hover: hover) { .card:hover { background: var(--paper); } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; transition: all .2s ease; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.works { display: grid; gap: clamp(36px, 5vw, 56px); }
.year__head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; border-top: 1px solid var(--line-2); }
.year__head h2, .year__head h3 { font-size: clamp(34px, 3.6vw, 48px); }
.year__head span { color: var(--muted); }
.year__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 14px; }
.work { margin: 0; cursor: zoom-in; }
.work__img { position: relative; overflow: hidden; background: var(--bg-2); }
.work__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.work__img::after { content: "+"; position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8,9,12,.55); color: #fff; font-size: 18px; line-height: 1; opacity: 0; transition: opacity .3s ease; }
.work figcaption { padding-top: 12px; display: grid; gap: 3px; }
.work__n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.work__t { font-weight: 600; font-size: 16px; line-height: 1.25; transition: color .2s ease; }
.work__c { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.work__x { font-size: 13.5px; color: var(--muted); line-height: 1.28; }
@media (hover: hover) {
  .work:hover .work__img img { transform: scale(1.05); }
  .work:hover .work__img::after { opacity: 1; }
  .work:hover .work__t { color: var(--accent); }
}
.work:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Ultimi lavori in home */
.latest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
.latest__more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(36px, 5vw, 52px); padding-top: 28px; border-top: 1px solid var(--line); }
.latest__more .mono { color: var(--muted); }
.work__count { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; background: rgba(8,9,12,.62); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.btn svg.ln, .btn--accent svg.ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost { border-color: var(--dline-2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(237,239,243,.06); }

/* ---------- Pagina portfolio ---------- */
.pf-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); }
.crumb { display: flex; gap: 10px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 44px); }
.crumb a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.crumb a:hover { color: var(--accent); }
.pf-hero h1 { margin-top: 18px; font-size: clamp(52px, 7.4vw, 104px); }
.pf-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-top: 28px; }
.pf-hero__lead { max-width: 520px; margin: 0; }
.pf-hero .filters { margin: 0; }
.page-portfolio .works { padding-bottom: var(--sec); gap: clamp(48px, 6vw, 80px); }
.year__head { position: sticky; top: var(--head-h); z-index: 5; background: var(--bg); }
.year__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 22px; padding-top: 6px; }
.pw { display: flex; flex-direction: column; gap: 6px; }
.pw__ph { position: relative; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.pw__ph img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease; }
.pw__cover img { aspect-ratio: 4 / 5; }
@media (hover: hover) { .pw__ph:hover img { transform: scale(1.05); } }
.pw__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw__more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,9,12,.55); color: #fff; font-family: var(--mono); font-size: 14px; }
.pw__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; }
.pw__n { display: none; }
.pw h3 { font-size: clamp(22px, 2vw, 27px); }
.pw__c { color: var(--muted); margin: 0; }
.pw__x { font-size: 14.5px; margin: 0; line-height: 1.3; }
.pf-cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; }
.pf-cta h2 { margin-top: 18px; }
.pf-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lb.is-single .lb__nav { display: none; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--dline-2); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--dline); }
.contact__list .mono { color: var(--bone-2); }
.contact__list a { font-weight: 500; transition: color .2s ease; word-break: break-word; }
.contact__list a:hover { color: var(--accent-2); }
.contact__soc { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.form { background: var(--dark-2); border: 1px solid var(--dline); padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field__lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--bone-2); }
.form input:not([type=radio]), .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--dark); border: 1px solid var(--dline-2); color: var(--bone); transition: border-color .2s ease;
}
.form input[type=date] { color-scheme: dark; }
.form textarea { resize: vertical; min-height: 120px; line-height: 1.4; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); }
.form .is-invalid { border-color: #F07A6A !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--dline-2); font-size: 15px; color: var(--bone); transition: all .2s ease; }
.chips input:checked + span { background: var(--bone); color: var(--dark); border-color: var(--bone); }
.chips input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.form__err { grid-column: 1 / -1; margin: -6px 0 0; color: #F07A6A !important; font-size: 14px; }
.form__err:empty { display: none; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 13px; opacity: .8; }

/* ---------- Footer ---------- */
.footer { background: #08090C; color: var(--bone-2); padding: 56px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer .logo { color: var(--bone); }
.footer .logo__txt small { color: var(--bone-2); }
.footer__in { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.footer__links a { font-size: 15px; transition: color .2s ease; }
.footer__links a:hover { color: var(--bone); }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--dline); font-size: 13.5px; }
.footer__bottom a:hover { color: var(--bone); }

/* ---------- Visore foto ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 12, .97); display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; object-fit: contain; }
.lb figcaption { color: var(--bone); margin-top: 16px; text-align: center; font-weight: 600; }
.lb figcaption span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--bone-2); margin-top: 4px; }
.lb button { position: absolute; background: none; border: 1px solid var(--dline-2); color: var(--bone); border-radius: 50%; width: 48px; height: 48px; cursor: pointer; font-size: 20px; transition: background-color .2s ease; }
.lb button:hover { background: rgba(237,239,243,.1); }
.lb__close { top: 16px; right: 16px; font-size: 26px !important; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Comparsa allo scorrimento ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

/* ==================== Responsive ==================== */
@media (max-width: 1080px) {
  .year__grid { grid-template-columns: repeat(4, 1fr); }
  .burger { display: block; }
  .latest { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__in, .about, .ep, .contact, .head--split { grid-template-columns: 1fr; }
  .head--split { gap: 18px; }
  .hero__img { max-width: 460px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li, .hero__facts li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .about__img { max-width: 420px; }
  .ep__cover { display: none; }
  .year__list { grid-template-columns: repeat(2, 1fr); gap: 36px 14px; }
  .year__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__in { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  :root { --head-h: 64px; }
  body { font-size: 16px; }
  .header .lang { display: none; }
  .header__right { gap: 8px; }
  .logo__txt { font-size: 19px; }
  .logo__txt small { font-size: 9.5px; }
  .tema { width: 44px; height: 44px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__n { padding-bottom: 26px; }
  .year__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .embed--sc iframe { height: 400px; }
  .latest { gap: 22px 10px; }
  .year__list { gap: 30px 10px; }
  .pw__thumbs { gap: 4px; }
  .pw h3 { font-size: 20px; }
  .pf-hero__row { display: grid; }
  .facts li, .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .form { grid-template-columns: 1fr; }
  .play__btn { width: 64px; height: 64px; }
  .play__btn svg { width: 22px; height: 22px; }
  .video__play { gap: 10px; }
  .lb { padding: 64px 12px 90px; }
  .lb__prev, .lb__next { top: auto; bottom: 18px; transform: none; }
  .lb__prev { left: calc(50% - 58px); }
  .lb__next { right: calc(50% - 58px); }
}
