:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #243028;
  --muted: #6f7d74;
  --line: #dfece4;
  --green: #2fb665;
  --green-deep: #249653;
  --brand: #1f7a48;
  --soft: #e8f8ef;
  --warn: #c4841d;
  --warn-bg: #fff6e8;
  --bad: #c4453c;
  --bad-bg: #fdeceb;
  --shadow: 0 4px 14px rgba(28, 70, 48, 0.06);
  --radius: 12px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gate-card { width: min(420px, 100%); padding: 28px; }
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 14px rgba(47, 182, 101, 0.28);
  flex: none;
  object-fit: cover;
}
.brand strong { display: block; color: var(--brand); font-size: 18px; }
.brand span, .muted { color: var(--muted); font-size: 13px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input, select {
  width: 100%;
  border: 1px solid #d5e2da;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  outline: none;
}
input:focus, select:focus { border-color: var(--green); }
input.stretto { width: 120px; }
.chiave { font-family: Consolas, "Segoe UI", monospace; font-size: 13px; line-height: 1.5; word-break: break-all; background: var(--soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; user-select: text; }

.btn {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 650;
  font-weight: 600;
}
.btn:hover { background: var(--green-deep); }
.btn.block { width: 100%; margin-top: 18px; }
.btn.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid #d5e2da;
}
.btn.ghost:hover { border-color: var(--green); color: var(--brand); background: white; }
.btn.pericolo {
  background: white;
  color: var(--bad);
  border: 1px solid var(--bad);
}
.btn.pericolo:hover { background: var(--bad-bg); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.avviso { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
aside {
  background: white;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
aside nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.nav {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: #3d4a42;
}
.nav.attivo, .nav:hover { background: var(--soft); color: var(--brand); }
aside .spinge { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
aside a { color: var(--brand); font-size: 13px; text-decoration: none; }

main { padding: 28px; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
h1 { font-size: 22px; letter-spacing: -0.02em; }
h2 { font-size: 16px; }

.griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cliente {
  text-align: left;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
}
.cliente:hover { border-color: var(--green); }
.nome { font-weight: 700; font-size: 15px; }
.meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.stato { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; font-weight: 600; }
.punto { width: 8px; height: 8px; border-radius: 99px; background: #b7c4bc; display: inline-block; }
.punto.on { background: var(--green); }
.punto.warn { background: var(--warn); }
.punto.bad { background: var(--bad); }
.pill {
  background: var(--soft);
  color: var(--brand);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.stat div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}
.stat b { display: block; margin-top: 4px; font-size: 16px; color: var(--ink); font-weight: 650; }
.sezione { margin-top: 16px; padding: 16px; }
.sezione > h2 { margin-bottom: 8px; }
.azioni { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.form-licenza {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.form-licenza label { margin: 0 0 6px; }
.esito-ok { color: var(--brand); font-size: 13px; margin-top: 8px; min-height: 18px; }
.btn:disabled { opacity: 0.55; cursor: wait; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; }
td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.codice {
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 22px;
  letter-spacing: 0.18em;
  background: var(--soft);
  color: var(--brand);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 8px 0;
}
.vuoto { padding: 28px; text-align: center; color: var(--muted); }
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  width: min(480px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(36, 48, 40, 0.28); }
.due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat { grid-template-columns: 1fr 1fr; }
  .due { grid-template-columns: 1fr; }
  .form-licenza { grid-template-columns: 1fr; }
}

/* ——— Portale cliente ——— */
.portale-body {
  font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 10% -10%, #d8f3e4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #eef6f1 0%, transparent 50%),
    linear-gradient(180deg, #f4f7f5 0%, #eef2ef 100%);
  color: var(--ink);
}

/* Header WinCogeGroup (stesso linguaggio del sito) */
.wg-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 8px 16px;
  background: #0b3f3b;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.wg-topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.wg-topbar a:hover { text-decoration: underline; }
.wg-topbar .wg-sep { opacity: 0.45; }
.wg-topbar .wg-hours { opacity: 0.85; }
.wg-ico { flex: none; }

.wg-head {
  background: #fff;
  border-bottom: 2px solid #0d5d57;
  position: sticky;
  top: 0;
  z-index: 20;
}
.wg-head-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wg-logo {
  display: flex;
  align-items: center;
  flex: none;
}
.wg-logo img {
  display: block;
  height: 32px;
  width: auto;
}
.wg-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  margin-left: auto;
}
.wg-nav a {
  color: #1a2e2c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 2px;
}
.wg-nav a:hover { color: #0d5d57; }
.wg-cta {
  background: linear-gradient(180deg, #0d5d57 0%, #0a4a45 100%);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 14px !important;
}
.wg-cta:hover { filter: brightness(1.05); color: #fff !important; }
.wg-phone {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #0d5d57;
  color: #0d5d57;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wg-phone svg { width: 18px; height: 18px; }

.wg-footer {
  margin-top: auto;
  background: #0b3f3b;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}
.wg-footer a {
  color: #fff;
  text-decoration: none;
}
.wg-footer a:hover { text-decoration: underline; }
.wg-footer-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}
.wg-footer-top {
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.wg-footer-top .wg-footer-wrap {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}
.wg-footer-logo {
  display: inline-block;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.wg-footer-brand p {
  margin: 0;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 18em;
}
.wg-footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}
.wg-footer-col span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.wg-footer-col p { margin: 0; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.wg-footer-bottom {
  padding: 14px 0 18px;
}
.wg-footer-bottom .wg-footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.wg-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.wg-footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.wg-footer-legal span { opacity: 0.45; }

.portale-gate {
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 36px 20px 48px;
}

.portale-gate-panel {
  width: min(440px, 100%);
  padding: 28px 28px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 252, 249, 0.94) 100%);
  border: 1px solid rgba(31, 122, 72, 0.14);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 22px 55px rgba(20, 60, 40, 0.12);
  backdrop-filter: blur(10px);
}

.portale-gate-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 122, 72, 0.1);
}
.portale-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.portale-gate-hero h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
}
.portale-gate-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.portale-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.portale-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(47, 182, 101, 0.28);
  flex: none;
}
.portale-brand strong {
  display: block;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.portale-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.portale-gate-panel label {
  margin-top: 14px;
}
.portale-gate-panel input {
  border-radius: 12px;
  padding: 12px 14px;
  border-color: #cfe0d6;
  background: #fff;
}
.portale-otp-input {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 650;
  text-align: center;
}
.portale-btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.portale-gate-panel .btn.block {
  margin-top: 18px;
  padding: 12px 16px;
}
.portale-link {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portale-link:hover { color: var(--green-deep); }

.portale-download {
  margin: 0 0 20px;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(31, 122, 72, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 182, 101, 0.14) 0%, rgba(232, 246, 237, 0.95) 55%, #fff 100%);
  box-shadow: 0 10px 24px rgba(31, 122, 72, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.portale-gate-panel #form-login:not([hidden]) {
  padding-top: 18px;
  border-top: 1px solid rgba(31, 122, 72, 0.1);
}
.portale-gate-panel #form-otp-chiedi:not([hidden]),
.portale-gate-panel #form-otp-conferma:not([hidden]),
.portale-gate-panel #otp-esito:not([hidden]) {
  padding-top: 18px;
  border-top: 1px solid rgba(31, 122, 72, 0.1);
}
.portale-download-copy {
  min-width: 0;
}
.portale-download strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep, #14633a);
}
.portale-download span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
}
.portale-download-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 18px;
  margin: 0;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(31, 122, 72, 0.28);
}
.portale-download-btn .portale-ico-scarica {
  width: 1.2em;
  height: 1.2em;
}
.portale-esito-meta {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.portale-esito-meta span { display: block; margin-bottom: 4px; }
.portale-esito-meta strong { color: var(--ink); font-size: 0.98rem; }
.portale-otp-password {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand);
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  word-break: break-all;
  user-select: all;
}
@media (max-width: 520px) {
  .portale-download {
    flex-direction: column;
    align-items: stretch;
  }
  .portale-download-btn { width: 100%; text-align: center; }
}

.portale-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.portale-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(31, 122, 72, 0.1);
}
.portale-top .portale-brand { margin-bottom: 0; }

.portale-main {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px 20px 48px;
  flex: 1;
}

.portale-intro h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #1a2e22;
}
.portale-intro .muted {
  margin-top: 8px;
  font-size: 1rem;
  max-width: 36em;
  line-height: 1.45;
}

.portale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.portale-cal-card,
.portale-day-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 122, 72, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(28, 70, 48, 0.07);
  padding: 20px;
}

.portale-mese {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.portale-mese strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  color: #1a2e22;
}
.portale-nav-mese {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d5e2da;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.portale-nav-mese:hover {
  border-color: var(--green);
  color: var(--brand);
  background: var(--soft);
}
.portale-nav-mese.ha {
  border-color: #9fcbb0;
  background: #eef7f1;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 72, 0.08);
}
.portale-nav-mese.ha::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  top: 7px;
  right: 7px;
}

.portale-mesi {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2ebe5;
}
.portale-mesi-titolo {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.portale-mesi-fila {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portale-mese-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e2da;
  background: #fff;
  color: #1a2e22;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.portale-mese-chip b {
  font-weight: 600;
  text-transform: capitalize;
}
.portale-mese-chip span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.portale-mese-chip:hover {
  border-color: var(--green);
  background: var(--soft);
}
.portale-mese-chip.attivo {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.portale-mese-chip.attivo span { color: rgba(255, 255, 255, 0.85); }

.portale-mese-vuoto {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 14px 12px 4px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.portale-mese-vuoto p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portale-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.portale-cal-nome {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0 8px;
}
.portale-cal-vuoto { min-height: 48px; }

.portale-giorno {
  position: relative;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #f3f6f4;
  color: #5a6b61;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 8px;
}
.portale-giorno:hover { border-color: #c5d9cc; background: #eef5f0; }
.portale-giorno.ha {
  background: linear-gradient(180deg, #e6f8ee 0%, #d4f0e0 100%);
  color: var(--brand);
  border-color: rgba(47, 182, 101, 0.28);
  cursor: pointer;
}
.portale-giorno.ha:hover {
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(47, 182, 101, 0.18);
}
.portale-giorno.oggi {
  box-shadow: inset 0 0 0 1.5px rgba(31, 122, 72, 0.35);
}
.portale-giorno.scelto {
  border-color: var(--green) !important;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 122, 72, 0.28);
}
.portale-giorno.scelto i { background: rgba(255, 255, 255, 0.22); color: #fff; }
.portale-giorno i {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.15rem;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(31, 122, 72, 0.12);
  color: var(--brand);
  line-height: 1.3;
}

.portale-day-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #1a2e22;
  text-transform: capitalize;
}
.portale-day-title.muted { color: var(--muted); font-weight: 600; }

.portale-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.portale-empty {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.portale-voce {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}
.portale-voce-testo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.portale-voce-testo b {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portale-voce-testo span {
  font-size: 0.85rem;
  color: var(--muted);
}
.portale-scarica {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 16px;
  white-space: nowrap;
}
.portale-scarica:hover { color: #fff; }
.portale-ico-scarica {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.portale-ripristino {
  margin-top: 28px;
  padding: 22px 24px 20px;
  border: 1px solid #d5e4da;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbf8 0%, #eef5f0 100%);
}
.portale-ripristino h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.portale-ripristino ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 8px;
  color: #2f3d35;
  line-height: 1.45;
}
.portale-ripristino-nota {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .wg-footer-top .wg-footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .wg-hours { display: none; }
  .wg-nav a:not(.wg-cta) { display: none; }
  .wg-phone { display: inline-flex; }
  .wg-logo img { height: 28px; }
  .wg-footer-top .wg-footer-wrap { grid-template-columns: 1fr; gap: 22px; }
  .portale-top { padding: 14px 16px; }
  .portale-main { padding: 20px 16px 40px; }
  .portale-layout { grid-template-columns: 1fr; }
  .portale-giorno { min-height: 46px; font-size: 0.9rem; }
  .portale-ripristino { padding: 18px 16px; }
}
