/*!
 * Portale Professionisti — foglio di stile autonomo.
 * File: wp-content/mu-plugins/prof-portal/assets/prof-portal.css
 *
 * Nessuna dipendenza esterna (nessun framework, nessun font remoto).
 * Palette e contrasti verificati secondo WCAG 2.1 AA.
 */

:root{
  --prof-ink:#1a2b4a;
  --prof-ink-hover:#22385f;
  --prof-bg:#f5f3ef;
  --prof-surface:#ffffff;
  --prof-gold:#b8963e;
  --prof-muted:#5a6577;
  --prof-border:#8a8577;
  --prof-line:#e3ded4;
  --prof-line-soft:#ece7dd;
  --prof-error:#a4232b;
  --prof-error-bg:#fdf1f2;
  --prof-error-border:#e7c3c7;
  --prof-success:#2e6b4f;
  --prof-success-bg:#f1f7f3;
  --prof-success-border:#c6ddcf;
  --prof-serif:"Noto Serif",Georgia,"Times New Roman",serif;
  --prof-sans:Inter,"Noto Sans",-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --prof-radius:4px;
  --prof-radius-lg:6px;
}

*,*::before,*::after{box-sizing:border-box}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
.prof-body{
  background:var(--prof-bg);
  color:var(--prof-ink);
  font:400 16px/1.6 var(--prof-sans);
  -webkit-font-smoothing:antialiased;
  margin:0;
}
.prof-body--auth{min-height:100vh}

.prof-standalone{
  max-width:1080px;
  margin:0 auto;
  padding:40px 20px 64px;
}
.prof-standalone--auth{max-width:560px}
.prof-standalone--area{max-width:1180px;padding-top:24px}

.prof-embed{
  max-width:560px;
  margin:0 auto;
  padding:24px 0 56px;
}
.prof-embed--wide{max-width:1180px}

.prof-brand{text-align:center;margin:0 0 28px}
.prof-brand-name{
  font:700 20px/1.2 var(--prof-serif);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--prof-ink);
  text-decoration:none;
}
.prof-brand-name:hover{color:var(--prof-ink-hover)}

/* ------------------------------------------------------------------ *
 * Card
 * ------------------------------------------------------------------ */
.prof-card{
  width:100%;
  background:var(--prof-surface);
  border:1px solid var(--prof-line);
  border-top:3px solid var(--prof-gold);
  border-radius:var(--prof-radius-lg);
  padding:40px 36px;
  box-shadow:0 1px 2px rgba(26,43,74,.06);
}
.prof-card--success{border-top-color:var(--prof-success);text-align:center}

.prof-title{
  font:700 30px/1.2 var(--prof-serif);
  letter-spacing:-.01em;
  margin:0 0 8px;
  color:var(--prof-ink);
}
.prof-title--sm{font-size:21px;margin-top:36px}
.prof-subtitle{
  color:var(--prof-muted);
  font-size:14px;
  line-height:1.55;
  margin:0 0 26px;
}

/* ------------------------------------------------------------------ *
 * Campi
 * ------------------------------------------------------------------ */
.prof-fieldset{border:0;margin:0 0 24px;padding:0}
.prof-fieldset legend{
  font:600 12px/1 var(--prof-sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--prof-muted);
  padding:0 0 12px;
}

.prof-field{margin:0 0 18px}
.prof-field > label{
  display:block;
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  margin-bottom:6px;
  color:var(--prof-ink);
}
.prof-req{color:var(--prof-error);font-weight:700}

.prof-field input[type=text],
.prof-field input[type=email],
.prof-field input[type=password],
.prof-field input[type=tel],
.prof-field select,
.prof-field input[type=file]{
  width:100%;
  min-height:46px;
  padding:11px 14px;
  font:400 16px/1.4 var(--prof-sans);
  color:var(--prof-ink);
  background:#fff;
  border:1px solid var(--prof-border);
  border-radius:var(--prof-radius);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.prof-field select{
  padding-right:40px;
  background-image:
    linear-gradient(45deg,transparent 50%,var(--prof-ink) 50%),
    linear-gradient(135deg,var(--prof-ink) 50%,transparent 50%);
  background-position:calc(100% - 20px) 21px,calc(100% - 14px) 21px;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  appearance:none;
}
.prof-field input[type=file]{padding:9px 12px;font-size:14px}

.prof-field input:focus-visible,
.prof-field select:focus-visible,
.prof-btn:focus-visible,
.prof-link:focus-visible,
.prof-nav a:focus-visible{
  outline:3px solid var(--prof-ink);
  outline-offset:2px;
  border-color:var(--prof-ink);
}

.prof-field--error input,
.prof-field--error select{border-color:var(--prof-error)}
.prof-error{display:block;margin:6px 0 0;font-size:14px;line-height:1.4;color:var(--prof-error);font-weight:500}
.prof-help{display:block;margin:6px 0 0;font-size:13px;line-height:1.45;color:var(--prof-muted)}

.prof-check{display:flex;gap:10px;align-items:flex-start}
.prof-check input[type=checkbox]{width:20px;height:20px;margin:2px 0 0;accent-color:var(--prof-ink);flex:0 0 auto}
.prof-check label{font-size:14px;line-height:1.5;font-weight:400;margin:0}

.prof-hp-wrap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ------------------------------------------------------------------ *
 * Pulsanti e link
 * ------------------------------------------------------------------ */
.prof-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:12px 22px;
  font:600 16px/1.2 var(--prof-sans);
  border:1px solid transparent;
  border-radius:var(--prof-radius);
  cursor:pointer;
  text-decoration:none;
  transition:background-color .15s ease,color .15s ease;
}
.prof-btn--primary{width:100%;background:var(--prof-ink);color:#fff}
.prof-btn--primary:hover{background:var(--prof-ink-hover);color:#fff}
.prof-btn--primary:disabled{opacity:.6;cursor:not-allowed}
.prof-btn--ghost{background:#fff;color:var(--prof-ink);border-color:var(--prof-border)}
.prof-btn--ghost:hover{background:#faf8f4}

.prof-link{color:var(--prof-ink);text-decoration:underline;text-underline-offset:2px}
.prof-link:hover{color:var(--prof-ink-hover)}
.prof-muted{color:var(--prof-muted)}
.prof-small{font-size:13px;line-height:1.5}
.prof-foot-note{text-align:center;font-size:14px;color:var(--prof-muted);margin:18px 0 0}
.prof-field--submit{margin:24px 0 0}

/* ------------------------------------------------------------------ *
 * Avvisi
 * ------------------------------------------------------------------ */
.prof-alert{
  border-radius:var(--prof-radius);
  padding:14px 16px;
  margin:0 0 24px;
  font-size:14px;
  line-height:1.5;
}
.prof-alert--error{
  background:var(--prof-error-bg);
  border:1px solid var(--prof-error-border);
  border-left:4px solid var(--prof-error);
  color:#7d1a20;
}
.prof-alert--success{
  background:var(--prof-success-bg);
  border:1px solid var(--prof-success-border);
  border-left:4px solid var(--prof-success);
  color:#1f5439;
}
.prof-alert-title{font-weight:700;margin:0 0 6px}
.prof-alert-list{margin:0;padding-left:18px}

/* ------------------------------------------------------------------ *
 * Area personale
 * ------------------------------------------------------------------ */
.prof-app{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:0;
  background:var(--prof-surface);
  border:1px solid var(--prof-line);
  border-radius:var(--prof-radius-lg);
  overflow:hidden;
}
.prof-side{
  background:var(--prof-ink);
  color:#f5f3ef;
  padding:28px 20px;
  display:flex;
  flex-direction:column;
  gap:26px;
}
.prof-side-user{font-size:13px;line-height:1.5;color:#cfd6e2}
.prof-side-user strong{display:block;color:#fff;font:600 16px/1.3 var(--prof-sans);margin-bottom:4px}

.prof-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.prof-nav a{
  display:block;
  padding:10px 14px;
  border-radius:var(--prof-radius);
  color:#cfd6e2;
  text-decoration:none;
  font-size:15px;
  border-left:3px solid transparent;
}
.prof-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.prof-nav a[aria-current="page"]{
  background:rgba(184,150,62,.16);
  color:#fff;
  border-left-color:var(--prof-gold);
  font-weight:600;
}

.prof-main{padding:32px 36px 40px;min-width:0}
.prof-main-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.prof-main-head .prof-title{font-size:26px;margin-bottom:4px}
.prof-main-head .prof-subtitle{margin:0}

.prof-upload{
  background:#faf8f4;
  border:1px solid var(--prof-line);
  border-radius:var(--prof-radius);
  padding:20px 20px 4px;
  margin:0 0 28px;
}
.prof-upload .prof-field{margin-bottom:16px}
.prof-upload .prof-field--submit{margin:0 0 16px}
.prof-upload .prof-btn--primary{width:auto;min-width:220px}

.prof-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--prof-line);
  border-radius:var(--prof-radius-lg);
  overflow:hidden;
}
.prof-table caption{text-align:left;padding:0 0 10px;color:var(--prof-muted);font-size:13px}
.prof-table th{
  text-align:left;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--prof-muted);
  padding:12px 16px;
  border-bottom:1px solid var(--prof-line);
  background:#faf8f4;
  font-weight:600;
}
.prof-table td{
  padding:14px 16px;
  border-bottom:1px solid var(--prof-line-soft);
  font-size:15px;
  vertical-align:middle;
}
.prof-table tbody tr:hover{background:#faf8f4}
.prof-table tbody tr:last-child td{border-bottom:0}

.prof-empty{
  border:1px dashed #d8d2c6;
  border-radius:var(--prof-radius-lg);
  padding:36px 24px;
  text-align:center;
  color:var(--prof-muted);
  font-size:15px;
}

.prof-badge{
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:#f3efe4;
  color:#6b5a2a;
}

.prof-profile{margin-top:32px}
.prof-dl{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:10px 20px;
  margin:0 0 16px;
  font-size:15px;
}
.prof-dl dt{color:var(--prof-muted);font-weight:600}
.prof-dl dd{margin:0;color:var(--prof-ink);overflow-wrap:anywhere}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width:900px){
  .prof-app{grid-template-columns:1fr}
  .prof-side{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:18px 20px}
  .prof-nav ul{flex-direction:row;overflow-x:auto;gap:6px}
  .prof-nav a{border-left:0;border-bottom:3px solid transparent;white-space:nowrap}
  .prof-nav a[aria-current="page"]{border-left:0;border-bottom-color:var(--prof-gold)}
  .prof-main{padding:24px 20px 32px}
}

@media (max-width:560px){
  .prof-card{padding:28px 20px;border-radius:var(--prof-radius)}
  .prof-title{font-size:25px}
  .prof-main-head{flex-direction:column;gap:12px}
  .prof-dl{grid-template-columns:1fr;gap:2px 0}
  .prof-dl dt{margin-top:10px}
  .prof-table th,.prof-table td{padding:10px 12px}
}

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