/* nexofelic.com - foglio di stile dell'album
   Impaginato a mano. Carta crema, matita ambra, niente ombre finte.
   Regola forme: schede 6px, bottoni 6px, etichette a pillola. Nessun'altra eccezione. */

:root {
  /* carta e inchiostro */
  --paper: #fafaf5;
  --card: #ffffff;
  --stone: #e9e9e7;
  --pebble: #cecdca;
  --ink: #121212;
  --graphite: #4d4d4d;
  --mid: #7d7d7d;

  /* accenti: oro solo per la CTA, miele e blu solo per i dati */
  --gold: #e8aa42;
  --honey: #b77a1e;
  --blue: #2f6ca8;

  /* tipografia fluida */
  --display: clamp(2.1rem, 1.35rem + 3.4vw, 4rem);
  --h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --h3: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --body: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --small: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);

  /* ritmo */
  --gutter: clamp(18px, 5vw, 84px);
  --flow: clamp(56px, 7vw, 104px);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cabin', ui-sans-serif, system-ui, sans-serif;
  font-size: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Faustina', Georgia, serif;
  font-weight: 600;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--honey); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 60;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

.wrap { padding-inline: var(--gutter); }

/* misura di lettura: si applica al testo, non alla sezione */
.measure { max-width: 64ch; }
.measure-wide { max-width: 74ch; }

/* ---------- barra di navigazione ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; min-height: 68px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--pebble);
  background: var(--paper);
}

/* sul telefono il pannello va a capo sotto il marchio; su desktop torna in riga */
.nav-panel { flex-basis: 100%; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand b {
  font-family: 'Faustina', Georgia, serif;
  font-size: 1.24rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  background: none; border: 1px solid var(--pebble); border-radius: var(--radius);
  font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }

.nav-links {
  display: none;
  list-style: none; margin: 0; padding: 0 0 14px;
  flex-direction: column; gap: 2px;
}
.nav-links.is-open { display: flex; }
.nav-links a {
  display: block; padding: 11px 2px;
  font-size: 0.98rem; text-decoration: none; color: var(--graphite);
  border-bottom: 1px solid var(--stone);
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a[aria-current='page'] { font-weight: 600; }

@media (min-width: 900px) {
  .topbar { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-panel { flex-basis: auto; }
  .nav-links {
    display: flex; flex-direction: row; align-items: center; gap: 26px; padding: 0;
  }
  .nav-links a { border: 0; padding: 4px 0; font-size: 0.94rem; }
  .nav-links a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--gold); }
}

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: 'Cabin', sans-serif; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #dd9a2c; color: var(--ink); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c2c2c; color: #fff; }

.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

.btn svg { width: 16px; height: 16px; flex: none; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem; color: var(--blue);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-more:hover { color: var(--blue); }

/* ---------- cuori ---------- */
.cuori { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.cuori svg { width: 19px; height: 19px; }
.cuore-piena { fill: var(--honey); stroke: var(--honey); }
.cuore-mezza { fill: url(#mezzoCuore); stroke: var(--honey); }
.cuore-vuota { fill: none; stroke: var(--pebble); }
.cuori svg path { stroke-width: 1.4; }

.voto-riga {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.voto-num {
  font-family: 'Faustina', serif; font-size: 1.5rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.voto-su { font-size: var(--small); color: var(--mid); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(34px, 5vw, 60px) clamp(44px, 6vw, 76px); }

.hero-grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
}

.hero h1 { font-size: var(--display); }
.hero h1 em { font-style: italic; line-height: 1.1; padding-bottom: 2px; display: inline-block; }

.hero-sub {
  margin-top: 18px; max-width: 46ch;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--graphite);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-trust {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--pebble);
  font-size: var(--small); color: var(--mid); max-width: 44ch;
}
.hero-trust b { color: var(--graphite); font-weight: 600; }

.hero-sketch { position: relative; }
.hero-sketch svg { width: 100%; height: auto; }

/* ---------- sezioni ---------- */
.sez { padding-block: var(--flow); }
.sez-stone { background: var(--stone); border-block: 1px solid var(--pebble); }
.sez-card { background: var(--card); border-block: 1px solid var(--pebble); }

.eyebrow {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--mid); margin: 0 0 12px;
}

.sez h2 { font-size: var(--h2); }
.sez-intro { margin-top: 16px; color: var(--graphite); }

/* ---------- chi tiene l'album (colonna stretta + nota a margine) ---------- */
.curatrice { display: grid; gap: clamp(26px, 4vw, 46px); }
@media (min-width: 900px) {
  .curatrice { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}

.curatrice-testo p + p { margin-top: 0; }

.firma {
  margin-top: 24px;
  font-family: 'Faustina', serif; font-style: italic;
  font-size: 1.15rem; color: var(--graphite);
}

.nota-margine {
  background: var(--paper);
  border: 1px solid var(--pebble);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: var(--small);
  color: var(--graphite);
}
.nota-margine h3 {
  font-family: 'Cabin', sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid);
  margin-bottom: 8px;
}

/* ---------- metodo: cinque righe a matita ---------- */
.criteri { margin-top: 34px; display: grid; gap: 0; }
.criterio {
  display: grid; gap: 4px 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--pebble);
}
.criterio:first-child { border-top: 1px dashed var(--pebble); }
@media (min-width: 760px) {
  .criterio { grid-template-columns: 190px minmax(0, 1fr); align-items: baseline; }
}
.criterio dt {
  font-family: 'Faustina', serif; font-size: 1.16rem; font-weight: 600;
}
.criterio dd { margin: 0; color: var(--graphite); font-size: 0.97rem; }

.conto {
  margin-top: 32px; padding: 22px 24px;
  background: var(--paper); border: 1px solid var(--pebble); border-radius: var(--radius);
  max-width: 62ch;
}
.conto h3 { font-size: 1.1rem; margin-bottom: 8px; }
.conto p { font-size: 0.97rem; color: var(--graphite); }

/* ---------- le figurine ---------- */
.figurine { display: grid; gap: clamp(40px, 5vw, 68px); margin-top: 42px; }

.figurina {
  position: relative;
  background: var(--card);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
}

/* incollate a mano: nessuna è dritta allo stesso modo */
@media (min-width: 900px) {
  .figurina-1 { transform: rotate(-0.35deg); }
  .figurina-2 { transform: rotate(0.4deg); }
  .figurina-3 { transform: rotate(-0.15deg); }
  .figurina-4 { transform: rotate(0.28deg); }
}

/* il pezzetto di nastro adesivo */
.figurina::before {
  content: '';
  position: absolute; top: -9px; left: 32px;
  width: 74px; height: 18px;
  background: rgba(232, 170, 66, 0.32);
  border: 1px solid rgba(183, 122, 30, 0.28);
  transform: rotate(-2.4deg);
}
.figurina-2::before { left: auto; right: 40px; transform: rotate(3deg); width: 62px; }
.figurina-3::before { left: 50%; margin-left: -37px; transform: rotate(0.8deg); }
.figurina-4::before { left: 28px; transform: rotate(-4deg); width: 86px; }

.fig-num {
  position: absolute; top: 14px; right: 16px;
  font-family: 'Faustina', serif; font-size: 0.86rem; font-weight: 700;
  color: var(--pebble);
  font-variant-numeric: tabular-nums;
}

.fig-corpo { display: grid; gap: clamp(20px, 3vw, 36px); }

/* densita' e ordine variano da figurina a figurina */
@media (min-width: 900px) {
  .figurina-1 .fig-corpo { grid-template-columns: minmax(0, 1fr) 300px; }
  .figurina-2 .fig-corpo { grid-template-columns: 320px minmax(0, 1fr); }
  .figurina-2 .fig-scatto { order: -1; }
  .figurina-4 .fig-corpo { grid-template-columns: minmax(0, 1fr) 268px; }
}
/* la terza rompe lo schema: scatto largo in alto */
.figurina-3 .fig-corpo { grid-template-columns: minmax(0, 1fr); }
.figurina-3 .fig-scatto { order: -1; }

.fig-testa { margin-bottom: 20px; max-width: 58ch; }
.fig-testa h3 { font-size: var(--h3); }
.fig-studio { font-size: var(--small); color: var(--mid); margin: 6px 0 0; }
.fig-hook {
  margin-top: 12px;
  font-family: 'Faustina', serif; font-style: italic; font-size: 1.16rem;
  color: var(--graphite);
}

.tag {
  display: inline-block; padding: 3px 11px;
  border-radius: 9999px; background: var(--stone);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--graphite);
}
.tag-attenzione { background: #f5e3c4; color: #6d4a10; }

.fig-scatto img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--pebble);
  background: var(--stone);
}
.fig-didascalia {
  margin-top: 8px; font-size: 0.76rem; color: var(--mid); line-height: 1.45;
}

/* lo scatto dentro la prosa: verticale, non deve prendersi tutta la riga */
.scatto-prosa { max-width: 300px; margin: 32px 0 40px; }

/* metadata: righe sottili, non una tabella con bordi ovunque */
.meta { margin: 0 0 20px; display: grid; gap: 0; font-size: 0.88rem; }
.meta > div {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  padding: 7px 0; border-bottom: 1px solid var(--stone);
}
.meta dt { color: var(--mid); min-width: 108px; }
.meta dd { margin: 0; color: var(--ink); font-weight: 500; }

.fig-testo p { font-size: 0.99rem; }

.avvertenza {
  margin-top: 18px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--pebble);
  border-left: 3px solid var(--honey); border-radius: var(--radius);
  font-size: 0.92rem; color: var(--graphite);
}
.avvertenza b { color: var(--ink); }

.storia {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--pebble);
  font-size: 0.92rem; color: var(--graphite);
}

.fig-azioni {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--stone);
}

/* ---------- la pagina dei numeri ---------- */
.numeri-tabella {
  width: 100%; border-collapse: collapse; margin-top: 28px;
  font-size: 0.9rem;
}
.numeri-tabella caption {
  text-align: left; color: var(--mid); font-size: var(--small);
  padding-bottom: 14px; max-width: 72ch;
}
.numeri-tabella th, .numeri-tabella td {
  text-align: left; padding: 14px 12px 14px 0; vertical-align: middle;
  border-bottom: 1px solid var(--pebble);
}
.numeri-tabella thead th {
  font-family: 'Cabin', sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--mid);
  border-bottom: 1px solid var(--ink);
}
.numeri-tabella tbody th {
  font-family: 'Faustina', serif; font-size: 1rem; font-weight: 600;
}
.numeri-tabella td { font-variant-numeric: tabular-nums; }

.barra { display: flex; align-items: center; gap: 9px; min-width: 132px; }
.barra-vasca { flex: 1; height: 8px; background: var(--stone); border-radius: 9999px; overflow: hidden; }
.barra-fill { display: block; height: 100%; border-radius: 9999px; }
.barra-play .barra-fill { background: var(--honey); }
.barra-ios .barra-fill { background: var(--blue); }
.barra-peso .barra-fill { background: var(--graphite); }
.barra b { font-weight: 600; min-width: 34px; }

.legenda {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px;
  font-size: var(--small); color: var(--graphite);
}
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.legenda i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.legenda .k-play { background: var(--honey); }
.legenda .k-ios { background: var(--blue); }
.legenda .k-peso { background: var(--graphite); }

.numeri-note {
  margin-top: 26px; font-size: 0.9rem; color: var(--graphite); max-width: 72ch;
}
.numeri-note li { margin-bottom: 7px; }

.tabella-scroll { overflow-x: auto; }

/* ---------- la preferita ---------- */
.preferita { display: grid; gap: 26px; align-items: center; }
@media (min-width: 880px) {
  .preferita { grid-template-columns: 84px minmax(0, 1fr); }
}
.preferita-cuore svg { width: 72px; height: 72px; fill: var(--honey); stroke: var(--honey); }
.preferita h2 { font-size: var(--h2); }
.preferita-perche { margin-top: 14px; max-width: 62ch; color: var(--graphite); }
.preferita-azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- ritagli ---------- */
.ritagli {
  margin-top: 34px;
  columns: 1; column-gap: 24px;
}
@media (min-width: 760px) { .ritagli { columns: 2; } }
@media (min-width: 1180px) { .ritagli { columns: 3; } }

.ritaglio {
  break-inside: avoid; margin: 0 0 24px;
  padding: 20px 22px;
  background: var(--card); border: 1px solid var(--pebble); border-radius: var(--radius);
  font-size: 0.94rem; color: var(--graphite);
}
.ritaglio:nth-child(2n) { background: var(--paper); }
.ritaglio h3 {
  font-size: 1.06rem; margin-bottom: 8px; color: var(--ink);
}
.ritaglio-data {
  display: block; margin-top: 12px;
  font-size: 0.74rem; color: var(--mid); letter-spacing: 0.03em;
}

/* ---------- faq ---------- */
.faq { margin-top: 30px; max-width: 78ch; }
.faq details {
  border-bottom: 1px solid var(--pebble);
}
.faq details:first-of-type { border-top: 1px solid var(--pebble); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: 'Faustina', serif; font-size: 1.12rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: 'Cabin', sans-serif; font-size: 1.4rem;
  color: var(--honey); flex: none; line-height: 1;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--honey); }
.faq-risposta { padding: 0 0 22px; color: var(--graphite); max-width: 68ch; font-size: 0.97rem; }

/* ---------- moduli ---------- */
.modulo { display: grid; gap: 18px; max-width: 30rem; margin-top: 30px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 0.9rem; font-weight: 600; }
.campo .aiuto { font-size: 0.8rem; color: var(--mid); }
.campo input[type='text'], .campo input[type='email'], .campo textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 46px;
  background: var(--card); border: 1px solid var(--mid); border-radius: var(--radius);
}
.campo textarea { min-height: 132px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--mid); }
.campo input:focus-visible, .campo textarea:focus-visible {
  border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px;
}
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--graphite); }
.consenso input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--honey); }

/* ---------- pagine di testo ---------- */
.testata { padding-block: clamp(40px, 5vw, 66px) clamp(24px, 3vw, 38px); border-bottom: 1px solid var(--pebble); }
.testata h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); max-width: 20ch; }
.testata p { margin-top: 14px; color: var(--graphite); max-width: 58ch; }

.prosa { padding-block: var(--flow); }
.prosa h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem); margin: 40px 0 12px; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prosa ul, .prosa ol { padding-left: 20px; color: var(--graphite); }
.prosa li { margin-bottom: 7px; }
.prosa p { color: var(--graphite); }
.prosa .aggiornato { font-size: var(--small); color: var(--mid); }

.tabella-dati { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.tabella-dati th, .tabella-dati td {
  text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--pebble); vertical-align: top;
}
.tabella-dati th { font-weight: 600; color: var(--ink); }
.tabella-dati td { color: var(--graphite); }

/* ---------- pie di pagina ---------- */
.pie {
  background: var(--card);
  border-top: 1px solid var(--pebble);
  padding-block: clamp(42px, 5vw, 64px) 30px;
}
.pie-grid { display: grid; gap: 32px; }
@media (min-width: 820px) {
  .pie-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
}
.pie h2, .pie h3 {
  font-family: 'Cabin', sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid); margin-bottom: 12px;
}
.pie-info { font-size: 0.9rem; color: var(--graphite); max-width: 42ch; }
.pie-info a { color: var(--blue); }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: 8px; }
.pie li a { font-size: 0.9rem; color: var(--graphite); text-decoration: none; }
.pie li a:hover { color: var(--honey); text-decoration: underline; }

.pie-zero {
  margin-top: 30px; padding: 12px 16px;
  background: var(--paper); border: 1px solid var(--pebble); border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 600; color: var(--graphite);
}

.pie-legale {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--stone);
  display: grid; gap: 14px;
}
.disclaimer { font-size: 0.75rem; line-height: 1.6; color: var(--mid); max-width: 96ch; }
.copyright { font-size: 0.75rem; color: var(--mid); }

/* ---------- 404 ---------- */
.perduta { padding-block: clamp(60px, 9vw, 130px); }
.perduta h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: 18ch; }
.perduta p { margin-top: 16px; color: var(--graphite); max-width: 52ch; }
.perduta .btn { margin-top: 26px; }

/* ---------- comparsa in scena ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity 560ms cubic-bezier(0.16, 1, 0.3, 1), transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

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