/* ═══════════════════════════════════════════════════════════
   ARCH CHALLENGE 2026 — Dashboard CSS  v2
   Redesign: sidebar affinata, cards con depth, topbar gold
   Palette invariata: charcoal sidebar, gold accent, light main
═══════════════════════════════════════════════════════════ */

/* ── RESET BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── VARIABILI ── */
:root {
  --black:        #0D0F12;
  --charcoal:     #0F1117;
  --charcoal-2:   #151820;
  --charcoal-3:   #1A1D24;
  --surface-dark: #181B22;
  --white:        #ffffff;
  --light-bg:     #F4F4F2;
  --light-bg-2:   #ffffff;
  --light-bg-3:   #ECEAE6;
  --light-border: rgba(0,0,0,0.07);
  --dark-text:    #0E1014;
  --dark-text-2:  #2E3240;
  --muted:        #7A8090;
  --gold:         #C6A75E;
  --gold-on-light:#A87D20;
  --gold-muted:   rgba(198,167,94,0.18);
  --gold-subtle:  rgba(198,167,94,0.07);
  --sans: Montserrat, -apple-system, Helvetica Neue, Arial, sans-serif;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --sidebar-w: 280px;
  --topbar-h:  68px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --radius:    3px;
}

body {
  background: var(--light-bg);
  color: var(--dark-text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
}

/* Gold top accent line */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, #D4B15A 50%, var(--gold) 80%, transparent);
  z-index: 9999;
  pointer-events: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: rgba(198,167,94,0.40); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::selection { background: var(--gold); color: #fff; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.db-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.db-login__left {
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Immagine di sfondo + overlay più ricchi */
.db-login__left-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/cidade-velha-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.20;
  filter: saturate(0.4) contrast(1.1);
}

.db-login__left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(8,9,12,0.90) 0%,
    rgba(15,17,23,0.70) 55%,
    rgba(10,8,6,0.85) 100%
  );
}

/* Decorazione gold angolo bottom-left */
.db-login__left::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 180px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  z-index: 2;
}

.db-login__brand {
  position: relative;
  z-index: 1;
}

.db-login__logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  display: block;
  opacity: 0.90;
}

.db-login__brand-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.db-login__brand-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.35);
}

.db-login__left-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 1rem;
}

/* Decorazione — linea gold verticale a sinistra del titolo */
.db-login__left-content::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--gold);
  margin-bottom: 1.4rem;
  opacity: 0.80;
}

.db-login__left-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.db-login__left-title strong {
  font-weight: 800;
  display: block;
  color: #fff;
  letter-spacing: -0.04em;
}

.db-login__left-body {
  font-size: 13px;
  font-weight: 400;
  color: rgba(220,220,220,0.55);
  line-height: 1.85;
  max-width: 320px;
}

.db-login__left-footer {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: rgba(220,220,220,0.25);
  letter-spacing: 0.08em;
}

/* Form side */
.db-login__right {
  background: var(--light-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

/* Sottile pattern puntini in background */
.db-login__right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.db-login__form-wrap {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.db-login__form-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-login__form-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

.db-login__form-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark-text);
  margin-bottom: 2.6rem;
  text-transform: uppercase;
}

/* ── FORM FIELDS ── */
.db-field {
  margin-bottom: 1.4rem;
}

.db-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.db-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--light-bg);
  border: 1.5px solid transparent;
  border-bottom-color: rgba(0,0,0,0.12);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.db-input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198,167,94,0.10);
}

.db-input::placeholder { color: rgba(14,16,20,0.28); }

.db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.18s, box-shadow 0.22s;
  white-space: nowrap;
  border-radius: var(--radius);
  box-sizing: border-box;
}
.db-btn:hover,
.db-btn:focus,
.db-btn:visited,
.prof-btn-gold:visited,
.prof-btn-out:visited {
  text-decoration: none;
}

.db-btn--primary {
  background: var(--dark-text);
  color: var(--white);
  width: 100%;
  border-radius: 0;
}

.db-btn--primary:hover {
  background: #1A1D24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

.db-btn--gold {
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 0;
}

.db-btn--gold:hover {
  background: #D4B15A;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(198,167,94,0.30);
}

.db-btn--ghost {
  background: transparent;
  color: var(--dark-text);
  border: 1.5px solid var(--light-border);
  border-radius: 0;
  text-decoration: none;
}

.db-btn--ghost:hover {
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.03);
}

.db-btn--sm {
  padding: 13px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.db-btn--danger {
  background: transparent;
  color: #B04040;
  border: 1.5px solid rgba(176,64,64,0.22);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 0;
}

.db-btn--danger:hover {
  background: rgba(176,64,64,0.06);
  border-color: #B04040;
}

.db-login__switch {
  margin-top: 2rem;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.db-login__switch a {
  color: var(--gold-on-light);
  text-decoration: none;
  font-weight: 600;
}

.db-error {
  background: rgba(176,64,64,0.06);
  border: 1.5px solid rgba(176,64,64,0.18);
  color: #8B2020;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 1.4rem;
  letter-spacing: 0.01em;
  border-radius: 0;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD SHELL — sidebar + main
══════════════════════════════════════════════════════════ */
.db-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.db-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  /* Bordo destra con sfumatura gold */
  border-right: 1px solid rgba(198,167,94,0.12);
  /* Sottile shadow verso il content */
  box-shadow: 2px 0 20px rgba(0,0,0,0.18);
}

/* Linea gold verticale sul bordo sinistro sidebar */
.db-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--gold) 20%,
    rgba(198,167,94,0.60) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.db-sidebar__brand {
  padding: 30px 32px 28px;
  border-bottom: none;
}

.db-sidebar__brand-link {
  display: inline-block;
  text-decoration: none;
  opacity: 0.90;
  transition: opacity 0.18s;
}
.db-sidebar__brand-link:hover { opacity: 1; }

.db-sidebar__logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 0.8rem;
}

.db-sidebar__brand-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}

.db-sidebar__brand-role {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.40);
  display: block;
}

.db-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}
.db-sidebar__nav::-webkit-scrollbar { display: none; }

.db-sidebar__section {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 0 0 8px;
}

.db-sidebar__section-rule { display: none; }

.db-sidebar__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s cubic-bezier(0.16,1,0.3,1);
  border-left: 2px solid transparent;
  position: relative;
}

.db-sidebar__link:hover {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.04);
  border-left-color: transparent;
}

.db-sidebar__link.active {
  color: var(--gold);
  border-left-color: transparent;
  background: rgba(198,167,94,0.06);
  font-weight: 500;
}

.db-sidebar__link-icon {
  width: 17px;
  height: 17px;
  opacity: 0.80;
  flex-shrink: 0;
  stroke-width: 1.6;
}

.db-sidebar__link:hover .db-sidebar__link-icon,
.db-sidebar__link.active .db-sidebar__link-icon {
  opacity: 1;
}

.db-sidebar__footer {
  margin-top: auto;
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-sidebar__footer-rule {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px 0;
}

.db-sidebar__social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.18s;
}

.db-sidebar__social:hover { color: var(--gold); }

.db-sidebar__user {
  font-size: 11px;
  color: rgba(220,220,220,0.35);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.db-sidebar__user strong {
  display: block;
  color: rgba(220,220,220,0.65);
  font-weight: 600;
}

.db-sidebar__logout {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-sidebar__logout:hover { color: rgba(198,167,94,0.85); }

/* ── MAIN CONTENT ── */
.db-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--light-bg);
}

/* ── TOPBAR ── */
.db-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.db-topbar__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--dark-text);
}

.db-topbar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.db-topbar__reg-id {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-on-light);
  text-transform: uppercase;
  background: var(--gold-subtle);
  padding: 3px 10px;
  border: 1px solid rgba(168,125,32,0.15);
}

.db-content {
  padding: 40px;
  max-width: 1550px;
  width: 100%;
  flex: 1;
}

/* ── PAGE HEADER ── */
.db-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.db-page-header__left {}

.db-page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

.db-page-title {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  text-transform: uppercase;
  line-height: 1;
}

.db-page-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 500;
  max-width: 640px;
}

/* ══════════════════════════════════════════════════════════
   CARDS & STAT BLOCKS
══════════════════════════════════════════════════════════ */
.db-card {
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.db-card--dark {
  background: var(--charcoal);
  border-color: rgba(198,167,94,0.10);
  color: rgba(220,220,220,0.85);
  box-shadow: none;
}

.db-card__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-card__label::before {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

.db-card--dark .db-card__label {
  color: rgba(220,220,220,0.40);
}

.db-card--dark .db-card__label::before {
  background: var(--gold);
}

.db-card__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 1.2rem;
}

.db-card--dark .db-card__title {
  color: rgba(220,220,220,0.90);
}

/* Stat card grid */
.db-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background: transparent;
  border: none;
  margin-bottom: 1.8rem;
}

.db-stat {
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-top: 3px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.20s, transform 0.20s;
}

.db-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.db-stat__num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--dark-text);
  line-height: 1;
}

.db-stat__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.db-stat__sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Varianti colore top-border */
.db-stat--gold   { border-top-color: var(--gold); }
.db-stat--gold   .db-stat__num { color: var(--gold-on-light); }

.db-stat--ok     { border-top-color: #4A9A4A; }
.db-stat--ok     .db-stat__num { color: #3A7A3A; }

.db-stat--warn   { border-top-color: #D08030; }
.db-stat--warn   .db-stat__num { color: #C68020; }

.db-stat--alert  { border-top-color: #C05050; }
.db-stat--alert  .db-stat__num { color: #B04040; }

.db-stat--revenue .db-stat__num { color: #1A6B1A; font-size: 1.9rem; }
.db-stat-grid--revenue {
  grid-template-columns: 2fr 1fr 1fr;
  background: rgba(26,107,26,0.03);
  border: 1px solid rgba(26,107,26,0.10);
  border-radius: var(--radius);
  padding: 1rem;
  gap: 0;
}

/* ══════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════ */
.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
}

.db-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-badge--pending   { background: rgba(198,167,94,0.10); color: #8B6820; }
.db-badge--pending::before { background: #C6A75E; }

.db-badge--confirmed { background: rgba(58,122,58,0.09); color: #2A6A2A; }
.db-badge--confirmed::before { background: #4A9A4A; }

.db-badge--submitted { background: rgba(40,80,160,0.09); color: #204080; }
.db-badge--submitted::before { background: #4060B0; }

.db-badge--not-submitted { background: rgba(176,64,64,0.08); color: #8B2020; }
.db-badge--not-submitted::before { background: #B04040; }

.db-badge--updated { background: rgba(100,60,160,0.09); color: #502080; }
.db-badge--updated::before { background: #8050C0; }

.db-badge--closed { background: rgba(14,16,20,0.07); color: #40454F; }
.db-badge--closed::before { background: #6B7080; }

.db-badge--open { background: rgba(58,122,58,0.09); color: #2A6A2A; }
.db-badge--open::before { background: #4A9A4A; }

.db-badge--waived { background: rgba(40,120,160,0.09); color: #206080; }
.db-badge--waived::before { background: #3080A0; }

.db-badge--gold {
  background: rgba(198,167,94,0.13);
  color: #7A5A10;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 2px;
  font-weight: 700;
  display: inline-block;
}

.db-table--phase tfoot td { padding: 10px 12px; font-size: 13px; }

/* ══════════════════════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════════════════════ */
.db-table-wrap {
  overflow-x: auto;
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.db-table thead {
  background: var(--light-bg);
  border-bottom: 1px solid var(--light-border);
}

.db-table th {
  padding: 10px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.db-table td {
  padding: 11px 14px;
  color: var(--dark-text-2);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

.db-table tr:last-child td { border-bottom: none; }
.db-table tr:hover td { background: rgba(198,167,94,0.025); }

.db-table__id {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.db-table__name {
  font-weight: 600;
  color: var(--dark-text);
}

.db-table__email {
  color: var(--muted);
  font-size: 11px;
}

.db-table__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   FILTERS & SEARCH
══════════════════════════════════════════════════════════ */
.db-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.2rem;
}

.db-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.db-search__input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: var(--light-bg-2);
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.18s;
}

.db-search__input:focus { border-color: var(--gold); }

.db-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.db-select {
  padding: 9px 32px 9px 12px;
  background: var(--light-bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7080'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-text);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s;
  letter-spacing: 0.04em;
}

.db-select:focus { border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   DATA FIELD — read-only key/value
══════════════════════════════════════════════════════════ */
.db-fields {
  display: grid;
  gap: 0;
}

.db-field-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: start;
}

.db-field-row:last-child { border-bottom: none; }

.db-field-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.db-field-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text);
}

/* ══════════════════════════════════════════════════════════
   TEAM MEMBER CARD
══════════════════════════════════════════════════════════ */
.db-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  background: transparent;
  border: none;
  margin-bottom: 1.4rem;
}

.db-member {
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}

.db-member__leader {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  background: var(--gold-subtle);
  padding: 2px 8px;
  border-radius: 2px;
}

.db-member__avatar {
  width: 36px;
  height: 36px;
  background: var(--light-bg-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.6rem;
  border: 2px solid var(--light-border);
}

.db-member__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.db-member__role { font-size: 11px; color: var(--muted); }
.db-member__email { font-size: 11px; color: var(--muted); margin-top: 0.2rem; }

.db-member__actions {
  display: flex;
  gap: 6px;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ══════════════════════════════════════════════════════════
   UPLOAD AREA
══════════════════════════════════════════════════════════ */
.db-upload {
  border: 1.5px dashed rgba(198,167,94,0.30);
  background: rgba(198,167,94,0.03);
  border-radius: var(--radius);
  padding: 2.8rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s;
  margin-bottom: 1.4rem;
}

.db-upload:hover,
.db-upload.drag-over {
  border-color: var(--gold);
  background: rgba(198,167,94,0.07);
}

.db-upload__icon {
  width: 40px; height: 40px;
  margin: 0 auto 1rem;
  color: var(--gold);
  opacity: 0.65;
}

.db-upload__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
}

.db-upload__sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.db-upload__browse {
  color: var(--gold-on-light);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* File list */
.db-file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  border: none;
}

.db-file-item {
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.2rem;
  transition: background 0.15s;
}

.db-file-item:hover { background: rgba(198,167,94,0.02); }

.db-file-item__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-file-item__meta  { font-size: 10px; color: var(--muted); white-space: nowrap; }
.db-file-item__date  { font-size: 10px; color: var(--muted); white-space: nowrap; }
.db-file-item__actions { display: flex; gap: 6px; }

/* ══════════════════════════════════════════════════════════
   SUBMISSION STATUS BLOCK
══════════════════════════════════════════════════════════ */
.db-submission-status {
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  background: var(--light-bg-2);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.db-submission-status__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold);
}

.db-submission-status--ok .db-submission-status__icon {
  background: rgba(58,122,58,0.08);
  color: #3A7A3A;
}

.db-submission-status--missing .db-submission-status__icon {
  background: rgba(176,64,64,0.06);
  color: #B04040;
}

.db-submission-status__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 0.2rem;
}

.db-submission-status__sub {
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.db-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
}

.db-empty__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--dark-text-2);
}

.db-empty__sub {
  font-size: 12px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   CONFIRMATION MESSAGE
══════════════════════════════════════════════════════════ */
.db-confirm {
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
}

.db-confirm--ok {
  background: rgba(58,122,58,0.07);
  border: 1px solid rgba(58,122,58,0.16);
  color: #2A6A2A;
}

.db-confirm--error {
  background: rgba(176,64,64,0.07);
  border: 1px solid rgba(176,64,64,0.16);
  color: #8B2020;
}

.db-confirm--info {
  background: rgba(37,99,175,0.07);
  border: 1px solid rgba(37,99,175,0.18);
  color: #1a4f8a;
  align-items: flex-start;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════
   EXPORT BUTTONS
══════════════════════════════════════════════════════════ */
.db-export {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.db-export__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.db-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,9,12,0.65);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.db-modal {
  background: var(--light-bg-2);
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 20px 60px rgba(0,0,0,0.18);
}

.db-modal__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-border);
}

.db-modal__close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.18s;
}

.db-modal__close:hover { color: var(--dark-text); }

.db-modal__actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--light-border);
  justify-content: flex-end;
}

/* ══════════════════════════════════════════════════════════
   GRID UTILITIES
══════════════════════════════════════════════════════════ */
.db-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.db-grid-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.db-grid-60-40 { display: grid; grid-template-columns: 3fr 2fr; gap: 1.4rem; }

.db-stack { display: flex; flex-direction: column; gap: 1rem; }
.db-row   { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

.db-divider {
  height: 1px;
  background: var(--light-border);
  margin: 1.4rem 0;
}

.db-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-border);
}

/* ── COMPETITION DETAIL CARD ── */
.db-comp-card {
  background: var(--charcoal);
  color: rgba(220,220,220,0.85);
  padding: 1.8rem;
  border: 1px solid rgba(198,167,94,0.10);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: none;
  /* Linea gold in cima */
  border-top: 2px solid rgba(198,167,94,0.45);
}

.db-comp-card__challenge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.db-comp-card__name {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255,252,245,0.90);
  line-height: 1.1;
}

.db-comp-card__name strong { font-weight: 800; }

.db-comp-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(198,167,94,0.10);
}

.db-comp-card__meta-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.30);
  margin-bottom: 0.2rem;
}

.db-comp-card__meta-val {
  font-size: 12px;
  font-weight: 500;
  color: rgba(220,220,220,0.78);
}

.db-comp-card__link {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.18s;
}

.db-comp-card__link:hover { gap: 10px; }

/* Back to site link */
.db-topbar__back {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.db-topbar__back:hover { color: var(--dark-text); }
.db-topbar__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--light-bg-3);
  border: 1.5px solid var(--light-border);
  color: var(--dark-text);
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.18s;
}

.db-topbar__avatar:hover { border-color: var(--gold-on-light); }

.db-topbar__avatar-img {
  width: 34px; height: 34px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.db-topbar__avatar-svg {
  width: 17px; height: 17px;
  opacity: 0.50;
}

/* ── TEAM INFO CARD ── */
.db-team-info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.db-team-info-card__edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  text-decoration: none;
  border: 1.5px solid rgba(168,125,32,0.25);
  padding: 5px 11px;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}

.db-team-info-card__edit:hover {
  background: rgba(168,125,32,0.06);
  border-color: var(--gold-on-light);
}

.db-team-info-card__body { display: flex; flex-direction: column; gap: 0; }

.db-team-info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  padding: 0.8rem 0;
  border-top: 1px solid var(--light-border);
}

.db-team-info-row:first-child { border-top: none; padding-top: 0; }

.db-team-info-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.db-team-info-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-team-info-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* ── TEAM MEMBERS CARD ── */
.db-team-members-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* ── TEAM ROWS ── */
.db-team-rows { display: flex; flex-direction: column; }

.db-team-row {
  display: grid;
  grid-template-columns: 32px 42px 1fr auto;
  align-items: center;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--light-border);
}

.db-team-row:first-child {
  border-top: 1px solid var(--light-border);
  padding-top: 1.1rem;
}

.db-team-row__num {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.db-team-row__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--light-bg-3);
  border: 1.5px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}

.db-team-row__avatar svg { width: 17px; height: 17px; }

.db-team-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.db-team-row__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-team-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 5px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-team-row__meta-leader { font-weight: 700; color: var(--dark-text); }
.db-team-row__meta-sep    { color: var(--light-border); font-size: 10px; }

.db-team-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── TEAM NOTE ── */
.db-team-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(168,125,32,0.04);
  border: 1px dashed rgba(168,125,32,0.20);
  border-radius: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── OVERVIEW CARDS ── */
.db-overview-card {
  display: flex;
  flex-direction: column;
  min-height: 148px;
}

.db-overview-card .db-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ══════════════════════════════════════════════════════════
   OVERVIEW SPECIFICI — deadline bar, stats, timeline
══════════════════════════════════════════════════════════ */

/* Deadline countdown bar */
.dash-deadline-bar {
  background: var(--charcoal);
  border: 1px solid rgba(198,167,94,0.12);
  border-top: 2px solid rgba(198,167,94,0.50);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.dash-deadline-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.70);
  margin-bottom: 0.35rem;
}

.dash-deadline-event {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,252,245,0.90);
  text-transform: uppercase;
}

.dash-deadline-units {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-deadline-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  background: rgba(255,255,255,0.04);
  padding: 0.6rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(198,167,94,0.10);
}

.dash-deadline-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}

.dash-deadline-ulabel {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(198,167,94,0.55);
  margin-top: 0.2rem;
}

/* Stat tiles overview */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.dash-stat {
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.20s, transform 0.20s;
}

.dash-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dash-stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--dark-text);
  line-height: 1;
}

.dash-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.dash-stat--gold  { border-top: 3px solid var(--gold); }
.dash-stat--gold  .dash-stat-value { color: var(--gold-on-light); }

.dash-stat--green { border-top: 3px solid #4A9A4A; }
.dash-stat--green .dash-stat-value { color: #3A7A3A; }

.dash-stat--blue  { border-top: 3px solid #4068C0; }
.dash-stat--blue  .dash-stat-value { color: #2A4EA0; }

.dash-stat--red   { border-top: 3px solid #C05050; }
.dash-stat--red   .dash-stat-value { color: #B04040; }

/* Card overview generico */
.dash-card {
  background: var(--light-bg-2);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.dash-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-title i {
  color: var(--gold-on-light);
  font-size: 13px;
}

/* Notifiche */
.dash-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.dash-notif-item:last-child { border-bottom: none; }

.dash-notif-dot-icon {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 5px rgba(198,167,94,0.40);
}

.dash-notif-dot-icon--read {
  background: var(--light-border);
  box-shadow: none;
}

.dash-notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.15rem;
}

.dash-notif-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.dash-notif-time {
  font-size: 10px;
  color: rgba(107,112,128,0.70);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

/* Empty state interno alle dash-card */
.dash-empty {
  padding: 2.4rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.dash-empty-icon {
  font-size: 28px;
  margin-bottom: 0.8rem;
  opacity: 0.30;
}

.dash-empty-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Timeline */
.dash-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Linea verticale */
.dash-timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--light-border);
  z-index: 0;
}

.dash-tl-item {
  display: flex;
  gap: 1.2rem;
  padding: 0 0 1.4rem;
  position: relative;
  z-index: 1;
}

.dash-tl-item:last-child { padding-bottom: 0; }

.dash-tl-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  border: 2px solid var(--light-bg-2);
  box-shadow: 0 0 0 1px var(--light-border);
}

.dash-tl-dot--green {
  background: rgba(74,154,74,0.12);
  color: #4A9A4A;
}

.dash-tl-dot--gold {
  background: rgba(198,167,94,0.12);
  color: var(--gold-on-light);
}

.dash-tl-dot--gray {
  background: var(--light-bg-3);
  color: var(--muted);
}

.dash-tl-body { padding-top: 4px; }

.dash-tl-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-tl-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-on-light);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.dash-tl-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   TEAM PAGE — NUOVO DESIGN (v2)
══════════════════════════════════════════════════════════ */

/* Banner team */
.team-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  color: var(--dark-text);
  border: 1px solid var(--light-border);
  padding: 30px 34px;
  margin-top: 38px;
  position: relative;
  overflow: hidden;
}

/* Barra oro in cima */
.team-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.team-banner .right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* Eyebrow "Team Information" */
.ce {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ce::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

/* Nome del team */
.tn {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark-text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  line-height: 1.1;
}

/* Pulsante matita edit team name */
.tn-edit {
  width: 30px; height: 30px;
  border: 1px solid var(--light-border);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.25s cubic-bezier(0.16,1,0.3,1), color 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
  border-radius: 0;
}

.tn-edit:hover {
  border-color: var(--gold);
  color: var(--gold-on-light);
  background: rgba(198,167,94,0.06);
}

.tn-edit svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

/* Riga "Led by …" */
.team-banner .meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.5;
}

.team-banner .meta b {
  font-weight: 600;
  color: var(--dark-text);
}

/* Contatore membri (destra del banner) */
.cap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.c-lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.c-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  line-height: 1;
  margin-top: 2px;
}

.c-val .max {
  font-weight: 300;
  color: var(--muted);
}

/* Section label sopra la lista */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 38px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Lista membri */
.members {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--light-border);
  overflow: hidden;
}

/* Singolo membro */
.member {
  display: grid;
  grid-template-columns: 34px 48px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--light-border);
  transition: background 0.25s cubic-bezier(0.16,1,0.3,1);
}

.member:last-child { border-bottom: none; }
.member:hover { background: #F8F7F4; }

/* Leader row con velo d'oro */
.member.leader {
  background: #EEECEA;
}

.member.leader:hover {
  background: #ECEAE7;
}

/* Numero progressivo */
.m-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

/* Avatar con iniziali */
.m-av {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--light-bg-3);
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-text-2);
  flex-shrink: 0;
  user-select: none;
}

/* Leader: bordo oro sull'avatar, sfondo bianco */
.member.leader .m-av {
  border-color: var(--gold);
  color: var(--gold-on-light);
  background: var(--white);
}

/* Info membro */
.m-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.m-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Badge "Team Leader" */
.m-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  border: 1px solid rgba(198,167,94,0.4);
  background: transparent;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.m-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-role .em { font-weight: 600; color: var(--dark-text-2); }

/* Pulsanti azioni membro */
.m-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.m-locked {
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Pulsante Edit */
.m-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  color: var(--dark-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.18);
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
  font-family: var(--sans);
  border-radius: 0;
}

.m-edit:hover {
  border-color: var(--dark-text);
  background: rgba(0,0,0,0.04);
}

/* Pulsante Remove */
.m-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  color: var(--warn);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(185,116,43,0.35);
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
  font-family: var(--sans);
  border-radius: 0;
}

.m-remove:hover {
  border-color: var(--warn);
  background: rgba(185,116,43,0.10);
}

/* Slot "aggiungi membro" tratteggiato */
.add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1.5px dashed rgba(198,167,94,0.40);
  border-radius: var(--radius);
  background: var(--light-bg);
  color: var(--gold-on-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.20s, border-color 0.20s, color 0.20s;
  margin-top: 16px;
  margin-bottom: 1.2rem;
}

.add-row:hover {
  background: rgba(198,167,94,0.07);
  border-color: var(--gold);
  color: var(--gold-on-light);
}

/* Nota in fondo con barra gold a sinistra */
.foot-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--light-bg);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.foot-note b { color: var(--dark-text); font-weight: 700; }
.foot-note svg { width: 16px; height: 16px; flex: none; stroke: var(--gold-on-light); fill: none; stroke-width: 1.6; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   HAMBURGER MOBILE
══════════════════════════════════════════════════════════ */

/* Pulsante hamburger (visibile solo su mobile) */
.m-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.m-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark-text);
}

/* Logo topbar mobile */
.db-topbar__mobile-logo {
  display: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-text);
  text-decoration: none;
  user-select: none;
}

/* Pulsante chiudi sidebar (X) — visibile solo su mobile nell'overlay */
.side-close {
  display: none;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  color: rgba(255,255,255,0.60);
  border-radius: 2px;
  transition: color 0.18s, background 0.18s;
  z-index: 10;
  line-height: 1;
  font-size: 20px;
}

.side-close:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
}

/* Codice registrazione nell'overlay mobile */
.side-code {
  display: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 0 32px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .db-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    width: 260px;
  }
  .db-sidebar.open { transform: translateX(0); }
  .db-main { margin-left: 0; }
  .db-content { padding: 1.2rem; }
  .db-grid-2, .db-grid-3, .db-grid-60-40 { grid-template-columns: 1fr; }
  .db-login { grid-template-columns: 1fr; }
  .db-login__left { display: none; }
  .db-stat-grid { grid-template-columns: 1fr 1fr; }
  .db-field-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .db-file-item { grid-template-columns: 1fr auto; }
  .db-file-item__date, .db-file-item__meta { display: none; }
  .db-overview-grid { grid-template-columns: 1fr 1fr !important; }
  .db-team-info-row { grid-template-columns: 130px 1fr; }
  .db-team-row { grid-template-columns: 36px 1fr auto; }
  .db-team-row__num { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-deadline-bar { flex-direction: column; gap: 1.2rem; }

  /* Team banner: stack su mobile */
  .team-banner { grid-template-columns: 1fr; }
  .team-banner .right { align-items: flex-start; }
  .cap { align-items: flex-start; }

  /* Membro: griglia semplificata su mobile <600px */
  .member { grid-template-columns: 28px 1fr; gap: 12px; }
  .m-av { display: none; }
  .m-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 40px; }
}

@media (max-width: 480px) {
  .db-overview-grid { grid-template-columns: 1fr !important; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .db-team-row { grid-template-columns: 36px 1fr auto; }
  .db-team-row__num { display: none; }
}

@media (max-width: 900px) {
  /* sidebar come overlay che entra DA DESTRA */
  .db-sidebar--overlay {
    position: fixed;
    inset: 0;
    width: 100%; height: 100dvh;
    left: auto;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    opacity: 0;
    visibility: hidden;
  }

  .db-sidebar--overlay.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  body.menu-open { overflow: hidden; }

  /* Topbar semplificata su mobile */
  .db-topbar { padding: 0 20px; }
  .db-topbar__title { display: none; }
  .db-topbar__right { display: none; }
  .m-burger { display: flex; }
  .db-topbar__mobile-logo { display: block; }
  .db-sidebar--overlay .side-close { display: flex; }
  .db-sidebar--overlay .side-code { display: block; }

  /* Content */
  .db-content { padding: 28px 20px; }

  /* Team banner: stack su mobile */
  .team-banner { grid-template-columns: 1fr; }
  .team-banner .right { align-items: flex-start; }
  .cap { align-items: flex-start; }

  /* Membro: griglia semplificata su mobile <600px */
  .member { grid-template-columns: 28px 1fr; gap: 12px; }
  .m-av { display: none; }
  .m-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 40px; }
}

/* ══════════════════════════════════════════════════════════
   FINAL SUBMISSION PAGE
══════════════════════════════════════════════════════════ */

/* Layout: timeline sinistra + contenuto destra */
.sub-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-top: 38px;
  align-items: start;
}
@media (max-width: 820px) {
  .sub-wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* Status bar sotto l'header */
.sub-status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.sub-deadline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.sub-deadline b { color: var(--dark-text); }

/* ── Timeline verticale ── */
.sub-timeline {
  position: sticky;
  top: 96px;
}
@media (max-width: 820px) { .sub-timeline { position: static; } }

.tl-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding-bottom: 28px;
  position: relative;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 1.5px;
  background: var(--light-border);
}
.tl-step:last-child::after { display: none; }
.tl-step.done::after { background: var(--gold); }

.tl-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--light-border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  z-index: 1;
  flex-shrink: 0;
}
.tl-step.done .tl-dot {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
.tl-step.current .tl-dot {
  border-color: var(--gold-on-light);
  color: var(--gold-on-light);
  box-shadow: 0 0 0 4px rgba(198,167,94,0.10);
}
.tl-body {}
.tl-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 4px;
  color: var(--dark-text);
}
.tl-step.todo .tl-title { color: var(--muted); }
.tl-step.current .tl-title { color: var(--gold-on-light); }
.tl-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Pannelli destra ── */
.sub-panels {}

/* Grid dropzone + lista file */
.sub-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1080px) { .sub-upload-grid { grid-template-columns: 1fr; } }

.sub-panel {
  background: var(--white);
  border: 1px solid var(--light-border);
  padding: 28px 32px;
}
.sub-panel + .sub-panel { margin-top: 20px; }
.sub-upload-grid .sub-panel + .sub-panel { margin-top: 0; }

.sub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.sub-panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-panel-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold-on-light);
}
.sub-file-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Dropzone */
.sub-dropzone {
  border: 1.5px dashed rgba(198,167,94,0.5);
  background: var(--light-bg);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sub-dropzone:hover,
.sub-dropzone.drag-over {
  border-color: var(--gold);
  background: rgba(198,167,94,0.04);
}
.sub-dropzone input[type=file] { display: none; }
.sub-dz-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  color: var(--gold);
}
.sub-dz-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}
.sub-dz-text span {
  color: var(--gold-on-light);
  text-decoration: underline;
  cursor: pointer;
}
.sub-dz-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.sub-dropzone.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Lista file */
.sub-file-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
}
.sub-file-list { display: flex; flex-direction: column; gap: 0; }
.sub-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--light-border);
}
.sub-file-row:last-child { border-bottom: none; }
.sub-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  background: var(--light-bg);
  color: var(--muted);
  border: 1px solid var(--light-border);
}
.sub-file-icon.pdf { background: rgba(176,64,64,0.07); color: #8B2020; border-color: rgba(176,64,64,0.15); }
.sub-file-icon.zip { background: rgba(37,99,175,0.07); color: #1a4f8a; border-color: rgba(37,99,175,0.15); }
.sub-file-icon.img { background: rgba(58,122,58,0.07); color: #2A6A2A; border-color: rgba(58,122,58,0.15); }
.sub-file-info { flex: 1; min-width: 0; }
.sub-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-file-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.sub-file-remove {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.sub-file-remove:hover { color: #8B2020; }

.sub-file-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  background: rgba(198,167,94,0.10);
  border: 1px solid rgba(198,167,94,0.25);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Confirm panel */
.sub-confirm-panel {
  background: var(--white);
  border: 1px solid var(--light-border);
  padding: 28px 32px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sub-confirm-text {}
.sub-confirm-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 6px;
}
.sub-confirm-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

/* Stato C — submitted */
.sub-submitted-banner {
  background: rgba(58,122,58,0.06);
  border: 1px solid rgba(58,122,58,0.18);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.sub-submitted-banner svg { flex-shrink: 0; color: #2A6A2A; }
.sub-submitted-banner .ssb-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2A6A2A;
}
.sub-submitted-banner .ssb-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Disabled state per confirm button */
.db-btn--primary:disabled,
.db-btn--primary[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Nota scadenza deadline */
.sub-foot-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.sub-foot-note svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@media (max-width: 600px) {
  .sub-confirm-panel { flex-direction: column; align-items: flex-start; }
  .sub-panel { padding: 20px; }
  .sub-confirm-panel { padding: 20px; }
}

/* ══════════════════════════════════════════════════════════
   PROFILE PAGE — Identity Card + Data Grid
══════════════════════════════════════════════════════════ */

/* ── Identity Card (cartiglio d'autore) ── */
.idcard {
  background: var(--charcoal);
  color: var(--white);
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 40px 44px;
}
/* griglia mustard sottile in trasparenza */
.idcard::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(198,167,94,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,167,94,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* linea oro sfumata in alto */
.idcard::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}
@media (max-width: 760px) {
  .idcard {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }
}

/* ritratto circolare con doppio anello oro */
.idcard-portrait {
  position: relative;
  z-index: 1;
  width: 130px;
  height: 130px;
  flex: none;
}
@media (max-width: 760px) { .idcard-portrait { margin: 0 auto; } }

.idcard-portrait .icp-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(198,167,94,0.25);
  border-radius: 50%;
}
.idcard-portrait .icp-frame {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  padding: 4px;
  background: var(--charcoal-2);
}
.idcard-portrait .icp-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* placeholder iniziali quando non c'è foto */
.idcard-portrait .icp-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--charcoal-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

/* centro: ruolo, nome, team */
.idcard-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.idcard-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.idcard-name {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}
.idcard-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 760px) { .idcard-sub { justify-content: center; } }

/* destra: targhetta codice registrazione */
.idcard-stamp {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(198,167,94,0.3);
  padding: 18px 22px;
  text-align: left;
  min-width: 190px;
}
@media (max-width: 760px) { .idcard-stamp { margin: 0 auto; } }

.idcard-stamp .s-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.idcard-stamp .s-code {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 6px 0 12px;
}
.idcard-stamp .s-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.idcard-stamp .s-row .sk {
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 9.5px;
}
.idcard-stamp .s-row .sv {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

/* ── Grid dati + foto ── */
.profile-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}
@media (max-width: 920px) { .profile-grid { grid-template-columns: 1fr; } }

.prof-panel {
  background: var(--white);
  border: 1px solid var(--light-border);
}
.prof-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--light-border);
}
.prof-panel-head .pp-ey {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.prof-panel-head .pp-ey::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold-on-light);
}

/* scheda dati — righe cartiglio tecnico */
.prof-spec { padding: 8px 30px 0; }
.prof-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-border);
}
.prof-spec-row:last-child { border-bottom: none; }
@media (max-width: 520px) { .prof-spec-row { grid-template-columns: 1fr; gap: 4px; } }
.prof-spec-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.prof-spec-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
  letter-spacing: -0.01em;
}
.prof-spec-v.empty {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}
.prof-spec-foot {
  padding: 20px 30px 26px;
}

/* pannello foto */
.prof-photo-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.prof-photo-drop {
  border: 1.5px dashed rgba(198,167,94,0.45);
  background: var(--light-bg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.prof-photo-drop:hover,
.prof-photo-drop.drag-over {
  border-color: var(--gold);
  background: rgba(198,167,94,0.04);
}
.prof-photo-drop input[type=file] { display: none; }
.prof-photo-ic {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 1px solid rgba(198,167,94,0.4);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-on-light);
}
.prof-photo-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.prof-photo-dt { font-size: 13px; font-weight: 700; color: var(--dark-text); }
.prof-photo-dt span { color: var(--gold-on-light); text-decoration: underline; }
.prof-photo-dm { font-size: 11px; color: var(--muted); margin-top: 5px; }
.prof-photo-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Photo action buttons — stile riferimento */
.prof-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.15s, letter-spacing 0.15s;
  box-sizing: border-box;
}
.prof-btn-gold:hover {
  background: var(--gold-bright, #c8a84b);
  letter-spacing: 0.22em;
  text-decoration: none;
}
.prof-btn-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--dark-text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.18);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.prof-btn-out:hover {
  border-color: var(--dark-text);
  background: rgba(0,0,0,0.04);
  text-decoration: none;
}

/* edit form inline — dentro prof-spec */
.prof-edit-form-inline {
  display: flex;
  flex-direction: column;
}
.prof-edit-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--dark-text);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  transition: border-color 0.15s;
}
.prof-edit-input:focus {
  border-color: var(--gold);
}
.prof-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 4px 0;
  align-items: center;
}

/* edit form pannello (legacy) */
.prof-edit-form {
  padding: 24px 30px;
}

/* ═══════════════════════════════════════════════════
   MY CHALLENGE PAGE
   ═══════════════════════════════════════════════════ */

/* Hero concorso immersivo */
.ch-hero {
  position: relative;
  margin-top: 28px;
  background: var(--charcoal, #111417);
  color: #fff;
  overflow: hidden;
  padding: 48px 44px;
  border: 1px solid rgba(198,167,94,0.15);
}
.ch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(198,167,94,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,167,94,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ch-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 120% at 100% 50%, transparent 40%, rgba(13,15,18,0.6) 100%);
}
.ch-hero-in { position: relative; z-index: 1; }
.ch-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ch-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.ch-title { line-height: 0.92; margin-bottom: 24px; }
.ch-title .l1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: block;
}
.ch-title .l2 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: block;
}
.ch-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 22px 64px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 640px;
}
@media (max-width: 560px) { .ch-meta { grid-template-columns: 1fr; gap: 18px; } }
.ch-meta .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.ch-meta .v {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-top: 5px;
}

/* Pill status sull'hero */
.ch-status { position: absolute; top: 32px; right: 44px; z-index: 2; }
@media (max-width: 560px) { .ch-status { position: static; margin-bottom: 20px; } }
.ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
}
.ch-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ch-pill.ok   { color: var(--ok, #3f7d52);   background: var(--ok-bg,  rgba(63,125,82,0.10)); }
.ch-pill.warn { color: var(--warn, #b9742b);  background: var(--warn-bg,rgba(185,116,43,0.10)); }
.ch-pill.reg-closed { color: var(--warn, #b9742b); background: var(--warn-bg, rgba(185,116,43,0.10)); }
.ch-pill.closed     { color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); }

/* Section label */
.ch-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted, #6B7080);
  margin: 42px 0 18px;
}

/* Key dates */
.ch-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { .ch-dates { grid-template-columns: 1fr; } }
.ch-date-card {
  background: var(--white, #fff);
  border: 1px solid var(--light-border, rgba(0,0,0,0.09));
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.ch-date-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--light-border, rgba(0,0,0,0.09));
}
.ch-date-card.next::before { background: var(--gold); }
.cdc-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #6B7080);
}
.cdc-when {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.cdc-left {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--gold-on-light, #B68D2A);
}
.ch-date-card.past .cdc-when { color: var(--muted, #6B7080); }
.ch-date-card.past .cdc-left { color: var(--ok, #3f7d52); }

/* Competition materials */
.ch-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .ch-dl-grid { grid-template-columns: 1fr; } }
.ch-dl-card {
  background: var(--white, #fff);
  border: 1px solid var(--light-border, rgba(0,0,0,0.09));
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ch-dl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.38s ease;
}
.ch-dl-card:hover { border-color: rgba(198,167,94,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.ch-dl-card:hover::before { width: 100%; }
.ch-dl-ic {
  width: 44px; height: 44px;
  border: 1px solid rgba(198,167,94,0.3);
  background: rgba(198,167,94,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-on-light, #B68D2A);
  margin-bottom: 20px;
}
.ch-dl-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.ch-dl-k { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ch-dl-m { font-size: 13px; color: var(--muted, #6B7080); margin-top: 6px; margin-bottom: auto; }
.ch-dl-foot { margin-top: 22px; }
.ch-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-on-light, #B68D2A);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.25s;
}
.ch-cta:hover { gap: 10px; text-decoration: none; }

/* Participation history */
.ch-history {
  background: var(--white, #fff);
  border: 1px solid var(--light-border, rgba(0,0,0,0.09));
  margin-bottom: 40px;
}
.ch-hist-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--light-border, rgba(0,0,0,0.09));
}
.ch-hist-row.active { background: rgba(198,167,94,0.06); }
.ch-hist-yr {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold-on-light, #B68D2A);
  font-variant-numeric: tabular-nums;
}
.ch-hist-info { min-width: 0; }
.ch-hist-edition {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #6B7080);
}
.ch-hist-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 3px; }
.ch-hist-loc  { font-size: 13px; color: var(--muted, #6B7080); margin-top: 2px; }
.ch-hist-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text, #0E1014);
  text-align: right;
  white-space: nowrap;
}
.ch-hist-role .sm {
  font-size: 10px;
  color: var(--muted, #6B7080);
  font-weight: 500;
  display: block;
  letter-spacing: 0.04em;
}
.ch-hist-empty {
  padding: 28px 30px;
  font-size: 13px;
  color: var(--muted, #6B7080);
  font-style: italic;
  border-top: 1px dashed var(--light-border, rgba(0,0,0,0.09));
  display: flex;
  align-items: center;
  gap: 12px;
}
.ch-hist-empty svg {
  width: 16px; height: 16px;
  flex: none;
  stroke: var(--gold-on-light, #B68D2A);
  fill: none;
  stroke-width: 1.6;
}

/* ═══════════════════════════════════════════════════
   OVERVIEW PAGE
   ═══════════════════════════════════════════════════ */

.ov-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-on-light);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.ov-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold-on-light); }

.ov-h1 {
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 800;
  letter-spacing: -0.02em; text-transform: uppercase; line-height: 1;
}
.ov-hi { font-weight: 300; }
.ov-sub { color: var(--muted, #6B7080); font-size: 15px; margin-top: 10px; font-weight: 500; }

.ov-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted, #6B7080);
  margin: 42px 0 18px;
}

/* ── Status pills ── */
.ov-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 2px;
}
.ov-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ov-pill.ok      { color: var(--ok, #3f7d52);   background: var(--ok-bg,  rgba(63,125,82,0.10)); }
.ov-pill.warn    { color: var(--warn, #b9742b);  background: var(--warn-bg,rgba(185,116,43,0.10)); }
.ov-pill.pending { color: var(--pending, #8a8a8a); background: var(--pending-bg, rgba(0,0,0,0.05)); }
.ov-pill.closed  { color: var(--pending, #8a8a8a); background: var(--pending-bg, rgba(0,0,0,0.05)); }

/* ── Lead card ── */
.ov-lead-card {
  background: var(--white, #fff);
  border: 1px solid var(--light-border, rgba(0,0,0,0.09));
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr;
}
.ov-lead-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
@media (max-width: 760px) { .ov-lead-card { grid-template-columns: 1fr; } }

.ov-lead-main { padding: 32px 34px; }

.ov-lead-ce {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-on-light);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.ov-lead-ce::before { content: ''; width: 20px; height: 1px; background: var(--gold-on-light); }

.ov-lead-head {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ov-lead-title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ov-lead-desc  { color: var(--muted, #6B7080); font-size: 14px; margin-top: 6px; }
.ov-lead-cta   { margin-top: 26px; }

/* mini-timeline */
.ov-flow-rail  { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.ov-flow-step  {
  display: grid; grid-template-columns: 24px 1fr;
  gap: 14px; align-items: start;
  position: relative; padding-bottom: 18px;
}
.ov-flow-step:last-child { padding-bottom: 0; }
.ov-flow-step::after {
  content: ''; position: absolute;
  left: 11px; top: 22px; bottom: 0;
  width: 1.5px; background: var(--light-border, rgba(0,0,0,0.09));
}
.ov-flow-step:last-child::after { display: none; }

.ov-flow-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--light-border, rgba(0,0,0,0.09));
  background: var(--white, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--pending, #8a8a8a); z-index: 1;
}
.ov-flow-step.done .ov-flow-dot {
  border-color: var(--gold); background: var(--gold); color: #fff;
}
.ov-flow-step.current .ov-flow-dot {
  border-color: var(--gold-on-light); color: var(--gold-on-light);
  box-shadow: 0 0 0 4px rgba(198,167,94,0.06);
}
.ov-flow-step.current::after {
  background: linear-gradient(var(--gold), var(--light-border, rgba(0,0,0,0.09)));
}
.ov-flow-tt   { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.ov-flow-step.todo .ov-flow-tt { color: var(--pending, #8a8a8a); }
.ov-flow-meta { font-size: 12px; color: var(--muted, #6B7080); }

/* Countdown (lato scuro) */
.ov-lead-aside {
  background: var(--charcoal, #111417); color: #fff;
  padding: 32px 34px;
  display: flex; flex-direction: column; justify-content: center;
}
.ov-la-l    { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.ov-la-big  { font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 2px; }
.ov-la-u    { font-size: 0.28em; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; margin-left: 8px; text-transform: uppercase; }
.ov-la-when { font-size: 13px; color: rgba(255,255,255,0.6); }
.ov-la-bar  { height: 4px; background: rgba(255,255,255,0.12); margin-top: 22px; position: relative; overflow: hidden; }
.ov-la-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); }
.ov-la-barlbl { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 10px; font-weight: 700; }

/* Btn oro nella lead card */
.ov-btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  background: var(--gold); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700; line-height: 1;
  letter-spacing: 0.20em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--gold);
  cursor: pointer; box-sizing: border-box;
  transition: background 0.22s, letter-spacing 0.22s;
}
.ov-btn-gold:hover { background: var(--gold-bright, #c8a84b); letter-spacing: 0.24em; text-decoration: none; }

/* ── Card secondarie ── */
.ov-grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 0; margin-bottom: 40px;
}
@media (max-width: 900px) { .ov-grid3 { grid-template-columns: 1fr; } }

.ov-card {
  background: var(--white, #fff);
  border: 1px solid var(--light-border, rgba(0,0,0,0.09));
  padding: 32px;
  display: flex; flex-direction: column; min-height: 260px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ov-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.38s ease;
}
.ov-card:hover { border-color: rgba(198,167,94,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.ov-card:hover::before { width: 100%; }

.ov-card-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: auto; }
.ov-card-body { margin: 16px 0 auto; }
.ov-card-foot { margin-top: 20px; }
.ov-card-foot-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }

.ov-card-ce {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-on-light);
  display: flex; align-items: center; gap: 10px;
}
.ov-card-ce::before { content: ''; width: 16px; height: 1px; background: var(--gold-on-light); }

.ov-card-k    { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.ov-card-meta { font-size: 13px; color: var(--muted, #6B7080); margin-top: 4px; }

.ov-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--gold-on-light);
  text-decoration: none; background: none; border: none;
  cursor: pointer; padding: 0; transition: gap 0.25s;
}
.ov-cta:hover { gap: 10px; text-decoration: none; }
.ov-cta-muted { color: var(--muted, #6B7080); }
