@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-black.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/mulish.woff2") format("woff2"); }

/* ==========================================================================
   Sara Aliscioni — fotografa
   Statico, a sezioni, bianco e nero con grigio chiaro.
   Titoli: Archivo Black · Testi: Sofia Pro (fallback Mulish)
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --black: #000;
  --panel: #111;
  --white: #f2f2f2;
  --text: #cdcdcd;
  --gray: #b0b0b0;       /* grigio chiaro: menu, dettagli */
  --gray-2: #858585;     /* etichette, date */
  --line: #232323;
  --line-2: #333;

  --head: "Archivo Black", Impact, "Arial Black", sans-serif;
  --body: "sofia-pro", "Sofia Pro", "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 78px;
  --pad: clamp(16px, 3vw, 40px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }

.label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-2); }

/* ---------- Header (fixed black banner) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid #1a1a1a;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
}
.brand { display: flex; flex-direction: column; line-height: 1; flex: none; }
.brand__name { font-family: var(--head); font-size: 23px; text-transform: uppercase; letter-spacing: .01em; color: #e4e4e4; }
.brand__role { margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gray-2); }

.site-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav { display: flex; align-items: stretch; gap: 26px; height: 100%; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav > li > a {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); white-space: nowrap; padding: 8px 0;
}
.nav > li > a:hover, .nav > li:focus-within > a, .nav > li > a.is-current { color: #fff; }
.nav > li > a.is-current { box-shadow: inset 0 -1px 0 #fff; }
.has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub-toggle { display: none; }

.sub {
  display: none;
  position: absolute; top: 100%; left: -18px;
  min-width: 270px; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto;
  background: var(--black); border: 1px solid #1f1f1f; border-top: 0;
  padding: 12px 0 14px;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 7px 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9d9d9d; line-height: 1.35; }
.sub a:hover, .sub a.is-current { color: #fff; }
.sub--cols { left: auto; right: -18px; width: min(760px, 70vw); columns: 3; column-gap: 0; }
.sub--cols li { break-inside: avoid; }
.sub .sub__all a { color: var(--gray); border-bottom: 1px solid #1f1f1f; padding-bottom: 10px; margin-bottom: 6px; }
.sub--cols .sub__all { column-span: all; }


.menu-toggle { display: none; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); padding: 10px 0; }
.menu-toggle i { position: relative; width: 20px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }

/* ---------- Main ---------- */
.site-main { padding-top: var(--header-h); min-height: calc(100vh - 80px); }
.page { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(64px, 8vw, 110px); }
.page-head { margin-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; letter-spacing: .005em; }
.page-head .meta { margin-top: 14px; }
.crumbs { margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.prose { max-width: 68ch; }
.prose p + p, .prose h3 + p, .prose p + h3 { margin-top: 1.1em; }
.prose h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: 15px; letter-spacing: .04em; margin-top: 2em; }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--white); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: #fff; }
.subtitle { margin-top: 12px; color: var(--gray); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.page-head .label + h1 { margin-top: 10px; }
.page-head .meta a { color: var(--gray); border-bottom: 1px solid var(--line-2); }
.page-head .meta a:hover { color: #fff; }
.page-title { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05; margin: clamp(64px, 8vw, 110px) 0 clamp(24px, 3vw, 36px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.subnav a { color: var(--gray-2); }
.subnav a:hover { color: #fff; }
.statement { font-style: italic; color: #dcdcdc; }

/* ---------- Thumbnails (small squares, like a contact sheet) ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.thumbs button { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover img { opacity: .8; }

/* ---------- Endorsement ---------- */
.endorsement { margin: 0 0 clamp(32px, 4vw, 48px); padding: 4px 0 4px clamp(18px, 2vw, 28px); border-left: 1px solid var(--line-2); max-width: 64ch; }
.endorsement p { font-style: italic; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--white); }
.endorsement footer { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }

/* ---------- Project text with a photo beside it ---------- */
.project-text.has-side { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.side-image { position: sticky; top: calc(var(--header-h) + 24px); }
.side-image img { width: 100%; }

/* ---------- Publication / news intro: image + text ---------- */
.pub-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pub-cover button { display: block; width: 100%; cursor: zoom-in; }
.pub-cover img { width: 100%; height: auto; background: var(--panel); }
.scroll-images { display: grid; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(40px, 5vw, 64px); max-width: 1100px; margin-left: auto; margin-right: auto; }
.scroll-images img { width: 100%; height: auto; }

/* ---------- Lists of publications / news ---------- */
.entry-list { border-top: 1px solid var(--line); }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; padding: clamp(18px, 2.4vw, 28px) 0; }
.entry-list__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--panel); overflow: hidden; }
.entry-list__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.entry-list__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.entry-list b { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.2; letter-spacing: .01em; }
.entry-list__sub { color: var(--gray); font-size: 14px; line-height: 1.45; }
.entry-list__text { color: var(--text); font-size: 15px; line-height: 1.6; max-width: 72ch; }
.entry-list a:hover b { color: var(--gray); }
.entry-list .more-link { align-self: flex-start; margin-top: 6px; }

/* ---------- News detail ---------- */
.highlight__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.highlight__images button { display: block; cursor: zoom-in; background: var(--panel); }
.highlight__images img { width: 100%; height: auto; }
.news-section__intro { margin-bottom: 18px; }
.news-section__intro.has-poster { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.news-section__poster { display: block; cursor: zoom-in; background: var(--panel); }
.news-section__poster img { width: 100%; height: auto; }
.links li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.links li:first-child { border-top: 1px solid var(--line); }
.links a { color: var(--gray); overflow-wrap: anywhere; }
.links a:hover { color: #fff; }
.video { display: block; width: 100%; max-width: 960px; background: #000; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 16px; margin-top: 28px; max-width: 720px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form__legend { padding: 0; margin-bottom: 6px; color: var(--white); font-size: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--white); }
.form small { color: var(--gray-2); font-size: 12px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 15px; color: #111; background: #f4f4f4; border: 1px solid #f4f4f4; padding: 10px 12px; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 1px solid #fff; outline-offset: 2px; }
.form textarea { resize: vertical; min-height: 140px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: 12px; color: var(--gray-2); }
.form__send { justify-self: start; padding: 13px 34px; border: 1px solid var(--gray); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.form__send:hover:not(:disabled) { background: var(--white); color: var(--black); }
.form__send:disabled { opacity: .45; cursor: not-allowed; }
.form__status { font-size: 14px; color: var(--gray); min-height: 1.4em; }
.section-title { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: clamp(20px, 2vw, 26px); letter-spacing: .01em; margin: clamp(40px, 5vw, 64px) 0 18px; }
.empty { color: var(--gray-2); padding: 24px 0; max-width: 60ch; }

/* ---------- Home slideshow ---------- */
body[data-page="home"] .site-main { min-height: 0; }
.home { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; background: var(--black); }
.slides { position: relative; flex: 1; min-height: 0; margin: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 2vw, 28px) var(--pad) 0; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.home-bar { flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--pad); }
.home-bar__cap { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.home-bar__ctrl { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gray-2); flex: none; }
.home-bar__ctrl button { font-size: 18px; line-height: 1; color: var(--gray); padding: 4px 6px; }
.home-bar__ctrl button:hover { color: #fff; }

/* ---------- Galleries index ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 26px); }
.card { display: block; }
.card__img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__img img { opacity: .85; }
.card__title { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: 15px; line-height: 1.25; letter-spacing: .01em; margin-top: 14px; }
.card__meta { margin-top: 6px; }
.cat-intro { max-width: 68ch; margin: -8px 0 clamp(32px, 4vw, 48px); }
.cat-switch { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-switch a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-2); padding-bottom: 4px; }
.cat-switch a:hover { color: #fff; }
.cat-switch a.is-current { color: #fff; box-shadow: inset 0 -1px 0 #fff; }

/* ---------- Gallery page ---------- */
.gallery-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.gallery-intro .page-head { margin-bottom: 0; }
.masonry { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 22px); }
.masonry figure { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 22px); }
.masonry button { display: block; width: 100%; cursor: zoom-in; background: var(--panel); }
.masonry img { width: 100%; height: auto; }
.masonry figcaption { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--gray-2); }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; max-width: 45%; }
.pager a.next { text-align: right; margin-left: auto; }
.pager b { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: 15px; line-height: 1.25; }
.pager a:hover b { color: var(--gray); }

/* ---------- Bio ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.two-col__media img { width: 100%; background: var(--panel); }
.two-col__media figcaption { margin-top: 10px; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--white); font-weight: 400; margin-bottom: 26px; max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 40px; }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.facts dd { color: var(--white); font-weight: 400; margin-top: 4px; }
.rows li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows .y { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--gray-2); padding-top: 3px; }
.rows .t { color: #e8e8e8; font-weight: 400; line-height: 1.45; }
.rows .p { color: var(--gray-2); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.cv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 56px); align-items: start; }
.cv-grid > div > .section-title { margin-top: 0; }

/* ---------- News & blog ---------- */
.news-list > li { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 260px); gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-list > li:first-child { border-top: 1px solid var(--line); }
.news-list h2, .post-list h2 { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; letter-spacing: .01em; }
.news-list .place { margin: 6px 0 12px; }
.news-list .img img { width: 100%; }
.more-link { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.more-link:hover { color: #fff; border-color: #fff; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.post-list .img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); margin-bottom: 16px; }
.post-list .img img { width: 100%; height: 100%; object-fit: cover; }
.post-list .label { display: block; margin-bottom: 8px; }
.post-cover { margin-bottom: 32px; max-width: 900px; }

/* ---------- Contact ---------- */
.contact-links { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-links a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-links b { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: 16px; letter-spacing: .01em; }
.contact-links span { color: var(--gray); overflow-wrap: anywhere; }
.contact-links i { font-style: normal; color: var(--gray-2); }
.contact-links a:hover b, .contact-links a:hover i { color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 26px var(--pad); border-top: 1px solid var(--line); background: var(--black); font-size: 12px; color: var(--gray-2); }
.social { display: flex; gap: 22px; flex-wrap: wrap; }
.social a { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.social a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .97); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__fig { height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 24px; min-width: 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100% - 44px); width: auto; height: auto; object-fit: contain; }
.lightbox__fig figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .06em; color: var(--gray); text-align: center; padding: 0 8px; }
.lightbox__close { position: absolute; top: 16px; right: var(--pad); z-index: 1; font-size: 18px; color: var(--gray); padding: 6px; }
.lightbox__nav { height: 100%; font-size: 40px; font-weight: 300; color: var(--gray-2); }
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav { gap: 18px; }
  .site-nav { gap: 20px; }
  .nav > li > a { letter-spacing: .1em; }
}

@media (max-width: 1080px) {
  :root { --header-h: 66px; }
  .brand__name { font-size: 20px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--black); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0; height: auto;
    padding: 12px var(--pad) 40px;
  }
  .site-nav.is-open { display: flex; }
  .nav { flex-direction: column; height: auto; gap: 0; }
  .nav > li { flex-wrap: wrap; border-bottom: 1px solid #1c1c1c; }
  .nav > li > a { flex: 1; font-family: var(--head); font-weight: 400; font-size: 20px; letter-spacing: .01em; color: #e4e4e4; padding: 15px 0; white-space: normal; }
  .nav > li > a.is-current { box-shadow: none; color: #fff; }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: block; width: 48px; height: 48px; position: relative; }
  .sub-toggle::before, .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--gray); transform: translate(-50%, -50%); }
  .sub-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .sub-toggle[aria-expanded="true"]::after { display: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .sub, .sub--cols { position: static; display: none; width: 100%; max-height: none; columns: 1; border: 0; padding: 0 0 14px; background: none; }
  .has-sub.is-open > .sub { display: block; }
  .sub a { padding: 9px 0 9px 2px; font-size: 13px; }
  .sub .sub__all a { border-bottom: 0; margin-bottom: 0; }

  .gallery-intro, .two-col, .pub-intro, .project-text.has-side { grid-template-columns: 1fr; }
  .side-image { position: static; max-width: 480px; }
  .pub-cover { max-width: 460px; }
  .cv-grid { grid-template-columns: 1fr 1fr; }
  .two-col__media { max-width: 560px; }
  .news-list > li { grid-template-columns: 1fr; gap: 10px; }
  .news-list .img { max-width: 420px; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .brand__role { letter-spacing: .26em; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card__title { font-size: 13px; margin-top: 10px; }
  .masonry { columns: 2; }
  .cv-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .entry-list a { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .entry-list__text { display: none; }
  .news-section__intro.has-poster { grid-template-columns: 110px minmax(0, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .cv-grid > div + div > .section-title { margin-top: 40px; }
  .facts { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 64px minmax(0, 1fr); }
  .contact-links a { grid-template-columns: 1fr auto; }
  .contact-links span { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .home-bar { height: 48px; }
  .home-bar__cap { font-size: 11px; }
  .lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .lightbox__nav { font-size: 30px; }
  .pager b { font-size: 13px; }
}

@media (max-width: 400px) {
  .masonry { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}


/* ---------- Legal pages & links ---------- */
.legal .prose ul { list-style: disc; padding-left: 1.2em; margin-top: 1em; }
.legal .prose li + li { margin-top: .4em; }
.legal__it { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.legal-links a { color: var(--gray); }
.legal-links a:hover { color: #fff; }
.home-bar__legal { margin-left: 14px; text-transform: none; letter-spacing: .04em; font-weight: 400; }
.home-bar__legal a:hover { color: #fff; }
.form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-size: 14px; }
.form__check input { width: 16px; height: 16px; margin-top: 4px; flex: none; accent-color: #fff; }
.form__check a { color: var(--white); border-bottom: 1px solid var(--line-2); }
@media (max-width: 700px) { .home-bar__legal { display: none; } }
