/* Chrono Storie – stile del sito
   Bianco e nero come i caroselli: Montserrat per titoli e interfaccia,
   Crimson Text per la lettura lunga. */

@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("/fonts/crimson-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("/fonts/crimson-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("/fonts/crimson-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --nero: #0e0e0d;
  --nero-2: #1a1a18;
  --bianco: #f4f1ea;
  --bianco-80: rgba(244, 241, 234, .82);
  --grigio: #a19d93;
  --linea: rgba(244, 241, 234, .14);
  --carta: #f4f1ea;
  --inchiostro: #1c1b19;
  --inchiostro-2: #5c574e;
  --linea-carta: rgba(28, 27, 25, .16);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --margine: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nero);
  color: var(--bianco);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, blockquote { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.salta {
  position: absolute; left: -9999px; top: 12px; z-index: 50;
  background: var(--bianco); color: var(--nero); padding: 10px 14px; font-weight: 600;
}
.salta:focus { left: 12px; }

/* ---------- testata */
.testata {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--margine);
}
.marchio {
  font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none; color: var(--bianco);
  white-space: nowrap; flex-shrink: 0;
}
.menu { display: flex; gap: 28px; }
.menu a {
  white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--bianco-80);
}
.menu a:hover { color: var(--bianco); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- elementi comuni */
.sopratitolo {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grigio);
}
.sopratitolo a { text-decoration: none; }
.sopratitolo a:hover { color: var(--bianco); }
.titolone {
  margin-top: 22px;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -.005em;
  max-width: 15ch; text-wrap: balance;
}
.gancio { margin-top: 22px; font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--bianco-80); }
.bottone {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 15px 22px; border: 1px solid var(--bianco);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.bottone:hover { background: var(--bianco); color: var(--nero); }

/* ---------- home: apertura */
.apertura {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  min-height: min(100svh, 900px);
  padding: 128px var(--margine) 80px;
}
.apertura-img { justify-self: end; width: 100%; max-width: 400px; }
.apertura-img img { width: 100%; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.apertura.vuota { grid-template-columns: 1fr; min-height: 80svh; }

.manifesto { padding: 64px var(--margine) 88px; border-top: 1px solid var(--linea); }
.manifesto p { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; line-height: 1.32; max-width: 30ch; }
.manifesto em { color: var(--grigio); }

/* ---------- elenco storie */
.elenco { padding: 72px var(--margine) 104px; border-top: 1px solid var(--linea); }
.elenco-testa { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.titolo-sezione { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nota-sezione { font-style: italic; color: var(--grigio); font-size: 15px; }
.griglia {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px; margin-top: 36px;
}
.scheda { text-decoration: none; display: block; }
.scheda-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--nero-2); }
.scheda-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.scheda:hover .scheda-img img { transform: scale(1.035); }
.scheda.in-arrivo .scheda-img img { opacity: .62; }
.bollino {
  position: absolute; top: 12px; left: 12px;
  background: rgba(14, 14, 13, .86); padding: 7px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.scheda-etichetta { margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); }
.scheda-titolo { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.scheda:hover .scheda-titolo { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- storia: testa */
.testa-storia {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end; gap: clamp(32px, 6vw, 96px);
  padding: 148px var(--margine) 80px;
}
.testa-breve { grid-template-columns: 1fr; padding-bottom: 64px; }
.sommario {
  margin-top: 26px; max-width: 36ch;
  font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; color: var(--bianco-80);
}
.firma { margin-top: 30px; font-size: 13px; color: var(--grigio); letter-spacing: .02em; }
.figura-apertura { justify-self: end; width: 100%; max-width: 400px; }
.figura-apertura img { width: 100%; }
.figura-apertura figcaption { margin-top: 12px; font-size: 13px; font-style: italic; color: var(--grigio); }

/* ---------- storia: corpo su carta */
.carta { background: var(--carta); color: var(--inchiostro); padding: 80px var(--margine) 104px; }
.testo { max-width: 680px; margin: 0 auto; }
.testo p { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.62; margin-bottom: 1.05em; }
.testo a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.occhiello {
  font-family: var(--sans); font-style: italic; font-weight: 600;
  font-size: clamp(20px, 1.8vw, 23px); line-height: 1.25; margin: 2.3em 0 .75em;
}
.testo > .occhiello:first-child { margin-top: 0; }
.citazione {
  margin: 1.8em 0 1.6em; padding: 30px 0;
  border-top: 1px solid var(--linea-carta); border-bottom: 1px solid var(--linea-carta);
  text-align: center;
}
.testo .citazione p {
  font-family: var(--sans); font-style: italic; font-weight: 700;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0;
}
.figura { margin: 2.4em auto 2.6em; max-width: 440px; }
.figura img { width: 100%; }
.figura figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--inchiostro-2); }
.testo ul { font-family: var(--serif); font-size: 20px; line-height: 1.6; padding-left: 1.2em; margin-bottom: 1em; }

.carosello { max-width: 1120px; margin: 88px auto 0; padding-top: 48px; border-top: 1px solid var(--linea-carta); }
.carosello-testa { max-width: 680px; margin: 0 auto; }
.carosello-testa .occhiello { margin-top: 0; }
.carosello-testa p { font-family: var(--serif); font-size: 19px; color: var(--inchiostro-2); }
.striscia {
  list-style: none; margin: 28px 0 0; padding: 0 0 18px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.striscia li { flex: 0 0 clamp(220px, 26vw, 300px); scroll-snap-align: start; }
.striscia img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.carosello-link { max-width: 680px; margin: 18px auto 0; }
.carosello-link a {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

.fonti { max-width: 680px; margin: 72px auto 0; padding-top: 28px; border-top: 1px solid var(--linea-carta); }
.fonti h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--inchiostro-2); }
.fonti ol { margin-top: 14px; padding-left: 1.3em; font-size: 14px; line-height: 1.6; color: var(--inchiostro-2); }
.fonti li { margin-bottom: 6px; }
.fonti a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- piede */
.piede { border-top: 1px solid var(--linea); padding: 56px var(--margine) 64px; }
.piede-testo { margin-top: 6px; font-style: italic; color: var(--grigio); }
.piede-link { margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.piede-link a { text-decoration: none; }
.piede-link a:hover { text-decoration: underline; text-underline-offset: 5px; }
.piede-nota { margin-top: 24px; font-size: 12px; color: var(--grigio); }

/* ---------- schermi stretti */
@media (max-width: 1000px) {
  .griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
@media (max-width: 820px) {
  .apertura, .testa-storia { grid-template-columns: 1fr; min-height: 0; padding-top: 112px; }
  .apertura-img, .figura-apertura { justify-self: start; max-width: 360px; }
  .apertura { padding-bottom: 64px; }
  .testa-storia { padding-bottom: 56px; }
  .carta { padding-top: 56px; }
}
@media (max-width: 480px) {
  .testata { padding-top: 22px; }
  .testata { gap: 12px; }
  .menu { gap: 14px; }
  .menu a { font-size: 10.5px; letter-spacing: .08em; }
  .scheda-titolo { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scheda-img img, .bottone { transition: none; }
}
