@charset "UTF-8";
/* ══════════════════════════════════════════════════════
   ValueCFO — area-riservata.css
   Stili per pagina login (/accedi) e dashboard (/dashboard)
   Design system: --navy #002147 | --gold-bright #D4A017
   ══════════════════════════════════════════════════════ */

:root {
  --navy:        #002147;
  --navy-mid:    #003366;
  --navy-light:  #004080;
  --gold:        #B8860B;
  --gold-bright: #D4A017;
  --gold-light:  #F5E6C0;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --gray-100:    #F0F2F5;
  --gray-200:    #E2E6EA;
  --gray-300:    #CDD3DA;
  --gray-500:    #6C757D;
  --gray-700:    #343A40;
  --green:       #1A7F5A;
  --red:         #C0392B;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(0,33,71,0.08);
  --shadow-md:   0 8px 24px rgba(0,33,71,0.12);
  --shadow-lg:   0 16px 48px rgba(0,33,71,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--gray-700);
  min-height: 100vh;
}

/* ── BANNER CONFIGURAZIONE ── */
.config-banner {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(212,160,23,0.3);
}
.config-banner strong { color: var(--gold-bright); }
.config-banner a { color: var(--gold-bright); text-decoration: underline; }

/* ── AREA NAVBAR ── */
.ar-nav {
  background: var(--navy);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.ar-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.ar-nav-logo span { color: var(--gold-bright); }
.ar-nav-right { display: flex; align-items: center; gap: 20px; }
.ar-nav-home {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.ar-nav-home:hover { color: var(--gold-bright); }

/* ── LOGIN PAGE ── */
.login-wrap {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 52px;
  width: 100%;
  max-width: 440px;
  border-top: 4px solid var(--gold-bright);
}
.login-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
  text-align: center;
}
.login-logo span { color: var(--gold-bright); }
.login-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.login-field { margin-bottom: 20px; }
.login-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.login-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.login-input:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.12);
}
.login-btn {
  width: 100%;
  padding: 15px;
  background: var(--gold-bright);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.login-btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.35);
}
.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.login-error {
  background: #fdf0ef;
  border: 1px solid #e8b4b0;
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.85rem;
  padding: 12px 14px;
  margin-top: 16px;
  display: none;
}
.login-error.visible { display: block; }
.login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.login-footer a { color: var(--navy-mid); font-weight: 600; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.login-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 24px 0;
}

/* ── CONFIGURAZIONE ALERT (login) ── */
.config-notice {
  background: var(--navy);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.config-notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.config-notice-text { font-size: 0.83rem; color: rgba(255,255,255,0.85); line-height: 1.55; }
.config-notice-text strong { color: var(--gold-bright); }

/* ── DASHBOARD LAYOUT ── */
.dashboard-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Welcome card */
.dash-welcome {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-md);
}
.dash-welcome-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
}
.dash-welcome-left p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.dash-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dash-tier-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}
.dash-welcome-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dash-expiry {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.dash-logout-btn {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.dash-logout-btn:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* Suite block */
.dash-suite {
  margin-bottom: 48px;
}
.dash-suite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 10px;
}
.dash-suite-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
}
.dash-suite-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold-bright);
  padding: 5px 14px;
  border-radius: 50px;
}

/* Block label inside suite */
.dash-block-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 10px;
  margin: 28px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-block-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Program cards grid */
.dash-program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .dash-program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dash-program-grid { grid-template-columns: 1fr; }
  .login-card { padding: 36px 28px; }
  .dash-welcome { padding: 24px; }
}

/* Program card */
.dash-program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.dash-program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,51,102,0.2);
}
.dash-program-card.locked {
  opacity: 0.6;
  filter: grayscale(0.4);
}
.dash-program-card.deadline {
  border-color: rgba(192,57,43,0.4);
}
.dash-program-head {
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--gray-100);
}
.dash-program-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dash-program-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.dash-program-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.dash-program-body {
  padding: 16px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.dash-program-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.dash-program-features li::before {
  content: '\2014';
  color: var(--gold-bright);
  font-weight: 700;
  margin-right: 8px;
}

/* Open program button */
.dash-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--navy);
  color: var(--gold-bright);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  text-align: center;
}
.dash-open-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
.dash-open-btn.locked-btn {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
}
.dash-open-btn.locked-btn:hover { transform: none; }

/* Deadline badge */
.dash-deadline-badge {
  display: inline-block;
  background: #C0392B;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.dash-new-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Upgrade CTA (per tier non abilitato) */
.dash-upgrade-cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-upgrade-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}
.dash-upgrade-cta p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.6;
}
.dash-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--gold-bright);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.dash-upgrade-btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

/* Modal "Programma in arrivo" */
.dash-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,33,71,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.dash-modal-overlay.open { display: flex; }
.dash-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-bright);
}
.dash-modal-icon { font-size: 2.5rem; margin-bottom: 16px; }
.dash-modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.dash-modal p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 24px;
}
.dash-modal-close {
  padding: 11px 28px;
  background: var(--navy);
  color: var(--gold-bright);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.dash-modal-close:hover { background: var(--navy-mid); }

/* AR Footer */
.ar-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
}
.ar-footer a { color: var(--gold-bright); text-decoration: none; }
.ar-footer a:hover { text-decoration: underline; }

/* ── Campo password con toggle "occhio" (pagina /accedi/) ── */
/* Stessa resa di attiva.css; il login carica area-riservata.css, quindi le regole
   vivono anche qui. Markup: .vcfo-pass-wrap > .login-input + button#vcfo-password-toggle.vcfo-eye */
.vcfo-pass-wrap { position: relative; }
.vcfo-pass-wrap .login-input { padding-right: 46px; }

.vcfo-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #8b91a3;
  border-radius: 6px;
}
.vcfo-eye:hover { color: var(--navy, #002147); background: rgba(0, 33, 71, 0.05); }
.vcfo-eye svg { width: 20px; height: 20px; pointer-events: none; }
.vcfo-eye .icon-eye-off { display: none; }
.vcfo-eye.is-shown .icon-eye    { display: none; }
.vcfo-eye.is-shown .icon-eye-off { display: inline; }
