/* WE-NET Area clienti — design system
   Blu del logo (#324f79) + codice colori delle fibre ottiche come segno distintivo. */

:root {
  --brand: #324f79;
  --brand-600: #2a4468;
  --brand-700: #223756;
  --brand-50: #eaf0f8;
  --on-brand: #ffffff;
  --on-brand-muted: #c3d1e6;

  --ground: #f2f5f9;
  --surface: #ffffff;
  --ink: #16213a;
  --muted: #56627b;
  --line: #dde3ed;
  --line-strong: #c5cddb;

  --ok: #17703f;      --ok-bg: #e5f4ec;
  --warn: #8a5a00;    --warn-bg: #fff3d6;
  --bad: #a7261f;     --bad-bg: #fde8e6;
  --wait: #324f79;    --wait-bg: #e6eefa;

  /* colori standard delle fibre (TIA-598), tarati per lo schermo */
  --f1: #2f6fd6; --f2: #ee8a1d; --f3: #2e9e5b; --f4: #8a5a3a;
  --f5: #708090; --f6: #cfd6e2; --f7: #d64545; --f8: #1d2433;
  --f9: #e6bd1c; --f10: #8b5cc6; --f11: #e48aa8; --f12: #2bb0c0;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 2px 8px rgba(22, 33, 58, .04);
  --side: 272px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  caret-color: var(--brand);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand); color: #fff; }

h1, h2, h3 { font-family: inherit; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 .9em; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-700); }
.num, td, th { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid #86a6d6; outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Pulsanti ---------- */
.btn, .main .w3-button, .main .w3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.1rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  color: var(--on-brand); background: var(--brand);
  border: 1px solid var(--brand); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn:hover, .main .w3-button:hover, .main .w3-btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: .4rem .85rem; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Layout applicazione ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem 1rem; overflow-y: auto;
  background: var(--brand); color: var(--on-brand);
}
.side-brand { background: #fff; border-radius: 10px; padding: .6rem 1rem; display: flex; justify-content: center; }
.side-brand img { height: 44px; width: auto; display: block; }
.side-user { display: flex; align-items: center; gap: .75rem; padding: 0 .25rem; min-width: 0; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--brand-700); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
.side-hello { font-size: .8rem; color: var(--on-brand-muted); line-height: 1.2; }
.side-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: .8rem;
  min-height: 44px; padding: .55rem .75rem .55rem 1rem;
  color: var(--on-brand-muted); text-decoration: none; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.side-nav a .fa { width: 1.25rem; text-align: center; font-size: 1.05rem; }
.side-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.side-nav a::before { /* la "fibra" della voce attiva */
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: var(--strand, transparent);
}
.side-nav li:nth-child(1) a { --strand: var(--f1); }
.side-nav li:nth-child(2) a { --strand: var(--f2); }
.side-nav li:nth-child(3) a { --strand: var(--f3); }
.side-nav li:nth-child(4) a { --strand: var(--f4); }
.side-nav li:nth-child(5) a { --strand: var(--f9); }
.side-nav a:not([aria-current="page"])::before { opacity: 0; }
.side-nav a:hover::before { opacity: .6; }
.side-out { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; color: var(--on-brand-muted); text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .15); }
.side-out:hover { color: #fff; }

.mbar { display: none; }
.scrim { display: none; }

.main { margin-left: var(--side); min-height: 100vh; }
.page { max-width: 1120px; padding: 2.25rem 2rem 3rem; }
.page-head { margin-bottom: 1.5rem; }
.page-head .lead { margin: .35rem 0 0; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 1.25rem 1.5rem; }

.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.notice-bad { background: var(--bad-bg); color: var(--bad); border: 1px solid rgba(167, 38, 31, .2); }
.notice-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(138, 90, 0, .2); }

/* ---------- Dashboard ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.home-col { display: grid; gap: 1.25rem; }

.summary { display: grid; grid-template-columns: 1fr 1fr; }
.sum-item { display: flex; gap: .9rem; padding: 1.25rem 1.5rem; }
.sum-item + .sum-item { border-left: 1px solid var(--line); }
.sum-label { display: block; color: var(--muted); font-size: .88rem; }
.sum-val { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }

.strand { flex: none; width: 6px; align-self: stretch; min-height: 1.25rem; border-radius: 6px; background: var(--c, var(--f1)); }
.strand.inline { display: inline-block; width: 6px; height: 1.1em; vertical-align: -.2em; margin-right: .5rem; align-self: auto; min-height: 0; }
.f1 { --c: var(--f1); } .f2 { --c: var(--f2); } .f3 { --c: var(--f3); } .f4 { --c: var(--f4); }
.f5 { --c: var(--f5); } .f6 { --c: var(--f6); } .f7 { --c: var(--f7); } .f8 { --c: var(--f8); }
.f9 { --c: var(--f9); } .f10 { --c: var(--f10); } .f11 { --c: var(--f11); } .f12 { --c: var(--f12); }

.linklist { padding: .4rem; display: grid; }
.linklist a {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; min-height: 64px;
  color: var(--ink); text-decoration: none; border-radius: var(--radius-sm);
  transition: background-color .15s var(--ease);
}
.linklist a:hover { background: var(--brand-50); }
.linklist .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.1rem; }
.linklist .txt { flex: 1; min-width: 0; }
.linklist .txt strong { display: block; font-weight: 600; }
.linklist .txt span { display: block; font-size: .9rem; color: var(--muted); }
.linklist .go { color: var(--line-strong); }

.help { padding: 1.5rem; }
.help h2 { margin-bottom: .4rem; }
.help p { color: var(--muted); }
.help-actions { display: grid; gap: .6rem; margin: 1.1rem 0; }
.help-actions .btn { justify-content: flex-start; }
.help small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Tabelle dati ---------- */
.tbl-wrap { margin: 0 0 1.5rem; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tbl th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; padding: .8rem 1rem; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.tbl td { padding: .95rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfe; }
.tbl.kv td:first-child { width: 34%; max-width: 280px; color: var(--muted); font-weight: 500; background: #f7f9fc; }
.tbl .cred { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; background: #f3f6fb; border-radius: 6px; padding: .35rem .55rem; display: inline-block; user-select: all; line-height: 1.6; }
.tbl .pdf { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-weight: 600; text-decoration: none; }
.tbl .pdf:hover { text-decoration: underline; }
.tbl .svc-type { display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap; }
.tbl .strand.inline { margin-right: .55rem; }
.tbl a.btn { margin-top: .4rem; }

.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.filtro-azioni { display: flex; flex-wrap: wrap; gap: .5rem; }

.section-title { margin: 2rem 0 .8rem; }
.sub-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.due { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.due .sum-label { margin-bottom: 0; }

.prose { padding: 1.5rem; max-width: 78ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }
.hint { color: var(--muted); font-size: .92rem; margin-top: 1rem; }

/* ---------- Form ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.input-wrap { position: relative; }
.input-wrap .fa { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input {
  width: 100%; min-height: 48px; padding: .65rem .9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input-wrap .input { padding-left: 2.6rem; }
.input:hover { border-color: #9aa8c0; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(50, 79, 121, .2); }
.input::placeholder { color: #75819a; }
.toggle-pw { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; }
.toggle-pw:hover { background: var(--brand-50); color: var(--brand); }
.pw-field .input { padding-right: 3rem; }
.form-narrow { max-width: 460px; padding: 1.5rem; }

/* ---------- Schermate di accesso ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-aside {
  position: relative; overflow: hidden; background: var(--brand); color: #fff;
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.auth-aside .logo-tile { align-self: flex-start; background: #fff; border-radius: 12px; padding: .7rem 1.2rem; }
.auth-aside .logo-tile img { height: 52px; display: block; }
.auth-aside h2 { font-size: 1.6rem; font-weight: 700; max-width: 18ch; letter-spacing: -.01em; }
.auth-aside p { color: var(--on-brand-muted); max-width: 36ch; margin-top: .6rem; }
.auth-contact { font-size: .95rem; color: var(--on-brand-muted); }
.auth-contact a { color: #fff; font-weight: 600; }
.strands { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.strands span {
  position: absolute; bottom: 0; width: 5px; border-radius: 5px 5px 0 0; background: var(--c);
  transform-origin: bottom; animation: strand-in .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms);
}
@keyframes strand-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { margin-bottom: .4rem; }
.auth-box .lead { color: var(--muted); margin-bottom: 1.75rem; }
.auth-links { margin-top: 1.25rem; font-size: .95rem; }
.auth-links a { font-weight: 600; }

/* ---------- Pagine semplici (conferma contratto, errore) ---------- */
.plain { min-height: 100vh; display: grid; justify-items: center; align-content: start; padding: 2.5rem 1.25rem; gap: 1.5rem; }
.plain .logo-tile img { height: 56px; display: block; }
.plain .card { width: 100%; max-width: 640px; padding: 1.75rem; }
.plain h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.plain .legal { line-height:1.6; font-size: .95rem; color: var(--muted); }
.plain .legal a { font-weight: 600; }

/* ---------- Compatibilità pagine non modificabili (es. assistenza.php) ---------- */
.main .w3-container { padding: 0; }
.main .w3-card, .main .w3-card-4 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.main .w3-round, .main .w3-round-large { border-radius: var(--radius-sm); }
.main .w3-panel { margin: 0 0 1rem; padding: 1rem 1.25rem; }
.main :is(.w3-blue,.w3-teal,.w3-green,.w3-indigo,.w3-dark-grey,.w3-black,.w3-cyan,.w3-aqua,.w3-light-blue,.w3-pale-blue,.w3-grey,.w3-light-grey,.w3-sand,.w3-khaki,.w3-pale-yellow,.w3-pale-green,.w3-pale-red,.w3-orange,.w3-amber,.w3-deep-orange,.w3-red,.w3-purple,.w3-deep-purple,.w3-pink,.w3-lime,.w3-light-green,.w3-yellow,.w3-brown,.w3-blue-grey,.w3-white):not(.w3-button):not(.w3-btn) {
  background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
}
.main :is(.w3-blue,.w3-teal,.w3-green,.w3-indigo,.w3-dark-grey,.w3-black,.w3-cyan,.w3-aqua,.w3-light-blue,.w3-pale-blue,.w3-grey,.w3-light-grey,.w3-sand,.w3-khaki,.w3-pale-yellow,.w3-pale-green,.w3-pale-red,.w3-orange,.w3-amber,.w3-deep-orange,.w3-red,.w3-purple,.w3-deep-purple,.w3-pink,.w3-lime,.w3-light-green,.w3-yellow,.w3-brown,.w3-blue-grey,.w3-white):not(.w3-button):not(.w3-btn) a:not(.w3-button):not(.w3-btn):not(.btn) { color: var(--brand) !important; }
.main .w3-text-white, .main .w3-text-black { color: var(--ink) !important; }
.main .w3-button:is(.w3-blue,.w3-teal,.w3-green,.w3-indigo,.w3-dark-grey,.w3-black,.w3-cyan,.w3-aqua,.w3-light-blue,.w3-pale-blue,.w3-grey,.w3-light-grey,.w3-sand,.w3-khaki,.w3-pale-yellow,.w3-pale-green,.w3-pale-red,.w3-orange,.w3-amber,.w3-deep-orange,.w3-red,.w3-purple,.w3-deep-purple,.w3-pink,.w3-lime,.w3-light-green,.w3-yellow,.w3-brown,.w3-blue-grey,.w3-white), .main .w3-btn:is(.w3-blue,.w3-teal,.w3-green,.w3-indigo,.w3-dark-grey,.w3-black,.w3-cyan,.w3-aqua,.w3-light-blue,.w3-pale-blue,.w3-grey,.w3-light-grey,.w3-sand,.w3-khaki,.w3-pale-yellow,.w3-pale-green,.w3-pale-red,.w3-orange,.w3-amber,.w3-deep-orange,.w3-red,.w3-purple,.w3-deep-purple,.w3-pink,.w3-lime,.w3-light-green,.w3-yellow,.w3-brown,.w3-blue-grey,.w3-white) { background: var(--brand) !important; color: #fff !important; }
.main .w3-button:is(.w3-blue,.w3-teal,.w3-green,.w3-indigo,.w3-dark-grey,.w3-black,.w3-cyan,.w3-aqua,.w3-light-blue,.w3-pale-blue,.w3-grey,.w3-light-grey,.w3-sand,.w3-khaki,.w3-pale-yellow,.w3-pale-green,.w3-pale-red,.w3-orange,.w3-amber,.w3-deep-orange,.w3-red,.w3-purple,.w3-deep-purple,.w3-pink,.w3-lime,.w3-light-green,.w3-yellow,.w3-brown,.w3-blue-grey,.w3-white):hover, .main .w3-btn:is(.w3-blue,.w3-teal,.w3-green,.w3-indigo,.w3-dark-grey,.w3-black,.w3-cyan,.w3-aqua,.w3-light-blue,.w3-pale-blue,.w3-grey,.w3-light-grey,.w3-sand,.w3-khaki,.w3-pale-yellow,.w3-pale-green,.w3-pale-red,.w3-orange,.w3-amber,.w3-deep-orange,.w3-red,.w3-purple,.w3-deep-purple,.w3-pink,.w3-lime,.w3-light-green,.w3-yellow,.w3-brown,.w3-blue-grey,.w3-white):hover { background: var(--brand-700) !important; }
.main .w3-table-all { border: 1px solid var(--line); }
.main .w3-table-all td, .main .w3-table-all th { padding: .8rem 1rem; }
.main .w3-row-padding > * { padding: 0 .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .mbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem;
    height: 56px; padding: 0 .5rem; background: var(--brand); color: #fff;
  }
  .mbar-title { font-weight: 600; }
  .burger { width: 48px; height: 48px; border: 0; background: transparent; color: #fff; font-size: 1.3rem; border-radius: 8px; cursor: pointer; }
  .burger:hover { background: rgba(255, 255, 255, .12); }
  .side { transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: none; }
  body.nav-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(15, 25, 45, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; min-height: calc(100vh - 56px); }
  .page { padding: 1.5rem 1rem 2.5rem; }
  h1 { font-size: 1.5rem; }

  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 1.5rem 1.25rem 4.5rem; gap: 1rem; }
  .auth-aside h2 { font-size: 1.25rem; }
  .auth-aside p { display: none; }
  .auth-main { align-items: start; padding: 1.75rem 1.25rem 2.5rem; }
}

@media (max-width: 720px) {
  .summary { grid-template-columns: 1fr; }
  .sum-item + .sum-item { border-left: 0; border-top: 1px solid var(--line); }

  table.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  table.tbl { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .tbl thead, .tbl tr.hdr { display: none; }
  .tbl tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .35rem 0; margin-bottom: .9rem; }
  .tbl td { border: 0; padding: .55rem 1rem; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: .1rem; }
  .tbl td:empty { display: none; }
  .tbl tbody tr:hover td { background: transparent; }
  .tbl.kv tbody { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .25rem 0; }
  .tbl.kv tr { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: .55rem 0; margin: 0; }
  .tbl.kv tr:last-child { border-bottom: 0; }
  .tbl.kv td { padding: 0 1rem; }
  .tbl.kv td:first-child { width: auto; max-width: none; background: transparent; font-size: .78rem; letter-spacing: .02em; }
  .form-narrow { padding: 1.25rem; }
}

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

/* ---------- Home aperta (senza riquadri) ---------- */
.hello { padding: .5rem 0 0; }
.hello h1 { font-size: 2.4rem; letter-spacing: -.02em; }
.hello .sub { color: var(--muted); margin: .45rem 0 0; font-size: 1.05rem; }
.fibre-rule { display: flex; gap: 4px; max-width: 300px; margin: 1.4rem 0; }
.fibre-rule i { flex: 1; height: 4px; border-radius: 4px; background: var(--c); transform-origin: left; animation: rule-in .8s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.status-line { font-size: 1.3rem; line-height: 1.6; max-width: 40ch; margin: 0 0 3rem; text-wrap: pretty; }
.status-line b { font-weight: 650; white-space: nowrap; }
.status-line .mk { display: inline-block; width: 6px; height: 1em; border-radius: 6px; vertical-align: -.12em; margin-right: .45rem; background: var(--c); }

.home-open { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
.home-open h2 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: .75rem; }
.rows { display: grid; }
.rows a {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.05rem .25rem; min-height: 72px;
  color: var(--ink); text-decoration: none; border-top: 1px solid var(--line);
  transition: padding-left .2s var(--ease), color .15s var(--ease);
}
.rows a:last-child { border-bottom: 1px solid var(--line); }
.rows a:hover { padding-left: .75rem; color: var(--brand); }
.rows .ico { flex: none; width: 24px; text-align: center; font-size: 1.25rem; color: var(--brand); }
.rows .txt { flex: 1; min-width: 0; }
.rows .txt strong { display: block; font-size: 1.1rem; font-weight: 600; }
.rows .txt span { display: block; color: var(--muted); font-size: .95rem; }
.rows .go { color: var(--line-strong); }
.rows a:hover .go { color: var(--brand); }

.talk { border-left: 1px solid var(--line); padding-left: 3rem; }
.talk p { color: var(--muted); max-width: 34ch; }
.talk .tel { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; color: var(--brand); text-decoration: none; margin: .5rem 0 1rem; }
.talk .tel:hover { color: var(--brand-700); }
.talk ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .1rem; }
.talk li a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.talk li a:hover { text-decoration: underline; }
.talk small { color: var(--muted); font-size: .9rem; line-height: 1.5; display: block; }

.faq-more { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-more h2 { margin-bottom: .35rem; }
.faq-more p { color: var(--muted); max-width: 56ch; }

@media (max-width: 980px) {
  .home-open { grid-template-columns: 1fr; gap: 2.5rem; }
  .talk { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
}
@media (max-width: 860px) {
  .hello h1 { font-size: 1.9rem; }
  .status-line { font-size: 1.15rem; margin-bottom: 2rem; }
}

.page-tail { padding-top: 0; }
.page-tail .faq-more { margin-top: 0; }
