:root {
  --primary: #0c8c8a;
  --primary-soft: #e4f2f2;
  --accent: #b91c1c;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #f9fafb 0, #e5e7eb 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* LINK E FOCUS */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* TOP STRIP MANUTENZIONE */
.top-strip {
  background: #111827;
  color: #f9fafb;
  border-bottom: 1px solid rgba(249, 250, 251, 0.08);
}

.top-strip__content {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.top-strip__icon {
  font-size: 18px;
}

.top-strip__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-strip__text strong {
  font-weight: 600;
}

/* LAYOUT PRINCIPALE */
.page {
  max-width: 980px;
  margin: 32px auto 40px;
  padding: 0 16px 32px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo__image {
  display: block;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
}

.header__contacts-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.header__phone {
  font-weight: 500;
  font-size: 14px;
}

.header__email {
  font-size: 13px;
}

/* MAIN */
.main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* CARD GENERICA */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px 22px 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

/* CARD HERO (MANUTENZIONE) */
.card--hero {
  padding: 22px 24px 24px;
  background: radial-gradient(circle at 0 0, #fef2f2 0, #ffffff 45%, #e0f2fe 100%);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card__header--compact {
  margin-bottom: 10px;
}

.card__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 2px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* STATUS PILL */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.3);
}

.status-pill__text {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

/* HERO LAYOUT */
.card__body--hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: flex-start;
}

.hero-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-highlight {
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.18);
  font-size: 14px;
}

.hero-highlight strong {
  font-weight: 600;
}

/* BOTTONI */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, #0f766e, #0c8c8a);
  color: #ffffff;
  border-color: transparent;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0e605a, #0b7472);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn--ghost:hover {
  background: #ffffff;
}

.btn--outline {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn--outline:hover {
  background: var(--primary-soft);
}

/* HERO INFO BOX */
.hero-info__box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.8);
}

.hero-info__title {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
}

.hero-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.hero-info__list li + li {
  margin-top: 4px;
}

.hero-info__list a {
  color: #e5e7eb;
}

/* CONTENUTI GENERICI CARD */
.card__body {
  font-size: 14px;
  color: var(--text-main);
}

.card__body p {
  margin: 0 0 8px;
}

/* LISTE E COLONNE */
.list {
  padding-left: 18px;
  margin: 6px 0 0;
}

.list li + li {
  margin-top: 4px;
}

.columns {
  margin-top: 10px;
}

.columns--split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 18px;
}

/* RIQUADRO RIASSUNTIVO */
.summary-panel {
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
}

.summary-panel__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.summary-panel__list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
}

.summary-panel__list li + li {
  margin-top: 3px;
}

/* ASSISTENZA REMOTA */
.remote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.remote-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px 12px;
  background: #f9fafb;
}

.remote-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.remote-card__text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* CONTATTI */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.contacts-block {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 10px 12px;
  background: #f9fafb;
}

.contacts-block__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .card__body--hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-info__box {
    margin-top: 4px;
  }

  .columns--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .remote-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page {
    margin-top: 24px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__contacts {
    align-items: flex-start;
  }

  .logo__image {
    height: 56px;
  }
}

@media (max-width: 480px) {
  .card--hero {
    padding: 18px 16px 18px;
  }

  .hero-title {
    font-size: 20px;
  }

  .top-strip__content {
    align-items: flex-start;
  }

  .logo__image {
    height: 48px;
  }
}
