/* Gasostudio: bianco e nero, Akzidenz-Grotesk Next */
@font-face { font-family: "Akzidenz Grotesk Next"; src: url("../fonts/AkzidenzGroteskNext-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Akzidenz Grotesk Next"; src: url("../fonts/AkzidenzGroteskNext-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --dark: #1d1d1b;     /* nero dal PDF (stesso del logo) */
  --light: #ffffff;    /* bianco dal PDF */
  --red: #e41b13;
  --blue: #1736f5;
  --yellow: #ffd400;
  --grey: #8f8f8a;
  --grey-light: #c9c9c4;
  --sans: "Akzidenz Grotesk Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 36px);
  --nav-h: 76px;

  --bg: var(--dark);
  --fg: var(--light);
  --soft: #9a9a95;
  --rule: #3a3a38;
}
body.light { --bg: var(--light); --fg: var(--dark); --soft: #77776f; --rule: #dcdcd8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--dark); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--light); color: var(--dark); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Header e menu ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; z-index: 80; color: var(--fg); }
body.home .nav { color: var(--light); mix-blend-mode: normal; }
.nav .logo { width: 118px; display: block; }
.nav .logo svg { width: 100%; height: auto; }
.menu-btn { font-weight: 700; font-size: 16px; padding: 10px 0; display: inline-flex; gap: 10px; align-items: center; }
.menu-btn i { width: 14px; height: 14px; position: relative; display: inline-block; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s; }
.menu-btn i::before { top: 3px; } .menu-btn i::after { bottom: 3px; }
.menu-open .menu-btn i::before { transform: translateY(2px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-2px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 70; background: var(--light); color: var(--dark); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: var(--nav-h) var(--gutter) 40px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s cubic-bezier(.7,0,.2,1), visibility 0s .6s; }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .6s cubic-bezier(.7,0,.2,1), visibility 0s; }
body.menu-open .nav { color: var(--dark); }
.menu .menu-title { font-weight: 700; font-size: clamp(64px, 14vw, 220px); letter-spacing: -.045em; line-height: .9; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: flex; align-items: center; gap: .3em; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -.02em; }
.menu li a::before { content: ""; width: .36em; height: .36em; background: var(--c); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.menu li:nth-child(3n+1) a { --c: var(--red); } .menu li:nth-child(3n+2) a { --c: var(--blue); } .menu li:nth-child(3n) a { --c: var(--yellow); }
.menu li a:hover::before, .menu li a[aria-current="page"]::before { transform: scale(1); }
.menu li a:hover, .menu li a[aria-current="page"] { font-weight: 700; }
.menu .menu-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; font-size: 14px; color: #6b6b66; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; align-content: center; gap: 24px; } .menu .menu-title { font-size: 22vw; } }

/* ---------- Home: una sola schermata ---------- */
body.home { height: 100svh; overflow: hidden; }
.hero { position: fixed; inset: 0; background: var(--dark); overflow: hidden; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(29,29,27,.55), rgba(29,29,27,0) 22%, rgba(29,29,27,0) 78%, rgba(29,29,27,.6)); }
.hero-ui { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: var(--light); font-size: 14px; }
.hero-ui .cap b { display: block; font-size: 15px; }
.hero-ui .ctrl { display: flex; gap: 22px; align-items: center; }
.hero-ui button:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-ui .count { font-variant-numeric: tabular-nums; color: var(--grey-light); }
.prog { position: absolute; z-index: 7; left: 0; bottom: 0; height: 5px; width: 0; background: var(--red); }
.zone { position: absolute; top: var(--nav-h); bottom: 70px; width: 38%; z-index: 4; cursor: w-resize; }
.zone.r { right: 0; cursor: e-resize; } .zone.l { left: 0; }
.badge-play { position: absolute; z-index: 4; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1.5px solid rgba(242,242,239,.85); display: grid; place-items: center; pointer-events: none; }
.badge-play::after { content: ""; border-left: 20px solid var(--light); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }

/* ---------- Pagina Work ---------- */
.work { padding-top: var(--nav-h); min-height: 100svh; }
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; flex-wrap: wrap; }
.bar .group { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; }
.bar .lab { color: var(--soft); }
.bar button { padding: 2px 0; border-bottom: 1.5px solid transparent; }
.bar button:hover { border-color: var(--grey); }
.bar button[aria-pressed="true"] { font-weight: 700; border-color: var(--fg); }
#filters button[data-v="foto"][aria-pressed="true"] { border-color: var(--red); }
#filters button[data-v="video"][aria-pressed="true"] { border-color: var(--blue); }
#filters button[data-v="grafica"][aria-pressed="true"] { border-color: var(--yellow); }
#filters button[data-v="brand"][aria-pressed="true"] { border-color: var(--dark); }
#filters button, #views button { border-bottom-width: 3px; }

.sheet { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--rule); margin: 0 var(--gutter) var(--gutter) var(--gutter); border-top: 0; }
.cell { position: relative; aspect-ratio: 4 / 5; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr auto; padding: 12px 14px 12px; text-align: left; cursor: zoom-in; overflow: hidden; background: transparent; }
.cell[data-k="foto"] { --k: var(--red); --kt: #fff; }
.cell[data-k="video"] { --k: var(--blue); --kt: #fff; }
.cell[data-k="grafica"] { --k: var(--yellow); --kt: var(--dark); }
.cell[data-k="brand"] { --k: var(--dark); --kt: #fff; }
.cell .top .kind::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--k); margin-right: 7px; }
.cell .top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--soft); }
.cell .art { position: relative; min-height: 0; }
.cell .art img { position: absolute; inset: 8% 6%; width: 88%; height: 84%; object-fit: contain; }
.cell .bottom { position: relative; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.3; }
.cell .bottom .t { font-weight: 700; }
.cell .bottom .y { color: var(--soft); }
.cell .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: var(--k); color: var(--kt); font-size: 12px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.cell .info b { display: block; font-size: 13px; }
.cell .info .meta { opacity: .8; margin-bottom: 4px; }
.cell:hover .info, .cell:focus-visible .info { opacity: 1; transform: none; }
.cell:hover .art img { transform: scale(1.02); }
.cell .art img { transition: transform .5s; }
@media (hover: none) { .cell .info { display: none; } }
@media (max-width: 1100px) { .sheet { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .sheet { grid-template-columns: repeat(2, 1fr); } .cell { padding: 8px 9px; } }

/* vista a colonna */
.sheet.column { display: block; border: 0; margin: 40px auto 80px; width: min(560px, 88vw); }
.sheet.column .cell { aspect-ratio: auto; display: block; padding: 0; border: 0; margin-bottom: 14px; cursor: zoom-in; width: 100%; }
.sheet.column .cell .top { position: static; margin-bottom: 6px; }
.sheet.column .cell .art { display: block; }
.sheet.column .cell .art img { position: static; inset: auto; width: 100%; height: auto; }
.sheet.column .cell .bottom { display: none; }
.sheet.column .cell .art { position: relative; }
.sheet.column .cell .info { left: 0; bottom: 0; right: 0; padding: 40px 14px 12px; color: #fff; background: linear-gradient(to top, rgba(29,29,27,.85), rgba(29,29,27,0)); border-left: 5px solid var(--k); }
.sheet.column .cell .info .meta { color: var(--grey-light); opacity: 1; }
.sheet.column .cell > .info { top: auto; }
.empty { padding: 60px var(--gutter); color: var(--soft); }

/* Lightbox */
dialog.lb { border: 0; padding: 0; background: var(--dark); color: var(--light); width: 100vw; height: 100vh; max-width: none; max-height: none; }
dialog.lb::backdrop { background: rgba(0,0,0,.9); }
.lb-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 60px 24px 20px; }
.lb-stage { min-height: 0; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-info { display: flex; justify-content: space-between; gap: 24px; padding-top: 14px; font-size: 14px; line-height: 1.4; }
.lb-info b { font-size: 16px; } .lb-info span { color: var(--grey); }
.lb-close { position: absolute; top: 18px; right: 22px; font-weight: 700; }
.lb-nav { position: absolute; top: 50%; margin-top: -20px; font-weight: 700; padding: 10px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .lb-inner { padding: 56px 8px 14px; } .lb-nav { top: auto; bottom: 74px; } }

/* ---------- Studio ---------- */
.studio .s-top { height: 78svh; min-height: 420px; display: grid; place-items: center; padding-top: var(--nav-h); position: relative; }
.blend { mix-blend-mode: screen; }
.studio .s-top img { height: min(58svh, 520px); width: auto; }
.hair { border: 0; border-top: 1px solid #5a5a57; margin: 0; }
.slogan { padding: clamp(60px, 10vw, 150px) var(--gutter); text-align: center; font-size: clamp(40px, 7.6vw, 130px); line-height: 1.02; letter-spacing: -.035em; font-weight: 400; }
.slogan em { font-style: italic; }
.s-about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--gutter); padding: clamp(60px, 9vw, 130px) var(--gutter); }
.s-about p { max-width: 36em; font-size: 15px; line-height: 1.5; }
.s-about .blob { justify-self: center; }
.s-about .blob img { width: min(320px, 70%); margin: 0 auto; }
@media (max-width: 760px) { .s-about { grid-template-columns: 1fr; } }
.s-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: clamp(40px, 6vw, 80px) var(--gutter); font-size: 15px; }
.s-more h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.s-more p { color: var(--soft); }
@media (max-width: 900px) { .s-more { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
.series { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 0 var(--gutter) clamp(50px, 7vw, 90px); font-weight: 700; font-size: clamp(28px, 5vw, 76px); letter-spacing: -.035em; line-height: 1.15; }
.series span:nth-child(3n+1) { color: var(--red); } .series span:nth-child(3n+2) { color: var(--blue); } .series span:nth-child(3n) { color: var(--yellow); }

/* ---------- Contatti: una schermata ---------- */
body.contact { height: 100svh; overflow: hidden; }
.c-wrap { height: 100svh; padding: calc(var(--nav-h) + 4svh) var(--gutter) 6svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 5svh, 52px); }
.c-wrap h1 { font-size: clamp(54px, 12.5vw, 220px); font-weight: 700; letter-spacing: -.05em; line-height: .88; }
.c-wrap .mail { font-size: clamp(22px, 3.6vw, 52px); letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--red); text-underline-offset: 7px; width: fit-content; transition: background .2s; }
.c-wrap .mail:hover { background: var(--yellow); }
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 220px)); gap: 6px 28px; font-size: 15px; }
.c-grid h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.c-grid a { display: block; padding: 2px 0; width: fit-content; }
.c-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-grid p { color: var(--soft); }
.c-grid > div { display: contents; }
.c-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, 240px)); gap: 28px; }
.c-cols h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.c-cols a, .c-cols p { display: block; font-size: 15px; padding: 2px 0; width: fit-content; }
.c-cols p { color: var(--soft); }
.c-cols a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--blue); text-underline-offset: 4px; }
@media (max-width: 700px), (max-height: 620px) { body.contact { height: auto; overflow: auto; } .c-wrap { height: auto; min-height: 100svh; } .c-cols { grid-template-columns: 1fr 1fr; } }

/* Footer */
.foot { padding: 22px var(--gutter) 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--soft); border-top: 1px solid var(--rule); }
.foot a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

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