/* =========================================================
   FHP Funeral Homes Products — foglio di stile
   Palette e tipografia ricavate dalla copertina del catalogo
   ========================================================= */

/* Font Inter (licenza SIL OFL 1.1, vedi fonts/LICENSE-Inter-OFL.txt): salvato nel sito, nessuna chiamata a Google Fonts */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap;
  src: url("fonts/inter-100.woff") format("woff");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap;
  src: url("fonts/inter-200.woff") format("woff");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/inter-300.woff") format("woff");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-400.woff") format("woff");
}

:root {
  --taupe:       #aaa095;  /* sfondo copertina */
  --taupe-dark:  #80715d;  /* quadrato del logo in copertina */
  --taupe-mid:   #918a82;  /* colore ufficiale del logo */
  --cream:       #eeebe5;  /* pagine interne del catalogo */
  --paper:       #f7f5f1;
  --ink:         #3b352e;
  --ink-soft:    #6b6259;
  --white:       #ffffff;

  --font: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 245, 241, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(128, 113, 93, .18);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.main-nav { display: flex; gap: clamp(16px, 2.6vw, 36px); margin-left: auto; margin-right: clamp(8px, 2vw, 24px); }
.main-nav a {
  text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--taupe-dark); }
.main-nav a[aria-current="page"] { color: var(--taupe-dark); border-bottom-color: var(--taupe-dark); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span {
  font-weight: 200; font-size: 15px; letter-spacing: .04em; color: var(--ink-soft);
}
.header-actions { display: flex; align-items: center; gap: 20px; }

.lang { display: flex; gap: 4px; font-size: 13px; letter-spacing: .12em; }
.lang a, .lang span { padding: 4px 6px; text-decoration: none; }
.lang a { color: var(--ink-soft); }
.lang a:hover { color: var(--taupe-dark); }
.lang [aria-current] { color: var(--taupe-dark); border-bottom: 1px solid var(--taupe-dark); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 400; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--taupe-dark);
  background: var(--taupe-dark); color: var(--white);
  transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--taupe-dark); }
.btn--light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--light:hover, .btn--light:focus-visible { background: var(--white); color: var(--taupe-dark); }
.btn--small { padding: 10px 16px; font-size: 11px; }
.btn--ghost { background: transparent; color: var(--taupe-dark); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--taupe-dark); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Slideshow ---------- */
.slider {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: clamp(20px, 3.5vw, 44px) auto clamp(36px, 5vw, 64px);
}
.slider-stage {
  position: relative; overflow: hidden;
  height: clamp(240px, 38vw, 500px);
  background: var(--cream);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* Segnaposto: da sostituire con <img src="assets/img/slide-1.jpg" alt="..."> */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(255, 255, 255, .85);
  font-weight: 200; font-size: clamp(14px, 2vw, 18px); letter-spacing: .2em; text-transform: uppercase;
}
.placeholder--1 { background: linear-gradient(135deg, #aaa095, #8f8476); }
.placeholder--2 { background: linear-gradient(135deg, #80715d, #a59a8d); }
.placeholder--3 { background: linear-gradient(135deg, #b9b0a5, #80715d); }
.placeholder > div { margin-bottom: 18%; }
.placeholder small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .14em; opacity: .7; text-align: center; }

.slider-nav {
  position: absolute; right: 124px; bottom: 33px;
  display: flex; justify-content: flex-end; gap: 10px; z-index: 2;
}
.slider-dot {
  width: 24px; height: 2px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55); transition: background .3s;
  box-shadow: 0 0 6px rgba(0, 0, 0, .25);
}
.slider-dot[aria-current="true"] { background: var(--white); }
.slider-arrow {
  position: absolute; bottom: 16px; z-index: 2;
  width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(0, 0, 0, .06); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.slider-arrow { background: rgba(43, 37, 30, .28); }
.slider-arrow:hover { background: rgba(255, 255, 255, .18); }
.slider-arrow--prev { right: 64px; }
.slider-arrow--next { right: 16px; }
.slider-arrow svg { width: 18px; height: 18px; }

/* ---------- Testo nello slideshow ---------- */
.slider-caption {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  pointer-events: none;
}
.slider-caption .wrap { padding: 0; max-width: none; }
.caption-box {
  max-width: 340px;
  padding: 18px 22px 20px;
  background: rgba(128, 113, 93, .82);
  color: var(--white);
}
.caption-box h1 {
  margin: 0 0 8px;
  font-weight: 200; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; letter-spacing: .01em;
}
.caption-box p { margin: 0; font-weight: 300; font-size: 13px; line-height: 1.55; opacity: .92; }

/* ---------- Catalogo ---------- */
.catalog { background: var(--cream); padding: clamp(56px, 8vw, 100px) 0; }
.catalog-card {
  margin: 0 auto; max-width: 340px; aspect-ratio: 1 / 1;
  background: var(--taupe-dark); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 24px;
  box-shadow: 0 0 0 14px var(--taupe);
}
.catalog-card .eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.catalog-card h2 {
  margin: 10px 0 4px; font-weight: 100; font-size: clamp(36px, 5.5vw, 50px); line-height: 1; letter-spacing: .02em;
}
.catalog-card p { margin: 0 0 22px; font-weight: 200; font-size: 15px; opacity: .9; }
.catalog-card .btn { padding: 11px 18px; font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
.catalog-card .meta { margin-top: 14px; font-size: 11px; letter-spacing: .06em; opacity: .7; }

.chapters-title {
  margin: clamp(56px, 8vw, 88px) 0 8px; text-align: center;
  font-weight: 100; font-size: clamp(26px, 3.4vw, 38px); color: var(--taupe-dark);
}
.code-search + .chapters-title { margin-top: clamp(36px, 5vw, 56px); }
.chapters-sub { margin: 0 0 36px; text-align: center; color: var(--ink-soft); font-size: 15px; }

.chapters {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.chapters li { flex: 0 1 calc((100% - 3 * 14px) / 4); display: flex; }
.chapter {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 150px; padding: 18px 20px 16px;
  background: var(--c); color: var(--white); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.chapter:hover, .chapter:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45);
  filter: brightness(1.06);
}
.chapter-num { font-weight: 100; font-size: 30px; line-height: 1; opacity: .85; }
.chapter-name { margin-top: 18px; font-weight: 400; font-size: 15px; line-height: 1.3; letter-spacing: .01em; padding-right: 26px; }
.chapter-pages { margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.chapter svg { position: absolute; right: 16px; bottom: 16px; width: 18px; height: 18px; opacity: .8; transition: transform .25s; }
.chapter:hover svg { transform: translateX(3px); }

/* ---------- Ricerca codice ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.code-search { max-width: 760px; margin: clamp(40px, 6vw, 64px) auto 0; }
.search-form { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 520px; margin: 0 auto; }
.search-label {
  flex: none; margin-right: 14px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe-dark);
}
.search-form input {
  flex: 1; min-width: 0; height: 40px;
  font: inherit; font-size: 15px; font-weight: 300; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--white);
  border: 1px solid rgba(128, 113, 93, .55); border-right: 0; border-radius: 0;
  padding: 0 12px; -webkit-appearance: none; appearance: none;
}
.search-form input::placeholder { text-transform: none; letter-spacing: .02em; color: #a59b90; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; height: 12px; width: 12px; cursor: pointer;
  background: linear-gradient(45deg, transparent 45%, var(--taupe-dark) 45%, var(--taupe-dark) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--taupe-dark) 45%, var(--taupe-dark) 55%, transparent 55%); }
.search-form input:focus { outline: none; border-color: var(--taupe-dark); }
.search-form .btn { flex: none; height: 40px; padding: 0 16px; font-size: 11px; }
.search-form .btn svg { width: 15px; height: 15px; }
.search-status { min-height: 0; margin: 8px 0 8px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.search-results { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; }
.result {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px 12px 0; background: var(--white); text-decoration: none; color: var(--ink);
  border-left: 6px solid var(--c);
  transition: box-shadow .2s, transform .2s;
}
.result:hover, .result:focus-visible { box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .35); transform: translateX(2px); }
.result-code { flex: none; width: 118px; padding-left: 16px; font-weight: 400; font-size: 16px; letter-spacing: .04em; }
.result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result-ch { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); filter: brightness(.85); }
.result-sub { font-size: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-page { flex: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe-dark); }
.result svg { flex: none; width: 18px; height: 18px; color: var(--taupe-dark); }

/* ---------- Email servizio clienti ---------- */
.help-mail {
  max-width: 640px; margin: clamp(48px, 7vw, 80px) auto 0; padding: clamp(28px, 4vw, 40px) 24px;
  text-align: center; background: var(--white);
  border-top: 3px solid var(--taupe-dark);
}
.help-eyebrow { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe-dark); }
.help-mail p { margin: 10px 0 12px; color: var(--ink-soft); font-size: 15px; }
.help-mail a {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  font-weight: 200; font-size: clamp(19px, 2.6vw, 27px); letter-spacing: .01em;
  color: var(--taupe-dark); text-decoration: none;
  border-bottom: 1px solid rgba(128, 113, 93, .4); padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.help-mail a:hover, .help-mail a:focus-visible { color: var(--ink); border-color: var(--ink); }
.help-mail a span { overflow-wrap: anywhere; }
.help-mail a svg { flex: none; width: 24px; height: 24px; }
.help-mail small { display: block; margin-top: 12px; font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- Pagine interne: fascia titolo ---------- */
.page-band { background: var(--taupe); color: var(--white); padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px); }
.page-band .eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.page-band h1 { margin: 12px 0 14px; font-weight: 100; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; }
.page-band p { margin: 0; max-width: 620px; font-weight: 300; font-size: clamp(16px, 1.6vw, 19px); opacity: .95; }

/* ---------- Chi siamo ---------- */
.about { padding: clamp(56px, 8vw, 100px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-mark img { width: 100%; height: auto; box-shadow: 0 0 0 12px var(--cream); background: var(--taupe-mid); }
.about-text p { margin: 0 0 18px; font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); }
.about-text .about-first { font-weight: 200; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.45; color: var(--ink); }

.mission { background: var(--taupe-dark); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.mission h2 { margin: 0 0 22px; font-weight: 400; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.mission blockquote { margin: 0 auto; max-width: 880px; font-weight: 100; font-size: clamp(22px, 3vw, 36px); line-height: 1.4; }

.values { padding: clamp(56px, 8vw, 100px) 0; background: var(--cream); }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.values-list li { border-top: 1px solid rgba(128, 113, 93, .35); padding-top: 22px; }
.value-num { display: block; font-weight: 100; font-size: 34px; line-height: 1; color: var(--taupe-dark); }
.values-list h3 { margin: 18px 0 8px; font-weight: 400; font-size: 17px; color: var(--ink); }
.values-list p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.cta-row { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Contatti ---------- */
.contact { padding: clamp(56px, 8vw, 100px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--cream); }
.info-icon { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--taupe-dark); color: var(--white); }
.info-icon svg { width: 20px; height: 20px; }
.info-card h3 { margin: 0 0 4px; font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-dark); }
.info-card p { margin: 0; font-size: 15px; line-height: 1.6; word-break: break-word; }
.info-card a { text-decoration: none; border-bottom: 1px solid rgba(128, 113, 93, .35); }
.info-card a:hover { color: var(--taupe-dark); }

.contact-form h2 { margin: 0 0 26px; font-weight: 100; font-size: clamp(28px, 3.4vw, 38px); color: var(--taupe-dark); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .65; font-size: 12px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 300; color: var(--ink);
  background: var(--white); border: 1px solid rgba(128, 113, 93, .35); border-radius: 0;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--taupe-dark); box-shadow: 0 0 0 3px rgba(128, 113, 93, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 4px 0 24px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--taupe-dark); flex: none; }
.check.is-invalid span { color: #b3261e; }
.check a { color: var(--taupe-dark); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 14px; color: var(--ink-soft); }
.form-status.is-error { color: #b3261e; }
.form-note { margin: 22px 0 0; font-size: 13px; color: var(--ink-soft); }
.form-note a { color: var(--taupe-dark); }

/* ---------- Privacy ---------- */
.legal-text { padding: clamp(48px, 7vw, 90px) 0; }
.legal-body { max-width: 760px; }
.legal-body section { padding: 22px 0; border-top: 1px solid rgba(128, 113, 93, .25); }
.legal-body h2 { margin: 0 0 8px; font-weight: 400; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-dark); }
.legal-body p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.legal-body a { color: var(--taupe-dark); }
.legal-updated { margin-top: 28px !important; font-size: 13px !important; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); }
.notfound img { width: 110px; height: auto; margin-bottom: 28px; }
.notfound h1 { margin: 0 0 10px; font-weight: 100; font-size: clamp(32px, 5vw, 48px); color: var(--taupe-dark); }
.notfound p { margin: 0; color: var(--ink-soft); }
.notfound .notfound-en { margin-top: 4px; font-size: 14px; opacity: .8; }

/* Campo anti-spam nascosto */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: #2f6b3a; }

/* ---------- Footer / contatti ---------- */
.site-footer { background: var(--cream); padding: clamp(48px, 7vw, 80px) 0 32px; font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start;
}
.site-footer h3 {
  margin: 0 0 14px; font-weight: 400; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-dark);
}
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(128, 113, 93, .35); }
.site-footer a:hover { color: var(--taupe-dark); border-color: var(--taupe-dark); }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.partners a { border: 0; opacity: .9; transition: opacity .2s; }
.partners a:hover { opacity: 1; }
.partners .matthews { width: 170px; height: auto; }
.partners .caggiati { width: 130px; height: auto; }
.legal {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(128, 113, 93, .25);
  font-size: 12px; color: var(--ink-soft); line-height: 1.8;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .brand span { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-mark { max-width: 220px; }
  .values-list { grid-template-columns: 1fr; }
  .slider-stage { height: clamp(220px, 52vw, 440px); }
  .slider-nav { left: 0; right: 0; bottom: 18px; justify-content: center; }
  .slider-caption { position: static; background: var(--taupe-dark); }
  .caption-box { max-width: 640px; padding: 18px 20px 20px; background: none; }
  .chapters li { flex-basis: calc((100% - 2 * 14px) / 3); }
}

/* ---------- Smartphone ---------- */
@media (max-width: 600px) {
  .site-header .wrap { min-height: 0; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; row-gap: 6px; }
  .main-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid rgba(128, 113, 93, .15); padding: 4px 0 2px; }
  .main-nav a { font-size: 11px; letter-spacing: .12em; padding: 8px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .info-card { padding: 16px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { display: none; }
  .header-actions { gap: 10px; }
  .header-actions .btn--small .label-long { display: none; }
  .slider-stage { height: 64vw; }
  .slider-arrow { display: none; }
  .catalog-card { max-width: 300px; }
  .chapters { gap: 10px; }
  .chapters li { flex-basis: calc((100% - 10px) / 2); }
  .chapter { min-height: 132px; padding: 14px 14px 14px; }
  .chapter-num { font-size: 24px; }
  .chapter-name { font-size: 14px; margin-top: 12px; padding-right: 0; }
  .chapter svg { display: none; }
  .search-form { flex-wrap: wrap; }
  .search-label { width: 100%; margin: 0 0 8px; text-align: center; }
  .help-mail a svg { width: 20px; height: 20px; }
  .result { gap: 10px; }
  .result-code { width: auto; font-size: 15px; }
  .result svg { display: none; }
  .caption-box h1 { font-size: 21px; }
  .caption-box p { font-size: 14px; }
  .legal { flex-direction: column; }
}

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