@font-face {
  font-family: 'Nevera';
  src: url('fonts/Nevera-Regular.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #050608;
  --bg-secondary: #0a0c10;
  --bg-card: rgba(14, 17, 24, 0.85);
  --bg-card-hover: rgba(22, 28, 38, 0.95);
  --border-color: transparent;
  --border-accent: transparent;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-primary: #38bdf8;
  --accent-secondary: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #38bdf8 100%);
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="barocco-oro"] {
  --bg-primary: #060504;
  --bg-secondary: #0f0c08;
  --bg-card: rgba(22, 18, 12, 0.85);
  --accent-primary: #fbbf24;
  --accent-secondary: #d97706;
  --accent-glow: rgba(251, 191, 36, 0.3);
}

[data-theme="camo-scuro"] {
  --bg-primary: #050705;
  --bg-secondary: #0b100c;
  --bg-card: rgba(18, 26, 19, 0.85);
  --accent-primary: #84cc16;
  --accent-secondary: #4d7c0f;
  --accent-glow: rgba(132, 204, 22, 0.3);
}

[data-theme="mimetico-chiaro"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-primary: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.2);
}

body.high-contrast {
  --bg-primary: #000000 !important;
  --bg-secondary: #0a0a0a !important;
  --text-main: #ffffff !important;
  --accent-primary: #00ffff !important;
}

body.dyslexia-font {
  --font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) var(--bg-primary);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
}

/* Prevent double scrollbar & gutter clash across all overlays and modals */
html.has-active-overlay,
html.has-about-detail-open,
html.modal-open,
html:has(#about-detail-overlay.is-active),
html:has(.modal-overlay.is-open),
html:has(.es-creator-modal-overlay.is-open) {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
  height: 100% !important;
}

html.has-active-overlay body,
html.has-about-detail-open body,
html.modal-open body,
html:has(#about-detail-overlay.is-active) body {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
  height: 100% !important;
  touch-action: none !important;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
}

.text-center {
  text-align: center !important;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-secondary);
}

.accent-title {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.accent-title::after {
  content: '';
  display: block;
  width: 45px;
  height: 3px;
  background: var(--accent-primary);
  margin-top: 0.6rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-primary);
}

.glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: none !important;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  box-shadow: 0 15px 40px var(--accent-glow);
}

.form-group {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(5, 6, 8, 0.9);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-family);
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 14px var(--accent-glow), inset 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(10, 12, 16, 0.98);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.canvas-wrapper {
  position: relative;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.canvas-wrapper.is-drawing,
.canvas-wrapper.has-signature {
  border-color: rgba(56, 189, 248, 0.55);
}

.canvas-wrapper.has-signature {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

#sig-canvas {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
  background: #f8fafc;
}

.sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.canvas-wrapper.has-signature .sig-placeholder,
.canvas-wrapper.is-drawing .sig-placeholder {
  opacity: 0;
}

.btn-clear-sig {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
}

.btn-clear-sig svg,
.btn-clear-sig i {
  width: 13px !important;
  height: 13px !important;
}

.btn-clear-sig:hover {
  background: #ef4444;
}

.sig-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

.sig-hint strong {
  color: #e2e8f0;
  font-weight: 600;
}

.sig-status {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.sig-status.is-ok {
  color: #4ade80;
}

.sig-status.is-err {
  color: #f87171;
}

/* Custom dropdown — premium dark, integrated with site palette */
.custom-dropdown,
.custom-dropdown.pf-select {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  z-index: 1;
}

.custom-dropdown.open {
  z-index: 50;
}

.dropdown-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.dropdown-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-trigger:hover,
.custom-dropdown.open .dropdown-trigger {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: none;
}

.dropdown-trigger .arrow-icon,
.dropdown-trigger svg.arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.custom-dropdown.open .dropdown-trigger .arrow-icon,
.custom-dropdown.open .dropdown-trigger svg {
  transform: rotate(180deg);
  color: #38bdf8;
}

.dropdown-options-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0a0e16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  padding: 0.35rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

.dropdown-options-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-options-menu::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

.custom-dropdown.open .dropdown-options-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-option {
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 2px solid transparent;
}

.dropdown-option:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #f1f5f9;
  border-left-color: rgba(56, 189, 248, 0.45);
  padding-left: 1rem;
}

.custom-dropdown-searchable .dropdown-options-menu {
  display: none;
  flex-direction: column;
  max-height: 380px !important;
  min-width: 290px;
  overflow: hidden !important;
  padding: 0 !important;
}

.custom-dropdown-searchable.open .dropdown-options-menu {
  display: flex !important;
}

.dropdown-search-wrap {
  position: relative;
  background: #0d1527;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.dropdown-search-icon {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  flex-shrink: 0;
}

.dropdown-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  color: #ffffff !important;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.dropdown-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 1);
}

.dropdown-search-input::placeholder {
  color: #64748b;
  font-size: 0.76rem;
}

.dropdown-options-list {
  flex: 1;
  max-height: 300px;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 0.35rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

.comune-match-highlight {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  padding: 0 2px;
  border-radius: 2px;
}

.comune-prov-tag {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-weight: 600;
  font-family: monospace;
}

.dropdown-option.selected {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-weight: 600;
  border-left-color: #38bdf8;
}

/* Native selects (modals / admin) — same dark look when openable */
body.layout-portfolio select.pf-input,
body.layout-portfolio select {
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(0, 0, 0, 0.4) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #e2e8f0 !important;
  padding-right: 2rem !important;
}

body.layout-portfolio select option {
  background-color: #0a0e16;
  color: #e2e8f0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ==========================================================================
   EFFETTO LUCIDO GLOBALE — tutti i bottoni (1.5s loop in hover)
   ========================================================================== */
button,
.btn,
.btn-outline-pill,
.btn-primary,
.btn-secondary,
.btn-sm,
.btn-nav-highlight,
.btn-nav-accedi,
.btn-nav-iscriviti,
.nav-lang-btn,
.nav-lang-item,
.pf-btn-solid,
.auth-btn,
.auth-btn-email,
.gov-btn,
.pf-chip-btn,
.garofalo-filter-pill,
.garofalo-nav-item,
.admin-catalog-card .btn,
.pf-footer-back-top,
#btn-crea-profilo-scout,
button.btn-crea-profilo-scout,
.cp-actions a,
.cp-actions button,
input[type="submit"],
input[type="button"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Riflesso hover rimosso su richiesta utente */

/* Contenuto sopra il fascio di luce */
button > *,
.btn > *,
.btn-outline-pill > *,
.btn-nav-accedi > *,
.btn-nav-iscriviti > *,
.nav-lang-btn > *,
.auth-btn > * {
  position: relative;
  z-index: 3;
}

.btn-primary {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
  background: #7dd3fc;
  box-shadow: 0 0 25px var(--accent-primary);
}

.btn-secondary {
  background: #2A3441;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E5E7EB;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-secondary:hover {
  background: #333F4E;
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.btn-secondary:active {
  background: #1F2732;
  border-color: rgba(255, 255, 255, 0.38);
}

/* Bottoni Annulla e Azioni Secondarie Modali (unificati per coerenza in tutto il sito) */
.es-edit-btn-cancel,
.es-btn-cancel,
#btn-cancel-rating,
#btn-cancel-art22 {
  background: #2A3441 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #E5E7EB !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

.es-edit-btn-cancel:hover,
.es-btn-cancel:hover,
#btn-cancel-rating:hover,
#btn-cancel-art22:hover {
  background: #333F4E !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #FFFFFF !important;
}

.es-edit-btn-cancel:active,
.es-btn-cancel:active,
#btn-cancel-rating:active,
#btn-cancel-art22:active {
  background: #1F2732 !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

.btn-nav-highlight {
  background: rgba(56, 189, 248, 0.15) !important;
  color: var(--accent-primary) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
}

.btn-nav-highlight:hover, .btn-nav-highlight.active {
  background: var(--accent-primary) !important;
  color: #000 !important;
  box-shadow: 0 0 15px var(--accent-primary) !important;
}

/* ==========================================================================
   PORTFOLIO LAYOUT (cinematic full-bleed structure)
   ========================================================================== */

.main-header,
.portfolio-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10050;
  height: 64px;
  max-height: 64px;
  padding: 0 24px;
  margin: 0;
  background-color: rgba(10, 15, 30, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.main-header.is-scrolled,
.portfolio-header.is-scrolled {
  background: #050810;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

/* Home hero is full-bleed under the header */
body.layout-portfolio main {
  padding-top: 0;
}

/* Macro views with full-bleed cinematic pages: no top padding */
body.layout-portfolio #view-home,
body.layout-portfolio #view-about,
body.layout-portfolio #view-pillars {
  padding-top: 0;
}

/* ==========================================================================
   CHI SIAMO — split layout (text left | portrait right) like portfolio About
   ========================================================================== */
.about-split-page {
  min-height: 0;
  background: #050608;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 3rem;
  position: relative;
  overflow: hidden;
}

.about-split-inner {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  align-items: start;
  background: #050608;
}

.about-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.75rem 3rem 2.25rem 5vw;
  max-width: 560px;
  min-width: 0;
  z-index: 2;
  background: #050608;
}

.about-split-top {
  margin-bottom: 1.15rem;
}

.about-split-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0 0 0.65rem 0;
  text-transform: none;
  line-height: 1;
  display: inline-block;
  border-bottom: 3px solid var(--accent-primary);
  padding-bottom: 0.3rem;
}

.about-split-email {
  display: block;
  margin-top: 0.65rem;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.about-split-email:hover {
  color: var(--accent-primary);
}

.about-split-body {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0;
  max-width: 480px;
  min-width: 0;
}

.about-split-body p {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  font-weight: 400;
  word-break: break-word;
}

/* Location block removed from About */

.about-split-visual {
  position: relative;
  min-height: 0;
  max-height: min(72vh, 560px);
  align-self: start;
  background: #050608;
  overflow: hidden;
  margin-top: 4.5rem;
  margin-bottom: 0;
  margin-right: 0;
}

.about-split-portrait {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: min(72vh, 560px);
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: grayscale(1) contrast(1.14) brightness(0.72);
  background: #050608;
}

/* Blend into pure site black — no gray band / hard seam */
.about-split-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #050608 0%, rgba(5, 6, 8, 0.8) 12%, rgba(5, 6, 8, 0.2) 32%, transparent 50%),
    linear-gradient(180deg, transparent 50%, rgba(5, 6, 8, 0.5) 75%, #050608 100%);
}

.about-split-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, #050608 92%, #050608 100%);
}

@media (max-width: 900px) {
  .about-split-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .about-split-copy {
    padding: 2.5rem 1.25rem 1.25rem !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .about-split-top {
    margin-bottom: 0.9rem;
  }
  .about-split-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px !important;
    max-height: 300px !important;
    margin: 0 !important;
    order: -1 !important;
  }
  .about-split-portrait {
    width: 100% !important;
    height: 260px !important;
    min-height: 0 !important;
    max-height: 300px !important;
  }
  .about-split-visual::before {
    background: linear-gradient(180deg, rgba(5, 6, 8, 0.35) 0%, transparent 25%, transparent 45%, #050608 100%);
  }
  .about-split-body {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start;
  }
  .about-extra-sections {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }
  .about-grid-3,
  .pitch-about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .about-card-box,
  .pitch-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .resume-tl-item {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 0.5rem !important;
  }
  .resume-tl-body {
    min-width: 0 !important;
  }
  .resume-tl-body h4 {
    font-size: 0.95rem !important;
    word-break: break-word !important;
  }
  .resume-tl-body p {
    font-size: 0.85rem !important;
    word-break: break-word !important;
  }
}

/* Full-bleed luxury pages (no extra top padding — header overlays) */
body.layout-portfolio #view-persone,
body.layout-portfolio #view-ambassador,
body.layout-portfolio #view-account,
body.layout-portfolio #view-bacheca,
body.layout-portfolio #view-pillars {
  padding-top: 0;
}

/* ==========================================================================
   PORTFOLIO / BACHECA — editorial luxury (anti-dashboard infantile)
   ========================================================================== */
.pf-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #050608;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Account / admin / dossier: sempre scrollabili e cliccabili */
#view-account,
#admin-view-group,
#user-dossier-view-group {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}

#account-portal,
#admin-portal,
#user-dossier-portal {
  pointer-events: auto !important;
  overflow-x: hidden;
  overflow-y: auto;
}

#account-portal .pf-page-bg,
#account-portal .pf-page-shade,
#admin-portal .pf-page-bg,
#admin-portal .pf-page-shade,
#user-dossier-portal .pf-page-bg,
#user-dossier-portal .pf-page-shade {
  pointer-events: none !important;
}

#account-portal .pf-page-inner,
#admin-portal .pf-page-inner,
#user-dossier-portal .pf-page-inner {
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
}

#btn-enter-user-portal,
#btn-enter-admin-portal {
  pointer-events: auto !important;
  position: relative;
  z-index: 6;
  cursor: pointer !important;
}

/* Texture sotto + nero al 70% (non blu, non nero 100%) */
.pf-page-bg {
  position: absolute;
  inset: 0;
  background-image: url('immagini/01-home-hero/hero-workspace.jpg?v=20260925_150256');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(1) brightness(0.35);
  z-index: 0;
}

.pf-page-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Nero al 40% di opacità — nessun alone cyan */
  background: rgba(5, 6, 8, 0.40) !important;
  background-image: none !important;
}

.pf-page-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem 4rem;
  padding-top: 7.25rem !important;
  padding-bottom: 4rem !important;
  max-width: 1280px;
  box-sizing: border-box;
  overflow: visible !important;
}

#admin-authenticated-dashboard {
  padding-top: 3.5rem !important;
}

.pf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem 0;
  line-height: 1.1;
}

.pf-lead {
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.pf-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pf-btn-solid {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.pf-btn-solid:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: var(--accent-primary) !important;
  color: #fff !important;
}

.pf-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.75rem;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.pf-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pf-filter-group label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 600;
}

.pf-filter-group .dropdown-trigger {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  min-height: 44px;
}

.pf-toolbar .custom-dropdown.open {
  z-index: 80;
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pf-chip input {
  accent-color: #38bdf8;
  width: 14px;
  height: 14px;
  margin: 0;
}

.pf-chip:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.5);
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.08);
}

.pf-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.pf-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.pf-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.pf-jobs.jobs-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pf-job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.pf-job-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.04);
  transform: translateY(-1px);
}

.pf-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.pf-job-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.pf-job-score {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.pf-job-card h4 {
  margin: 0 0 0.35rem 0;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pf-job-sub {
  color: #94a3b8;
  font-size: 0.84rem;
  margin: 0 0 0.55rem 0;
}

.pf-job-desc {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.pf-job-cta {
  white-space: nowrap;
  align-self: center;
}

.pf-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.pf-aside-card {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.pf-aside-title {
  margin: 0 0 0.45rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.pf-aside-text {
  margin: 0 0 1rem 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.pf-aside-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
}

.pf-aside-list-compact {
  max-height: 200px;
}

/* Soften injected hub rows inside luxury aside */
.pf-aside-list > div {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.pf-search-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pf-mini {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.78rem !important;
}

@media (max-width: 1024px) {
  .pf-layout {
    grid-template-columns: 1fr;
  }
  .pf-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pf-aside-cta {
    grid-column: 1 / -1;
  }
}

.pf-filters-4 {
  grid-template-columns: repeat(4, 1fr);
}

.pf-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.pf-input:focus {
  border-color: rgba(56, 189, 248, 0.5);
}

/* —— Address autocomplete (geografia / vie) —— */
.addr-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.addr-autocomplete-wrap .pf-input {
  padding-right: 2.75rem;
}

.addr-geo-btn {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 2;
  padding: 0;
}

.addr-geo-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.addr-geo-btn svg,
.addr-geo-btn i {
  width: 16px !important;
  height: 16px !important;
}

.addr-geo-btn.is-loading {
  color: #38bdf8;
  pointer-events: none;
  opacity: 0.7;
}

.addr-suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #0a0e16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 80;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

.addr-suggest-list[hidden] {
  display: none !important;
}

.addr-suggest-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}

.addr-suggest-item:hover,
.addr-suggest-item.is-active {
  background: rgba(56, 189, 248, 0.1);
  border-left-color: #38bdf8;
  color: #f1f5f9;
}

.addr-suggest-main {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.addr-suggest-item:hover .addr-suggest-main,
.addr-suggest-item.is-active .addr-suggest-main {
  color: #38bdf8;
}

.addr-suggest-sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
  font-weight: 500;
}

.addr-suggest-empty,
.addr-suggest-status {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.addr-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

select.pf-input {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.pf-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* Equal-height cards: fixed zones so rows line up across the grid */
.pf-person-card {
  padding: 1.2rem 1.2rem 1.05rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 248px;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.pf-person-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.04);
  transform: translateY(-1px);
}

.pf-person-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 72px;
  margin-bottom: 0.85rem;
}

.pf-person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pf-person-id {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pf-person-name,
.pf-person-top h4 {
  margin: 0 !important;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-person-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 1.5rem;
  align-items: center;
}

.pf-person-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.pf-person-pill-muted {
  border-color: rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}

.pf-person-team {
  margin: 0 0 0.75rem 0;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.35;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-person-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  min-height: 1.75rem;
  margin-bottom: 0.85rem;
}

.pf-person-status {
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  max-width: 62%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.pf-person-followers {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pf-person-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-person-actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 36px;
}

.pf-layout-equal {
  grid-template-columns: 1fr 1fr;
}

.pf-form-panel {
  min-height: 420px;
}

.pf-form .form-group {
  margin-bottom: 0.95rem;
}

.pf-form .form-group[hidden] {
  display: none;
}

.es-admin-login-error {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-size: 0.85rem;
  line-height: 1.45;
}

.pf-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.pf-canvas-wrap {
  background: #f8fafc;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.pf-contract {
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.25rem;
}

/* Anteprima contratto Ambassador firmato */
.amb-contract-doc {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.amb-contract-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amb-contract-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 700;
}

.amb-contract-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: #fff;
}

.amb-contract-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.amb-contract-section {
  margin-bottom: 1.1rem;
}

.amb-contract-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.amb-contract-section p {
  margin: 0 0 0.4rem;
  color: #cbd5e1;
}

.amb-contract-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: #94a3b8;
}

.amb-contract-list.numbered {
  list-style: decimal;
}

.amb-contract-sign-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.amb-contract-sign-label {
  margin: 0 0 0.4rem !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b !important;
  font-weight: 700;
}

.amb-contract-sig-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.5rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amb-contract-sig-img {
  max-width: 100%;
  max-height: 90px;
  display: block;
}

.amb-contract-sign-name {
  margin: 0.4rem 0 0 !important;
  font-size: 0.85rem !important;
  color: #e2e8f0 !important;
  font-weight: 600;
}

.amb-contract-foot {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .amb-contract-sign-block {
    grid-template-columns: 1fr;
  }
}

/* —— Agente IA idoneità Ambassador —— */
.amb-ai-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.amb-ai-note strong {
  color: #38bdf8;
  font-weight: 600;
}

.amb-ai-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none !important;
}

.amb-ai-modal[hidden],
.amb-ai-modal[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.amb-ai-modal.is-open {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.amb-ai-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.amb-ai-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: #0a0e16;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
  padding: 1.5rem 1.4rem 1.25rem;
  max-height: min(88vh, 640px);
  overflow-y: auto;
}

.amb-ai-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.amb-ai-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  flex-shrink: 0;
}

.amb-ai-badge svg {
  width: 22px;
  height: 22px;
}

.amb-ai-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 700;
}

.amb-ai-card-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #f8fafc;
  font-weight: 700;
}

.amb-ai-loading {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.amb-ai-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: #38bdf8;
  animation: amb-ai-spin 0.8s linear infinite;
}

@keyframes amb-ai-spin {
  to { transform: rotate(360deg); }
}

#amb-ai-loading-text {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
}

.amb-ai-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.amb-ai-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.3rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
}

.amb-ai-steps li.is-run {
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.08);
}

.amb-ai-steps li.is-ok {
  color: #86efac;
}

.amb-ai-steps li.is-fail {
  color: #fca5a5;
}

.amb-ai-steps .amb-ai-step-ico {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
}

.amb-ai-result {
  text-align: left;
}

.amb-ai-verdict {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.amb-ai-verdict.is-pass {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.amb-ai-verdict.is-fail {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.amb-ai-verdict h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: #f8fafc;
}

.amb-ai-verdict p {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.4;
}

.amb-ai-score {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.amb-ai-score strong {
  color: #38bdf8;
}

.amb-ai-checks {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.amb-ai-checks li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid transparent;
}

.amb-ai-checks li.pass {
  color: #bbf7d0;
  border-left-color: #22c55e;
}

.amb-ai-checks li.fail {
  color: #fecaca;
  border-left-color: #ef4444;
}

.amb-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.amb-contract-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Barra Salva e invia → Responsabile Privacy */
.amb-send-bar {
  margin-top: 1.35rem;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-align: center;
}

.amb-send-bar-text {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.amb-send-bar-text strong {
  color: #38bdf8;
}

.amb-send-btn {
  width: 100%;
  max-width: 320px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700 !important;
}

.amb-send-bar-status {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
}

.amb-send-bar-status.is-ok {
  color: #86efac;
}

.amb-send-bar-status.is-err {
  color: #fca5a5;
}

/* Account gate: cards centered on page (no 100vh trap that clips under header) */
#account-portal .pf-page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  justify-content: flex-start;
}

#account-portal .pf-header {
  width: 100%;
  max-width: 720px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  border-bottom: none;
  margin-bottom: 1.75rem;
  padding-bottom: 0;
}

#account-portal .pf-header-text {
  text-align: center;
}

#account-portal .pf-lead {
  margin-left: auto;
  margin-right: auto;
}

.pf-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
}

.pf-account-card {
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.85rem;
  transition: border-color 0.25s, background 0.25s;
  height: 100%;
  box-sizing: border-box;
}

.pf-account-card > * {
  align-self: center;
  max-width: 100%;
}

.pf-account-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.04);
}

.pf-account-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-sizing: border-box;
}

.pf-account-icon svg,
.pf-account-icon i {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.pf-account-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  text-transform: none; /* non forzare mai "Garante" da cache di stili uppercase */
}

.pf-account-card p {
  margin: 0 0 0.5rem 0;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1 1 auto;
  text-align: center;
  width: 100%;
}

/* Bottoni centrati (override del vecchio align-self:flex-start) */
.pf-account-card .btn,
.pf-account-card .btn-outline-pill {
  align-self: center !important;
  margin-top: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 0 !important;
  width: auto !important;
  max-width: 100%;
  display: inline-flex !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Soften admin group when visible under portfolio body */
#admin-view-group,
#user-dossier-view-group {
  background: #050608;
}

@media (max-width: 1024px) {
  .pf-filters-4 {
    grid-template-columns: 1fr 1fr;
  }
  .pf-layout-equal {
    grid-template-columns: 1fr;
  }
  .pf-account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pf-page-inner {
    padding: 5.5rem 1.25rem 2.5rem;
  }
  .pf-filters,
  .pf-filters-4 {
    grid-template-columns: 1fr;
  }
  .pf-job-card {
    grid-template-columns: 1fr;
  }
  .pf-aside {
    grid-template-columns: 1fr;
  }
  .pf-header {
    align-items: flex-start;
  }
}

/* ==========================================================================
   RESUME / PILLARS — 3-column CV layout (template style, ELISEE content)
   ========================================================================== */
.resume-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #050608;
}

/* Curriculum: texture + nero 70% (non blu) */
.resume-page-bg {
  position: absolute;
  inset: 0;
  background-image: url('immagini/01-home-hero/hero-workspace.jpg?v=20260925_150256');
  background-size: cover;
  background-position: center right;
  opacity: 0.22;
  filter: grayscale(1) brightness(0.35);
  z-index: 0;
}

.resume-page-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 6, 8, 0.40) !important;
  background-image: none !important;
}

.resume-page-inner {
  position: relative;
  z-index: 2;
  padding: 5.5rem 2rem 3.5rem;
  max-width: 1280px;
}

.resume-page-head {
  margin-bottom: 2.25rem;
}

.resume-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
}

.resume-page-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.95fr;
  gap: 2.5rem 2.75rem;
  align-items: start;
}

.resume-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1.15rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
  width: auto;
  min-width: 55%;
}

.resume-col + .resume-col .resume-section-title:first-child,
.resume-col .resume-section-title:first-child {
  margin-top: 0;
}

.resume-col .resume-section-title {
  margin-top: 2rem;
}

.resume-col > .resume-section-title:first-of-type {
  margin-top: 0;
}

/* Skill bars (left) */
.resume-skill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.resume-skill-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume-skill-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.resume-skill-body {
  flex: 1;
  min-width: 0;
}

.resume-skill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 600;
}

.resume-skill-top span:last-child {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.resume-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.resume-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.resume-soft-line {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Focus chips — aree attive (Curriculum) */
.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.focus-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.focus-chip:hover,
.focus-chip:focus-visible {
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
  outline: none;
}

/* ============================================================
   CURRICULUM SPORTIVO PERSONALE — Layout Calciatore & Profilo
   ============================================================ */
.cv-hero-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 14, 28, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 1.6rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
}
.cv-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cv-hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.cv-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 3px solid #38bdf8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  object-fit: cover;
}
.cv-hero-badge-verified {
  position: absolute;
  bottom: 0;
  right: -2px;
  background: #0284c7;
  color: #fff;
  border: 2px solid #0f172a;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.cv-hero-details {
  flex: 1;
  min-width: 260px;
}
.cv-hero-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.cv-hero-name {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}
.cv-hero-role-pill {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.cv-hero-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cv-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cv-hero-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Statistiche di campo / KPI Grid */
.cv-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.cv-stat-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 1rem 0.9rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cv-stat-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
}
.cv-stat-value {
  font-size: 1.45rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.cv-stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Video Highlights Player Embedded */
.cv-video-card {
  background: #090e1a;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cv-video-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #1e293b 0%, #090e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.cv-video-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cv-video-screen:hover img {
  opacity: 0.75;
  transform: scale(1.03);
}
.cv-video-play-btn {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.9);
  border: 2.5px solid #38bdf8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.cv-video-screen:hover .cv-video-play-btn {
  transform: scale(1.12);
}
.cv-video-overlay-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7dd3fc;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cv-video-telemetry-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #4ade80;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cv-video-footer {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cv-video-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}
.cv-video-dur {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Barra Azioni CTA Footer Curriculum */
.cv-actions-bar {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cv-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ============================================================ */
/* CALCIO PITCH & NOTTE STADIO — AZZURRO ITALIA REDESIGN        */
/* Palette: #080C10 (fondo), #35AEE8 (azzurro), #D9A94D (oro)   */
/* Testo: #F2F5F8 (principale), #8B9DAE (muted)                 */
/* ============================================================ */

.about-extra-sections.pitch-field-theme {
  width: 100%;
  max-width: 1360px;
  margin: 2.5rem auto 0;
  padding: 2.5rem 5vw 7.5rem !important;
  border-top: 1px dashed rgba(53, 174, 232, 0.25);
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 0%, rgba(53, 174, 232, 0.05) 0%, transparent 70%);
}

/* Hero Intestazione Calcio */
.pitch-extra-hero {
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px dashed rgba(53, 174, 232, 0.25);
}

.pitch-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(53, 174, 232, 0.08);
  border: 1px solid rgba(53, 174, 232, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.pitch-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35AEE8;
  box-shadow: 0 0 8px #35AEE8;
  animation: pitchPulse 2s infinite ease-in-out;
}

@keyframes pitchPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; }
}

.pitch-badge-text {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #35AEE8;
  text-transform: none !important;
}

.pitch-hero-title {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 600;
  color: #F2F5F8;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  text-transform: none !important;
}

.pitch-hero-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #8B9DAE;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

/* Griglia a 3 Colonne — NIENTE CARD, STRUTTURA EDITORIALE PULITA */
.pitch-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  align-items: start;
}

.pitch-col {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  position: relative;
  box-sizing: border-box;
}

.pitch-col-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pitch-col-indicator {
  width: 4px;
  height: 18px;
  border-radius: 2px;
}

.pitch-indicator-azzurro {
  background: #35AEE8;
  box-shadow: 0 0 10px rgba(53, 174, 232, 0.6);
}

.pitch-indicator-gold {
  background: #D9A94D;
  box-shadow: 0 0 10px rgba(217, 169, 77, 0.6);
}

.pitch-col-title {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2F5F8;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: none !important;
}

/* ============================================================ */
/* COLONNA 1: ROADMAP (Barre laterali + Hairlines)             */
/* ============================================================ */
.pitch-roadmap-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pitch-roadmap-block {
  display: flex;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.9rem 0 0.9rem 0.2rem;
  transition: background 0.2s ease;
}

.pitch-roadmap-block:last-child {
  border-bottom: none !important;
}

.pitch-roadmap-bar {
  width: 3.5px;
  background: #35AEE8;
  box-shadow: 0 0 8px rgba(53, 174, 232, 0.35);
  flex-shrink: 0;
  border-radius: 2px;
}

.pitch-roadmap-content {
  padding: 0 0 0 0.9rem;
  flex: 1;
}

.pitch-roadmap-title {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #F2F5F8;
  letter-spacing: 0.01em;
  margin: 0 0 0.2rem;
  text-transform: none !important;
}

.pitch-roadmap-role {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #8B9DAE;
  margin: 0 0 0.35rem;
}

.pitch-roadmap-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #8B9DAE;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================ */
/* COLONNA 2: GOVERNANCE & CONFORMITÀ (Barre laterali + Hairlines) */
/* ============================================================ */
.pitch-gov-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pitch-gov-block {
  display: flex;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.9rem 0 0.9rem 0.2rem;
  transition: background 0.2s ease;
}

.pitch-gov-block:last-child {
  border-bottom: none !important;
}

.pitch-gov-bar {
  width: 3.5px;
  flex-shrink: 0;
  border-radius: 2px;
}

.pitch-gov-gold .pitch-gov-bar {
  background: #D9A94D;
  box-shadow: 0 0 8px rgba(217, 169, 77, 0.35);
}

.pitch-gov-azzurro .pitch-gov-bar {
  background: #35AEE8;
  box-shadow: 0 0 8px rgba(53, 174, 232, 0.35);
}

.pitch-gov-content {
  padding: 0 0 0 0.9rem;
  flex: 1;
}

.pitch-gov-title {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #F2F5F8;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  text-transform: none !important;
}

.pitch-gov-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #8B9DAE;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================ */
/* COLONNA 3: MODULI OPERATIVI (Barre laterali + Hairlines)     */
/* ============================================================ */
.pitch-modules-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pitch-module-btn {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.85rem 0 0.85rem 0.2rem;
  display: flex;
  color: #F2F5F8;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pitch-module-btn:last-child {
  border-bottom: none !important;
}

.pitch-module-bar {
  width: 3.5px;
  background: #35AEE8;
  box-shadow: 0 0 8px rgba(53, 174, 232, 0.35);
  flex-shrink: 0;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.pitch-module-content {
  padding: 0 0 0 0.9rem;
  flex: 1;
}

.pitch-module-btn:hover {
  background: rgba(53, 174, 232, 0.03) !important;
  transform: translateX(3px);
}

.pitch-module-btn:hover .pitch-module-bar {
  width: 5px;
}

.pitch-mod-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.pitch-mod-num {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #35AEE8;
}

.pitch-mod-name {
  font-family: 'Oswald', 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #F2F5F8;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

.pitch-mod-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #8B9DAE;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .pitch-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* Pagina focus hub */
body.focus-hub {
  margin: 0;
  min-height: 100vh;
  background: #050608;
  color: #e2e8f0;
  font-family: Inter, system-ui, sans-serif;
}

.focus-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 8, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.focus-hub-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.focus-hub-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: none;
  background: transparent;
}

.focus-hub-brand span span {
  color: #38bdf8;
}

.focus-hub-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.focus-hub-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 700;
}

.focus-hub-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
}

.focus-hub-lead {
  margin: 0 0 1.5rem;
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.98rem;
}

.focus-hub-grid {
  display: grid;
  gap: 1rem;
}

.focus-hub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
}

.focus-hub-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: #f1f5f9;
}

.focus-hub-card p,
.focus-hub-card li {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.focus-hub-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.focus-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.focus-hub-actions a,
.focus-hub-actions a.primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

/* Illuminazione solo al passaggio del mouse / focus tastiera — mai a riposo */
.focus-hub-actions a:hover,
.focus-hub-actions a:focus-visible,
.focus-hub-actions a.primary:hover,
.focus-hub-actions a.primary:focus-visible {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.focus-hub-actions a:active,
.focus-hub-actions a.primary:active {
  background: rgba(56, 189, 248, 0.16);
}

.focus-hub-source {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.focus-hub-source a {
  color: #38bdf8;
}

.focus-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.focus-hub-tabs a {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
}

.focus-hub-tabs a.active,
.focus-hub-tabs a:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

/* Elenco società — non cliccabile (no consenso / non iscritte) */
.focus-teams-card {
  padding: 1.15rem 1rem 1rem;
}

.focus-teams-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.focus-teams-head h2 {
  margin: 0;
}

.focus-teams-count {
  margin: 0 !important;
  font-size: 0.78rem !important;
  color: #64748b !important;
  font-weight: 600;
}

.focus-teams-note {
  margin: 0 0 1rem !important;
  font-size: 0.84rem !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}

.focus-teams-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.focus-team-item {
  display: grid;
  grid-template-columns: 2rem 2.2rem 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none; /* non cliccabile */
}

.focus-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}

.focus-team-logo-empty {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(148,163,184,0.12);
}

.focus-team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.focus-team-city {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
}

.focus-team-item:last-child {
  border-bottom: none;
}

.focus-team-idx {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}

.focus-team-name {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.focus-team-zone {
  color: #64748b;
  font-size: 0.75rem;
  text-align: right;
  max-width: 200px;
}

.focus-team-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.focus-teams-empty {
  margin: 0.5rem 0;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .focus-team-item {
    grid-template-columns: 1.5rem 2rem 1fr;
    gap: 0.25rem 0.55rem;
  }
  .focus-team-zone {
    grid-column: 3;
    text-align: left;
    max-width: none;
  }
  .focus-team-badge {
    grid-column: 3;
    justify-self: start;
  }
}

/* Timeline (center) */
.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  padding-left: 0.15rem;
}

.resume-tl-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.85rem;
  position: relative;
}

.resume-tl-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding-top: 0.15rem;
}

.resume-tl-badge {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #38bdf8;
  color: #0a1018;
  text-transform: uppercase;
}

.resume-tl-year {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.resume-tl-range {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.resume-tl-body h4 {
  margin: 0 0 0.2rem 0;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.resume-tl-role {
  margin: 0 0 0.4rem 0;
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
}

.resume-tl-body p:last-child {
  margin: 0;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.55;
}

.resume-edu {
  margin-top: 0.25rem;
}

.resume-edu-main {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem 0;
}

.resume-edu-sub {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

/* Right column lists */
.resume-can-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.resume-can-list li {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
  padding-left: 0.9rem;
  position: relative;
}

.resume-can-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
}

.resume-can-list-soft li {
  color: #94a3b8;
  font-size: 0.86rem;
}

.resume-hobbies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 0.65rem;
  margin-top: 0.25rem;
}

.resume-hobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.resume-hobby i,
.resume-hobby svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  box-sizing: border-box;
}

.resume-hobby:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .resume-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resume-col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .resume-col-right .resume-section-title {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
  .resume-col-right .resume-section-title:first-of-type {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .resume-page-inner {
    padding: 5rem 1.25rem 2.5rem;
  }
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .resume-col-right {
    grid-template-columns: 1fr;
  }
  .resume-tl-item {
    grid-template-columns: 64px 1fr;
  }
  .resume-hobbies {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Page kicker above big hero title (About / Resume / Portfolio heroes) */
.hero-page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.portfolio-meta {
  margin-top: 1.5rem;
  color: rgba(226, 232, 240, 0.55);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.portfolio-role-tabs {
  justify-content: center;
  margin: 2.25rem 0 1.75rem;
  gap: 0.65rem;
  flex-wrap: wrap;
  display: flex;
}

.portfolio-role-tabs .role-tab {
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-role-tabs .role-tab:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
}

.portfolio-role-tabs .role-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.portfolio-role-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  padding: 1.25rem 0.5rem !important;
}

/* Header compatto full-width fisso in alto */
.public-navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 64px !important;
  padding: 0 32px !important;
  background-color: transparent !important;
  border-bottom: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

/* Impedisce al logo di essere schiacciato o sovrapposto */
.nav-logo {
  flex-shrink: 0 !important;
  font-size: 18px !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
}

.nav-logo a,
.nav-logo .site-brand {
  text-decoration: none !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.nav-logo .logo-text {
  font-size: 18px !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
}

/* Menu centrale coordinato ed essenziale */
.nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  white-space: nowrap !important; /* IMPEDISCE DI ANDARE A CAPO */
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-menu a {
  color: #a0aec0 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.2s !important;
}

.nav-menu a:hover {
  color: #ffffff !important;
}

/* Pulsanti e impostazioni a destra */
.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-shrink: 0 !important;
}


.lang-select {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #a0aec0 !important;
  cursor: pointer !important;
}

.btn-login {
  background-color: #0070f3 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
}

.btn-login:hover {
  background-color: #005bb5 !important;
}

/* Light mode */
html[data-theme="mimetico-chiaro"] .public-navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="mimetico-chiaro"] .nav-logo,
html[data-theme="mimetico-chiaro"] .nav-logo a,
html[data-theme="mimetico-chiaro"] .nav-logo .logo-text {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .nav-menu a {
  color: #475569 !important;
}

html[data-theme="mimetico-chiaro"] .nav-menu a:hover {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .lang-select {
  color: #475569 !important;
}

/* NASCONDI DEFINITIVAMENTE QUALSIASI RESIDUO DROPDOWN VECCHIO */
#nav-dropdown-altro,
#menu-nav-dropdown-more,
.es-nav-dropdown,
.es-nav-dropdown-menu,
.es-nav-dropdown-trigger {
  display: none !important;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-brand {
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.site-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.logo-text-large {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

.logo-text-large span {
  color: var(--accent-primary);
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .site-logo-img {
    width: 36px;
    height: 36px;
  }
  .logo-text-large {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .logo-text-large {
    display: none; /* su mobile resta solo l'icona logo */
  }
}

.nav-menu,
.portfolio-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.nav-menu::-webkit-scrollbar,
.portfolio-nav::-webkit-scrollbar,
.navbar::-webkit-scrollbar,
header.main-header::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.portfolio-nav .nav-link + .nav-link,
.nav-menu .nav-link + .nav-link {
  border-left: 1px solid rgba(226, 232, 240, 0.42);
  margin-left: 0.45rem;
  padding-left: 0.55rem;
}

.nav-link {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.35rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-link.active::after {
  display: none;
}

.portfolio-nav-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-contact:hover {
  color: var(--accent-primary);
}

.nav-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-auth-actions-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* —— Language switcher: same pill as Accedi, clean premium menu —— */
.nav-lang {
  position: relative;
  z-index: 300;
  flex: 0 0 auto;
}

.nav-lang-btn.btn-nav-accedi {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 999px !important;
  padding: 0.4rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
  width: auto !important;
  box-shadow: none !important;
}

.nav-lang-btn.btn-nav-accedi:hover,
.nav-lang.is-open .nav-lang-btn.btn-nav-accedi,
.nav-lang-btn.btn-nav-accedi[aria-expanded="true"] {
  border-color: var(--accent-primary, #38bdf8) !important;
  color: var(--accent-primary, #38bdf8) !important;
  background: transparent !important;
}

.nav-lang-globe,
.nav-lang-globe svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

.nav-lang-chevron,
.nav-lang-chevron svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-lang.is-open .nav-lang-chevron,
.nav-lang.is-open .nav-lang-chevron svg,
.nav-lang-btn[aria-expanded="true"] .nav-lang-chevron,
.nav-lang-btn[aria-expanded="true"] .nav-lang-chevron svg {
  transform: rotate(180deg);
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 0.4rem;
  background: #0b1018;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
  z-index: 10050;
}

.nav-lang-menu[hidden] {
  display: none !important;
}

.nav-lang-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 0.75rem;
  padding: 0.62rem 0.85rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-lang-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
}

.nav-lang-item.is-active {
  background: rgba(56, 189, 248, 0.1) !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}

.nav-lang-name {
  flex: 1;
}

.nav-lang-check,
.nav-lang-check svg {
  width: 16px !important;
  height: 16px !important;
  opacity: 0;
  color: #38bdf8;
  flex-shrink: 0;
}

.nav-lang-item.is-active .nav-lang-check,
.nav-lang-item.is-active .nav-lang-check svg {
  opacity: 1;
}

.btn-nav-accedi {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-nav-accedi:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-nav-iscriviti {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-nav-iscriviti:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

/* ---------- Full-viewport cinematic hero (portfolio template) ---------- */
.hero-section.hero-portfolio {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: #050810 !important;
}

.hero-portfolio-photo,
.hero-portfolio-bg,
.hero-portfolio-shade {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.hero-portfolio-stage,
.hero-portfolio-inner,
.hero-typography-left {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box !important;
  text-align: left !important;
}

.hero-typography-left {
  max-width: 640px;
  position: relative !important;
  z-index: 10 !important;
}

html:not([data-theme="mimetico-chiaro"]) .hero-typography-left::before {
  content: '' !important;
  position: absolute !important;
  inset: -1.5rem 1rem -1.5rem -1.5rem !important;
  background: radial-gradient(ellipse at center left, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%) !important;
  z-index: -1 !important;
  filter: blur(20px) !important;
  border-radius: 24px !important;
  pointer-events: none !important;
}

.hero-typography-left h1,
.hero-name {
  font-family: var(--font-heading) !important;
  font-size: clamp(3.4rem, 8vw, 5.8rem) !important;
  line-height: 0.94 !important;
  margin: 0 0 0.9rem 0 !important;
  letter-spacing: 0.01em;
  font-weight: 400 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 0.8) !important;
}

.hero-name-bold {
  display: block;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.hero-typography-left .title-sub,
.hero-role {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem) !important;
  font-weight: 300 !important;
  color: rgba(226, 232, 240, 0.88) !important;
  margin: 0 0 2rem 0 !important;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.hero-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-outline-pill:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(56, 189, 248, 0.18) 45%,
    rgba(255, 255, 255, 0.1) 100%
  ) !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.hero-social-icons {
  display: flex;
  gap: 1.2rem;
  color: rgba(203, 213, 225, 0.8);
  font-size: 1.05rem;
  align-items: center;
}

.hero-social-bottom {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 0.5rem;
}

.hero-social-icons a {
  color: inherit;
  display: inline-flex;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.hero-social-icons a:hover,
.hero-social-icons i:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.hero-social-icons i,
.hero-social-icons svg {
  width: 18px;
  height: 18px;
}

/* ---------- Portfolio page sections under hero ---------- */
.portfolio-section {
  padding: 6.5rem 0;
  position: relative;
  background: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-about { background: #07090e; }
.portfolio-resume { background: #050608; text-align: center; }
.portfolio-works { background: #07090e; }
.portfolio-access { background: #050608; }

.portfolio-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.portfolio-text {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

.portfolio-text-center {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.portfolio-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.portfolio-visual img {
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  filter: brightness(0.92) contrast(1.05);
}

.portfolio-visual-soft img {
  border-color: rgba(56, 189, 248, 0.25);
}

.portfolio-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.portfolio-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.35rem 1rem;
}

.portfolio-stat strong {
  display: block;
  font-size: 1.65rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.portfolio-stat span {
  color: #64748b;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.6rem 1.35rem;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.portfolio-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-4px);
}

.portfolio-card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.portfolio-card h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.portfolio-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.nav-link-soft {
  opacity: 0.72;
}
/* Minigioco: stesso stile degli altri link (niente glow permanente) */
.nav-link-minigioco {
  opacity: 0.72;
  color: rgba(226, 232, 240, 0.78) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-link-minigioco:hover {
  opacity: 1;
  color: #ffffff !important;
}
.nav-link-minigioco:focus-visible {
  opacity: 1;
  color: #ffffff !important;
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hub-chip {
  padding: 0.45rem 0.85rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.78rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .portfolio-hub-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Welcome section under hero */
.welcome-community-banner {
  background: linear-gradient(135deg, rgba(10, 16, 30, 0.98) 0%, rgba(5, 8, 16, 0.99) 100%);
  border-bottom: 1.5px solid rgba(56, 189, 248, 0.3);
  padding: 3.5rem 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.welcome-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.2rem;
  line-height: 1.25;
}

.welcome-title span {
  color: var(--accent-primary);
}

.welcome-lead {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.welcome-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 380px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
}

.auth-btn-google {
  background: #ffffff;
  color: #0f172a;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.auth-btn-apple {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.auth-btn-spid {
  background: rgba(2, 132, 199, 0.25);
  color: #ffffff;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
}

.auth-btn-email {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.welcome-visual {
  text-align: center;
}

.welcome-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

/* Legacy hero helpers (other views) */
.hero-grid-luxury {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image-right-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.hero-image-right-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) contrast(1.15);
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.95) 100%);
}

.about-grid-luxury {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-portrait {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.about-image-portrait img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.75);
}

.about-text-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.role-tabs-wrapper {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.role-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-tab:hover, .role-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
}

.dashboard-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2.5rem;
}

.col-header {
  font-size: 0.9rem;
  color: var(--text-main);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.col-header::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background: var(--accent-primary);
  margin-top: 0.4rem;
}

.meter-group {
  margin-bottom: 1.4rem;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.meter-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
}

.meter-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 8px var(--accent-primary);
}

.meter-thumb-dot {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-list {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.timeline-item.active .timeline-dot {
  background: var(--accent-primary);
}

.timeline-title {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.timeline-sub {
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badges-circle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

.circle-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.circle-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.circle-icon-wrapper:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 15px var(--accent-primary);
}

.circle-badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pipeline-log-terminal {
  background: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: monospace;
  font-size: 0.8rem;
  height: 120px;
  overflow-y: auto;
}

.log-line { display: block; margin-bottom: 0.25rem; }

.filter-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.filter-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.job-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.job-role-badge {
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contract-scrollable-body {
  background: var(--bg-primary);
  border: none;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  height: 420px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.governance-switcher-bar {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gov-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.gov-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-footer {
  background: #040507;
  padding: 4rem 0 2rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-overlay.active { display: flex; }

.modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: auto;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-primary);
}

#admin-portal {
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 1.5rem !important;
  padding-bottom: 5rem !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-top: 0 !important;
  box-sizing: border-box !important;
}

#admin-portal .container,
#admin-portal .pf-page-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.garofalo-dashboard-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch;
  overflow: visible !important;
}

.garofalo-dashboard-layout > div {
  min-width: 0;
  width: 100%;
}

.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  margin-bottom: 1.5rem;
}

.admin-table {
  width: 100% !important;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 0.75rem 0.85rem !important;
  font-size: 0.82rem !important;
  text-align: left;
}

.garofalo-sidebar {
  background: #080a0f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  box-sizing: border-box;
}

.garofalo-brand-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.garofalo-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.garofalo-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.garofalo-nav-item:hover, .garofalo-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-left: 3px solid #38bdf8;
  padding-left: calc(1rem - 3px);
}

.garofalo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  width: 100%;
  overflow: visible !important;
}

.garofalo-kpi-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow: visible !important;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.garofalo-kpi-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.garofalo-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.garofalo-kpi-title {
  font-size: 0.72rem;
  font-weight: bold;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.garofalo-kpi-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

@keyframes garofaloCountPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); color: #38bdf8; text-shadow: 0 0 16px rgba(56, 189, 248, 0.8); }
  100% { transform: scale(1); }
}

.kpi-num-animated {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kpi-num-pulse {
  animation: garofaloCountPop 0.55s ease-out;
}

.admin-catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}

.garofalo-kpi-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.garofalo-kpi-badge {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.garofalo-badge-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.garofalo-badge-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.garofalo-time-filters {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.25rem;
  flex-shrink: 0;
}

.garofalo-filter-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
}

.garofalo-filter-pill.active, .garofalo-filter-pill:hover {
  background: #38bdf8;
  color: #0f172a;
}

.garofalo-fab-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #0f172a;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.garofalo-fab-btn:hover {
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .hero-grid-luxury { grid-template-columns: 1fr; }
  .about-grid-luxury { grid-template-columns: 1fr; }
  .dashboard-grid-3col { grid-template-columns: 1fr; }
  .hero-typography-left h1,
  .hero-name { font-size: 3.2rem !important; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .garofalo-dashboard-layout { grid-template-columns: 1fr; }
  .garofalo-kpi-grid { grid-template-columns: 1fr; }
  .welcome-grid { grid-template-columns: 1fr; }
  .portfolio-split { grid-template-columns: 1fr; }
  .portfolio-stat-row { grid-template-columns: 1fr 1fr; }
  .portfolio-cards { grid-template-columns: 1fr 1fr; }
  .hero-portfolio-photo { object-position: center center; }
  .hero-portfolio-shade {
    background:
      linear-gradient(180deg,
        rgba(3, 5, 10, 0.72) 0%,
        rgba(3, 5, 10, 0.55) 40%,
        rgba(3, 5, 10, 0.85) 100%),
      linear-gradient(90deg,
        rgba(3, 5, 10, 0.78) 0%,
        rgba(3, 5, 10, 0.35) 100%);
  }
  .portfolio-nav { gap: 0; }
  .nav-contact span { display: none; }
}

@media (max-width: 720px) {
  .portfolio-navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 52px;
    padding: 0.35rem 0.6rem;
    gap: 0.35rem;
    box-sizing: border-box;
    width: 100%;
  }
  .portfolio-navbar .site-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
  }
  .portfolio-navbar .site-logo-img {
    width: 30px;
    height: 30px;
  }
  .portfolio-navbar .logo-text-large {
    display: none !important;
  }
  .portfolio-navbar .portfolio-nav-right {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.28rem;
  }
  .portfolio-navbar .nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 0.28rem;
  }
  .portfolio-navbar .nav-lang-btn {
    padding: 0.22rem 0.45rem;
    font-size: 0.72rem;
    height: 30px;
    min-height: 30px;
  }
  .portfolio-navbar .btn-nav-accedi,
  .portfolio-navbar .btn-nav-iscriviti {
    padding: 0.22rem 0.55rem;
    font-size: 0.74rem;
    height: 30px;
    min-height: 30px;
  }
  .portfolio-navbar .es-nav-mail,
  .portfolio-navbar .es-nav-bell {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .portfolio-navbar .es-nav-mail svg,
  .portfolio-navbar .es-nav-bell svg {
    width: 17px !important;
    height: 17px !important;
  }
  .portfolio-navbar #btn-user-profile {
    max-width: 110px;
    padding: 0.22rem 0.45rem;
    height: 30px;
    min-height: 30px;
  }
  .portfolio-navbar #user-name-display {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem !important;
  }
  .portfolio-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    padding: 0.2rem 0 0.15rem;
    gap: 0.25rem;
    order: 2;
  }
  .portfolio-nav::-webkit-scrollbar {
    display: none;
  }
  .portfolio-nav .nav-link {
    flex-shrink: 0;
    padding: 0.28rem 0.58rem;
    font-size: 0.76rem;
    border-radius: 999px;
  }
  .hero-portfolio-stage,
  .hero-portfolio-inner {
    padding: 5.5rem 1.25rem 2rem;
    justify-content: flex-end;
  }
  .hero-name { font-size: 2.7rem !important; }
  .hero-role { letter-spacing: 0.18em !important; font-size: 0.82rem !important; }
  .hero-social-bottom { padding-top: 2rem; }
  .portfolio-cards { grid-template-columns: 1fr; }
  .portfolio-stat-row { grid-template-columns: 1fr 1fr; }
  .portfolio-section { padding: 4rem 0; }
}

.admin-catalog-card h6 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
}

.modal-overlay {
  display: none;
}

.modal-overlay.active, .modal-overlay.open {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(5, 8, 15, 0.96) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  z-index: 999999 !important;
  align-items: center;
  justify-content: center;
}

#fullscreen-document-viewer {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #04060a !important;
  z-index: 9999999 !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

#fullscreen-document-viewer.active, #fullscreen-document-viewer.open {
  display: block !important;
}

/* ==========================================================================
   CUSTOM MODERN LUXURY CHECKBOXES
   ========================================================================== */
.custom-checkbox-group {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  padding: 0.55rem 1rem;
  background: rgba(14, 17, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.custom-checkbox-label:hover {
  border-color: var(--accent-primary, #38bdf8);
  color: #ffffff;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

input[type="checkbox"],
.custom-checkbox-label input[type="checkbox"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.custom-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  background: rgba(5, 6, 8, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.custom-checkbox-box svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  stroke-width: 3.2px;
  opacity: 0;
  transform: scale(0.4) rotate(-10deg);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox-box {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox-box svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   CIRCULAR TRUST BADGES & ICONS
   ========================================================================== */
.badges-circle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.circle-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.circle-icon-wrapper {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary, #38bdf8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.circle-icon-wrapper:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-primary, #38bdf8);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.circle-icon-wrapper svg,
.circle-icon-wrapper i {
  width: 26px !important;
  height: 26px !important;
  stroke: #38bdf8 !important;
  stroke-width: 2.2px !important;
  display: block;
}

.circle-badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   ROLE DISPLAY BOX (ABOUT SECTION - HIGH CONTRAST CYAN TINTED GLASS)
   ========================================================================== */
#role-display-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.32) 0%, rgba(56, 189, 248, 0.22) 100%) !important;
  border: 2px solid rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 16px 50px rgba(2, 132, 199, 0.4), inset 0 0 40px rgba(56, 189, 248, 0.18) !important;
  border-radius: 18px !important;
  padding: 2.75rem 3rem !important;
  margin-top: 1.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

#role-display-box:hover {
  border-color: rgba(56, 189, 248, 0.95) !important;
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.5), inset 0 0 50px rgba(56, 189, 248, 0.25) !important;
}

/* ==========================================================================
   SCOUT NETWORK CARD (PILLARS & METRICS SECTION - HIGH CONTRAST CYAN GLASS)
   ========================================================================== */
.scout-network-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.32) 0%, rgba(56, 189, 248, 0.22) 100%) !important;
  border: 2px solid rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 16px 50px rgba(2, 132, 199, 0.4), inset 0 0 40px rgba(56, 189, 248, 0.18) !important;
  border-radius: 18px !important;
  padding: 2.25rem 2.5rem !important;
  margin-top: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

.scout-network-card:hover {
  border-color: rgba(56, 189, 248, 0.95) !important;
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.5), inset 0 0 50px rgba(56, 189, 248, 0.25) !important;
}

/* ==========================================================================
   SITE-WIDE PREMIUM OVERRIDE (Portfolio language everywhere)
   ========================================================================== */
body.layout-portfolio {
  background: #050608;
  color: #e2e8f0;
}

body.layout-portfolio .btn-primary,
body.layout-portfolio .btn.btn-primary {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.layout-portfolio .btn-primary:hover,
body.layout-portfolio .btn.btn-primary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #fff !important;
}

body.layout-portfolio .btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #cbd5e1 !important;
  border-radius: 999px !important;
}

body.layout-portfolio .glass-card,
body.layout-portfolio .filter-card {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.layout-portfolio .accent-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  border: none;
}

body.layout-portfolio .accent-title::after {
  background: var(--accent-primary);
  width: 40px;
  height: 2px;
  box-shadow: none;
}

body.layout-portfolio .section {
  background: transparent;
}

body.layout-portfolio input[type="text"],
body.layout-portfolio input[type="email"],
body.layout-portfolio input[type="password"],
body.layout-portfolio input[type="date"],
body.layout-portfolio input[type="number"],
body.layout-portfolio select,
body.layout-portfolio textarea {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  border-radius: 10px !important;
}

body.layout-portfolio .gov-btn,
body.layout-portfolio .pf-chip-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.layout-portfolio .gov-btn.active,
body.layout-portfolio .gov-btn:hover,
body.layout-portfolio .pf-chip-btn.active {
  border-color: rgba(56, 189, 248, 0.5);
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.08);
}

body.layout-portfolio .auth-btn {
  border-radius: 999px !important;
  font-weight: 600 !important;
}

body.layout-portfolio .auth-btn-google {
  background: #fff !important;
  color: #0f172a !important;
}

body.layout-portfolio .auth-btn-apple,
body.layout-portfolio .auth-btn-email {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

body.layout-portfolio .auth-btn-spid {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
}

body.layout-portfolio .modal-card {
  background: rgba(8, 12, 20, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65) !important;
}


/* Admin / dossier premium helpers */
.pf-admin-login {
  max-width: 440px;
  margin: 2rem auto 0;
  padding: 2rem 1.75rem;
}

.pf-gov-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pf-gov-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #94a3b8;
  margin-left: auto;
}

.live-pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.pf-gov-panel {
  margin-top: 0.5rem;
}

.pf-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.pf-pipeline-step {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pf-pipeline-step strong {
  color: #fff;
  font-size: 0.88rem;
}

.pf-pipeline-step span {
  color: #64748b;
  font-size: 0.78rem;
}

.pf-pipeline-log {
  flex: 1;
  min-width: 220px;
  max-height: 90px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.9rem !important;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

.pf-dossier-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.pf-dossier-photo {
  width: 160px;
  height: 190px;
  border-radius: 12px;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.pf-dossier-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.8rem;
}

.pf-dossier-identity h2 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}

.pf-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  margin-top: 1.1rem;
}

.pf-dossier-grid p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pf-dossier-grid span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.pf-dossier-grid strong {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
}

.pf-dossier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pf-dossier-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.45rem;
}

.pf-dossier-list span {
  color: #64748b;
}

.pf-dossier-list strong {
  color: #e2e8f0;
  font-weight: 600;
  text-align: right;
}

/* Footer trasparente: lo sfondo è il layer fisso del body */
.pf-footer,
.site-footer,
footer.site-footer,
body.layout-portfolio footer {
  background: transparent !important;
  background-color: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
  color: #94a3b8;
  box-shadow: none !important;
}

/* Continuous pure black: about → footer (no gray strip, no blue footer) */
html,
body.layout-portfolio {
  background: #050608 !important;
  background-color: #050608 !important;
}

#view-about,
#view-about .about-dossier {
  background: transparent !important;
  background-color: transparent !important;
}

main {
  background: #050608 !important;
  background-color: #050608 !important;
}

.pf-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}

#elisee-cookie-settings-btn {
  transition: opacity 0.2s ease;
}
#elisee-cookie-settings-btn[aria-hidden="true"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.pf-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pf-footer-brand > span span,
.pf-footer-brand span span {
  color: var(--accent-primary);
}

.pf-footer-text {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  max-width: 320px;
}

.pf-footer-social {
  display: flex;
  gap: 0.85rem;
}

.pf-footer-social a {
  color: #94a3b8;
  transition: color 0.2s;
}

.pf-footer-social a:hover {
  color: var(--accent-primary);
}

.pf-footer-heading {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.pf-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.pf-footer-links a:hover {
  color: #fff;
}

.pf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  align-items: center;
}

.pf-footer-bottom-left {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.pf-footer-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8 !important;
  background: rgba(2, 132, 199, 0.12);
  flex-shrink: 0;
}

.pf-footer-back-top:hover {
  color: #fff !important;
  background: rgba(2, 132, 199, 0.35);
  border-color: rgba(56, 189, 248, 0.7);
}

.pf-footer-back-top svg,
.pf-footer-back-top i {
  width: 1.1rem;
  height: 1.1rem;
}

.pf-footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.pf-footer-bottom a:hover {
  color: var(--accent-primary);
}

/* Home sections subtle unify */
body.layout-portfolio .portfolio-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.layout-portfolio .portfolio-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body.layout-portfolio .portfolio-stat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Admin/dossier full bleed */
body.layout-portfolio #admin-view-group,
body.layout-portfolio #user-dossier-view-group {
  padding-top: 0;
  background: #050608;
}

@media (max-width: 900px) {
  .pf-pipeline-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pf-dossier-hero {
    grid-template-columns: 1fr;
  }
  .pf-dossier-grid {
    grid-template-columns: 1fr;
  }
  .pf-footer-grid {
    grid-template-columns: 1fr;
  }
  .pf-gov-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pf-gov-status {
    align-items: flex-start;
  }
}

/* ==========================================================================
   BADGE MODAL + TRUST BADGES — premium (no emoji / green chips)
   ========================================================================== */
/* Badge modal card: compact height — no empty void above footer */
.modal-overlay.pf-modal .modal-card,
body.layout-portfolio #candidate-modal.pf-modal .modal-card,
body.layout-portfolio #candidate-modal:has(.pf-badge-modal) .modal-card,
body.layout-portfolio #candidate-modal .modal-card:has(.pf-badge-modal) {
  max-width: 480px !important;
  width: min(480px, 100%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(88vh, 640px) !important;
  background: #0a0e16 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75) !important;
  padding: 0 !important;
  overflow: hidden !important;
  overflow-y: auto !important;
  display: block !important;
  align-self: center !important;
  margin: auto !important;
}

#candidate-modal:has(.pf-badge-modal) #modal-candidate-body {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
}

.pf-badge-modal {
  text-align: left;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.pf-badge-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.pf-badge-modal-title {
  margin: 0.15rem 0 0.35rem 0;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pf-badge-modal-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.45;
  font-weight: 400;
}

.pf-badge-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.pf-badge-close:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.pf-badge-modal-body {
  padding: 1.1rem 1.35rem 1rem;
  flex: 0 1 auto;
}

.pf-badge-modal-body .pf-aside-title {
  margin: 0 0 0.55rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.pf-badge-modal-text {
  margin: 0 0 0.85rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.pf-badge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.pf-badge-tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
}

.pf-badge-note {
  margin: 0.75rem 0 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  line-height: 1.5;
  color: #94a3b8;
  font-style: italic;
}

.pf-badge-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 1.35rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0 !important;
  flex-shrink: 0;
}

/* Trust badges grid on Curriculum — quieter */
body.layout-portfolio .resume-hobbies {
  gap: 1rem 0.75rem;
}

body.layout-portfolio .resume-hobby {
  color: #94a3b8;
}

body.layout-portfolio .resume-hobby i,
body.layout-portfolio .resume-hobby svg {
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.02);
}

body.layout-portfolio .resume-hobby:hover {
  color: #e2e8f0;
}

body.layout-portfolio .resume-hobby:hover i,
body.layout-portfolio .resume-hobby:hover svg {
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: var(--accent-primary) !important;
}

body.layout-portfolio .resume-section-title {
  border-bottom-color: rgba(56, 189, 248, 0.55);
}

/* Hide default modal X when premium badge modal is open (avoid double close) */
#candidate-modal:has(.pf-badge-modal) .modal-close {
  display: none !important;
}

/* Curriculum — actionable list items */
.resume-action-list {
  list-style: none !important;
  padding: 0 !important;
  gap: 0.35rem !important;
}

.resume-action-list > li {
  padding-left: 0 !important;
}

.resume-action-list > li::before {
  display: none !important;
}

.resume-action-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.resume-action-link span {
  flex: 1;
}

.resume-action-link svg,
.resume-action-link i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #64748b;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.resume-action-link:hover,
.resume-action-link:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  outline: none;
}

.resume-action-link:hover svg,
.resume-action-link:hover i,
.resume-action-link:focus-visible svg,
.resume-action-link:focus-visible i {
  opacity: 1;
  color: var(--accent-primary);
  transform: translate(1px, -1px);
}

.resume-can-list-soft .resume-action-link {
  color: #94a3b8;
  font-size: 0.86rem;
}

.resume-can-list-soft .resume-action-link:hover {
  color: #e2e8f0;
}

/* FORCE: badge modal — kill empty void (overrides all prior modal rules) */
#candidate-modal.pf-badge-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
}
#candidate-modal.pf-badge-open .modal-card {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: block !important;
}
#candidate-modal.pf-badge-open #modal-candidate-body {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}
#candidate-modal.pf-badge-open .modal-close {
  display: none !important;
}
#pf-badge-sheet {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* ============================================================ */
/* DESIGN SYSTEM UNIFICATO: ADMIN & RESPONSABILE PRIVACY        */
/* ============================================================ */

.garofalo-dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 992px) {
  .garofalo-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.garofalo-sidebar {
  background: linear-gradient(160deg, rgba(7, 18, 36, 0.92) 0%, rgba(10, 19, 40, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 1.5rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(2, 132, 199, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 90px;
}

.garofalo-brand-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.garofalo-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.garofalo-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.garofalo-nav-item:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.2);
}

.garofalo-nav-item.active {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  border-left: 3px solid #38bdf8 !important;
  padding-left: calc(0.9rem - 3px) !important;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.12);
}

/* Pulsante Esci — secondario, non competitivo */
#btn-admin-logout {
  font-size: 0.75rem !important;
  padding: 0.3rem 0.8rem !important;
  opacity: 0.65;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #94a3b8 !important;
  background: transparent !important;
  transition: opacity 0.2s ease;
}
#btn-admin-logout:hover {
  opacity: 1;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
}

.garofalo-time-filters {
  display: flex;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.3rem;
  border-radius: 30px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.garofalo-filter-pill {
  padding: 0.4rem 0.95rem;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.garofalo-filter-pill:hover {
  color: #ffffff;
}

.garofalo-filter-pill.active {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.4);
}

.garofalo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.75rem;
}

.garofalo-kpi-card {
  background: linear-gradient(160deg, rgba(7, 18, 36, 0.8) 0%, rgba(10, 19, 40, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.garofalo-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.garofalo-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.garofalo-kpi-title {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.garofalo-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.garofalo-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.garofalo-badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
}

.garofalo-badge-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
}

/* Tabella Unificata Admin & Privacy */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(7, 18, 36, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  overflow: hidden;
}

.admin-table th {
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  text-align: left;
}

.admin-table td {
  padding: 0.9rem 1.1rem;
  font-size: 0.84rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
}

.glass-card {
  background: linear-gradient(160deg, rgba(7, 18, 36, 0.8) 0%, rgba(10, 19, 40, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ============================================================
   MACRO-SECTION BREATHING — Mantiene respiro a qualsiasi zoom
   ============================================================ */

/* Header principale: separazione dal contenuto sottostante */
.pf-header {
  margin-bottom: 2.5rem !important;
}

/* Toolbar/Gov-bar: separazione sopra e sotto */
/* ============================================================
   FULL-WIDTH FLUID LAYOUT (100% WIDTH, 24px PADDING)
   ============================================================ */

#admin-portal,
#admin-portal .container,
#admin-portal .pf-page-inner,
#admin-authenticated-dashboard {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#admin-portal {
  padding-top: 1.25rem !important;
  padding-bottom: 8rem !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

#admin-portal .container,
#admin-portal .pf-page-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pf-header {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
  padding-top: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

.pf-toolbar,
.pf-gov-bar {
  margin-bottom: 1.5rem !important;
  padding: 0.65rem 1.25rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.garofalo-dashboard-layout {
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  margin-top: 1rem !important;
  margin-bottom: 6rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
}

#governance-panel-target {
  display: block !important;
  padding-bottom: 4rem !important;
}

/* Header della scheda attiva */
#governance-panel-target > div > div:first-child {
  margin-bottom: 1.25rem !important;
}

/* Griglia KPI (5 card) */
#governance-panel-target div[style*="grid-template-columns"],
.garofalo-kpi-grid {
  gap: 1.15rem !important;
  margin-bottom: 1.25rem !important;
}

/* Card KPI */
#governance-panel-target .garofalo-kpi-card {
  padding: 1.25rem 1.15rem !important;
}

/* Banner alert anomalie */
#governance-panel-target div[style*="border-radius:12px"],
#governance-panel-target div[style*="border-radius: 12px"] {
  margin-bottom: 1.25rem !important;
  padding: 0.85rem 1.15rem !important;
}

/* Titoli h5 sottosezioni */
#governance-panel-target h5 {
  margin-top: 2rem !important;
  margin-bottom: 0.6rem !important;
  font-size: 1.1rem !important;
}

/* Tabelle */
#governance-panel-target .table-responsive {
  margin-top: 0.5rem !important;
  margin-bottom: 2.5rem !important;
  max-height: 400px !important;
}

/* Pipeline Auto-Fix aside card (solo admin, non Bacheca) */
#admin-portal .pf-aside-card,
#governance-panel-target .pf-aside-card {
  margin-top: 2.5rem !important;
  margin-bottom: 5rem !important;
}

/* Forzo la pagina ad occupare il 100% della larghezza a qualsiasi zoom o risoluzione */
#admin-portal, 
.admin-portal, 
main, 
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 1.5rem !important;  /* Spazio minimo dal bordo sinistro */
  padding-right: 1.5rem !important; /* Spazio minimo dal bordo destro */
}

/* Se usi un grid per le card sotto, lo forza ad espandersi su tutta la larghezza */
.grid, .dashboard-grid {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================================================
   HERO SECTION — Struttura completa
   L'HTML usa <img class="hero-portfolio-photo"> come sfondo
   ============================================================ */

/* 1. Reset body — scroll verticale SEMPRE abilitato */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
}
html {
  scroll-padding-top: 5.5rem;
}

/* 2. La sezione Hero occupa tutto lo schermo */
#hero,
.hero-section,
.hero-portfolio {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #050810 !important;
}

/* 3. L'immagine di sfondo Hero (tag <img class="hero-portfolio-photo">) */
.hero-portfolio-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 4. Overlay scuro sopra l'immagine per leggibilità del testo */
.hero-portfolio-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(5, 8, 16, 0.75) 0%,
    rgba(2, 10, 25, 0.55) 50%,
    rgba(0, 5, 15, 0.40) 100%
  );
  pointer-events: none;
}

/* 5. Stage = contenitore del testo, sopra overlay */
.hero-portfolio-stage {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 24px 1.5rem 2rem 1.5rem !important;
  display: flex;
  align-items: flex-start;
  min-height: 0;
}

/* 6. Blocco tipografico sinistro */
.hero-typography-left {
  max-width: 580px;
}

/* 7. Nome / Titolo principale */
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero-name-bold {
  color: var(--accent-primary, #38bdf8);
  display: block;
}

/* 8. Ruolo / Sottotitolo */
.hero-role {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 2.5rem;
}

/* 9. Pulsanti Hero */
.hero-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.8);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   PORTFOLIO SECTIONS — Sezioni sotto l'Hero
   ============================================================ */

.portfolio-section {
  padding: 6rem 0;
  position: relative;
}

.portfolio-about {
  background: var(--bg-secondary, #0a0c10);
}

.portfolio-resume {
  background: var(--bg-primary, #050608);
}

.portfolio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

#welcome-access .portfolio-split {
  grid-template-columns: minmax(0, 36rem);
}

@media (max-width: 768px) {
  .portfolio-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.portfolio-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-primary, #38bdf8);
  margin: 0 0 0.75rem;
}

.portfolio-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-main, #ffffff);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.portfolio-text {
  font-size: 1rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.7;
  margin: 0;
}

.portfolio-text-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.portfolio-visual img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.portfolio-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ============================================================
   AI DEV TEAM — WAR ROOM STYLES
   ============================================================ */

/* Trigger Card & Button in Admin Dashboard */
.wr-admin-trigger-card {
  background: linear-gradient(135deg, rgba(6, 12, 27, 0.95) 0%, rgba(10, 20, 42, 0.98) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(56, 189, 248, 0.08);
  position: relative;
  overflow: hidden;
}

.wr-admin-trigger-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: wrPulseGlow 6s infinite ease-in-out;
}

@keyframes wrPulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.btn-war-room-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 10px 30px rgba(2, 132, 199, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
}

.btn-war-room-trigger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.7), 0 15px 40px rgba(2, 132, 199, 0.5);
  background: linear-gradient(90deg, #0369a1 0%, #7dd3fc 100%);
}

/* War Room Backdrop & Modal Container — chiuso di default (mai coprire i click) */
.wr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 7, 18, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  animation: wrFadeIn 0.3s ease-out;
}
.wr-backdrop.is-open {
  display: flex !important;
  pointer-events: auto !important;
}

@keyframes wrFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.wr-modal-container {
  width: 100%;
  max-width: 1350px;
  height: 90vh;
  background: linear-gradient(160deg, #060c1b 0%, #091329 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 80px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Boot Sequence Overlay */
.wr-boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(4, 8, 18, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.wr-boot-box {
  text-align: center;
  max-width: 450px;
  width: 90%;
}

.wr-radar-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-right-color: #0284c7;
  animation: wrSpin 0.8s linear infinite;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

@keyframes wrSpin {
  to { transform: rotate(360deg); }
}

.wr-boot-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.wr-boot-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 1rem;
}

.wr-boot-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  width: 0%;
  transition: width 0.25s ease;
  box-shadow: 0 0 15px #38bdf8;
}

.wr-boot-status {
  color: #38bdf8;
  font-size: 0.82rem;
  font-family: monospace;
}

/* Header */
.wr-header {
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(56, 189, 248, 0.05));
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wr-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wr-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.wr-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wr-tag-live {
  font-size: 0.65rem;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wr-subtitle {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0.2rem 0 0;
}

.wr-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wr-btn-scan {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.wr-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wr-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Stats Summary Bar */
.wr-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wr-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.wr-stat-label {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.wr-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.wr-green { color: #22c55e !important; }
.wr-yellow { color: #eab308 !important; }
.wr-red { color: #ef4444 !important; }
.wr-cyan { color: #38bdf8 !important; }
.wr-blue { color: #60a5fa !important; }

.wr-pill-sm {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  margin-right: 0.25rem;
}

.wr-pill-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.wr-pill-yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.wr-pill-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Tabs Bar */
.wr-tabs-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  overflow-x: auto;
}

.wr-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wr-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.wr-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

/* Modal Body */
.wr-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
}

.wr-tab-panel {
  display: none;
}

.wr-tab-panel.active {
  display: block;
}

/* Overview Layout */
.wr-overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.wr-panel-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.wr-box-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.wr-terminal-box {
  background: #040812;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.78rem;
  max-height: 350px;
  overflow-y: auto;
}

.wr-log-line {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.wr-log-time {
  color: #64748b;
  margin-right: 0.5rem;
}

.text-green { color: #22c55e; }
.text-yellow { color: #eab308; }
.text-red { color: #ef4444; }
.text-cyan { color: #38bdf8; }

/* Site Areas Grid */
.wr-areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.wr-area-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.wr-area-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 0.9rem;
}

.wr-score-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-weight: 800;
}

.wr-bg-green { background: rgba(34, 197, 94, 0.18); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.4); }
.wr-bg-yellow { background: rgba(234, 179, 8, 0.18); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.4); }
.wr-bg-red { background: rgba(239, 68, 68, 0.18); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.wr-area-desc {
  color: #94a3b8;
  font-size: 0.76rem;
  margin: 0 0 0.4rem;
}

.wr-area-footer {
  color: #64748b;
  font-size: 0.7rem;
}

/* 50 Agents Grid */
.wr-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.wr-filter-label {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}

.wr-select {
  background: rgba(6, 12, 27, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  outline: none;
}

.wr-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.wr-agent-card {
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wr-agent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

.wr-agent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wr-agent-id {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 800;
  font-family: monospace;
}

.wr-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
}

.wr-agent-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}

.wr-agent-badge {
  color: #cbd5e1;
  font-size: 0.74rem;
  margin-bottom: 0.6rem;
}

.wr-agent-meta {
  color: #94a3b8;
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.wr-agent-score-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.wr-score-fill {
  height: 100%;
  border-radius: 999px;
}

.wr-agent-bottom {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.72rem;
}

/* Supervisors Grid */
.wr-info-alert {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  margin-bottom: 1.5rem;
}

.wr-supervisors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.wr-sup-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
}

.wr-sup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 0.88rem;
}

.wr-sup-icon {
  font-size: 1.2rem;
}

.wr-sup-body {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Interventions List */
.wr-interventions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wr-intv-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
}

.wr-intv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.wr-intv-id {
  color: #38bdf8;
  font-family: monospace;
  font-weight: 800;
}

.wr-intv-badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-weight: 800;
}

.wr-intv-body {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.wr-intv-body code {
  background: rgba(0, 0, 0, 0.4);
  color: #38bdf8;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-family: monospace;
}

/* Escalations List */
.wr-esc-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}


/* ==========================================================================
   UNIFIED PILLAR UI DESIGN SYSTEM — ADOPTED ACROSS ALL PORTALS & SECTIONS
   (Area Utente, Area Admin, Responsabile Privacy, Ambassador, Portfolio, Network)
   ========================================================================== */

/* Universal Kicker & Title Standards */
.portal-kicker,
.portfolio-kicker,
.pf-kicker {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #38bdf8 !important;
  margin-bottom: 0.35rem !important;
  display: inline-block !important;
}

.portal-title,
.pf-title,
.resume-page-title {
  font-family: var(--font-heading, 'Inter', sans-serif) !important;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 0.4rem 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
}

.portal-sub,
.pf-lead,
.resume-page-sub {
  color: #94a3b8 !important;
  font-size: 0.95rem !important;
  margin: 0 0 1.75rem 0 !important;
  line-height: 1.5 !important;
}

/* Universal Section Titles with Gradient Accent Bar */
.portal-section-title,
.resume-section-title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 1.15rem 0 !important;
  padding-bottom: 0.35rem !important;
  border-bottom: 2px solid transparent !important;
  border-image: linear-gradient(90deg, #0284c7, #38bdf8) 1 !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 55% !important;
}

/* Universal Glassmorphism Cards */
.portal-glass-card,
.resume-card,
.admin-card-unified {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.05) !important;
  padding: 1.5rem !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.portal-glass-card:hover,
.resume-card:hover,
.admin-card-unified:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Universal Metric & Skill Progress Bars */
.portal-bar-row,
.resume-skill-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.portal-badge-icon,
.resume-skill-icon {
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 7px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0.02em !important;
}

.portal-bar-track,
.resume-bar {
  height: 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
}

.portal-bar-fill,
.resume-bar-fill {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important;
}

/* Universal Action Chips & Focus Pills */
.portal-chip,
.focus-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease !important;
  cursor: pointer !important;
}

.portal-chip:hover,
.focus-chip:hover {
  border-color: rgba(56, 189, 248, 0.55) !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
  transform: translateY(-1px) !important;
}

/* Account trigger + dropdown — editorial, aligned to Area Stampa */
#nav-logged-in-actions {
  align-items: center;
  gap: 8px;
}
.es-account-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  padding: 0.28rem 0.7rem 0.28rem 0.32rem !important;
  cursor: pointer;
  color: #eef1f6 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.es-account-trigger:hover,
.es-account-trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
}
.es-account-trigger #user-name-display {
  color: #eef1f6 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.82rem !important;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0 !important;
}
.es-account-trigger #user-dropdown-arrow {
  color: #8a93a3;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.es-account-trigger[aria-expanded="true"] #user-dropdown-arrow {
  transform: rotate(180deg);
}

.es-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #0b0e14;
  border: 1px solid #1e2430;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  padding: 0;
  overflow: hidden;
}
.es-account-menu[hidden] {
  display: none !important;
}

.es-account-menu-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.es-account-menu-head p,
#user-dropdown-name-full,
#user-dropdown-email-link,
#user-dropdown-role,
#user-avatar-badge {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.es-account-menu-nav {
  padding: 6px 0;
}

.es-account-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 9px 16px;
  color: #eef1f6;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  background: transparent;
  border: 0;
  transition: background 0.12s ease, color 0.12s ease;
}
.es-account-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}
.es-account-item--split {
  justify-content: space-between;
  gap: 12px;
}
.es-account-status {
  font-size: 0.68rem;
  color: #8a93a3;
  font-weight: 500;
}
.es-account-menu-admin {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 0 4px;
}
.es-account-menu-admin[hidden] {
  display: none !important;
}
.es-account-menu-label {
  margin: 0;
  padding: 4px 16px 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #626b79;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.es-account-item--out {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #9aa3b2;
}
.es-account-item--out:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #eef1f6;
}

/* Forzo la pagina ad occupare il 100% della larghezza a qualsiasi zoom o risoluzione (senza main) */
#admin-portal, 
.admin-portal, 
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 1.5rem !important;  /* Spazio minimo dal bordo sinistro */
  padding-right: 1.5rem !important; /* Spazio minimo dal bordo destro */
}


/* DEFINITIVE MAIN ZERO-PADDING BYPASS */
main,
main#app,
.site-main,
body.layout-portfolio main {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================================
   UI EXTENSION STYLES: TOAST, SKELETON, TRUST SCORE, BADGES, UX
   ========================================================================== */

/* Toast Container & Animation */
#elisee-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.elisee-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.elisee-toast.toast-success {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(6, 44, 26, 0.94);
  color: #4ade80;
}

.elisee-toast.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(45, 12, 18, 0.94);
  color: #f87171;
}

.elisee-toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(45, 30, 10, 0.94);
  color: #fbbf24;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Skeleton Loading Animation */
.skeleton-loader {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite ease-in-out;
  border-radius: 8px;
  display: inline-block;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Trust Score Badge */
.trust-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.trust-score-badge.trust-high {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.trust-score-badge.trust-med {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

/* Verification Badge Status Pill */
.verif-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.verif-badge-pill.status-approved {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.verif-badge-pill.status-pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.verif-badge-pill.status-in-review {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.verif-badge-pill.status-temp-approved {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.verif-badge-pill.status-closed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* User Initials Avatar Generator */
.user-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

/* ============================================================
   DOSSIER HERO LAYOUT
   ============================================================ */
.pf-dossier-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.pf-dossier-photo {
  flex-shrink: 0;
  width: 140px;
  height: 170px;
  border-radius: 12px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  overflow: hidden;
  position: relative;
}

.pf-dossier-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.78rem;
}
.pf-dossier-noimg i { width: 36px; height: 36px; }

.pf-dossier-identity {
  flex: 1;
  min-width: 0;
}

.pf-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}

.pf-dossier-grid p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pf-dossier-grid span {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.pf-dossier-grid strong {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* ============================================================
   DOSSIER LIST (schede sanità e GPS)
   ============================================================ */
.pf-dossier-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pf-dossier-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 0.5rem;
}

.pf-dossier-list li:last-child { border-bottom: none; }

.pf-dossier-list span {
  font-size: 0.78rem;
  color: #64748b;
  flex-shrink: 0;
}

.pf-dossier-list strong {
  font-size: 0.82rem;
  color: #cbd5e1;
  text-align: right;
}

/* ============================================================
   PIPELINE AUTO-FIX LOG TERMINAL
   ============================================================ */
.pipeline-log-terminal,
.pf-pipeline-log {
  flex: 1;
  min-width: 0;
  max-height: 140px;
  overflow-y: auto;
  background: #020408;
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.55;
  scroll-behavior: smooth;
}

.pipeline-log-terminal::-webkit-scrollbar { width: 4px; }
.pipeline-log-terminal::-webkit-scrollbar-thumb {
  background: rgba(56,189,248,0.3);
  border-radius: 4px;
}

/* ============================================================
   PIPELINE GRID (admin section)
   ============================================================ */
.pf-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
}

@media (max-width: 700px) {
  .pf-pipeline-grid { grid-template-columns: repeat(2, 1fr); }
}

.pf-pipeline-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pf-pipeline-step strong {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 700;
}

.pf-pipeline-step span {
  font-size: 0.74rem;
  color: #64748b;
}

/* ============================================================
   FOOTER BRAND & SOCIAL
   ============================================================ */
.pf-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pf-footer-brand span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.pf-footer-brand span span {
  color: #38bdf8;
}

.footer-logo-img {
  border-radius: 8px;
  object-fit: contain;
}

.pf-footer-social {
  display: flex;
  gap: 0.65rem;
}

.pf-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pf-footer-social a:hover {
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
  border-color: rgba(56,189,248,0.3);
}

.pf-footer-social a i { width: 16px; height: 16px; }

/* ============================================================
   FOOTER GRID, HEADING, LINKS, BOTTOM BAR
   ============================================================ */
.pf-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 960px) {
  .pf-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .pf-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pf-footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
}

.pf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pf-footer-links li {
  font-size: 0.83rem;
  color: #64748b;
}

.pf-footer-links a {
  font-size: 0.83rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.pf-footer-links a:hover { color: #38bdf8; }

.pf-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pf-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #475569;
}

.pf-footer-back-top {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.pf-footer-back-top:hover { color: #38bdf8; }
.pf-footer-back-top i { width: 18px; height: 18px; vertical-align: middle; }

.pf-footer-bottom span:last-child {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pf-footer-bottom span:last-child a {
  font-size: 0.78rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.pf-footer-bottom span:last-child a:hover { color: #38bdf8; }

/* ============================================================
   DOSSIER MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .pf-dossier-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pf-dossier-photo {
    width: 110px;
    height: 130px;
  }
  .pf-dossier-grid {
    grid-template-columns: 1fr;
  }
}




/* === ALIAS TOAST CONTAINER & ITEM (compatibilità app.js) === */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-item.toast-success { border-color: rgba(34,197,94,0.4); background: rgba(6,44,26,0.94); color: #4ade80; }
.toast-item.toast-error   { border-color: rgba(239,68,68,0.4); background: rgba(45,12,18,0.94); color: #f87171; }
.toast-item.toast-warning { border-color: rgba(245,158,11,0.4); background: rgba(45,30,10,0.94); color: #fbbf24; }

/* === CLICK UNLOCK DEFINITIVO (2026-08-06) === */
/* Ghost overlays: spenti se non aperti esplicitamente */
#ai-cluster-boot,
#ai-cluster-boot[hidden],
#ai-cluster-boot[aria-hidden="true"],
#es-int-root:not(.is-open),
#es-ap-root:not(.is-open),
#amb-ai-modal[hidden],
#amb-ai-modal[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}
.modal-overlay:not(.active):not(.open),
#candidate-modal:not(.active):not(.open),
#governance-action-modal:not(.active):not(.open),
#fullscreen-document-viewer:not(.active):not(.open) {
  display: none !important;
  pointer-events: none !important;
}
/* Auth modal: chiuse di default, aperte con .is-open */
#modal-registrazione:not(.is-open),
#modal-accesso-unificato:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
}
#modal-registrazione.is-open,
#modal-accesso-unificato.is-open {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99998 !important;
}

/* Area Riservata = schermata intera, non banner/card */
#modal-area-riservata:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body.ar-screen-open,
html.ar-screen-open {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
  overscroll-behavior: none !important;
}
#modal-area-riservata.is-open,
#modal-area-riservata.es-ar-screen.is-open {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overscroll-behavior: contain !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100040 !important;
  background: #050608 !important;
  touch-action: pan-y !important;
}
.es-ar-page {
  position: relative;
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow: visible !important;
}
.es-ar-inner {
  max-width: 1120px;
  padding-top: 1.15rem !important;
  padding-bottom: 4rem !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.es-ar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.es-ar-photo-card,
.es-ar-form-card {
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
}
.es-ar-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.es-ar-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.es-ar-avatar.has-photo #ar-avatar-letter {
  display: none;
}
.es-ar-photo-title {
  margin: 0 0 0.55rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}
.es-ar-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.es-ar-photo-hint {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
}
.es-ar-photo-err {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 0.74rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
}
.es-ar-reject {
  position: fixed;
  left: 50%;
  bottom: 7.5rem;
  transform: translateX(-50%) translateY(18px);
  z-index: 2147483600;
  width: min(460px, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
}
.es-ar-reject.is-on {
  animation: esArSealIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             esArSealOut 0.4s ease 3.1s forwards;
}
.es-ar-reject-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(40, 10, 14, 0.96), rgba(28, 8, 12, 0.92));
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(239, 68, 68, 0.16);
}
.es-ar-reject-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  font-weight: 900;
  font-size: 1.05rem;
}
.es-ar-reject-kicker {
  margin: 0 0 0.15rem;
  color: #fca5a5;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.es-ar-reject-title {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
}
.es-ar-reject-why {
  margin: 0.28rem 0 0;
  color: #fecaca;
  font-size: 0.8rem;
  line-height: 1.4;
}
.es-ar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.es-ar-span { grid-column: 1 / -1; }
.es-ar-spec-fields {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
}
.es-ar-spec-title {
  margin: 0 0 0.9rem;
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.es-ar-edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.es-ar-edu-row {
  display: grid;
  grid-template-columns: 170px 1fr 110px 36px;
  gap: 0.5rem;
  align-items: center;
}
.es-ar-edu-remove {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}
.es-ar-add-edu {
  margin-top: 0.7rem;
  background: transparent;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.es-ar-helper {
  margin-top: 0.55rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1.5px solid rgba(125, 211, 252, 0.7);
  background: linear-gradient(165deg, rgba(14, 116, 180, 0.38), rgba(8, 28, 52, 0.72) 55%, rgba(2, 132, 199, 0.22));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 28px rgba(56, 189, 248, 0.28), 0 10px 28px rgba(0, 0, 0, 0.25);
}
.es-ar-helper-kicker {
  margin: 0 0 0.55rem;
  color: #e0f2fe;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.55);
}
.es-ar-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  text-shadow: 0 0 14px rgba(186, 230, 253, 0.35);
}
.es-ar-check input {
  margin-top: 0.28rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: #7dd3fc;
}
.es-ar-check em {
  color: #bae6fd;
  font-style: normal;
  font-weight: 600;
}
#ar-aiutante-box {
  margin-top: 0.95rem;
}
#ar-aiutante-box .es-ar-label {
  color: #e0f2fe;
}
@media (max-width: 860px) {
  .es-ar-edu-row {
    grid-template-columns: 1fr 36px;
  }
  .es-ar-edu-row .es-ar-edu-type,
  .es-ar-edu-row .es-ar-edu-name,
  .es-ar-edu-row .es-ar-edu-year {
    grid-column: 1;
  }
}
.es-ar-label {
  display: block;
  color: #94a3b8;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}
.es-ar-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: #e2e8f0;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
  color-scheme: dark;
}
.es-ar-input:focus {
  border-color: rgba(56, 189, 248, 0.55);
}
.es-ar-saved { display: none !important; }

.es-ar-seal {
  position: fixed;
  left: 50%;
  bottom: 7.5rem;
  transform: translateX(-50%) translateY(24px) scale(0.86);
  z-index: 2147483600;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
  opacity: 0;
}
.es-ar-seal.is-on {
  animation: esArSealIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             esArSealOut 0.45s ease 2.45s forwards;
}
.es-ar-seal-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(6, 14, 28, 0.94), rgba(8, 22, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 40px rgba(14, 165, 233, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.es-ar-seal-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.es-ar-seal-ring svg {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}
.es-ar-seal-ring circle {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
}
.es-ar-seal.is-on .es-ar-seal-ring circle {
  animation: esArRing 0.85s ease 0.12s forwards;
}
.es-ar-seal-photo {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
}
.es-ar-seal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.es-ar-seal-copy {
  min-width: 0;
  flex: 1;
}
.es-ar-seal-kicker {
  margin: 0 0 0.15rem;
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.es-ar-seal-title {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.es-ar-seal-sub {
  margin: 0.18rem 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.es-ar-seal-scan {
  position: absolute;
  left: -20%;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.22), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.es-ar-seal.is-on .es-ar-seal-scan {
  animation: esArScan 1.15s ease 0.2s forwards;
}
.es-ar-seal-pulse {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 64px;
  height: 64px;
  margin-top: -32px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  opacity: 0;
}
.es-ar-seal.is-on .es-ar-seal-pulse {
  animation: esArPulse 1.1s ease 0.2s 2;
}
@keyframes esArSealIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes esArSealOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(0.94); }
}
@keyframes esArRing {
  to { stroke-dashoffset: 0; }
}
@keyframes esArScan {
  0% { opacity: 0; left: -25%; }
  18% { opacity: 1; }
  100% { opacity: 0; left: 110%; }
}
@keyframes esArPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
.es-ar-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.35rem;
}
@media (max-width: 860px) {
  .es-ar-layout,
  .es-ar-grid {
    grid-template-columns: 1fr;
  }
}

/* Spettatore: niente candidature di lavoro / recruitment */
body.role-spettatore .pf-job-cta {
  opacity: 0.55;
  cursor: not-allowed;
}
body.role-spettatore #btn-richiedi-badge {
  display: none !important;
}
#modal-war-room-backdrop:not(.is-open),
.wr-backdrop:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
}
#modal-war-room-backdrop.is-open,
.wr-backdrop.is-open {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 999999 !important;
}

/* Header always on top and clickable */
header.portfolio-header,
header.main-header,
.portfolio-header,
.main-header {
  pointer-events: auto !important;
  z-index: 10050 !important;
}
.portfolio-header .navbar,
.portfolio-header .nav-menu,
.portfolio-header .nav-link,
.portfolio-header button,
.portfolio-header a,
.btn-nav-accedi,
.btn-nav-iscriviti,
.nav-link,
.hero-portfolio-stage,
.hero-typography-left,
.hero-buttons-row,
.hero-buttons-row .btn,
.btn,
button {
  pointer-events: auto !important;
  cursor: pointer;
}
/* Pseudo-elementi decorativi mai intercettano click */
button::before, button::after,
.btn::before, .btn::after,
.nav-link::before, .nav-link::after {
  pointer-events: none !important;
}


/* === SCROLL / HEADER FIX 2026-08-06 — niente contenuto tagliato sotto navbar === */
html, body {
  overflow-x: clip;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  position: static !important;
}
body.layout-portfolio {
  overflow-y: auto !important;
  height: auto !important;
}
body.layout-portfolio main,
main {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding-top: 0 !important; /* padding sulle view/inner, non su main */
}
/* Header fisso full-width classico ed essenziale: solo la navbar del sito,
   non le intestazioni <header> interne alle pagine. */
header.public-header,
.public-navbar,
.portfolio-header,
.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 32px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

/* Imposta l'hero a partire da 0 */
.hero-section,
#hero,
main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Rimuovi fascia vuota/spazio nero enorme sopra al titolo Hero */
.hero-portfolio-stage,
.hero-portfolio-inner,
.hero-typography-left {
  min-height: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
  padding-top: 24px !important;
}
/* Tutte le macro-view sotto l'header */
#view-account,
#view-ambassador,
#view-persone,
#view-bacheca,
#view-pillars,
#view-about,
#admin-view-group,
#user-dossier-view-group,
#home-views-group {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
#account-portal,
#admin-portal,
#user-dossier-portal,
#ambassador-portal,
#persone-portal,
#bacheca-annunci,
.pf-page {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  min-height: calc(100vh - 0px);
}
/* Spazio sotto header: padding-top forte (vincono su .container padding left/right) */
#modal-area-riservata .container.pf-page-inner.es-ar-inner,
#modal-area-riservata .es-ar-inner {
  padding-top: 1.15rem !important;
  padding-bottom: 4rem !important;
}
#modal-area-riservata .pf-header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  align-items: flex-start;
}
.container.pf-page-inner:not(.is-coach-inner),
.pf-page-inner:not(.is-coach-inner),
#account-portal .pf-page-inner,
#admin-portal .pf-page-inner,
#user-dossier-portal:not(.is-coach-dash) .pf-page-inner,
#ambassador-portal .pf-page-inner,
#persone-portal .pf-page-inner,
#bacheca-annunci .pf-page-inner {
  padding-top: 7.25rem !important;
  padding-bottom: 4rem !important;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
}
/* Account: non centrare verticalmente in un box 100vh che taglia */
#account-portal .pf-page-inner {
  min-height: 0 !important;
  justify-content: flex-start !important;
}
/* Titoli non devono finire sotto la navbar */
.pf-title,
.pf-header,
#account-portal .pf-header {
  overflow: visible !important;
  position: relative;
  z-index: 2;
}
/* Chi siamo dossier: niente clip, header gestito dal padding dell'hero */
#view-about .about-dossier {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
}
#view-about .about-dossier-wrap {
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
}
/* Resume page non deve clippare */
.resume-page {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
/* Footer sempre raggiungibile */
.site-footer,
.pf-footer {
  position: relative !important;
  overflow: visible !important;
}
/* === DROPDOWN UNLOCK 2026-08-06 === */
.pf-toolbar,
.pf-filters,
.pf-filter-group,
.custom-dropdown {
  overflow: visible !important;
  pointer-events: auto !important;
}
.custom-dropdown {
  position: relative !important;
  z-index: 5;
}
.custom-dropdown.open {
  z-index: 200 !important;
}
.custom-dropdown .dropdown-trigger {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 2;
}
.custom-dropdown.open .dropdown-options-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 300 !important;
}
.dropdown-option {
  pointer-events: auto !important;
  cursor: pointer !important;
}
.pf-header-actions {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}
.pf-header-actions .btn {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Bacheca: meno spazio sotto navbar, senza kicker */
#view-bacheca .pf-page-inner,
#bacheca-annunci .pf-page-inner {
  padding-top: calc(var(--nav-h, 64px) + 28px) !important;
}
#view-bacheca .pf-header-bacheca,
#bacheca-annunci .pf-header-bacheca {
  margin-bottom: 1.25rem !important;
  padding-bottom: 1rem !important;
  align-items: flex-start;
}
#view-bacheca .pf-header-bacheca .pf-title,
#bacheca-annunci .pf-header-bacheca .pf-title {
  margin-top: 0 !important;
  margin-bottom: 0.45rem !important;
}
#view-bacheca .pf-header-bacheca .pf-lead,
#bacheca-annunci .pf-header-bacheca .pf-lead {
  margin-top: 0 !important;
}

/* Scelta ruolo post-registrazione */
.es-role-pick {
  position: fixed;
  inset: 0;
  z-index: 2147483010;
  background: #050608;
  align-items: stretch;
  justify-content: center;
  overflow: auto;
  padding: 1.5rem 1.1rem 2rem;
}
.es-role-pick-sheet {
  width: min(430px, 100%);
  margin: auto;
  text-align: center;
}
.es-role-pick-brand {
  margin: 0.4rem 0 1.35rem;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.es-role-pick-brand span {
  font-weight: 500;
  font-style: italic;
  color: #38bdf8;
}
.es-role-pick-sheet h2 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.es-role-pick-sub {
  margin: 0 0 1.35rem;
  color: #94a3b8;
  font-size: 0.95rem;
}
.es-role-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.es-role-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  text-align: left;
  background: rgba(12, 18, 32, 0.88);
  border: 1.5px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  color: #e2e8f0;
}
.es-role-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.12);
}
.es-role-card.is-on {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}
.es-role-ico {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-role-ico svg { width: 22px; height: 22px; }
.es-role-txt { display: flex; flex-direction: column; gap: 0.05rem; }
.es-role-txt small {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 600;
}
.es-role-txt strong {
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: #f8fafc;
  font-weight: 800;
}
.es-role-hint {
  margin: 0.75rem 0 0;
  color: #7dd3fc;
  font-size: 0.8rem;
  line-height: 1.45;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  text-align: left;
}
.es-role-err {
  margin: 0.65rem 0 0;
  color: #dc2626;
  font-size: 0.82rem;
}
.es-role-continue {
  margin-top: 1.15rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  background: rgba(148, 163, 184, 0.28);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS: SAFE AREA, TOUCH & MULTI-DEVICE
   ============================================================ */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

body {
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

/* Touch targets ottimali con eliseo e prevenzione ritardo */
button,
a,
input[type="button"],
input[type="submit"],
.btn,
.es-btn,
.nav-link,
.es-pd-rail button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Prevenzione auto-zoom Safari iOS su campi form */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Navbar mobile rifinita */
@media screen and (max-width: 860px) {
  .navbar-container {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
}
.es-role-continue.is-ready {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #041018;
}
.es-role-continue.is-ready:hover { filter: brightness(1.06); }

/* ============================================================
   BACHECA RECLUTAMENTO: TAB SYSTEM, UNIFIED FILTERS & SEGMENTED CONTROL
   ============================================================ */
/* Sentence case globale per l'area bacheca */
#view-bacheca h1, #view-bacheca h2, #view-bacheca h3, #view-bacheca h4,
#bacheca-annunci h1, #bacheca-annunci h2, #bacheca-annunci h3, #bacheca-annunci h4,
.pf-header-bacheca .pf-title,
.pf-aside-title,
.pf-section-label span {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

.pf-section-label span:first-child {
  font-size: 0.92rem;
  font-weight: 700;
  color: #94a3b8;
}

/* Navigazione Tab Bacheca con linea attiva azzurra */
.bacheca-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.bacheca-nav-tabs::-webkit-scrollbar { display: none; }

.bacheca-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -1px;
  white-space: nowrap;
}
.bacheca-tab-btn:hover {
  color: #f1f5f9;
}
.bacheca-tab-btn.is-active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  font-weight: 700;
}
.bacheca-tab-btn .tab-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.bacheca-tab-pane {
  display: block;
  animation: bachecaFadeIn 0.22s ease-out;
}
@keyframes bachecaFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pannello Filtri Unificato per Bacheca */
.bacheca-filter-panel {
  background: rgba(15, 23, 42, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.bacheca-filter-row-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}
.bacheca-filter-row-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Segmented Control Raggio Geografico */
.bacheca-segmented-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.bacheca-seg-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.bacheca-segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.bacheca-seg-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.bacheca-seg-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.bacheca-seg-btn.is-active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.12);
  font-weight: 700;
}

/* Griglia Bacheca e Sidebar agganciata (nessuna card fluttuante) */
.bacheca-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 992px) {
  .bacheca-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Tab Persone & Squadre */
.bacheca-people-header {
  margin-bottom: 1.25rem;
}
.bacheca-people-types {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bacheca-type-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bacheca-type-btn:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}
.bacheca-type-btn.is-active {
  background: #38bdf8;
  color: #030a16;
  border-color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.bacheca-people-search-panel {
  background: rgba(15, 23, 42, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.bacheca-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(2, 6, 23, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bacheca-search-input-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.bacheca-search-ico {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
}
.bacheca-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.95rem;
}
.bacheca-search-input::placeholder {
  color: #64748b;
}
.bacheca-people-extra-filters {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* Stampa — Ricerca box 8px e reset input interno */
#stampa-portal .es-search,
.es-press .es-search {
  border-radius: 8px !important;
}
#stampa-portal #press-search,
.es-press #press-search,
#stampa-portal .es-search input,
.es-press .es-search input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ==========================================================================
   Ambassador — Restyling Form & Anteprima Contratto
   ========================================================================== */
#ambassador-portal .pf-layout-equal {
  border-top: 1px solid #1e2430;
  padding-top: 32px;
  gap: 24px;
}
#ambassador-portal .pf-aside-card {
  background: #10141d !important;
  border: 1px solid #1e2430 !important;
  border-radius: 12px !important;
}
#form-ambassador label,
#ambassador-portal .pf-form label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8a93a3 !important;
  margin-bottom: 7px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}
#form-ambassador .pf-input {
  width: 100% !important;
  background: #10141d !important;
  color: #eef1f6 !important;
  border: 1px solid #1e2430 !important;
  border-radius: 9px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  transition: border-color 0.15s ease;
}
#form-ambassador .pf-input:focus {
  outline: none !important;
  border-color: #3b7dff !important;
}
#form-ambassador .pf-canvas-wrap {
  background: #f2f0eb !important;
  border-radius: 10px !important;
  height: 150px !important;
  margin-bottom: 14px !important;
}
#btn-amb-submit,
.es-amb-submit {
  width: 100% !important;
  background: #3b7dff !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 15px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  margin-bottom: 14px !important;
  transition: background 0.15s ease !important;
}
#btn-amb-submit:hover,
.es-amb-submit:hover {
  background: #2f69db !important;
}
.es-eligibility-note {
  font-size: 12px !important;
  color: #8a93a3 !important;
  line-height: 1.6 !important;
  padding-top: 14px !important;
  border-top: 1px solid #1e2430 !important;
  margin-top: 14px !important;
}
.es-eligibility-note strong {
  color: #eef1f6 !important;
}
.es-preview {
  background: #10141d !important;
  border: 1px solid #1e2430 !important;
  border-radius: 12px !important;
  min-height: 460px !important;
  padding: 32px !important;
}
.es-preview__empty {
  text-align: center !important;
  max-width: 280px !important;
  margin: 0 auto !important;
}
.es-preview__icon {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto 16px !important;
  color: #8a93a3 !important;
  display: block !important;
}
.es-preview__empty p {
  font-size: 13px !important;
  color: #8a93a3 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Ancoraggio fisso viewport per la barra laterale verticale dashboard (.es-pd-rail) */
.es-pd {
  display: block !important;
  box-sizing: border-box !important;
}

.es-pd:has(.es-pd-rail),
#es-pd,
#es-dsd,
#es-gd,
#es-obsd,
#es-tfd,
#es-mad,
#es-med,
#es-gkd,
#es-atd,
#es-ygd,
#es-dgd,
#es-agd,
#es-mkd,
#es-nud,
#es-eqd,
#es-sgd,
#es-btd {
  padding-left: 56px !important;
  box-sizing: border-box !important;
}

#es-cd,
.es-coach-hub,
.es-pres-suite {
  padding-left: 0 !important;
}

.es-pd-rail {
  position: fixed !important;
  top: 86px !important;
  left: 0 !important;
  width: 56px !important;
  height: calc(100vh - 86px) !important;
  min-height: calc(100vh - 86px) !important;
  box-sizing: border-box !important;
  z-index: 50 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

body:not(.es-player-on) .es-pd-rail,
#user-dossier-view-group[style*="display: none"] .es-pd-rail,
#user-dossier-view-group[hidden] .es-pd-rail,
#view-tc-panel:not([style*="display: none"]) ~ #user-dossier-view-group .es-pd-rail,
body:has(#view-tc-panel:not([style*="display: none"])) .es-pd-rail {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.es-pd-rail::-webkit-scrollbar {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .es-pd,
  .es-pd:has(.es-pd-rail),
  #es-pd,
  #es-dsd,
  #es-gd,
  #es-obsd,
  #es-tfd,
  #es-mad,
  #es-med,
  #es-gkd,
  #es-atd,
  #es-ygd,
  #es-dgd,
  #es-agd,
  #es-mkd,
  #es-nud,
  #es-eqd,
  #es-sgd,
  #es-btd {
    padding-left: 0 !important;
  }

  .es-pd-rail {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 0.45rem 0.75rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
    z-index: 25 !important;
  }
}

/* ==========================================================================
   HERO REFINEMENT & NAVBAR ENHANCEMENTS (v20260925_HEROUX1)
   ========================================================================== */

/* 1. Rimozione forzata badge scudo cookie e dock verifica email su schermata Home */
.elisee-cookie-badge-btn,
#elisee-cookie-settings-btn {
  display: none !important;
}

#view-home:not([hidden]) ~ #es-otp-bottom-banner,
body[data-active-view="home"] #es-otp-bottom-banner {
  display: none !important;
}

/* 2. Menu a tendina navbar compatto ed elegante */
/* 2. Menu a tendina navbar compatto ed elegante */
.portfolio-navbar,
.portfolio-nav,
.nav-menu {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.es-nav-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.portfolio-nav .nav-link + .es-nav-dropdown {
  border-left: 1px solid rgba(226, 232, 240, 0.35);
  margin-left: 0.35rem;
  padding-left: 0.45rem;
}

.es-nav-dropdown-trigger {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px !important;
  color: rgba(226, 232, 240, 0.85) !important;
  font-weight: 500;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.28rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap !important;
  transition: color 0.18s ease, background 0.18s ease;
}

.es-nav-dropdown-trigger:hover,
.es-nav-dropdown:hover .es-nav-dropdown-trigger,
.es-nav-dropdown:focus-within .es-nav-dropdown-trigger,
.es-nav-dropdown.is-open .es-nav-dropdown-trigger {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

.es-nav-caret {
  transition: transform 0.2s ease;
  opacity: 0.7;
  pointer-events: none;
}

.es-nav-dropdown:hover .es-nav-caret,
.es-nav-dropdown:focus-within .es-nav-caret,
.es-nav-dropdown.is-open .es-nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.es-nav-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  transform: none !important;
  min-width: 165px !important;
  width: max-content !important;
  max-width: 220px !important;
  background: rgba(10, 15, 26, 0.98) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.12) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
  padding: 0.35rem !important;
  display: none !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 999999 !important;
}

.es-nav-dropdown:hover .es-nav-dropdown-menu,
.es-nav-dropdown:focus-within .es-nav-dropdown-menu,
.es-nav-dropdown.is-open .es-nav-dropdown-menu {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0);
}

.es-nav-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.45rem 0.65rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #cbd5e1 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.es-nav-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

.es-nav-item-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.es-nav-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

.es-nav-item-text small,
.es-nav-item-desc,
.portfolio-nav small,
.nav-menu small,
header small,
.portfolio-navbar small {
  display: none !important;
}

.portfolio-nav-right,
.nav-auth-actions,
.nav-auth-actions-inner {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

/* 3. Hero Section Spacing, Contrasto e Layout a 2 Colonne */
.es-hero-about-split {
  display: grid;
  grid-template-columns: minmax(0, 46rem);
  gap: 3.5rem;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.es-hero-heading {
  margin: 0.6rem 0 1.75rem 0 !important;
  font-size: clamp(2rem, 4vw, 3.1rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
}

.es-hero-desc {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: #e2e8f0 !important; /* Contrasto elevato rispetto a #94a3b8 */
  max-width: 620px !important;
  margin-bottom: 2rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Call to Action Chiari e Moderni */
.es-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.es-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  color: #030712 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 1.6rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4), 0 0 12px rgba(56, 189, 248, 0.25) !important;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.es-cta-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.55), 0 0 18px rgba(56, 189, 248, 0.4) !important;
}

.es-cta-bolt {
  font-size: 1.1rem;
  line-height: 1;
}

.es-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.7) !important;
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.es-cta-btn-secondary:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.es-hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.es-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.es-trust-badge svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* 5. Card Giocatore d'Esempio Realistica e Spettacolare */
.es-hero-card-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.es-hero-player-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(170deg, rgba(15, 23, 42, 0.94) 0%, rgba(6, 11, 24, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.15);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.es-hero-player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(56, 189, 248, 0.25);
}

/* Angoli decorativi HUD */
.es-card-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #38bdf8;
  border-style: solid;
  pointer-events: none;
}
.bracket-tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.bracket-tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.bracket-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.bracket-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

/* Top Header Card */
.es-player-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.es-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  color: #34d399;
  letter-spacing: 0.04em;
}

.es-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: esDotPulse 2s infinite ease-in-out;
}

@keyframes esDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.es-card-id-tag {
  font-size: 0.68rem;
  color: #64748b;
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* Visual Atleta */
.es-player-card-visual {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.es-player-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.es-player-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 11, 24, 0.85) 85%, rgba(6, 11, 24, 0.98) 100%);
  pointer-events: none;
}

/* Chip OVR e GPS */
.es-card-ovr-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.es-ovr-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}

.es-ovr-pos {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.es-ovr-flag {
  font-size: 0.75rem;
  line-height: 1;
  margin-top: 2px;
}

.es-card-gps-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(3, 7, 18, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.es-gps-icon {
  font-size: 1rem;
  color: #38bdf8;
}

.es-gps-text {
  display: flex;
  flex-direction: column;
}

.es-gps-text strong {
  font-size: 0.8rem;
  color: #f8fafc;
  line-height: 1.1;
}

.es-gps-text small {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Body Card */
.es-player-card-body {
  padding-top: 0.85rem;
}

.es-card-player-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.03em;
}

.es-card-player-role {
  font-size: 0.78rem;
  color: #38bdf8;
  margin: 0.2rem 0 0.85rem 0;
  font-weight: 500;
}

/* Griglia Statistiche 6 Box */
.es-card-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.55rem 0.35rem;
  margin-bottom: 0.85rem;
  text-align: center;
}

.es-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-n {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-l {
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* Footer Card */
.es-player-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.es-card-cert-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.es-cert-check {
  color: #34d399;
  font-weight: bold;
}

.es-card-dossier-btn {
  width: 100%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.es-card-dossier-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .es-hero-about-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .es-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .es-hero-cta-group {
    justify-content: center;
  }
  .es-hero-trust-badges {
    justify-content: center;
  }
}

/* ==========================================================================
   LIGHT MODE: HERO, TEXT CONTRAST & PLAYER CARD (mimetico-chiaro)
   ========================================================================== */

/* 1. Assoluto blocco overlay e scudo a prescindere dal tema */
.elisee-cookie-badge-btn,
#elisee-cookie-settings-btn,
#es-otp-bottom-banner {
  display: none !important;
}

/* 2. Hero & Chi siamo in Light Mode */
html[data-theme="mimetico-chiaro"] #hero,
html[data-theme="mimetico-chiaro"] #home-about,
html[data-theme="mimetico-chiaro"] .portfolio-about,
[data-theme="mimetico-chiaro"] .portfolio-about {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html[data-theme="mimetico-chiaro"] .es-hero-heading,
html[data-theme="mimetico-chiaro"] .portfolio-heading,
[data-theme="mimetico-chiaro"] .es-hero-heading,
[data-theme="mimetico-chiaro"] .portfolio-heading {
  color: #0f172a !important;
  text-shadow: none !important;
}

/* Testo descrittivo ad alto contrasto in Light Mode (grigio scuro nitido #334155 / #1e293b) */
html[data-theme="mimetico-chiaro"] .es-hero-desc,
html[data-theme="mimetico-chiaro"] .portfolio-text,
[data-theme="mimetico-chiaro"] .es-hero-desc,
[data-theme="mimetico-chiaro"] .portfolio-text {
  color: #334155 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-kicker,
[data-theme="mimetico-chiaro"] .portfolio-kicker {
  color: #0284c7 !important;
}

/* Call to Action in Light Mode */
html[data-theme="mimetico-chiaro"] .es-cta-btn-primary,
[data-theme="mimetico-chiaro"] .es-cta-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(2, 132, 199, 0.4) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="mimetico-chiaro"] .es-cta-btn-primary:hover,
[data-theme="mimetico-chiaro"] .es-cta-btn-primary:hover {
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.5) !important;
}

html[data-theme="mimetico-chiaro"] .es-cta-btn-secondary,
[data-theme="mimetico-chiaro"] .es-cta-btn-secondary {
  background: #ffffff !important;
  border: 1.5px solid #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="mimetico-chiaro"] .es-cta-btn-secondary:hover,
[data-theme="mimetico-chiaro"] .es-cta-btn-secondary:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0369a1 !important;
}

html[data-theme="mimetico-chiaro"] .es-trust-badge,
[data-theme="mimetico-chiaro"] .es-trust-badge {
  color: #475569 !important;
  font-weight: 600 !important;
}

html[data-theme="mimetico-chiaro"] .es-trust-badge svg,
[data-theme="mimetico-chiaro"] .es-trust-badge svg {
  color: #0284c7 !important;
}

/* 3. Card Giocatore Uniformata in Light Mode */
html[data-theme="mimetico-chiaro"] .es-hero-player-card,
[data-theme="mimetico-chiaro"] .es-hero-player-card {
  background: linear-gradient(170deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08), 0 0 24px rgba(2, 132, 199, 0.06) !important;
}

html[data-theme="mimetico-chiaro"] .es-hero-player-card:hover,
[data-theme="mimetico-chiaro"] .es-hero-player-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 0 35px rgba(2, 132, 199, 0.12) !important;
}

html[data-theme="mimetico-chiaro"] .es-card-bracket,
[data-theme="mimetico-chiaro"] .es-card-bracket,
.es-card-bracket {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

html[data-theme="mimetico-chiaro"] .es-verified-pill,
[data-theme="mimetico-chiaro"] .es-verified-pill {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #047857 !important;
  font-weight: 700 !important;
}

html[data-theme="mimetico-chiaro"] .es-card-id-tag,
[data-theme="mimetico-chiaro"] .es-card-id-tag {
  color: #64748b !important;
}

html[data-theme="mimetico-chiaro"] .es-player-card-visual,
[data-theme="mimetico-chiaro"] .es-player-card-visual {
  border-color: rgba(226, 232, 240, 0.9) !important;
  background: #f1f5f9 !important;
}

html[data-theme="mimetico-chiaro"] .es-player-card-shade,
[data-theme="mimetico-chiaro"] .es-player-card-shade {
  background: linear-gradient(180deg, transparent 40%, rgba(248, 250, 252, 0.82) 85%, #f8fafc 100%) !important;
}

html[data-theme="mimetico-chiaro"] .es-card-ovr-badge,
[data-theme="mimetico-chiaro"] .es-card-ovr-badge {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="mimetico-chiaro"] .es-ovr-val,
[data-theme="mimetico-chiaro"] .es-ovr-val {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .es-ovr-pos,
[data-theme="mimetico-chiaro"] .es-ovr-pos {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .es-card-gps-badge,
[data-theme="mimetico-chiaro"] .es-card-gps-badge {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="mimetico-chiaro"] .es-gps-icon,
[data-theme="mimetico-chiaro"] .es-gps-icon {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .es-gps-text strong,
[data-theme="mimetico-chiaro"] .es-gps-text strong {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .es-gps-text small,
[data-theme="mimetico-chiaro"] .es-gps-text small {
  color: #64748b !important;
}

html[data-theme="mimetico-chiaro"] .es-card-player-name,
[data-theme="mimetico-chiaro"] .es-card-player-name {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .es-card-player-role,
[data-theme="mimetico-chiaro"] .es-card-player-role {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .es-card-stats-grid,
[data-theme="mimetico-chiaro"] .es-card-stats-grid {
  background: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
}

html[data-theme="mimetico-chiaro"] .stat-n,
[data-theme="mimetico-chiaro"] .stat-n {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .stat-l,
[data-theme="mimetico-chiaro"] .stat-l {
  color: #64748b !important;
}

html[data-theme="mimetico-chiaro"] .es-card-cert-row,
[data-theme="mimetico-chiaro"] .es-card-cert-row {
  color: #475569 !important;
}

html[data-theme="mimetico-chiaro"] .es-card-dossier-btn,
[data-theme="mimetico-chiaro"] .es-card-dossier-btn {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .es-card-dossier-btn:hover,
[data-theme="mimetico-chiaro"] .es-card-dossier-btn:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   HEROUX42: FULL HOMEPAGE & PUBLIC PAGES LIGHT MODE SUITE
   ========================================================================== */

/* 1. Sfondo e Sezioni dell'intera Homepage */
html[data-theme="mimetico-chiaro"] body,
[data-theme="mimetico-chiaro"] body,
html[data-theme="mimetico-chiaro"] #view-home,
[data-theme="mimetico-chiaro"] #view-home,
html[data-theme="mimetico-chiaro"] .portfolio-section,
[data-theme="mimetico-chiaro"] .portfolio-section {
  background: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] #hero,
[data-theme="mimetico-chiaro"] #hero,
html[data-theme="mimetico-chiaro"] #home-about,
[data-theme="mimetico-chiaro"] #home-about,
html[data-theme="mimetico-chiaro"] .portfolio-about,
[data-theme="mimetico-chiaro"] .portfolio-about,
html[data-theme="mimetico-chiaro"] #home-portfolio,
[data-theme="mimetico-chiaro"] #home-portfolio,
html[data-theme="mimetico-chiaro"] .portfolio-works,
[data-theme="mimetico-chiaro"] .portfolio-works {
  background: #ffffff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="mimetico-chiaro"] #home-resume,
[data-theme="mimetico-chiaro"] #home-resume,
html[data-theme="mimetico-chiaro"] .portfolio-resume,
[data-theme="mimetico-chiaro"] .portfolio-resume,
html[data-theme="mimetico-chiaro"] #welcome-access,
[data-theme="mimetico-chiaro"] #welcome-access,
html[data-theme="mimetico-chiaro"] .portfolio-access,
[data-theme="mimetico-chiaro"] .portfolio-access {
  background: #f8fafc !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* 2. Titoli, Kicker e Testi ad alto contrasto */
html[data-theme="mimetico-chiaro"] .portfolio-heading,
[data-theme="mimetico-chiaro"] .portfolio-heading {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-kicker,
[data-theme="mimetico-chiaro"] .portfolio-kicker {
  color: #0284c7 !important;
  font-weight: 700 !important;
  letter-spacing: 0.25em !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-text,
[data-theme="mimetico-chiaro"] .portfolio-text,
html[data-theme="mimetico-chiaro"] .portfolio-text-center,
[data-theme="mimetico-chiaro"] .portfolio-text-center {
  color: #334155 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* 3. Statistiche Resume (Curriculum) */
html[data-theme="mimetico-chiaro"] .portfolio-stat,
[data-theme="mimetico-chiaro"] .portfolio-stat {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-stat strong,
[data-theme="mimetico-chiaro"] .portfolio-stat strong {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-stat span,
[data-theme="mimetico-chiaro"] .portfolio-stat span {
  color: #64748b !important;
  font-weight: 600 !important;
}

/* 4. Pulsanti Outline Pill in Light Mode */
html[data-theme="mimetico-chiaro"] .btn-outline-pill,
[data-theme="mimetico-chiaro"] .btn-outline-pill {
  border: 1.5px solid #0284c7 !important;
  color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="mimetico-chiaro"] .btn-outline-pill:hover,
[data-theme="mimetico-chiaro"] .btn-outline-pill:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: #0369a1 !important;
  color: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.16) !important;
}

/* 5. Card Bacheca (Cosa puoi fare sulla piattaforma) */
html[data-theme="mimetico-chiaro"] .portfolio-card,
[data-theme="mimetico-chiaro"] .portfolio-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-card:hover,
[data-theme="mimetico-chiaro"] .portfolio-card:hover {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12) !important;
  transform: translateY(-4px) !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-card h3,
[data-theme="mimetico-chiaro"] .portfolio-card h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-card p,
[data-theme="mimetico-chiaro"] .portfolio-card p {
  color: #475569 !important;
  font-weight: 500 !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-card-icon,
[data-theme="mimetico-chiaro"] .portfolio-card-icon {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
}

/* 6. Sezione Accesso e Bottoni Auth */
html[data-theme="mimetico-chiaro"] .auth-btn-google,
[data-theme="mimetico-chiaro"] .auth-btn-google {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid rgba(15, 23, 42, 0.15) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="mimetico-chiaro"] .auth-btn-apple,
[data-theme="mimetico-chiaro"] .auth-btn-apple {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="mimetico-chiaro"] .auth-btn-apple svg,
[data-theme="mimetico-chiaro"] .auth-btn-apple svg {
  fill: #ffffff !important;
}

html[data-theme="mimetico-chiaro"] .auth-btn-spid,
[data-theme="mimetico-chiaro"] .auth-btn-spid {
  background: #0066cc !important;
  color: #ffffff !important;
  border: 1.5px solid #0052a3 !important;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.22) !important;
}

html[data-theme="mimetico-chiaro"] .auth-btn-email,
[data-theme="mimetico-chiaro"] .auth-btn-email {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid rgba(15, 23, 42, 0.25) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="mimetico-chiaro"] .portfolio-visual img,
[data-theme="mimetico-chiaro"] .portfolio-visual img {
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
  filter: none !important;
}

/* 7. Footer Globale in Light Mode */
html[data-theme="mimetico-chiaro"] #site-public-footer,
[data-theme="mimetico-chiaro"] #site-public-footer,
html[data-theme="mimetico-chiaro"] .site-footer,
[data-theme="mimetico-chiaro"] .site-footer,
html[data-theme="mimetico-chiaro"] .pf-footer,
[data-theme="mimetico-chiaro"] .pf-footer {
  background: transparent !important;
  background-color: transparent !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-brand span,
[data-theme="mimetico-chiaro"] .pf-footer-brand span {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-brand span span,
[data-theme="mimetico-chiaro"] .pf-footer-brand span span {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-heading,
[data-theme="mimetico-chiaro"] .pf-footer-heading {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-links a,
[data-theme="mimetico-chiaro"] .pf-footer-links a {
  color: #475569 !important;
  font-weight: 500 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-links a:hover,
[data-theme="mimetico-chiaro"] .pf-footer-links a:hover {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-links li,
[data-theme="mimetico-chiaro"] .pf-footer-links li {
  color: #64748b !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-social a,
[data-theme="mimetico-chiaro"] .pf-footer-social a {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-social a:hover,
[data-theme="mimetico-chiaro"] .pf-footer-social a:hover {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-bottom,
[data-theme="mimetico-chiaro"] .pf-footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-bottom a,
[data-theme="mimetico-chiaro"] .pf-footer-bottom a {
  color: #64748b !important;
  font-weight: 500 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-bottom a:hover,
[data-theme="mimetico-chiaro"] .pf-footer-bottom a:hover {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-back-top,
[data-theme="mimetico-chiaro"] .pf-footer-back-top {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="mimetico-chiaro"] .pf-footer-back-top:hover,
[data-theme="mimetico-chiaro"] .pf-footer-back-top:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* 8. Sezione Chi Siamo Dettaglio (#view-about) in Light Mode */
html[data-theme="mimetico-chiaro"] #view-about,
[data-theme="mimetico-chiaro"] #view-about {
  background: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .chi-siamo-container,
[data-theme="mimetico-chiaro"] .chi-siamo-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .chi-siamo-header h1,
[data-theme="mimetico-chiaro"] .chi-siamo-header h1 {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .chi-siamo-container .content p,
[data-theme="mimetico-chiaro"] .chi-siamo-container .content p {
  color: #334155 !important;
}

html[data-theme="mimetico-chiaro"] .about-dossier,
[data-theme="mimetico-chiaro"] .about-dossier {
  background: #ffffff !important;
}

html[data-theme="mimetico-chiaro"] .cs-headline,
[data-theme="mimetico-chiaro"] .cs-headline {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .cs-lede,
[data-theme="mimetico-chiaro"] .cs-lede {
  color: #334155 !important;
}

html[data-theme="mimetico-chiaro"] .cs-hero-meta dl,
[data-theme="mimetico-chiaro"] .cs-hero-meta dl {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="mimetico-chiaro"] .cs-hero-meta dt,
[data-theme="mimetico-chiaro"] .cs-hero-meta dt {
  color: #64748b !important;
}

html[data-theme="mimetico-chiaro"] .cs-hero-meta dd,
[data-theme="mimetico-chiaro"] .cs-hero-meta dd {
  color: #0f172a !important;
}

/* ==========================================================================
   ISOLAMENTO SIDEBAR: SOLO DASHBOARD PRIVATE (NIENTE SULLA LANDING PAGE)
   ========================================================================== */
#view-home:not([hidden]) ~ * .es-sb-hover,
#view-home:not([hidden]) ~ * .es-pro-sidebar,
body.is-public-landing .es-sb-hover,
body.is-public-landing .es-pro-sidebar,
body.is-public-landing .es-obs-sidebar,
body.is-public-landing .es-modern-sidebar,
body.is-public-landing .es-cos-sidebar,
body.is-public-landing .es-at-sidebar,
body.is-public-landing .es-med-sidebar,
body.is-public-landing .es-gk-sidebar,
body.is-public-landing .es-ma-sidebar,
body.is-public-landing [id$="-sidebar"],
body.is-public-landing [class*="-sidebar"],
body.is-public-landing #es-trash,
body.is-public-landing #es-share,
body:has(#hero:not([hidden])) .es-sb-hover,
body:has(#hero:not([hidden])) .es-pro-sidebar,
body:has(#hero:not([hidden])) [class*="-sidebar"],
body:has(#hero:not([hidden])) #es-trash,
body:has(#hero:not([hidden])) #es-share,
body:has(#view-home:not([hidden])) .es-sb-hover,
body:has(#view-home:not([hidden])) .es-pro-sidebar,
body:has(#view-home:not([hidden])) [class*="-sidebar"],
body:has(#view-home:not([hidden])) #es-trash,
body:has(#view-home:not([hidden])) #es-share,
#hero .es-sb-hover,
#hero .es-pro-sidebar,
#hero [class*="-sidebar"],
#view-home .es-sb-hover,
#view-home .es-pro-sidebar,
#view-home [class*="-sidebar"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateX(-9999px) !important;
}

/* ==========================================================================
   RESET GLOBALE HEADER & NAVBAR (Punto 1: Reset d'Emergenza nel CSS Globale)
   ========================================================================== */
/* 1. Blocca l'Header principale */
header.public-header, .navbar, nav, .public-header, .public-navbar {
  box-sizing: border-box !important;
  max-height: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  overflow: hidden !important; /* Impedisce al contenuto di uscire fuori */
}

/* 2. Disattiva il wrap per tutti i contenitori di navigazione */
header.public-header *, .navbar *, .public-header * {
  box-sizing: border-box;
}

.nav-container, .nav-menu, .main-nav, header.public-header nav, .public-header nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* VIETA di andare a capo */
  min-width: 0 !important;      /* Impedisce l'espansione fantasma dei flex item */
}

/* 3. Componente Header Pubblico (.public-header) - Grid a 3 colonne centratura assoluta */
.public-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 40px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  background-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

.public-header .brand-logo,
.public-header .nav-logo,
.public-header .logo {
  justify-self: start !important;
  display: flex !important;
  align-items: center !important;
}

.public-header .main-nav,
.public-header .nav-links,
.public-header .nav-menu {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.public-header .header-actions,
.public-header .nav-actions,
.public-header .nav-right {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

html[data-theme="mimetico-chiaro"] .public-header {
  background-color: transparent !important;
  border-bottom: none !important;
}

.public-header .brand-logo a {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

html[data-theme="mimetico-chiaro"] .public-header .brand-logo a {
  color: #0f172a !important;
}

.public-header .brand-logo a span {
  color: #38bdf8;
}

.public-header .main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  margin: 0 auto !important;
}

.public-header .main-nav a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap !important;
}

html[data-theme="mimetico-chiaro"] .public-header .main-nav a {
  color: #334155 !important;
}

.public-header .main-nav a:hover {
  color: #38bdf8 !important;
}

.public-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}


.public-header .header-actions .lang {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

html[data-theme="mimetico-chiaro"] .public-header .header-actions .lang {
  color: #334155;
}

.public-header .header-actions .btn-login,
.public-header .header-actions .accedi {
  background: #0e1830 !important;
  color: #ffffff !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform .22s cubic-bezier(.34,1.4,.4,1), box-shadow .22s ease, background .22s ease !important;
  white-space: nowrap !important;
}

.public-header .header-actions .btn-login:hover,
.public-header .header-actions .accedi:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(14,24,48,.22) !important;
  background: #182444 !important;
}

/* === FIX LINEA NAVBAR: deve stare PER ULTIMO === */
header.public-header.public-navbar.main-header.portfolio-header,
header.public-header,
header.public-navbar,
header.main-header,
header.portfolio-header,
.public-header.public-navbar.main-header,
.public-navbar,
.public-header,
.main-header,
.portfolio-header {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.is-internal-view header.public-header.public-navbar.main-header.portfolio-header,
body.is-internal-view header.public-header,
body.is-internal-view header.main-header,
body.is-internal-view .portfolio-header {
  background: transparent !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* l'hero deve arrivare sotto la navbar, non partire 64px dopo */
#hero,
.hero-section,
.hero-section.hero-portfolio,
.hero-portfolio,
main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* il titolo non deve finire sotto i 64px della barra */
#hero .hero-portfolio-stage,
.hero-section.hero-portfolio .hero-portfolio-stage {
  padding-top: 88px !important;
}

/* Se dopo lo scroll vuoi di nuovo uno sfondo, solo allora: */
header.public-header.is-scrolled {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* il glow deve partire DAL TOP del viewport, non da metà hero */
.es-plx {
  position: absolute !important;
  inset: 0 !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  background-position: 50% 0 !important;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%,
      rgba(56, 189, 248, 0.38) 0%,
      rgba(14, 58, 77, 0.22) 42%,
      transparent 70%),
    linear-gradient(
      180deg,
      #07131c 0%,
      #0a3040 42%,
      #050608 100%
    ) !important;
}

/* stesso nero-blu di partenza su tutta la colonna in Dark Mode */
html:not([data-theme="mimetico-chiaro"]),
html:not([data-theme="mimetico-chiaro"]) body,
html:not([data-theme="mimetico-chiaro"]) main,
html:not([data-theme="mimetico-chiaro"]) #app,
html:not([data-theme="mimetico-chiaro"]) #view-home,
html:not([data-theme="mimetico-chiaro"]) #hero,
html:not([data-theme="mimetico-chiaro"]) .hero-section,
html:not([data-theme="mimetico-chiaro"]) .hero-portfolio,
html:not([data-theme="mimetico-chiaro"]) .hero-section.hero-portfolio {
  background: #07131c !important;
}

/* ============================================================
   LIGHT MODE DEFINITIVO PER LA SCHERMATA INIZIALE (#hero)
   ============================================================ */
html[data-theme="mimetico-chiaro"],
html[data-theme="mimetico-chiaro"] body,
html[data-theme="mimetico-chiaro"] main,
html[data-theme="mimetico-chiaro"] #app,
html[data-theme="mimetico-chiaro"] #view-home,
html[data-theme="mimetico-chiaro"] #hero,
html[data-theme="mimetico-chiaro"] .hero-section,
html[data-theme="mimetico-chiaro"] .hero-portfolio,
html[data-theme="mimetico-chiaro"] .hero-section.hero-portfolio,
[data-theme="mimetico-chiaro"] #hero,
[data-theme="mimetico-chiaro"] .hero-section,
[data-theme="mimetico-chiaro"] .hero-portfolio {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Overlay sfumato per la schermata iniziale in Light Mode */
html[data-theme="mimetico-chiaro"] .es-plx,
[data-theme="mimetico-chiaro"] .es-plx {
  background: #ffffff !important;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%,
      rgba(2, 132, 199, 0.08) 0%,
      rgba(240, 249, 255, 0.6) 42%,
      transparent 70%),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fafc 100%
    ) !important;
  opacity: 1 !important;
}

/* Annullamento totale di glow / vignetta / ombre scure su Hero in Light Mode */
html[data-theme="mimetico-chiaro"] .hero-typography-left::before,
[data-theme="mimetico-chiaro"] .hero-typography-left::before,
html[data-theme="light"] .hero-typography-left::before,
[data-theme="light"] .hero-typography-left::before,
html[data-theme="mimetico-chiaro"] #hero::before,
[data-theme="mimetico-chiaro"] #hero::before,
html[data-theme="mimetico-chiaro"] #hero::after,
[data-theme="mimetico-chiaro"] #hero::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Tipografia della Schermata Iniziale (#hero) in Light Mode */
html[data-theme="mimetico-chiaro"] .hero-typography-left h1,
html[data-theme="mimetico-chiaro"] .hero-name,
[data-theme="mimetico-chiaro"] .hero-typography-left h1,
[data-theme="mimetico-chiaro"] .hero-name {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="mimetico-chiaro"] .hero-name-bold,
[data-theme="mimetico-chiaro"] .hero-name-bold {
  color: #0284c7 !important;
  text-shadow: none !important;
}

html[data-theme="mimetico-chiaro"] .hero-typography-left .title-sub,
html[data-theme="mimetico-chiaro"] .hero-role,
[data-theme="mimetico-chiaro"] .hero-typography-left .title-sub,
[data-theme="mimetico-chiaro"] .hero-role {
  color: #475569 !important;
  font-weight: 600 !important;
  letter-spacing: 0.28em !important;
  text-shadow: none !important;
}

/* Pulsanti Hero in Light Mode */
html[data-theme="mimetico-chiaro"] #hero .btn-outline-pill,
[data-theme="mimetico-chiaro"] #hero .btn-outline-pill {
  border: 1.5px solid #0284c7 !important;
  background: #ffffff !important;
  color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12) !important;
}

html[data-theme="mimetico-chiaro"] #hero .btn-outline-pill:hover,
[data-theme="mimetico-chiaro"] #hero .btn-outline-pill:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28) !important;
}

/* Header in Light Mode sia a scroll 0 che scrollato */
html[data-theme="mimetico-chiaro"] header.public-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="mimetico-chiaro"] body:not(.is-internal-view) header.public-header:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.8) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="mimetico-chiaro"] header.public-header .site-brand {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] header.public-header .site-brand span {
  color: #0284c7 !important;
  text-shadow: none !important;
}

html[data-theme="mimetico-chiaro"] header.public-header .nav-link,
html[data-theme="mimetico-chiaro"] header.public-header .nav-item-title {
  color: #334155 !important;
}

html[data-theme="mimetico-chiaro"] header.public-header .nav-link:hover,
html[data-theme="mimetico-chiaro"] header.public-header .nav-item-title:hover {
  color: #0284c7 !important;
}

html[data-theme="mimetico-chiaro"] header.public-header .nav-dropdown-btn,
html[data-theme="mimetico-chiaro"] header.public-header .lang {
  color: #334155 !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}


html[data-theme="mimetico-chiaro"] header.public-header .nav-indicator {
  background: linear-gradient(90deg, #0284c7, #0ea5e9) !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.3) !important;
}


/* ============================================================
   ES-NAV-UX: Tokens & Component Coordination
   ============================================================ */
:root {
  --nav-h: 64px;
  --bg-0: #07131c;
  --accent: #38bdf8;
  --text: rgba(255, 255, 255, 0.88);
  --text-dim: rgba(255, 255, 255, 0.62);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 240ms;
}

/* ==========================================================================
   GLOW CARDS: Spotlight Cursor-Tracking Cards
   ========================================================================== */
.glow-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0 40px;
  margin: 0 auto;
  max-width: 1100px;
}

.glow-card {
  position: relative;
  width: 300px;
  min-height: 260px;
  border-radius: 16px;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: left;
  isolation: isolate;
}

.glow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.glow-card::before {
  content: "";
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.glow-card:hover::before {
  opacity: 1;
}

/* Colore del bagliore per ogni card */
.glow-card--blue::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38), transparent 70%);
}
.glow-card--gold::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.42), transparent 70%);
}
.glow-card--red::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.42), transparent 70%);
}

.glow-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glow-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.glow-badge--blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.glow-badge--gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.glow-badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.glow-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.glow-title {
  font-family: var(--font-heading, inherit);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.glow-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.glow-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.glow-card--gold .glow-cta { color: #fbbf24; }
.glow-card--red .glow-cta { color: #f87171; }

.glow-card:hover .glow-cta {
  transform: translateX(4px);
}

/* Light Mode Support per Glow Cards */
html[data-theme="mimetico-chiaro"] .glow-card,
[data-theme="mimetico-chiaro"] .glow-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="mimetico-chiaro"] .glow-card:hover,
[data-theme="mimetico-chiaro"] .glow-card:hover {
  border-color: rgba(15, 23, 42, 0.2) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="mimetico-chiaro"] .glow-title,
[data-theme="mimetico-chiaro"] .glow-title {
  color: #0f172a !important;
}

html[data-theme="mimetico-chiaro"] .glow-desc,
[data-theme="mimetico-chiaro"] .glow-desc {
  color: #475569 !important;
}

html[data-theme="mimetico-chiaro"] .glow-card--blue::before {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.22), transparent 70%);
}
html[data-theme="mimetico-chiaro"] .glow-card--gold::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.22), transparent 70%);
}
html[data-theme="mimetico-chiaro"] .glow-card--red::before {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22), transparent 70%);
}
/* ============================================================
   HEROUX60: Parentesi Decorative Sottili Hero & Sezioni
   ============================================================ */
.hero-bracket {
  background: none !important;
  border: none !important;
  width: 28px !important;
  height: 90px !important;
  pointer-events: none;
}
.hero-bracket--left {
  border-left: 2px solid #2fe0c8 !important;
  border-top: 2px solid #2fe0c8 !important;
  border-bottom: 2px solid #2fe0c8 !important;
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}
.hero-bracket--right {
  border-right: 2px solid #2fe0c8 !important;
  border-top: 2px solid #2fe0c8 !important;
  border-bottom: 2px solid #2fe0c8 !important;
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* Link «Legal» del footer (app.js openBadgeInfoModal) */
/* La finestra (#candidate-modal) è scura in entrambi i temi: colori fissi per il contrasto. */
.es-legal-sheet {
  max-width: 460px;
  margin: 0 auto;
  padding: 0.25rem;
  background: transparent;
  color: #e2e8f0;
}
.es-legal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--es-ctrl-accent, #38bdf8);
  font-weight: 600;
}
.es-legal-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.es-legal-body,
.es-legal-links {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.es-legal-links a {
  color: var(--es-ctrl-accent, #38bdf8);
}
.es-legal-actions {
  display: flex;
  justify-content: flex-end;
}
.es-legal-close {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}
.es-legal-close:focus-visible {
  outline: 2px solid var(--es-ctrl-accent, #38bdf8);
  outline-offset: 2px;
}

/* Recupero password (password-reset.js) */
.es-reset-btn {
  margin-top: 10px;
}
.es-reset-hint {
  margin: 6px 0 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}
.es-reset-msg {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #f08a8a;
}
.es-reset-msg.is-ok {
  color: var(--es-ctrl-accent, #38bdf8);
}
.es-reset-msg[hidden],
.es-reset [hidden] {
  display: none;
}

/* Curriculum con i dati reali del profilo (curriculum-view.js) */
.cv-guest {
  max-width: 640px;
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.cv-guest-title {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}
.cv-guest-text,
.cv-text,
.cv-note {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
}
.cv-text.is-empty {
  font-style: italic;
  opacity: 0.75;
}
.cv-note {
  margin: 0;
  font-size: 0.85rem;
}
.cv-real-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cv-guest[hidden],
.cv-owner[hidden],
.cv-hero-role-pill[hidden],
.cv-hero-sub[hidden] {
  display: none;
}

/* ============================================================
   Banner cookie (cookie-profiling.js) — prefisso es-ck-
   ============================================================ */
.es-ck-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 1rem 2rem;
  background: rgba(5, 6, 8, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.es-ck-banner.is-open { display: block; }
.es-ck-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.es-ck-inner--prefs { display: block; padding: 0.75rem 0; }
.es-ck-text { flex: 1; min-width: 260px; }
.es-ck-text p { color: #e2e8f0; font-size: 0.88rem; margin: 0; line-height: 1.55; }
.es-ck-text strong { color: #38bdf8; }
.es-ck-text a,
.es-ck-link { color: #38bdf8; text-decoration: underline; }
.es-ck-link { font-size: 0.8rem; }
.es-ck-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }
.es-ck-prefs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.es-ck-title { color: #e2e8f0; font-size: 0.9rem; margin: 0; font-weight: 700; }
.es-ck-checks { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.es-ck-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; color: #e2e8f0; font-size: 0.82rem; }
.es-ck-check input { accent-color: #38bdf8; }
.es-ck-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.es-ck-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.es-ck-btn--primary { padding: 0.6rem 1.4rem; font-weight: 800; color: #fff; border: none; background: linear-gradient(90deg, #0284c7, #38bdf8); }
.es-ck-btn--soft { font-weight: 700; color: #38bdf8; background: rgba(2, 132, 199, 0.2); border-color: rgba(56, 189, 248, 0.45); }
.es-ck-btn--outline { font-weight: 700; color: #38bdf8; border-color: rgba(56, 189, 248, 0.45); }
.es-ck-btn--small { padding: 0.35rem 0.75rem; font-size: 0.75rem; border-radius: 8px; border-color: rgba(148, 163, 184, 0.35); }
.es-ck-btn--done {
  cursor: default;
  font-weight: 800;
  color: #052e16;
  border: none;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 45%, #16a34a 100%);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}
.es-ck-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow-y: auto;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.es-ck-modal.is-open { display: block; }
.es-ck-modal-box {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  color: #e2e8f0;
  background: linear-gradient(160deg, #070d1c, #0a1328);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.es-ck-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.es-ck-modal-head h2 { margin: 0; color: #38bdf8; font-size: 1.25rem; }
.es-ck-modal-body { font-size: 0.88rem; line-height: 1.65; color: #cbd5e1; }
.es-ck-modal-body a { color: #38bdf8; }
@media (max-width: 600px) {
  .es-ck-banner { padding: 0.9rem 1rem; }
}

/* Stili spostati da index.html (prima scritti nel codice) */
.es-ix-1.es-ix-1.es-ix-1 {
  width:14px;
  height:14px;
}
.es-ix-2.es-ix-2.es-ix-2 {
  text-align:left;
  margin:0 0 0.6rem;
}
.es-ix-3.es-ix-3.es-ix-3 {
  max-width:520px;
  margin:2rem auto;
  background:linear-gradient(160deg, #070d1c 0%, #0a1328 100%);
  border:1.5px solid rgba(56,189,248,0.5);
  border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(2,132,199,0.2);
  padding:0;
  overflow:hidden;
  animation: slideUpModal 0.35s ease;
}
.es-ix-4.es-ix-4.es-ix-4 {
  background:linear-gradient(135deg, rgba(2,132,199,0.5), rgba(56,189,248,0.2));
  padding:1.75rem 2rem;
  position:relative;
  text-align:center;
  border-bottom:1px solid rgba(56,189,248,0.25);
}
.es-ix-5.es-ix-5.es-ix-5 {
  display:block;
  margin:0 auto 0.65rem;
  width:64px;
  height:64px;
  object-fit:contain;
  border:none;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
.es-ix-6.es-ix-6.es-ix-6 {
  color:#ffffff;
  font-size:1.5rem;
  font-weight:900;
  margin:0 0 0.35rem;
}
.es-ix-7.es-ix-7.es-ix-7 {
  color:#94a3b8;
  font-size:0.87rem;
  margin:0;
}
.es-ix-8.es-ix-8.es-ix-8 {
  position:absolute;
  top:1rem;
  right:1.2rem;
  background:rgba(255,255,255,0.1);
  border:none;
  color:#94a3b8;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:1rem;
  cursor:pointer;
  line-height:32px;
}
.es-ix-9.es-ix-9.es-ix-9 {
  padding:1.75rem 2rem;
}
.es-ix-10.es-ix-10.es-ix-10 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.75rem;
  margin-bottom:1.25rem;
}
.es-ix-11.es-ix-11.es-ix-11 {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.65rem;
  padding:0.75rem 1rem;
  border-radius:10px;
  background:#ffffff;
  color:#0f172a;
  font-weight:700;
  font-size:0.88rem;
  border:none;
  cursor:pointer;
}
.es-ix-12.es-ix-12.es-ix-12 {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.65rem;
  padding:0.75rem 1rem;
  border-radius:10px;
  background:rgba(255,255,255,0.07);
  color:#ffffff;
  font-weight:700;
  font-size:0.88rem;
  border:1.5px solid rgba(255,255,255,0.25);
  cursor:pointer;
}
.es-ix-13.es-ix-13.es-ix-13 {
  margin:0 0 0.75rem;
  color:#e2e8f0;
  font-size:0.86rem;
  line-height:1.4;
}
.es-ix-14.es-ix-14.es-ix-14 {
  display:block;
  color:#94a3b8;
  font-size:0.75rem;
  font-weight:700;
  margin-bottom:0.3rem;
}
.es-ix-15.es-ix-15.es-ix-15 {
  width:100%;
  box-sizing:border-box;
  padding:0.65rem 0.8rem;
  border-radius:8px;
  border:1.5px solid rgba(56,189,248,0.3);
  background:#0b1222;
  color:#fff;
  margin-bottom:0.55rem;
}
.es-ix-16.es-ix-16.es-ix-16 {
  width:100%;
  box-sizing:border-box;
  padding:0.65rem 0.8rem;
  border-radius:8px;
  border:1.5px solid rgba(56,189,248,0.3);
  background:#0b1222;
  color:#fff;
  margin-bottom:0.7rem;
}
.es-ix-17.es-ix-17.es-ix-17 {
  width:100%;
  padding:0.7rem;
  border:0;
  border-radius:9px;
  background:linear-gradient(180deg,#f4fcff,#7dd3fc);
  color:#082033;
  font-weight:800;
  cursor:pointer;
}
.es-ix-18.es-ix-18.es-ix-18 {
  display:flex;
  align-items:center;
  gap:0.75rem;
  margin-bottom:1.25rem;
}
.es-ix-19.es-ix-19.es-ix-19 {
  flex:1;
  border-color:rgba(56,189,248,0.2);
}
.es-ix-20.es-ix-20.es-ix-20 {
  color:#64748b;
  font-size:0.8rem;
  white-space:nowrap;
}
.es-ix-21.es-ix-21.es-ix-21 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.75rem;
  margin-bottom:0.75rem;
}
.es-ix-22.es-ix-22.es-ix-22 {
  display:block;
  color:#94a3b8;
  font-size:0.78rem;
  font-weight:600;
  margin-bottom:0.35rem;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.es-ix-23.es-ix-23.es-ix-23 {
  width:100%;
  padding:0.7rem 0.9rem;
  border-radius:9px;
  background:#0b1222;
  border:1.5px solid rgba(56,189,248,0.3);
  color:#ffffff;
  font-size:0.9rem;
  box-sizing:border-box;
  outline:none;
}
.es-ix-24.es-ix-24.es-ix-24 {
  margin-bottom:0.75rem;
}
.es-ix-25.es-ix-25.es-ix-25 {
  width:100%;
  padding:0.7rem 0.9rem;
  border-radius:9px;
  background:#0b1222;
  border:1.5px solid rgba(56,189,248,0.3);
  color:#ffffff;
  font-size:0.9rem;
  box-sizing:border-box;
  outline:none;
  color-scheme:dark;
}
.es-ix-26.es-ix-26.es-ix-26 {
  margin-top:0.5rem;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.25rem;
}
.es-ix-27.es-ix-27.es-ix-27 {
  font-size:0.72rem;
  color:#8a93a3;
}
.es-ix-28.es-ix-28.es-ix-28 {
  display:flex;
  flex-direction:column;
  gap:0.55rem;
  margin-bottom:1.2rem;
}
.es-ix-29.es-ix-29.es-ix-29 {
  display:flex;
  align-items:flex-start;
  gap:0.65rem;
  cursor:pointer;
}
.es-ix-30.es-ix-30.es-ix-30 {
  margin-top:3px;
  accent-color:#38bdf8;
  width:16px;
  height:16px;
  cursor:pointer;
}
.es-ix-31.es-ix-31.es-ix-31 {
  color:#94a3b8;
  font-size:0.8rem;
  line-height:1.5;
}
.es-ix-32.es-ix-32.es-ix-32 {
  color:#38bdf8;
}
.es-ix-33.es-ix-33.es-ix-33 {
  display:flex;
  align-items:flex-start;
  gap:0.65rem;
  cursor:pointer;
  background:rgba(167,139,250,0.08);
  border:1px solid rgba(167,139,250,0.3);
  border-radius:10px;
  padding:0.65rem 0.7rem;
}
.es-ix-34.es-ix-34.es-ix-34 {
  margin-top:3px;
  accent-color:#a78bfa;
  width:16px;
  height:16px;
  cursor:pointer;
}
.es-ix-35.es-ix-35.es-ix-35 {
  color:#c4b5fd;
  font-size:0.8rem;
  line-height:1.5;
}
.es-ix-36.es-ix-36.es-ix-36 {
  color:#e9d5ff;
}
.es-ix-37.es-ix-37.es-ix-37 {
  width:100%;
  padding:1rem;
  background:linear-gradient(135deg,#0284c7,#38bdf8);
  border:none;
  border-radius:12px;
  color:#ffffff;
  font-weight:900;
  font-size:1rem;
  cursor:pointer;
  letter-spacing:0.05em;
  box-shadow:0 8px 25px rgba(2,132,199,0.45);
  transition:opacity 0.2s;
}
.es-ix-38.es-ix-38.es-ix-38 {
  text-align:center;
  color:#64748b;
  font-size:0.78rem;
  margin-top:1rem;
  margin-bottom:0;
}
.es-ix-39.es-ix-39.es-ix-39 {
  color:#38bdf8;
  font-weight:700;
}
.es-ix-40.es-ix-40.es-ix-40 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.45rem;
}
.es-ix-41.es-ix-41.es-ix-41 {
  width:100%;
  height:48px;
}
.es-ix-42.es-ix-42.es-ix-42 {
  margin:0;
}
.es-ix-43.es-ix-43.es-ix-43 {
  margin-top:14px;
}
.es-ix-44.es-ix-44.es-ix-44 {
  text-align:left;
}
.es-ix-45.es-ix-45.es-ix-45 {
  margin-top:8px;
}
.es-ix-46.es-ix-46.es-ix-46 {
  margin:8px 0;
}
.es-ix-47.es-ix-47.es-ix-47 {
  border:none !important;
  border-bottom:none !important;
  box-shadow:none !important;
  outline:none !important;
}
.es-ix-48.es-ix-48.es-ix-48 {
  padding:0.25rem 0.6rem;
  font-size:0.75rem;
  height:32px;
  min-height:32px;
}
.es-ix-49.es-ix-49.es-ix-49 {
  cursor:pointer;
}
.es-ix-50.es-ix-50.es-ix-50 {
  justify-content:center;
  margin-top:2rem;
}
.es-ix-51.es-ix-51.es-ix-51 {
  padding: 4.5rem 0;
}
.es-ix-52.es-ix-52.es-ix-52 {
  margin-bottom: 2rem;
}
.es-ix-53.es-ix-53.es-ix-53 {
  margin-top:1.5rem;
}
.es-ix-54.es-ix-54.es-ix-54 {
  min-width: 170px;
}
.es-ix-55.es-ix-55.es-ix-55 {
  margin-bottom: 2px;
}
.es-ix-56.es-ix-56.es-ix-56 {
  border-color:var(--es-accent,#00d285);
  color:var(--es-accent,#00d285);
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.es-ix-57.es-ix-57.es-ix-57 {
  background:#0b1d4a;
}
.es-ix-58.es-ix-58.es-ix-58 {
  background:linear-gradient(90deg,#0b1d4a 0 14%,#1e90ff 14% 28%,#0b1d4a 28% 42%,#1e90ff 42% 56%,#0b1d4a 56% 70%,#1e90ff 70% 84%,#0b1d4a 84%);
}
.es-ix-59.es-ix-59.es-ix-59 {
  background-image: url('immagini/stadi/city-foggia.jpg');
}
.es-ix-60.es-ix-60.es-ix-60 {
  max-width:720px;
}
.es-ix-61.es-ix-61.es-ix-61 {
  margin-top:1.1rem;
}
.es-ix-62.es-ix-62.es-ix-62 {
  color: #3b7dff;
}
.es-ix-63.es-ix-63.es-ix-63 {
  margin-top: 14px;
  margin-bottom: 18px;
}
.es-ix-64.es-ix-64.es-ix-64 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #8a93a3;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0.01em;
}
.es-ix-65.es-ix-65.es-ix-65 {
  margin-top: 2px;
  accent-color: #3b7dff;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.es-ix-66.es-ix-66.es-ix-66 {
  color: #3b7dff;
  text-decoration: underline;
}
.es-ix-67.es-ix-67.es-ix-67 {
  width: 100%;
  background: #3b7dff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-bottom: 14px;
}
.es-ix-68.es-ix-68.es-ix-68 {
  font-size: 12px;
  color: #8a93a3;
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid #1e2430;
  margin-top: 14px;
}
.es-ix-69.es-ix-69.es-ix-69 {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #10141d;
  border: 1px solid #1e2430;
  border-radius: 12px;
}
.es-ix-70.es-ix-70.es-ix-70 {
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}
.es-ix-71.es-ix-71.es-ix-71 {
  margin: 0 auto 16px;
  color: #8a93a3;
  display: block;
}
.es-ix-72.es-ix-72.es-ix-72 {
  font-size: 13px;
  color: #8a93a3;
  line-height: 1.6;
  margin: 0;
}
.es-ix-73.es-ix-73.es-ix-73 {
  margin:0 auto 1.25rem;
}
.es-ix-74.es-ix-74.es-ix-74 {
  text-align:center;
}
.es-ix-75.es-ix-75.es-ix-75 {
  text-align:center;
  font-size:1.75rem;
}
.es-ix-76.es-ix-76.es-ix-76 {
  text-align:center;
  margin:0 auto 1.5rem;
}
.es-ix-77.es-ix-77.es-ix-77 {
  margin-top:0.35rem;
}
.es-ix-78.es-ix-78.es-ix-78 {
  text-transform:none;
  letter-spacing:0;
  font-size:0.82rem;
  color:#94a3b8;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  cursor:pointer;
}
.es-ix-79.es-ix-79.es-ix-79 {
  accent-color:var(--accent-primary);
}
.es-ix-80.es-ix-80.es-ix-80 {
  width:100%;
  margin-top:0.5rem;
}
.es-ix-81.es-ix-81.es-ix-81 {
  width:16px;
  height:16px;
}
.es-ix-82.es-ix-82.es-ix-82 {
  --i:0;
}
.es-ix-83.es-ix-83.es-ix-83 {
  --i:1;
}
.es-ix-84.es-ix-84.es-ix-84 {
  --i:2;
}
.es-ix-85.es-ix-85.es-ix-85 {
  --i:3;
}
.es-ix-86.es-ix-86.es-ix-86 {
  --i:4;
}
.es-ix-87.es-ix-87.es-ix-87 {
  font-size:clamp(1.6rem,3vw,2.2rem);
}
.es-ix-88.es-ix-88.es-ix-88 {
  width:100%;
}
.es-ix-89.es-ix-89.es-ix-89 {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:0.5rem;
}
.es-ix-90.es-ix-90.es-ix-90 {
  margin-bottom:0.1rem;
}
.es-ix-91.es-ix-91.es-ix-91 {
  font-size:0.85rem;
  color:#38bdf8;
  font-weight:bold;
}
.es-ix-92.es-ix-92.es-ix-92 {
  display:inline-block;
  margin-left:0.5rem;
}
.es-ix-93.es-ix-93.es-ix-93 {
  font-size:0.85rem;
  color:#cbd5e1;
  font-style:italic;
  margin:0.5rem 0 0.8rem 0;
  line-height:1.4;
}
.es-ix-94.es-ix-94.es-ix-94 {
  margin-top:1.25rem;
}
.es-ix-95.es-ix-95.es-ix-95 {
  display:inline-block;
}
.es-ix-96.es-ix-96.es-ix-96 {
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
  margin-top:0.75rem;
}
.es-ix-97.es-ix-97.es-ix-97 {
  width:14px;
  height:14px;
  color:#f59e0b;
}
.es-ix-98.es-ix-98.es-ix-98 {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.es-ix-99.es-ix-99.es-ix-99 {
  margin-left:auto;
  background:transparent;
  border-color:rgba(56,189,248,0.3);
  color:#38bdf8;
}
.es-ix-100.es-ix-100.es-ix-100 {
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
}
.es-ix-101.es-ix-101.es-ix-101 {
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:rgba(148,163,184,.8);
}
.es-ix-102.es-ix-102.es-ix-102 {
  --score: 9.8;
}
.es-ix-103.es-ix-103.es-ix-103 {
  width:98%;
}
.es-ix-104.es-ix-104.es-ix-104 {
  --score: 7.4;
}
.es-ix-105.es-ix-105.es-ix-105 {
  width:74%;
}
.es-ix-106.es-ix-106.es-ix-106 {
  --score: 6.1;
}
.es-ix-107.es-ix-107.es-ix-107 {
  width:61%;
}
.es-ix-108.es-ix-108.es-ix-108 {
  text-align:center;
  margin-top:24px;
}
.es-ix-109.es-ix-109.es-ix-109 {
  padding:10px 24px;
  border-radius:9999px;
  background:#ff2d55;
  color:#fff;
  font-weight:700;
  font-size:13px;
  display:inline-block;
  cursor:pointer;
}
.es-ix-110.es-ix-110.es-ix-110 {
  padding:10px 24px;
  border-radius:9999px;
  background:#00f5d4;
  color:#000;
  font-weight:800;
  font-size:13px;
  display:inline-block;
  cursor:pointer;
}
.es-ix-111.es-ix-111.es-ix-111 {
  padding:16px;
}
.es-ix-112.es-ix-112.es-ix-112 {
  width:100%;
  padding:14px 20px;
  background:rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:9999px;
  color:#fff;
  font-size:14px;
  box-sizing:border-box;
}
.es-ix-113.es-ix-113.es-ix-113 {
  padding:16px 20px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.es-ix-114.es-ix-114.es-ix-114 {
  margin:0;
  color:#00f5d4;
  font-size:16px;
}
.es-ix-115.es-ix-115.es-ix-115 {
  color:#00f5d4;
  margin-bottom:8px;
}
.es-ix-116.es-ix-116.es-ix-116 {
  color:#bbb;
  margin:0;
}
.es-ix-117.es-ix-117.es-ix-117 {
  color:#00f5d4;
  font-size:28px;
  margin:0;
  font-weight:800;
  letter-spacing:-0.5px;
}
.es-ix-118.es-ix-118.es-ix-118 {
  color:#00f5d4;
  text-align:center;
  margin-bottom:40px;
  font-size:28px;
  font-weight:800;
}
.es-ix-119.es-ix-119.es-ix-119 {
  margin:0 0 0.35rem;
}
.es-ix-120.es-ix-120.es-ix-120 {
  max-width: 520px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(10, 15, 25, 0.95);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}
.es-ix-121.es-ix-121.es-ix-121 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent-primary);
  font-size: 2rem;
}
.es-ix-122.es-ix-122.es-ix-122 {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.es-ix-123.es-ix-123.es-ix-123 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.es-ix-124.es-ix-124.es-ix-124 {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.es-ix-125.es-ix-125.es-ix-125 {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: bold;
  width: 100%;
}
.es-ix-126.es-ix-126.es-ix-126 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #04060a;
  position: relative;
}
.es-ix-127.es-ix-127.es-ix-127 {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: #080a0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  flex-shrink: 0;
}
.es-ix-128.es-ix-128.es-ix-128 {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.es-ix-129.es-ix-129.es-ix-129 {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}
.es-ix-130.es-ix-130.es-ix-130 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}
.es-ix-131.es-ix-131.es-ix-131 {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: bold;
}
.es-ix-132.es-ix-132.es-ix-132 {
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}
.es-ix-133.es-ix-133.es-ix-133 {
  font-weight: bold;
  padding: 0.55rem 1.25rem;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
}
.es-ix-134.es-ix-134.es-ix-134 {
  flex: 1;
  overflow-y: auto !important;
  padding: 2.5rem 1rem 5rem 1rem;
  display: flex;
  justify-content: center;
  background: #04060a;
  -webkit-overflow-scrolling: touch;
}
.es-ix-135.es-ix-135.es-ix-135 {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  min-height: max-content;
}
.es-ix-136.es-ix-136.es-ix-136 {
  max-width:480px;
}
.es-ix-137.es-ix-137.es-ix-137 {
  text-align:center;
  margin-bottom:1.25rem;
}
.es-ix-138.es-ix-138.es-ix-138 {
  width:48px;
  height:48px;
  color:#38bdf8;
}
.es-ix-139.es-ix-139.es-ix-139 {
  text-align:center;
  font-size:1.4rem;
  color:#fff;
  margin-bottom:0.75rem;
}
.es-ix-140.es-ix-140.es-ix-140 {
  text-align:center;
  color:#94a3b8;
  font-size:0.88rem;
  margin-bottom:1.5rem;
}
.es-ix-141.es-ix-141.es-ix-141 {
  resize:vertical;
}
.es-ix-142.es-ix-142.es-ix-142 {
  display:flex;
  gap:0.75rem;
  justify-content:flex-end;
  margin-top:1.25rem;
}
.es-ix-143.es-ix-143.es-ix-143 {
  max-width:520px;
}
.es-ix-144.es-ix-144.es-ix-144 {
  width:48px;
  height:48px;
  color:#f59e0b;
}
.es-ix-145.es-ix-145.es-ix-145 {
  width:18px;
  height:18px;
}
.es-ix-146.es-ix-146.es-ix-146 {
  width:20px;
  height:20px;
}
.es-ix-147.es-ix-147.es-ix-147 {
  font-size:0.8rem;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#38bdf8;
  margin-bottom:0.5rem;
}
.es-ix-148.es-ix-148.es-ix-148 {
  font-size:1.45rem;
  font-weight:900;
  color:#fff;
  margin-bottom:0.5rem;
  font-family:'Outfit', sans-serif;
}
.es-ix-149.es-ix-149.es-ix-149 {
  font-size:0.88rem;
  color:#94a3b8;
  margin-bottom:1rem;
}
.es-ix-150.es-ix-150.es-ix-150 {
  display:flex;
  gap:0.75rem;
  justify-content:center;
}
.es-ix-151.es-ix-151.es-ix-151 {
  max-width:400px;
  text-align:center;
}
.es-ix-152.es-ix-152.es-ix-152 {
  margin-bottom:1.25rem;
}
.es-ix-153.es-ix-153.es-ix-153 {
  width:48px;
  height:48px;
  color:#ef4444;
}
.es-ix-154.es-ix-154.es-ix-154 {
  font-size:1.3rem;
  color:#fff;
  margin-bottom:0.5rem;
}
.es-ix-155.es-ix-155.es-ix-155 {
  color:#94a3b8;
  font-size:0.88rem;
  margin-bottom:1.5rem;
}
.es-ix-156.es-ix-156.es-ix-156 {
  border-color:rgba(239,68,68,0.5);
  color:#ef4444;
}
.es-ix-157.es-ix-157.es-ix-157 {
  color:#94a3b8;
  margin-bottom:0.1rem;
}
.es-ix-158.es-ix-158.es-ix-158 {
  font-weight:700;
  color:#38bdf8;
}
.es-ix-159.es-ix-159.es-ix-159 {
  --gap: 2px;
}
.es-ix-160.es-ix-160.es-ix-160 {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}
.es-ix-161.es-ix-161.es-ix-161 {
  font-size:16px;
  margin:0;
  color:#fff;
}
.es-ix-162.es-ix-162.es-ix-162 {
  background:none;
  border:none;
  color:#888;
  font-size:18px;
  cursor:pointer;
}
.es-ix-163.es-ix-163.es-ix-163 {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.es-ix-164.es-ix-164.es-ix-164 {
  border:none;
  text-align:center;
}
.es-ix-165.es-ix-165.es-ix-165 {
  border-radius:9999px;
}
.es-ix-166.es-ix-166.es-ix-166 {
  margin-top:20px;
  padding:8px 20px;
  border-radius:9999px;
  background:#ff2d55;
  color:#fff;
  font-weight:700;
  font-size:13px;
  text-align:center;
  cursor:pointer;
}
.es-ix-167.es-ix-167.es-ix-167 {
  margin-top:16px;
}
