:root {
  --ink: #1b1b1f;
  --ink-2: #3f4350;
  --grey: #6b7280;
  --line: #e6e8ec;
  --soft: #f7f7f8;
  --green: #22a565;
  --green-bg: #f2fbf6;
  --brand: #e8553a;
  --brand-2: #f6c1b5;
  --brand-d: color-mix(in srgb, var(--brand) 88%, black);
  --brand-bg: color-mix(in srgb, var(--brand) 10%, white);
  --brand-line: color-mix(in srgb, var(--brand-2) 70%, white);
  --brand-ring: color-mix(in srgb, var(--brand) 35%, transparent);
  --brand-glow-1: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-glow-2: color-mix(in srgb, var(--brand) 7%, transparent);
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-border-color: var(--line);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px 520px at -6% 16%, var(--brand-glow-1), transparent 70%), radial-gradient(640px 640px at 106% 72%, var(--brand-glow-2), transparent 70%);
}

h1, h2, h3 {
  letter-spacing: -0.03em;
}

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
}

.grey {
  color: var(--grey);
}

.num {
  font-variant-numeric: tabular-nums;
}

.nav-top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.logo-word {
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1;
}

.brand-logo {
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, white), var(--brand-d));
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 70%, transparent);
  transition: filter 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-brand:hover {
  filter: brightness(0.95);
  color: #fff;
}
.btn-brand:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: #cfd3da;
  background: var(--soft);
  color: var(--ink);
}

.page-main {
  max-width: 1080px;
  flex: 1;
}

.page-footer {
  color: var(--grey);
  padding: 3rem 1rem 2rem;
}
.page-footer strong {
  color: var(--ink);
}

.min-w-0 {
  min-width: 0;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
}
.hero p {
  font-size: 1.08rem;
  color: var(--grey);
  margin-inline: auto;
  max-width: 720px;
}
.hero .facts {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.hero .facts i {
  color: var(--brand);
  margin-right: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 50rem;
  padding: 0.5rem 1.05rem;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.chip .chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip .g {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip.on {
  background: var(--brand-bg);
  border-color: var(--brand-line);
  color: var(--brand);
  font-weight: 600;
}

a.chip:hover, button.chip:hover {
  border-color: #cfd3da;
  background: var(--soft);
  color: var(--ink);
}

button.chip.on:hover {
  background: color-mix(in srgb, var(--brand) 16%, white);
  border-color: var(--brand);
  color: var(--brand-d);
}

.sec-title {
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0;
}
.sec-title .count {
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  color: var(--grey);
  letter-spacing: 0;
}

.card-g {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  scroll-margin-top: 1rem;
}

.g-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.5rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.g-head h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.g-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex: none;
}
.g-icon.g-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.5rem;
}

.g-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
  background: var(--soft);
}

.stars {
  color: #f5b82e;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-t {
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 50rem;
  padding: 0.12rem 0.65rem;
  color: var(--ink-2);
  background: #fff;
}

.svc {
  padding: 1.15rem 1.5rem;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.svc.main {
  border-top: 0;
}
.svc.is-ok {
  background: var(--green-bg);
}
.svc.is-ko {
  background: var(--soft);
}
.svc.sub .svc-name {
  font-size: 1rem;
}
.svc.sub .thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.thumb {
  width: 104px;
  height: 104px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
  background: var(--soft);
}

.extra {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.subs {
  margin: 1.4rem 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--brand-line);
}
.subs .subs {
  margin: 0.75rem 0 0 1.25rem;
  border-left-color: #d9dde3;
}
.subs .subs .subs-title i {
  color: #9aa1ad;
}
.subs .svc {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  background: #fff;
}
.subs .svc.is-ok {
  background: var(--green-bg);
}
.subs .svc.is-ko {
  background: var(--soft);
}
.subs .svc + .svc, .subs .subs + .svc {
  margin-top: 0.6rem;
}

.subs-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.subs-title i {
  color: var(--brand);
}

.svc-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.code {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 0.08rem 0.45rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  font-size: 0.9rem;
  color: var(--grey);
  margin-top: 0.3rem;
}

.price-col {
  white-space: nowrap;
}
.price-col strong {
  font-size: 1.1rem;
}

.tog {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 50rem;
  padding: 4px;
  background: #fff;
}
.tog label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 50rem;
  padding: 0.5rem 1.05rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.tog label:hover {
  background: var(--soft);
}
.tog input:focus-visible + label {
  outline: 3px solid var(--brand-ring);
  outline-offset: 1px;
}
.tog input[value=confermato]:checked + label {
  background: var(--green);
  color: #fff;
}
.tog input[value=non_disponibile]:checked + label {
  background: var(--ink);
  color: #fff;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-control {
  border-radius: 14px;
  border-color: var(--line);
  padding: 0.65rem 0.9rem;
}
.form-control::placeholder {
  color: #a3a9b5;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand) 14%, transparent);
}

@media (min-width: 992px) {
  .price-col {
    min-width: 150px;
    text-align: right;
  }
}
@media (max-width: 575.98px) {
  .svc, .g-head {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .thumb {
    width: 72px;
    height: 72px;
  }
  .svc.sub .thumb {
    width: 56px;
    height: 56px;
  }
  .subs {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
    padding-left: 0.8rem;
  }
  .subs .subs {
    margin-left: 0.5rem;
  }
  .tog {
    display: flex;
  }
  .tog label {
    flex: 1;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .col-lg-auto:has(> .tog) {
    width: 100%;
  }
}
.footer-texts {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-texts details {
  text-align: left;
}
.footer-texts details[open] {
  flex-basis: 100%;
}
.footer-texts summary {
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: var(--ink-2);
}
.footer-texts summary:hover {
  color: var(--brand);
}
.footer-texts .footer-text {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow-wrap: anywhere;
}
.footer-texts .footer-text > :last-child {
  margin-bottom: 0;
}
.footer-texts .footer-text a {
  color: var(--brand);
}

.status-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
  text-align: center;
}
.status-page h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.status-page p {
  color: var(--grey);
  font-size: 1.05rem;
}

.status-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--brand-bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
}

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