@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-latin.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: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-latin-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: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-latin-ext-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/libre-franklin-latin.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: "Libre Franklin"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/libre-franklin-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* GFB S.r.l. — foglio di stile unico. Mobile first: base 360–430px, poi 600 / 700 / 900 / 1100.
   Carta bianca, inchiostro, filetti da 1px, un solo accento. Nessuna icona, nessuna ombra. */

:root {
  --paper: #FFFFFF;      /* fondo pagina, quasi ovunque */
  --paper-2: #F4F2ED;    /* secondo fondo: solo riquadro Grafomedia, cornice della figura in testata, pie' di pagina */
  --ink: #141414;        /* testo, titoli, pulsante */
  --ink-2: #4B4944;      /* testo secondario */
  --rule: #D8D4CB;       /* filetti e bordi da 1px */
  --accent: #0A6FA3;     /* unico accento: link al passaggio, numeri degli elenchi, anello del focus */
  --spectrum: linear-gradient(90deg, #02A9ED 0%, #6282BB 17%, #C92F91 33%, #EA1E77 42%, #FA922F 58%, #FDDA04 67%, #A69D1C 83%, #1A1A1A 100%);
  --error: #A3201C;      /* solo per i messaggi di errore del modulo */

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --header-h: 64px;
  --col-gap: 24px;
  --sec-pad: clamp(48px, 6.5vw, 84px);
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 76px; --col-gap: 32px; }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
  font-kerning: normal;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1 {
  font-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  max-width: 24em;
}
h3 { line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

address { font-style: normal; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: none; color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(1160px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.45;
  max-width: 62ch;
}
.measure { max-width: 62ch; }

/* ------------------------------------------------------ pulsanti e link */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.btn:hover { color: #fff; border-bottom-color: var(--accent); }
.btn:focus-visible { outline-offset: 3px; }
.btn[aria-disabled="true"] { cursor: progress; }

.link-arrow,
.link-back {
  display: inline-block;
  padding-block: 10px;
  font-weight: 600;
  line-height: 1.4;
}
/* inline-block: la sottolineatura del link non passa sotto la freccia */
.arrow {
  display: inline-block;
  font-weight: 400;
  text-decoration: none;
}
.link-arrow .arrow { margin-left: 0.4em; }
.link-back .arrow { margin-right: 0.4em; }

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0 0;
}
.actions .btn { width: 100%; }

@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
  .actions .btn { width: auto; }
}

/* ---------------------------------------------------------------- testata */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  flex: none;
}
.brand img { height: 40px; width: auto; }

.nav-main { display: none; }

.lang-list {
  display: flex;
  list-style: none;
}
.lang-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  padding-inline: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
}
.lang-list a:hover { color: var(--accent); }
.lang-list a[aria-current="true"] {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.menu { flex: none; }
.menu > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px 0;
  margin-left: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu > summary:hover { color: var(--accent); }
.menu-label-open { display: none; }
.menu[open] .menu-label-closed { display: none; }
.menu[open] .menu-label-open { display: inline; }
.menu[open] > summary { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.menu-list {
  list-style: none;
  max-width: calc(1160px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 4px var(--gutter) 12px;
}
.menu-list li + li { border-top: 1px solid var(--rule); }
.menu-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.0625rem;
  text-decoration: none;
}

@media (min-width: 900px) {
  .brand img { height: 48px; }
  .menu { display: none; }
  .nav-main { display: block; }
  .nav-main-list {
    display: flex;
    list-style: none;
    gap: 0 clamp(16px, 2.2vw, 30px);
  }
  .nav-main-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
    text-decoration: none;
  }
  .nav-main-list a:hover,
  .nav-main-list a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }
  .nav-lang {
    margin-left: clamp(12px, 2vw, 28px);
    padding-left: clamp(12px, 1.6vw, 20px);
    border-left: 1px solid var(--rule);
  }
  .lang-list a { min-width: 34px; }
}

/* ---------------------------------------------------------------- sezioni */

.sec { scroll-margin-top: var(--header-h); }
.sec-body {
  border-top: 1px solid var(--rule);
  padding-block: var(--sec-pad);
}

@media (min-width: 900px) {
  .studio-grid,
  .why-grid,
  .pf-head,
  .pub-grid,
  .history-grid,
  .contact-grid,
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}

/* Hero */

.hero { padding-block: clamp(40px, 7vw, 96px) var(--sec-pad); }
.hero-grid { display: grid; row-gap: 48px; }
.hero h1 { margin-bottom: 28px; max-width: 15em; }
.hero h1 span { display: block; }
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}
.hero-fig {
  margin: 0;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.hero-fig > svg,
.hero-fig > img { display: block; width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero-grid { align-items: start; }
  .hero-text { grid-column: 1 / span 7; padding-top: 8px; }
  .hero-fig { grid-column: 8 / -1; justify-self: end; padding: 32px; }
}

/* Lo studio */

.studio-aside {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.studio-aside h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.studio-aside p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.studio-img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .studio-main { grid-column: 1 / span 7; }
  .studio-aside {
    grid-column: 9 / -1;
    align-self: start;
    margin-top: clamp(112px, 11vw, 140px);
  }
}

/* Cosa facciamo */

.services-title { max-width: 18em; }
.services-grid {
  display: grid;
  margin-top: clamp(32px, 4vw, 48px);
}
.service {
  border-top: 1px solid var(--rule);
  padding: 22px 0 34px;
}
.service h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.service p { max-width: 40ch; margin: 0; }

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 7vw, 112px);
  }
  .service { padding-bottom: 44px; }
}

/* Metodo */

.method-title { max-width: 20em; }
.steps {
  list-style: none;
  margin-top: clamp(36px, 5vw, 56px);
}
.step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding: 18px 0 24px;
}
.step-n {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}
.step p {
  grid-column: 2;
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

@media (min-width: 1100px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 28px;
  }
  .step {
    grid-row: span 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    align-items: start;
    row-gap: 0;
    padding: 20px 0 0;
    border-top-color: var(--ink);
  }
  .step-n { margin-bottom: 18px; }
  .step p { grid-column: 1; margin-top: 10px; }
}

/* Perché GFB */

.why-list { list-style: none; margin-top: 40px; }
.why-list li {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.why-list li:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 900px) {
  .why-intro { grid-column: 1 / span 5; }
  .why-intro p { max-width: 40ch; }
  .why-list { grid-column: 7 / -1; margin-top: 0; }
  .why-list li { padding: 20px 0 22px; }
}

/* Grafomedia (partner: riquadro distinto dai servizi di GFB).
   Il riquadro fa da separatore: niente filetto sopra, che si affiancherebbe a quello di chiusura dell'elenco precedente. */

.sec-gm .sec-body { border-top: 0; padding-top: 0; }
.gm-box {
  background: var(--paper-2);
  padding: 28px;
  border-radius: 2px;
}
.gm-list {
  display: grid;
  margin-top: 36px;
}
.gm-item {
  border-top: 1px solid var(--rule);
  padding: 18px 0 26px;
}
.gm-item h3 {
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 6px;
}
.gm-item p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.gm-item.has-img {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.gm-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gm-more { margin: 24px 0 0; }

@media (min-width: 600px) {
  .gm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .gm-item.has-img { display: block; }
  .gm-item.has-img .gm-img { margin-bottom: 16px; }
  .gm-item.has-img { border-top: 0; padding-top: 0; }
}
@media (min-width: 900px) {
  .gm-box { padding: 56px; }
  .gm-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .gm-list { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
}

/* Portfolio (anteprima nella landing) */

.pf-head h2 { max-width: 16em; }
.pf-more { margin-top: 8px; }
.pf-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin-top: clamp(36px, 5vw, 56px);
  align-items: start;
}
.pf-thumb { margin: 0; }
.pf-thumb a { display: block; }
.pf-thumb img { width: 100%; height: auto; }
.pf-thumb figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .pf-head { align-items: start; }
  .pf-head h2 { grid-column: 1 / span 6; margin-bottom: 0; }
  .pf-intro { grid-column: 8 / -1; }
  .pf-intro p:first-child { max-width: 46ch; }
  .pf-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px var(--col-gap);
  }
}

/* Per gli editori */

.pub-col h2 { max-width: 20em; }
.pub-col .lead { margin-bottom: 1em; }

@media (min-width: 900px) {
  .pub-col { grid-column: 4 / span 8; }
}
@media (min-width: 1100px) {
  .pub-col { grid-column: 5 / span 7; }
}

/* Vantaggi */

.benefits-grid {
  display: grid;
  margin-top: clamp(32px, 4vw, 48px);
}
.benefit {
  border-top: 1px solid var(--rule);
  padding: 20px 0 28px;
}
.benefit h3 {
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.benefit p { max-width: 40ch; }

@media (min-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 56px);
  }
}

/* Storia */

.history-text h2 { max-width: 18em; }
.history-fig { margin: 40px 0 0; max-width: 420px; }
.history-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; }

@media (min-width: 900px) {
  .history-text { grid-column: 1 / span 8; }
  .history-fig { grid-column: 9 / -1; margin-top: 0; justify-self: end; width: 100%; }
}

/* Contatti */

.contact-card {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.contact-org {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}
.contact-card dl { margin: 0; }
.contact-card dl > div + div { margin-top: 14px; }
.contact-card dt {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.contact-card dd { margin: 2px 0 0; }
.contact-card dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-actions { margin-top: 32px; }

@media (min-width: 600px) {
  .contact-actions .btn { min-width: 220px; }
}
@media (min-width: 900px) {
  .contact-main { grid-column: 1 / span 7; }
  .contact-card { grid-column: 9 / -1; align-self: start; margin-top: 8px; }
}

/* Modulo */

.contact-form { margin-top: 36px; max-width: 40rem; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.field-opt { font-weight: 400; color: var(--ink-2); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty { display: none; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-submit { margin-top: 28px; }
.form-note {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.form-note a { color: var(--ink-2); }
.form-note a:hover { color: var(--accent); }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { margin: 0; }
.form-status.is-ok {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.45;
  font-weight: 400;
  margin-top: 0;
}
.form-status.is-fail { color: var(--error); }
.form-status:focus { outline: none; }

@media (min-width: 600px) {
  .field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .form-submit .btn { min-width: 220px; }
}
@media (max-width: 599.98px) {
  .form-submit .btn { width: 100%; }
}

/* ------------------------------------------------------ pagina portfolio */

.page-pf { padding-block: clamp(24px, 4vw, 48px) var(--sec-pad); }
.back { margin: 0 0 clamp(24px, 4vw, 40px); }
.back-end { margin: clamp(48px, 6vw, 72px) 0 0; }
.pf-page-head h1 { max-width: 16em; margin-bottom: 24px; }

.pf-grid {
  display: grid;
  gap: 48px var(--col-gap);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.work { margin: 0; }
.work-link { display: block; }
.work-link img { width: 100%; height: auto; }
.work figcaption { margin-top: 14px; }
.work-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 8px;
  max-width: none;
}
.work-meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.work-meta > div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.work-meta dt { color: var(--ink-2); }
.work-meta dd { margin: 0; }
.work-desc {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 62ch;
}

@media (min-width: 600px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--col-gap); }
}

/* Lightbox (solo con JavaScript; senza, il collegamento apre l'immagine) */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.lightbox::backdrop { background: var(--paper); }
html:has(.lightbox[open]) { overflow: hidden; }
.lb-bar {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.lb-btn {
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.lb-btn:hover { color: var(--accent); }
.lb-btn[hidden] { display: none; }
.lb-close { margin-left: auto; }
/* La figura si stringe sulla larghezza dell'immagine: la didascalia parte dal bordo sinistro dell'immagine. */
.lb-fig {
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 16px var(--gutter) 20px;
  overflow: auto;
}
.lb-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
}
.lb-cap { width: 0; min-width: 100%; margin-top: 12px; }
.lb-cap .work-title { margin-bottom: 4px; }

/* ------------------------------------------------------ informativa */

.page-doc { padding-block: clamp(40px, 6vw, 80px) var(--sec-pad); }
.doc { max-width: 42rem; }
.doc h1 { margin-bottom: 16px; }
.doc-updated { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 32px; }
.doc .lead { margin-bottom: 8px; }
.doc-sec { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule); }
.doc-sec h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  margin-bottom: 16px;
}
.doc-sec ul { padding-left: 1.25em; margin: 0 0 1em; }
.doc-sec li + li { margin-top: 6px; }

/* ---------------------------------------------------------------- pie' di pagina */

.site-footer { background: var(--paper-2); }
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--spectrum);
}
.footer-in {
  display: grid;
  gap: 28px;
  padding-block: 44px 36px;
}
.footer-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-logo { height: 72px; width: auto; }
.footer-desc {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  max-width: 28em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0 24px;
}
.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer-nav-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.footer-lang a { justify-content: flex-start; min-width: 44px; padding-inline: 0; }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.legal a { color: var(--ink-2); display: inline-block; padding-block: 12px; margin-block: -12px; }
.legal a:hover { color: var(--accent); }
.credit {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

@media (min-width: 900px) {
  .footer-in { padding-block: 56px 40px; }
  .footer-lang a { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- movimento */

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