﻿:root {
  --blue-950: #082f55;
  --blue-900: #0b3f70;
  --blue-800: #07518d;
  --blue-700: #0868b2;
  --blue-600: #0b7acb;
  --blue-100: #e9f4fc;
  --blue-050: #f4f9fd;
  --gold: #c8a45c;
  --ink: #182536;
  --muted: #627084;
  --line: #dce5ee;
  --surface: #ffffff;
  --background: #f3f6f9;
  --success: #16875d;
  --warning: #b66a00;
  --danger: #c43b47;
  --shadow: 0 18px 45px rgba(17, 48, 78, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(11, 122, 203, .09), transparent 32%),
    linear-gradient(180deg, #f9fbfd 0%, var(--background) 100%);
}
button, input, select, textarea { font: inherit; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,229,238,.9);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: contain; }
.brand strong { display: block; color: var(--blue-950); font-size: 1rem; letter-spacing: .01em; }
.brand span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 56px; }
.narrow { width: min(780px, calc(100% - 32px)); }

.hero {
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  right: -110px;
  top: -170px;
  box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 92px rgba(255,255,255,.025);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; opacity: .78; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.02; margin: 12px 0 16px; max-width: 780px; }
.hero p { max-width: 720px; font-size: 1.08rem; line-height: 1.65; color: rgba(255,255,255,.84); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stack { display: grid; gap: 18px; }
.section { margin-top: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(20, 52, 82, .055);
}
.card h2, .card h3 { margin-top: 0; color: var(--blue-950); }
.card h2 { font-size: 1.35rem; }
.card h3 { font-size: 1.05rem; }
.card p:last-child { margin-bottom: 0; }
.card-soft { background: var(--blue-050); border-color: #cfe4f4; }
.card-danger { border-color: #efc4c9; background: #fff7f8; }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-800);
  font-weight: 900; margin-bottom: 18px;
}

.btn {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue-700); color: white; box-shadow: 0 8px 18px rgba(8,104,178,.22); }
.btn-primary:hover { background: var(--blue-800); }
.btn-dark { background: var(--blue-950); color: white; }
.btn-secondary { background: #eef3f7; color: var(--blue-950); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--blue-800); border: 1px solid #b8d5e9; }
.btn-danger { background: #fff0f1; color: var(--danger); border: 1px solid #efc4c9; }
.btn-white { background: white; color: var(--blue-950); }
.btn-sm { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: .9rem; }

label { display: block; font-weight: 700; font-size: .9rem; color: #314256; margin-bottom: 7px; }
.required::after { content: " *"; color: var(--danger); }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd8e3;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(11,122,203,.12); }
input[readonly] { background: #f2f5f7; color: #526173; }
.field { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 6px; }
.error-text { color: var(--danger); font-size: .85rem; margin-top: 8px; }

.checkbox-row, .radio-row {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink); font-weight: 600; line-height: 1.45;
}
.checkbox-row input, .radio-row input { width: 18px; height: 18px; min-height: auto; margin: 2px 0 0; flex: 0 0 auto; }
.checkbox-row label, .radio-row label { margin: 0; font-weight: 600; }

.alert { border-radius: 13px; padding: 14px 16px; border: 1px solid; line-height: 1.5; }
.alert-info { background: var(--blue-050); border-color: #bddbf0; color: #234b6d; }
.alert-success { background: #effaf6; border-color: #afe1ce; color: #126a49; }
.alert-warning { background: #fff8ea; border-color: #efd49c; color: #86500a; }
.alert-danger { background: #fff1f2; border-color: #efc4c9; color: #9d2b37; }

.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.pill-blue { background: var(--blue-100); color: var(--blue-800); }
.pill-green { background: #e7f7f0; color: #11724e; }
.pill-orange { background: #fff0d3; color: #8a5200; }
.pill-red { background: #ffeaec; color: #a52d39; }
.pill-gray { background: #edf1f4; color: #5a6877; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; color: var(--blue-950); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-head p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.step { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e8edf2; color: #657486; }
.step.active { color: var(--blue-800); }
.step.active .step-num, .step.done .step-num { background: var(--blue-700); color: white; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 19px; }
.kpi span { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; }
.kpi strong { display: block; margin-top: 7px; color: var(--blue-950); font-size: 1.9rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
th { color: #536276; background: #f6f8fa; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }

.team-card { border: 1px solid #cfe0ec; border-radius: 17px; padding: 20px; background: #fbfdff; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.team-head h3 { margin: 0; }
.facility-results { display: grid; gap: 8px; margin-top: 8px; }
.facility-result { text-align: left; width: 100%; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.facility-result:hover { border-color: var(--blue-600); background: var(--blue-050); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.tab { border: 0; background: transparent; padding: 9px 13px; border-radius: 10px; color: var(--muted); font-weight: 750; cursor: pointer; }
.tab.active { background: var(--blue-100); color: var(--blue-800); }
.tab-panel[hidden] { display: none; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(7,31,55,.55);
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 20px; padding: 24px; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-end { justify-content: flex-end; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.hidden { display: none !important; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 10px; width: min(360px, calc(100% - 36px)); }
.toast { padding: 14px 16px; color: white; background: var(--blue-950); border-radius: 12px; box-shadow: var(--shadow); animation: slideIn .2s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes slideIn { from { transform: translateY(8px); opacity: 0; } }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); background: white; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

@media (max-width: 900px) {
  .grid-3, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 32px; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 66px; }
  .brand span { display: none; }
  .shell { padding-top: 24px; }
  .hero { padding: 26px 22px; border-radius: 20px; }
  .grid-2, .grid-3, .form-grid, .form-grid-3, .kpis { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-head { align-items: flex-start; }
  .card { padding: 19px; }
  .header-actions .label-hide { display: none; }
}


/* Loghi istituzionali LND + SGS */
.brand-logos { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-logos img { width: 48px; height: 48px; object-fit: contain; }
.brand-logos .brand-logo-sgs { width: 76px; height: 48px; }
.error-logos { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.error-logos img { width: auto; max-width: 92px; height: 58px; object-fit: contain; }
@media (max-width: 640px) {
  .brand-logos { gap: 6px; }
  .brand-logos img { width: 40px; height: 40px; }
  .brand-logos .brand-logo-sgs { width: 62px; height: 40px; }
}



/* ADMIN_SOCIETA_ISCRIZIONI_STYLES */
.modal.modal-wide { width: min(1080px, 100%); }
.society-search-field { flex: 1 1 420px; margin-bottom: 0; }
.society-search-button { align-self: flex-end; }
#practiceEditChampionships .checkbox-row { align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: var(--blue-050); }
@media (max-width: 680px) {
  .society-search-field { flex-basis: 100%; }
  .society-search-button { flex: 1 1 auto; }
}


/* COMUNICATI_SGS_HOME_STYLES */
.official-notices-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #bcd9ee;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f8fd 100%);
  box-shadow: 0 14px 36px rgba(7, 54, 94, .08);
}
.official-notices-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: rgba(8, 104, 178, .06);
}
.official-notices-card > * { position: relative; z-index: 1; }
.official-notices-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.official-notices-heading h2 { margin: 7px 0 8px; color: var(--blue-950); font-size: clamp(1.45rem, 3vw, 2rem); }
.official-notices-heading p { margin: 0; color: var(--muted); max-width: 820px; line-height: 1.55; }
.official-eyebrow { color: var(--blue-700); opacity: 1; }
.official-badge {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-950);
  color: white;
  font-weight: 900;
  letter-spacing: .06em;
}
.official-registration-panel {
  margin-top: 22px;
  padding: 20px;
  border-left: 5px solid var(--blue-700);
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 20px rgba(7, 54, 94, .05);
}
.official-registration-label { margin-bottom: 9px; color: var(--blue-800); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.official-registration-text { color: #263b4f; line-height: 1.65; white-space: pre-line; }
.official-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.official-link-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #c9dfef;
  border-radius: 15px;
  background: white;
  color: var(--blue-950);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.official-link-card:hover { transform: translateY(-2px); border-color: var(--blue-600); box-shadow: 0 10px 22px rgba(8, 104, 178, .12); text-decoration: none; }
.official-link-card[hidden] { display: none; }
.official-link-code { min-width: 45px; height: 45px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue-800); font-weight: 900; }
.official-link-card strong, .official-link-card small { display: block; }
.official-link-card small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.official-link-arrow { font-size: 1.15rem; color: var(--blue-700); }
.official-link-card-dark { background: var(--blue-950); border-color: var(--blue-950); color: white; }
.official-link-card-dark .official-link-code { background: rgba(255,255,255,.13); color: white; }
.official-link-card-dark small, .official-link-card-dark .official-link-arrow { color: rgba(255,255,255,.75); }
.textarea-large { min-height: 260px; }
@media (max-width: 900px) { .official-links { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .official-notices-card { padding: 22px 18px; border-radius: 19px; }
  .official-notices-heading { display: block; }
  .official-badge { width: 54px; height: 54px; margin-top: 16px; }
  .official-registration-panel { padding: 17px; }
}


/* ACCOUNT_FIRST_STEP_STYLES */
#societySummary {
  padding: 22px;
  border: 2px solid #99c8e8;
  background: linear-gradient(145deg, #eef8ff 0%, #ffffff 100%);
}

.recognized-society-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 9px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.recognized-society-name {
  display: block;
  color: var(--blue-950);
  font-size: 1.2rem;
  line-height: 1.3;
}

.recognized-society-data {
  margin-top: 5px;
  color: var(--muted);
  font-size: .92rem;
}

.recognized-society-email {
  margin-top: 10px;
  color: var(--ink);
}

.activation-first-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  margin-top: 20px;
  padding: 18px;
  border: 2px solid var(--blue-700);
  border-radius: 16px;
  background: var(--blue-950);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(8, 47, 85, .18);
}

.activation-first-step-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ffffff;
  color: var(--blue-900);
  font-size: 1.6rem;
  font-weight: 900;
}

.activation-first-step-kicker {
  margin-bottom: 4px;
  color: #bde5ff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.activation-first-step h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.1rem;
}

.activation-first-step p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .activation-first-step {
    grid-template-columns: 1fr;
  }

  .activation-first-step-number {
    width: 46px;
    height: 46px;
  }
}
