/* Matsu · landing — pino, carta e oro; segnaletica da yokochō */
@font-face { font-family: "Dela Gothic One"; font-weight: 400; font-display: swap;
  src: url(assets/font/dela-gothic-one-latin.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap;
  src: url(assets/font/zen-kaku-gothic-new-400.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap;
  src: url(assets/font/zen-kaku-gothic-new-500.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap;
  src: url(assets/font/zen-kaku-gothic-new-700.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 900; font-display: swap;
  src: url(assets/font/zen-kaku-gothic-new-900.woff2) format("woff2"); }

:root {
  --pino: #2b4214;
  --verde: #598122;
  --verde-testo: #44651a;
  --oro: #e9e3b4;
  --carta: #f7f6ed;
  --testo: #1c2a0f;
  --nav-h: 56px;
  --titoli: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --corpo: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--carta); color: var(--testo);
  font: 400 1rem/1.45 var(--corpo); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.foglio { max-width: 540px; margin: 0 auto; background: var(--carta); position: relative; }

/* ───────── testata: un noren ───────── */
.testata {
  position: relative; text-align: center; color: var(--oro);
  background: var(--pino) url(assets/motivo.svg); padding: 0 0 78px; overflow: hidden;
}
.asta { height: 12px; background: var(--oro); }
.logo { width: min(66vw, 250px); height: auto; margin: 40px auto 0; }
.logo.segnaposto { font: 400 2.4rem/1 var(--titoli); letter-spacing: .08em; width: auto; }
.ornato { display: flex; align-items: center; gap: 12px; width: min(66vw, 250px); margin: 24px auto 0; }
.ornato::before, .ornato::after { content: ""; flex: 1; height: 1px; background: var(--oro); opacity: .4; }
.ornato img { width: 13px; height: 13px; }
.titolo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.menu { font: 400 clamp(3rem, 15.5vw, 4.5rem)/1 var(--titoli); letter-spacing: .06em; margin-right: -.06em; }
.kana { height: clamp(3.4rem, 17vw, 4.8rem); width: auto; opacity: .92; }
.fenditure { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; pointer-events: none; }
.fenditure i { position: absolute; bottom: 0; width: 3px; height: 100%; background: var(--carta); }
.fenditure i:nth-child(1) { left: 25%; }
.fenditure i:nth-child(2) { left: 50%; margin-left: -1px; }
.fenditure i:nth-child(3) { left: 75%; }
.js .testata > * { animation: entra .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .testata > .logo { animation-delay: .05s; }
.js .testata > .ornato { animation-delay: .22s; }
.js .testata > .titolo { animation-delay: .34s; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── indice ───────── */
.indice {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h);
  background: var(--carta); border-bottom: 2px solid var(--pino);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.indice::-webkit-scrollbar { display: none; }
.indice ul { display: flex; align-items: center; gap: 6px; width: max-content; height: 100%; padding: 0 16px; }
.indice a {
  display: block; padding: 9px 13px 8px; text-decoration: none; white-space: nowrap;
  font: 700 .74rem/1 var(--corpo); letter-spacing: .06em; color: var(--pino);
  background: var(--oro); transition: background-color .25s, color .25s;
}
.indice a.on { background: var(--pino); color: var(--oro); }
.indice a:focus-visible, .piede a:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }

/* ───────── corpo ───────── */
main { padding: 8px 20px 24px; }
.coperto {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding: 13px 0; border-top: 1px solid var(--pino); border-bottom: 1px solid var(--pino);
}
.coperto .etichetta { display: flex; align-items: center; gap: 10px; font: 700 .95rem/1 var(--corpo); letter-spacing: .04em; }
.coperto .etichetta img { width: 14px; height: 14px; }

.sez { margin-top: 46px; }
.testa { position: relative; display: flex; align-items: center; gap: 13px; padding-bottom: 14px; }
.testa::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pino);
  transform-origin: left; transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .sez:not(.in) .testa::after { transform: scaleX(0); }
.tessera { width: 46px; height: 46px; flex: none; }
h2 { font: 400 1.18rem/1.15 var(--titoli); letter-spacing: .02em; color: var(--pino); overflow-wrap: anywhere; }
.nota-sez { margin-top: 12px; font: 500 .84rem/1.4 var(--corpo); color: var(--verde-testo); letter-spacing: .02em; }
.solo-nota {
  margin-top: 16px; padding: 15px 16px 14px; background: var(--oro); border-left: 5px solid var(--pino);
  font: 400 1rem/1.25 var(--titoli); letter-spacing: .03em; color: var(--pino);
}

.voci { margin-top: 4px; }
.voce {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start;
  padding: 14px 0 13px; border-bottom: 1px dotted rgba(43, 66, 20, .38);
}
.voce:last-child { border-bottom: 0; }
h3 { font: 700 .96rem/1.28 var(--corpo); letter-spacing: .02em; overflow-wrap: anywhere; }
.al { font: 500 .6rem/1 var(--corpo); letter-spacing: .04em; color: rgba(28, 42, 15, .55); vertical-align: top; position: relative; top: .12em; margin-left: .4em; white-space: nowrap; }
.ing, .nota { margin-top: 4px; font: 500 .8rem/1.35 var(--corpo); color: var(--verde-testo); letter-spacing: .02em; }
.prezzi { display: flex; gap: 4px; align-items: stretch; justify-content: flex-end; }
.voce.pila { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
.voce.pila .prezzi { justify-content: flex-start; }

.pz { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; padding: 5px 9px 6px; background: var(--oro); color: var(--pino); }
.pz.con { padding-top: 4px; }
.pz i { font: 700 .6rem/1 var(--corpo); font-style: normal; letter-spacing: .08em; color: var(--verde-testo); margin-bottom: 4px; }
.pz b { font: 900 1rem/1 var(--corpo); letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pz b small { font: 700 .66rem/1 var(--corpo); margin-left: 2px; }

/* ───────── piede ───────── */
.piede {
  position: relative; background: var(--pino) url(assets/motivo.svg); color: var(--oro);
  padding: 62px 20px 52px; text-align: center;
}
.piede::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--oro); }
.sigillo { width: 58px; height: 58px; margin: 0 auto 26px; }
.legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; text-align: left; font: 500 .72rem/1.3 var(--corpo); color: rgba(247, 246, 237, .86); }
.legenda li { display: flex; gap: 8px; }
.legenda b { flex: none; min-width: 1.1em; color: var(--oro); font-weight: 900; }
.surg, .avviso { margin-top: 16px; font: 500 .78rem/1.4 var(--corpo); color: rgba(247, 246, 237, .92); }
.avviso { font-weight: 700; letter-spacing: .03em; }
.surg { margin-top: 18px; }
.surg + .avviso { margin-top: 6px; }
.contatti { margin-top: 38px; padding-top: 30px; border-top: 1px solid rgba(233, 227, 180, .35); font: 500 .86rem/1.55 var(--corpo); }
.nome-locale { font: 400 1.35rem/1.2 var(--titoli); letter-spacing: .1em; margin-bottom: 8px; }
.orari { white-space: pre-line; margin-top: 8px; }
.social { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.piede a { text-decoration: none; border-bottom: 1px solid rgba(233, 227, 180, .45); }

/* ───────── schermi larghi ───────── */
@media (min-width: 640px) {
  body { background: var(--pino) url(assets/motivo.svg); }
  .foglio { box-shadow: 0 0 80px rgba(0, 0, 0, .4); }
}
@media (max-width: 359px) {
  main { padding-left: 16px; padding-right: 16px; }
  .tessera { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .testata > *, .testa::after, .indice a { animation: none !important; transition: none !important; }
  .js .sez:not(.in) .testa::after { transform: none; }
}
