/* =========================================================
   CENTRO IMPIEGO DIGITALE — styles.css  (v=16)
   Include: notifiche, area candidature, ticket system,
            zoom immagini, empty state overlay, footer
            Piattaforma nazionale - responsive
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root{
  --blue:        #0066CC;
  --blue-dark:   #004f9e;
  --blue-deep:   #0a3a70;
  --blue-nav:    #0b2e5c;
  --blue-light:  #e8f0fa;
  --cyan:        #00A3E0;
  --gold:        #E5BA50;
  --gold-dark:   #b58621;
  --gold-bg:     #fdf6e3;
  --gold-border: #f0d9a1;
  --bg:          #F4F7FA;
  --surface:     #ffffff;
  --text:        #1F2A37;
  --text-soft:   #334155;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --border-soft: #eef2f7;
  --green:       #15803d;
  --green-bg:    #e7f6ee;
  --red:         #b91c1c;
  --red-bg:      #fdecec;
  --red-strong:  #dc2626;
  --amber:       #b45309;
  --amber-bg:    #fdf3e3;
  --radius:      10px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 2px rgba(15,23,42,.05);
  --shadow:      0 4px 20px rgba(15,23,42,.07);
  --shadow-lg:   0 20px 50px rgba(15,23,42,.14);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --touch: 44px;
  --view-pt: 3.25rem;
  --view-pb: 4rem;
  --header-h: 72px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea{ color: var(--text); background-color: #fff; }
button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.2rem, 1rem + .9vw, 1.55rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
h4 { font-size: .97rem; font-weight: 600; }
p  { margin: 0 0 .75rem; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.req   { color: var(--blue); font-weight: 600; }

/* ---------- LAYOUT ---------- */
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2rem); }

.view > .container,
.view > .container.narrow{
  padding-top: var(--view-pt);
  padding-bottom: var(--view-pb);
}

.page-head{ margin-bottom: 2rem; }
.page-head h1{ margin-bottom: .4rem; }
.page-head p{ margin: 0; }

/* ---------- BUTTONS ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .72rem 1.35rem; border: 1px solid transparent;
  border-radius: 8px; font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  line-height: 1; min-height: var(--touch);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{ background: var(--blue); color: #fff; }
.btn-primary:hover{ background: var(--blue-dark); box-shadow: 0 6px 16px rgba(0,102,204,.25); }

.btn-outline{ background: #fff; color: var(--blue); border-color: #c7dcf3; }
.btn-outline:hover{ background: var(--blue-light); border-color: var(--blue); }

.btn-ghost{ background: transparent; color: var(--muted); }
.btn-ghost:hover{ background: rgba(15,23,42,.05); color: var(--text); }

.btn-danger{ background: var(--red-bg); color: var(--red); }
.btn-danger:hover{ background: #fbd9d6; }

.btn-success{ background: var(--green-bg); color: var(--green); }
.btn-success:hover{ background: #d3efdf; }

.btn-warning{ background: var(--amber-bg); color: var(--amber); border: 1px solid #fcd34d; }
.btn-warning:hover{ background: #fde68a; }

.btn-sm{ padding: .5rem .9rem; font-size: .8rem; min-height: 38px; }
.btn-block{ width: 100%; }

/* ---------- HEADER ---------- */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(135deg, #0a2d5c 0%, var(--blue) 100%);
  box-shadow: 0 2px 14px rgba(10,45,92,.22);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.logo{ display: flex; align-items: center; gap: .65rem; color: #fff; font-size: 1rem; font-weight: 500; min-width: 0; }
.logo:hover{ text-decoration: none; }
.logo-img{ height: 46px; width: auto; max-width: 220px; object-fit: contain; flex-shrink: 0; }
.logo-mark{ display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: linear-gradient(135deg, var(--cyan), #6fd0f0); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .04em; flex-shrink: 0; }
.logo-text{ color: #fff; font-weight: 500; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text strong{ color: #7cc4ff; font-weight: 700; }

.main-nav{ display: flex; align-items: center; gap: .35rem; }
.main-nav a{
  padding: .6rem .9rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.92);
  white-space: nowrap; transition: background .15s, color .15s;
}
.main-nav a:hover{ background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.main-nav a.nav-cta{ background: #fff; color: var(--blue); font-weight: 600; padding: .65rem 1.15rem; }
.main-nav a.nav-cta:hover{ background: #f0f7ff; color: var(--blue-dark); }
.main-nav a.nav-admin{ color: #ffd17a; font-weight: 600; }
.main-nav .btn-ghost{ color: rgba(255,255,255,.85); }
.main-nav .btn-ghost:hover{ background: rgba(255,255,255,.14); color: #fff; }

.burger{
  display: none; flex-direction: column; gap: 5px;
  width: var(--touch); height: var(--touch);
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
}
.burger span{ display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* =========================================================
   NOTIFICHE
   ========================================================= */
.notif-btn{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0 .15rem; padding: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px; color: #ffffff; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  flex-shrink: 0;
}
.notif-btn:hover{ background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.notif-btn:active{ transform: scale(.96); }

.notif-bell{ width: 22px; height: 22px; display: block; transform-origin: 50% 4px; }
.notif-btn.has-unread .notif-bell{ animation: bellRing 0.9s ease-in-out infinite; }

@keyframes bellRing{
  0%   { transform: rotate(0); }
  10%  { transform: rotate(18deg); }
  20%  { transform: rotate(-18deg); }
  30%  { transform: rotate(14deg); }
  40%  { transform: rotate(-14deg); }
  50%  { transform: rotate(10deg); }
  60%  { transform: rotate(-10deg); }
  70%  { transform: rotate(6deg); }
  80%  { transform: rotate(-6deg); }
  90%  { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}

.notif-badge{
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-strong); color: #ffffff;
  border: 2px solid #ffffff; border-radius: 999px;
  font-size: .68rem; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 6px rgba(220,38,38,.5);
  animation: badgePulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgePulse{
  0%, 100% { box-shadow: 0 2px 6px rgba(220,38,38,.5), 0 0 0 0 rgba(220,38,38,.6); }
  50%      { box-shadow: 0 2px 6px rgba(220,38,38,.5), 0 0 0 6px rgba(220,38,38,0); }
}

.notif-overlay{
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(2px);
  z-index: 90;
  animation: overlayFade .2s ease-out;
}

.notif-panel{
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: max(1rem, calc((100vw - 1200px) / 2 + 1rem));
  width: min(420px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - var(--header-h) - 24px));
  background: #ffffff;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15,23,42,.22);
  z-index: 100; display: flex; flex-direction: column;
  overflow: hidden; animation: notifPop .18s ease-out;
}
@keyframes notifPop{
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-panel-head{
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border); background: #f8fafc;
}
.notif-panel-head h3{ margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.notif-mark-all{
  background: transparent; border: none; color: var(--blue);
  font-size: .78rem; font-weight: 600; padding: .35rem .55rem;
  border-radius: 6px; cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.notif-mark-all:hover{ background: var(--blue-light); color: var(--blue-dark); }

.notif-list{ overflow-y: auto; flex: 1; padding: .5rem 0; -webkit-overflow-scrolling: touch; }

.notif-item{
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .9rem 1.15rem; cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
  position: relative;
}
.notif-item:hover{ background: #f8fafc; }
.notif-item.is-unread{ background: #f0f7ff; border-left-color: var(--blue); }
.notif-item.is-unread:hover{ background: #e5efff; }

.notif-icon{
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
}
.notif-icon svg{ width: 20px; height: 20px; display: block; }
.notif-icon.icon-application{ background: #e7f6ee; color: var(--green); }
.notif-icon.icon-confirm{ background: var(--blue-light); color: var(--blue); }
.notif-icon.icon-warning{ background: var(--amber-bg); color: var(--amber); }

.notif-body{ min-width: 0; flex: 1; }
.notif-title{ font-size: .88rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem; line-height: 1.3; word-break: break-word; }
.notif-message{ font-size: .82rem; color: var(--text-soft); margin: 0; line-height: 1.5; word-break: break-word; }
.notif-time{ font-size: .72rem; color: var(--muted); margin-top: .35rem; font-weight: 500; letter-spacing: .02em; }

.notif-empty{ padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); font-size: .88rem; }
.notif-empty-icon{
  width: 48px; height: 48px; margin: 0 auto .75rem;
  display: grid; place-items: center;
  background: var(--blue-light); color: var(--blue); border-radius: 12px;
}
.notif-empty-icon svg{ width: 24px; height: 24px; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative; color: #fff;
  padding: 3.75rem 0 4.25rem; overflow: hidden;
  background-color: #0a3a70; min-height: 480px;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg img{ width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero > .container{ position: relative; z-index: 1; }

.hero-eyebrow{
  display: inline-block; text-transform: uppercase;
  letter-spacing: .14em; font-size: .7rem; font-weight: 600;
  color: #ffffff; background: rgba(0,0,0,.28);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.hero-title{ color: #fff; margin-bottom: .5rem; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-sub{ color: #fff; margin-bottom: 1.75rem; font-size: 1rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

.search-bar{
  display: grid; grid-template-columns: 2fr 1.2fr 1fr auto;
  gap: .75rem; background: #fff;
  padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); align-items: end;
}
.field{ display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label{ font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select{
  padding: .72rem .9rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; background-color: #fff;
  color: var(--text); outline: none; font-size: .92rem; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
  width: 100%; min-height: var(--touch);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder{ color: #9aa8b8; font-weight: 400; opacity: 1; }
.field input:focus, .field select:focus{ border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.15); }
.field-btn{ min-width: auto; }
.btn-search{ height: var(--touch); padding-inline: 1.75rem; }

.hero-chips{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip{
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.35);
  color: #fff; padding: .45rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500; min-height: 34px;
  backdrop-filter: blur(6px); text-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: .15s;
}
.chip:hover{ background: rgba(0,0,0,.42); border-color: #fff; }

.results-head{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.results-head h2{ margin: 0; }
.results-tools{ display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.results-count{ font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.sort-label{ font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; font-weight: 500; }
.sort-label select{
  padding: .5rem .65rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text);
  font-size: .85rem; font-weight: 500; min-height: 40px;
}

.jobs-wrapper{ position: relative; margin-bottom: .5rem; }
.jobs-wrapper.jobs-locked .job-grid{
  filter: blur(9px) saturate(.9); opacity: .85;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  transition: filter .35s ease, opacity .35s ease;
}
.jobs-overlay{
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.1rem;
  text-align: center; padding: 2.5rem 1.5rem; z-index: 10;
  background: linear-gradient(180deg,
    rgba(244,247,250,.55) 0%,
    rgba(244,247,250,.82) 50%,
    rgba(244,247,250,.55) 100%);
  backdrop-filter: blur(1px); border-radius: var(--radius);
  animation: overlayFade .35s ease-out;
}
@keyframes overlayFade{ from { opacity: 0; } to { opacity: 1; } }
.jobs-overlay-text{
  margin: 0; font-size: .95rem; font-weight: 500; color: var(--text);
  max-width: 420px; line-height: 1.6; text-shadow: 0 1px 3px rgba(255,255,255,.7);
}

.btn-pulse{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.25rem; background: var(--blue); color: #ffffff;
  border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700; letter-spacing: .02em; line-height: 1;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,102,204,.35);
  animation: btnPulse 1.9s ease-in-out infinite;
  transition: background .15s, transform .1s, box-shadow .15s;
  min-height: var(--touch);
}
.btn-pulse:hover{ background: var(--blue-dark); transform: translateY(-1px); animation-play-state: paused; box-shadow: 0 10px 28px rgba(0,79,158,.45); }
.btn-pulse:active{ transform: translateY(1px); }
@keyframes btnPulse{
  0%, 100% { box-shadow: 0 8px 24px rgba(0,102,204,.35), 0 0 0 0 rgba(0,102,204,.55); }
  50%      { box-shadow: 0 8px 24px rgba(0,102,204,.35), 0 0 0 16px rgba(0,102,204,0); }
}

.load-more-wrap{ display: flex; justify-content: center; align-items: center; padding: 1.75rem 0 .5rem; }
.btn-load-more{
  padding: .85rem 2rem; font-size: .92rem; border-radius: 999px; border-width: 2px;
  background: #fff; color: var(--blue); border-color: #c7dcf3;
  font-weight: 700; letter-spacing: .01em;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn-load-more:hover{ background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 20px rgba(0,102,204,.28); transform: translateY(-1px); }
.btn-load-more:active{ transform: translateY(1px); }

/* ---------- JOB CARDS ---------- */
.job-grid{ display: grid; gap: 1rem; }
.job-card{
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 1.2rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.job-card:hover{ box-shadow: var(--shadow); border-color: #c7d9ee; transform: translateY(-2px); }

.job-logo{
  width: 60px; height: 60px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), #d8e8f8);
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid #d5e3f2;
}
.job-logo img{ width: 100%; height: 100%; object-fit: cover; }
.job-logo span{ font-weight: 700; color: var(--blue); font-size: 1.02rem; letter-spacing: .02em; }

.job-main{ min-width: 0; }
.job-title-row{ display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0 0 .25rem; }
.job-title-row h3,
.job-title-row .job-title{ margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.job-title-row h3 a,
.job-title-row .job-title a{ color: var(--text); }
.job-title-row h3 a:hover,
.job-title-row .job-title a:hover{ color: var(--blue); text-decoration: none; }

.job-company{ display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 500; color: var(--muted); font-size: .86rem; margin-bottom: .55rem; }

.job-meta{ display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .8rem; color: var(--muted); margin: 0 0 .65rem; font-weight: 500; }
.job-meta > span + span::before{ content: '·'; margin-right: .75rem; color: #b8c2cf; }
.job-meta .salary-highlight{ color: var(--blue-dark); font-weight: 600; }

.job-desc{
  font-size: .87rem; color: var(--text-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-weight: 400;
}

.job-actions{ display: flex; flex-direction: column; gap: .5rem; align-items: stretch; justify-content: center; min-width: 130px; }

.fav-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; min-height: 38px; padding: .5rem .9rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  color: var(--muted); font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.fav-btn svg{ width: 16px; height: 16px; display: block; flex-shrink: 0; }
.fav-btn:hover{ border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.fav-btn.is-active{ background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(0,102,204,.3); }
.fav-btn.is-active:hover{ background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.badge{
  display: inline-block; padding: .25rem .7rem; border-radius: 6px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  white-space: nowrap;
}
.badge-pending  { background: var(--amber-bg); color: var(--amber); }
.badge-approved { background: var(--green-bg); color: var(--green); }
.badge-rejected { background: var(--red-bg);   color: var(--red); }
.badge-info     { background: var(--blue-light); color: var(--blue); }
.badge-agency   { background: #f3e8fd; color: #6b21a8; }
.badge-new      { background: #fce7f3; color: #be185d; }

/* ---------- BADGE AZIENDA PLUS ---------- */
.plus-tag,
span.plus-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  padding: .3rem .75rem .3rem .6rem !important;
  background: #E5BA50 !important;
  background-color: #E5BA50 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(229,186,80,.45) !important;
  vertical-align: middle !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  text-decoration: none !important;
  border: none !important;
}
.plus-tag svg{ width: 12px !important; height: 12px !important; flex-shrink: 0 !important; display: block !important; color: #ffffff !important; fill: #ffffff !important; }
.plus-tag > span{ display: inline-block !important; color: #ffffff !important; font-size: inherit !important; }

.plus-toggle{
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border: none; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.plus-toggle svg{ width: 12px; height: 12px; flex-shrink: 0; display: block; }
.plus-toggle.is-on{ background: var(--gold); color: #ffffff; animation: plusPulse 2s ease-in-out infinite; }
.plus-toggle.is-on:hover{ transform: scale(1.05); box-shadow: 0 6px 16px rgba(229,186,80,.5); }
.plus-toggle.is-off{ background: #eef2f7; color: #94a3b8; }
.plus-toggle.is-off:hover{ background: #e2e8f0; color: #64748b; }

@keyframes plusPulse{
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,186,80,.65); }
  50%      { box-shadow: 0 0 0 9px rgba(229,186,80,0); }
}

/* ---------- EMPTY STATE ---------- */
.empty-state{
  text-align: center; padding: 3.5rem 1.5rem;
  background: #fff; border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-icon{
  width: 52px; height: 52px; margin: 0 auto .85rem;
  color: var(--blue); display: grid; place-items: center;
  background: var(--blue-light); border-radius: 12px;
}
.empty-icon svg{ width: 26px; height: 26px; }

/* =========================================================
   EMPTY STATE CON OVERLAY + CTA (v16)
   ========================================================= */
.empty-state.empty-with-overlay {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
}

.empty-state-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state.empty-locked .empty-state-inner > .empty-icon,
.empty-state.empty-locked .empty-state-inner > h3,
.empty-state.empty-locked .empty-state-inner > p {
  filter: blur(4px);
  opacity: .55;
  user-select: none;
  -webkit-user-select: none;
  transition: filter .35s ease, opacity .35s ease;
  pointer-events: none;
}

.empty-state.empty-locked::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg,
    rgba(244,247,250,.35) 0%,
    rgba(244,247,250,.75) 50%,
    rgba(244,247,250,.35) 100%);
  border-radius: var(--radius);
  pointer-events: none;
}

.empty-state.empty-locked .empty-state-inner > .btn-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
  filter: none;
  opacity: 1;
  margin: 0;
}

/* =========================================================
   FOOTER CONTACTS + MADE IN ITALY (v16)
   ========================================================= */
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-contacts li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  line-height: 1.4;
}
.footer-contact-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-contacts a {
  font-size: .87rem;
  color: var(--blue);
  font-weight: 600;
  word-break: break-word;
}
.footer-contacts a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.footer-made-in-italy {
  display: block;
  height: auto;
  width: auto;
  max-width: 130px;
  max-height: 55px;
  object-fit: contain;
  margin-top: .5rem;
}

/* ---------- LEGAL CARDS ---------- */
.legal-card{
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 2rem 2.25rem;
}
.legal-card h2{
  font-size: 1.1rem; font-weight: 700; color: var(--blue-deep);
  margin-top: 2rem; margin-bottom: .6rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-soft);
}
.legal-card h2:first-child{ margin-top: 0; }
.legal-card p{ font-size: .92rem; color: var(--text-soft); line-height: 1.7; margin-bottom: .85rem; font-weight: 400; }
.legal-card ul{ margin: 0 0 1rem; padding-left: 1.35rem; color: var(--text-soft); font-size: .92rem; line-height: 1.7; }
.legal-card ul li{ margin-bottom: .4rem; }
.legal-card a{ color: var(--blue); font-weight: 600; text-decoration: underline; }
.legal-card .legal-strong{ font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: .35rem; }
.legal-card em{ font-style: normal; color: var(--muted); font-weight: 500; }

/* ---------- CARDS & FORMS ---------- */
.card{
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.9rem;
}
.form-card{ margin-bottom: 1.5rem; }

.form-row{ display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-row label{ font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.form-row input, .form-row select, .form-row textarea{
  padding: .78rem .95rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); outline: none;
  width: 100%; font-size: .92rem; font-weight: 500;
  min-height: var(--touch);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input::placeholder,
.form-row textarea::placeholder{ color: #9aa8b8; font-weight: 400; opacity: 1; }
.form-row textarea{ resize: vertical; min-height: 120px; font-weight: 400; line-height: 1.55; padding-top: .85rem; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{ border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.14); }
.form-row input.invalid, .form-row select.invalid, .form-row textarea.invalid{ border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,.1); }
.form-row input[readonly]{ background: var(--bg); color: var(--muted); cursor: not-allowed; }
.form-row select:disabled{ background: var(--bg); color: #9aa8b8; cursor: not-allowed; }

.field-hint{ font-size: .75rem; color: var(--muted); font-weight: 500; line-height: 1.5; margin-top: .15rem; }
.field-hint em{ font-style: normal; color: var(--blue-dark); font-weight: 600; }

.form-section{
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 1.35rem 1.35rem .5rem; margin: 0 0 1.5rem; background: #fbfdff;
}
.form-section > legend{
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  padding: 0 .6rem; background: #fff; border-radius: 4px;
}

.check-row{
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .95rem 1rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 1rem; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: .88rem; line-height: 1.55;
}
.check-row:hover{ border-color: #c7d9ee; background: #fbfdff; }
.check-row input[type="checkbox"],
.check-row input[type="radio"]{
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-height: 20px;
  border: 2px solid var(--border);
  flex-shrink: 0; margin-top: .1rem; cursor: pointer;
  position: relative; transition: background .15s, border-color .15s; background: #fff;
}
.check-row input[type="checkbox"]{ border-radius: 5px; }
.check-row input[type="radio"]{ border-radius: 50%; }
.check-row input[type="checkbox"]:checked{ background: var(--blue); border-color: var(--blue); }
.check-row input[type="checkbox"]:checked::after{
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-row input[type="radio"]:checked{ border-color: var(--blue); background: #fff; }
.check-row input[type="radio"]:checked::after{
  content: ''; position: absolute; inset: 3px; background: var(--blue); border-radius: 50%;
}
.check-row input:focus-visible{ box-shadow: 0 0 0 3px rgba(0,102,204,.25); }
.check-row input.invalid{ border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
.check-row span{ flex: 1; }
.check-row strong{ font-weight: 700; }
.check-row a{ text-decoration: underline; font-weight: 600; }

.check-row-gdpr{ background: var(--blue-light); border-color: #c7dcf3; }
.check-row-gdpr:hover{ background: #dfeafa; }

.disclaimer-preview{ margin: 1rem 0; padding: 1rem 1.15rem; background: #f0f7ff; border-left: 3px solid var(--blue); border-radius: 6px; }
.disclaimer-preview-title{ font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin: 0 0 .5rem; }
.disclaimer-preview-text{ font-size: .82rem; color: var(--text-soft); margin: 0; line-height: 1.55; font-weight: 500; }

.job-disclaimer{
  margin-top: 1rem; padding: .9rem 1.05rem;
  background: #f8fafc; border: 1px solid var(--border-soft);
  border-radius: 8px; font-size: .78rem; color: var(--muted);
  line-height: 1.55; font-weight: 500;
}
.job-disclaimer strong{ display: block; color: var(--text-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }

.job-retribution{
  margin: 1.1rem 0; padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
  border: 1px solid #c7dcf3; border-radius: 8px;
}
.job-retribution-title{ font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin: 0 0 .5rem; }
.job-retribution-value{ font-size: 1.05rem; font-weight: 600; color: var(--blue-dark); margin: 0 0 .35rem; }
.job-retribution-meta{ font-size: .8rem; color: var(--text-soft); margin: 0; font-weight: 500; }

.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.15rem; }
.form-grid-3{ grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }

.geo-fieldset{
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem .25rem; margin: 0 0 1.15rem; background: #fff;
}
.geo-fieldset legend{ font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); padding: 0 .4rem; }
.geo-fieldset .form-row{ margin-bottom: 1rem; }

.form-actions{ display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .5rem; }
.file-input{ padding: .7rem; background: var(--bg); border-style: dashed; font-size: .85rem; min-height: auto; }

.preview{ margin-top: .6rem; max-height: 130px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: cover; }
.preview-wide{ max-height: 210px; width: 100%; }
.preview-avatar{
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.12); margin-top: .75rem;
}
.avatar-preview-wrap{ display: flex; }
.preview-avatar.square{ border-radius: 12px; }

.notice{ margin-top: 1rem; padding: 1rem 1.15rem; border-radius: 6px; font-size: .84rem; font-weight: 500; }
.notice-info{ background: var(--blue-light); border-left: 3px solid var(--blue); color: var(--blue-deep); }
.notice-info em{ font-style: normal; font-weight: 600; }

.auth-tabs{ display: flex; gap: .3rem; margin-bottom: 1.5rem; background: #fff; padding: .35rem; border-radius: 10px; border: 1px solid var(--border); }
.auth-tab{ flex: 1; padding: .75rem 1rem; border: none; background: transparent; border-radius: 7px; font-weight: 600; font-size: .88rem; color: var(--muted); letter-spacing: .02em; min-height: var(--touch); transition: .15s; }
.auth-tab.is-active{ background: var(--blue); color: #fff; }

.profile-switch{ display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.6rem; }
.profile-card{ position: relative; cursor: pointer; }
.profile-card input{ position: absolute; opacity: 0; pointer-events: none; }
.pc-body{ display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.25rem .9rem; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; text-align: center; transition: .15s; min-height: 120px; justify-content: center; }
.pc-icon{ width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); color: var(--blue); margin-bottom: .25rem; transition: .15s; }
.pc-icon svg{ width: 22px; height: 22px; }
.pc-body strong{ font-size: .94rem; font-weight: 600; }
.pc-body small{ color: var(--muted); font-size: .76rem; font-weight: 500; }
.profile-card input:checked + .pc-body{ border-color: var(--blue); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(0,102,204,.1); }
.profile-card input:checked + .pc-body .pc-icon{ background: var(--blue); color: #fff; }

/* =========================================================
   DASHBOARD UTENTE
   ========================================================= */
.dash-head{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); }
.dash-user{ display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.avatar{ width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--blue-light), #d8e8f8); display: grid; place-items: center; font-weight: 700; color: var(--blue); font-size: 1.15rem; letter-spacing: .02em; flex-shrink: 0; overflow: hidden; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,102,204,.15); }
.avatar img{ width: 100%; height: 100%; object-fit: cover; }
.avatar.square{ border-radius: 12px; }

.dash-tabs{ display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.dash-tab{
  position: relative; padding: .8rem 1.1rem;
  border: none; background: transparent;
  font-weight: 600; font-size: .88rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; letter-spacing: .02em;
  min-height: var(--touch);
  transition: color .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.dash-tab:hover{ color: var(--text); }
.dash-tab.is-active{ color: var(--blue); border-bottom-color: var(--blue); }

.dash-tab-count{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1;
}
.dash-tab.is-active .dash-tab-count{ background: var(--blue); color: #fff; }

/* Tab verde quando ci sono nuove candidature */
.dash-tab-count.is-new{
  background: #15803d;
  color: #fff;
  animation: badgePulseGreen 1.6s ease-in-out infinite;
}
@keyframes badgePulseGreen{
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,128,61,.65); }
  50%      { box-shadow: 0 0 0 8px rgba(21,128,61,0); }
}

.dash-panel{ display: block; }
.dash-panel[hidden]{ display: none !important; }

.list-item{
  display: flex; flex-wrap: wrap; gap: .9rem; align-items: center;
  justify-content: space-between; padding: 1.15rem 1.3rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: .75rem;
  transition: border-color .15s, box-shadow .15s;
}
.list-item:hover{ border-color: #c7d9ee; box-shadow: var(--shadow-sm); }
.list-item h4{ margin: 0 0 .25rem; font-size: .98rem; font-weight: 600; }
.list-item .meta{ font-size: .82rem; color: var(--muted); font-weight: 500; }

/* =========================================================
   CANDIDATURE RICEVUTE
   ========================================================= */
.apps-list{ display: grid; grid-template-columns: 1fr; gap: .85rem; }

.app-card{
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 1rem; background: #fff;
  border: 1px solid var(--border); border-left: 3px solid var(--blue);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  align-items: center;
}
.app-card:hover{ box-shadow: var(--shadow); transform: translateY(-1px); }
.app-card.is-new{ border-left-color: var(--red-strong); background: linear-gradient(90deg, #fff5f5 0%, #ffffff 60%); }

.app-avatar{
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-light), #d8e8f8);
  display: grid; place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
  font-weight: 700; color: var(--blue); font-size: 1.05rem;
}
.app-avatar img{ width: 100%; height: 100%; object-fit: cover; }

.app-main{ min-width: 0; }
.app-name{ margin: 0 0 .15rem; font-size: 1rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.app-job{ font-size: .84rem; color: var(--blue-dark); font-weight: 600; margin: 0 0 .35rem; display: inline-flex; align-items: center; gap: .35rem; }
.app-meta{ display: flex; flex-wrap: wrap; gap: .35rem .85rem; font-size: .78rem; color: var(--muted); font-weight: 500; margin: 0; }
.app-meta > span + span::before{ content: '·'; margin-right: .7rem; color: #b8c2cf; }
.app-meta .app-msg-preview{ display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

.app-actions{ display: flex; flex-direction: column; gap: .4rem; align-items: stretch; justify-content: center; min-width: 130px; }

.app-files{ display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.app-file{
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; background: var(--blue-light); color: var(--blue-dark);
  border-radius: 6px; font-size: .74rem; font-weight: 600;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-file svg{ width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- PROFILO ---------- */
.profile-header{ display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); }
.profile-header-info h2{ margin: 0; font-size: 1.35rem; }
.profile-header-info p{ margin: 0; }

/* =========================================================
   ADMIN
   ========================================================= */
.stats{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.15rem; box-shadow: var(--shadow-sm); text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c7d9ee; }
.stat-value{ font-size: 2.35rem; font-weight: 500; color: var(--blue); line-height: 1.05; letter-spacing: -.02em; text-align: center; margin-bottom: .35rem; }
.stat-label{ font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; text-align: center; }

.charts-panel{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.chart-card{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.chart-title{ font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.chart-title span{ color: var(--blue); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.chart-empty{ text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0; font-weight: 500; }
.donut-wrap{ display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.donut-legend{ display: flex; flex-direction: column; gap: .6rem; min-width: 140px; }
.legend-item{ display: flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 500; color: var(--text-soft); }
.legend-dot{ width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend-item strong{ margin-left: auto; color: var(--text); font-weight: 600; }
.bar-chart-wrap{ width: 100%; }
.bar-chart-wrap svg{ display: block; width: 100%; height: auto; }

.tabs{ display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; padding-bottom: 0; }
.tab{ padding: .8rem 1.1rem; border: none; background: transparent; font-weight: 600; font-size: .85rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; letter-spacing: .02em; min-height: var(--touch); transition: color .15s, border-color .15s; }
.tab:hover{ color: var(--text); }
.tab.is-active{ color: var(--blue); border-bottom-color: var(--blue); }

.admin-list{ display: flex; flex-direction: column; gap: .75rem; }
.admin-item{ display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); align-items: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.admin-item:hover{ border-color: #c7d9ee; box-shadow: var(--shadow); transform: translateY(-1px); }
.admin-item.is-pending{ border-left: 3px solid var(--amber); }
.admin-item-main{ min-width: 0; }
.admin-item-main h4{ margin: 0 0 .2rem; font-size: .98rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-main .admin-item-info{ margin: 0; font-size: .8rem; color: var(--muted); font-weight: 500; line-height: 1.5; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.admin-item-info .sep{ margin: 0 .25rem; color: #b8c2cf; }
.admin-item-status{ display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.admin-item-actions{ display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

/* =========================================================
   MODAL
   ========================================================= */
.modal{ position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal-overlay{ position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.modal-box{ position: relative; z-index: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 2rem; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-close{ position: absolute; top: .6rem; right: .7rem; border: none; background: transparent; font-size: 1.7rem; line-height: 1; color: var(--muted); padding: .3rem .6rem; border-radius: 6px; min-height: var(--touch); min-width: var(--touch); transition: background .15s, color .15s; }
.modal-close:hover{ background: var(--bg); color: var(--text); }

.app-detail-head{
  display: flex; gap: 1rem; align-items: center;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.app-detail-avatar{
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-light), #d8e8f8);
  display: grid; place-items: center;
  font-weight: 700; color: var(--blue); font-size: 1.4rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.12);
}
.app-detail-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.app-detail-head-info h2{ margin: 0 0 .2rem; font-size: 1.25rem; }
.app-detail-head-info p{ margin: 0; font-size: .88rem; color: var(--muted); font-weight: 500; }

.app-detail-info{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.app-detail-info-item{
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: .75rem .9rem;
}
.app-detail-info-item label{
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: .25rem;
}
.app-detail-info-item span{
  font-size: .92rem; color: var(--text);
  font-weight: 600; word-break: break-word;
}
.app-detail-info-item a{ color: var(--blue); text-decoration: none; font-weight: 600; }
.app-detail-info-item a:hover{ text-decoration: underline; }

.app-detail-section{ margin-bottom: 1.25rem; }
.app-detail-section h3{
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin: 0 0 .6rem; font-weight: 700;
}
.app-detail-message{
  background: #f8fafc; border-left: 3px solid var(--blue);
  border-radius: 6px; padding: 1rem 1.15rem;
  font-size: .88rem; color: var(--text-soft);
  white-space: pre-wrap; line-height: 1.6; margin: 0; font-weight: 500;
}

.app-detail-files{ display: flex; flex-direction: column; gap: .5rem; }
.app-detail-file{
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .95rem;
  background: var(--blue-light); border: 1px solid #c7dcf3;
  border-radius: 8px;
}
.app-detail-file svg{ width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.app-detail-file-info{ flex: 1; min-width: 0; }
.app-detail-file-name{
  font-size: .88rem; font-weight: 600; color: var(--blue-dark);
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-detail-file-type{ font-size: .74rem; color: var(--muted); margin: 0; font-weight: 500; }
.app-detail-file-empty{
  padding: .85rem 1rem; background: #f8fafc;
  border: 1px dashed var(--border); border-radius: 8px;
  font-size: .82rem; color: var(--muted); text-align: center; font-weight: 500;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast{ position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 140%); background: var(--text); color: #fff; padding: .85rem 1.35rem; border-radius: 8px; font-size: .87rem; font-weight: 500; letter-spacing: .01em; box-shadow: var(--shadow-lg); z-index: 300; transition: transform .3s cubic-bezier(.2,.9,.3,1.15); max-width: 90vw; text-align: center; }
.toast.show{ transform: translate(-50%, 0); }
.toast.ok  { background: var(--green); }
.toast.err { background: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: #fff; border-top: 1px solid var(--border); padding: 3rem 0 1.75rem; margin-top: 4rem; }
.footer-grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.footer-col h4{ font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: .9rem; }
.footer-col nav{ display: flex; flex-direction: column; gap: .5rem; }
.footer-col nav a{ font-size: .87rem; color: var(--text-soft); transition: color .15s; }
.footer-col nav a:hover{ color: var(--blue); text-decoration: none; }

.footer-brand{ display: flex; flex-direction: column; gap: .85rem; }
.footer-logo-color{
  height: auto;
  width: auto;
  max-width: 220px;
  max-height: 80px;
  object-fit: contain;
  display: block;
}
.footer-brand strong{
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}
.footer-brand p{ margin: 0; line-height: 1.65; max-width: 380px; }

.footer-legal{ text-align: center; padding-top: .5rem; }
.footer-legal-line{ font-size: .76rem; color: var(--muted); margin: 0 0 .35rem; line-height: 1.6; font-weight: 500; }
.footer-legal-line:last-of-type{ margin-bottom: 0; }
.footer-legal-links{ margin: .85rem 0 0; font-size: .8rem; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-legal-links a{ color: var(--blue-dark); font-weight: 600; }
.footer-legal-links a:hover{ color: var(--blue); }
.footer-sep{ color: #cbd5e1; font-weight: 700; }

/* =========================================================
   SECURITY BANNERS
   ========================================================= */
.session-warning{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #ffffff;
  text-align: center;
  padding: .75rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  animation: slideDown .3s ease-out;
}
@keyframes slideDown{ from { transform: translateY(-100%); } to { transform: translateY(0); } }
.session-warning a{ color: #ffffff; text-decoration: underline; font-weight: 700; }

.rate-limit-warning{
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: var(--red-bg);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-size: .87rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.rate-limit-warning svg{ flex-shrink: 0; }

/* =========================================================
   LOG VIEWER (Admin)
   ========================================================= */
.log-toolbar{
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: 1rem 1.15rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.log-toolbar input[type="text"]{
  flex: 1 1 200px; min-width: 0; min-height: 40px;
  padding: .55rem .8rem; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.log-toolbar input[type="text"]:focus{
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,.14);
}
.log-summary{
  display: flex; flex-wrap: wrap; gap: .85rem 1.25rem;
  padding: .65rem 1rem; margin-bottom: 1rem;
  background: var(--blue-light); border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
}
.log-summary strong{ color: var(--blue-dark); font-weight: 700; }

.log-list{
  display: flex; flex-direction: column; gap: .5rem;
  max-height: 70vh; overflow-y: auto;
  padding: .25rem;
}
.log-item{
  background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: .7rem .95rem;
  font-size: .82rem;
  transition: border-color .15s, box-shadow .15s;
}
.log-item:hover{ box-shadow: var(--shadow-sm); border-color: #c7d9ee; }
.log-item.log-warn{ border-left-color: var(--amber); background: #fffbf2; }
.log-item.log-error{ border-left-color: var(--red-strong); background: #fff6f6; }

.log-head{
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  margin-bottom: .35rem;
}
.log-time{
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .74rem; font-weight: 600; color: var(--muted);
  letter-spacing: .01em; white-space: nowrap;
}
.log-action{
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .78rem; font-weight: 700; color: var(--blue-dark);
  background: var(--blue-light); padding: .15rem .5rem;
  border-radius: 4px; white-space: nowrap;
}
.log-user{
  font-size: .76rem; font-weight: 600; color: var(--text-soft);
  padding: .15rem .5rem; background: #f1f5f9;
  border-radius: 4px; white-space: nowrap;
}
.log-route{
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .72rem; color: var(--muted); margin-left: auto;
  white-space: nowrap;
}
.log-details{
  font-size: .74rem; color: var(--text-soft);
  background: #f8fafc; padding: .45rem .65rem;
  border-radius: 5px; overflow-x: auto;
  border: 1px solid var(--border-soft);
}
.log-details code{
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .72rem; color: var(--text-soft);
  word-break: break-all; white-space: pre-wrap;
}

/* =========================================================
   TICKET SYSTEM
   ========================================================= */
.tickets-list { display: flex; flex-direction: column; gap: 1rem; }

.ticket-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.ticket-card:hover { box-shadow: var(--shadow); }
.ticket-card.ticket-status-open { border-left-color: var(--red-strong); }
.ticket-card.ticket-status-progress { border-left-color: #d97706; }
.ticket-card.ticket-status-resolved { border-left-color: var(--green); }

.ticket-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .65rem; flex-wrap: wrap;
}
.ticket-number {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .8rem; font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: .25rem .6rem; border-radius: 6px;
  letter-spacing: .04em;
}
.ticket-status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px;
  border: 1px solid transparent;
}
.ticket-status.ticket-status-open { background: var(--red-bg); color: var(--red); border-color: #fca5a5; }
.ticket-status.ticket-status-progress { background: var(--amber-bg); color: var(--amber); border-color: #fcd34d; }
.ticket-status.ticket-status-resolved { background: var(--green-bg); color: var(--green); border-color: #86efac; }

.ticket-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin: 0 0 .35rem; line-height: 1.35;
}
.ticket-meta {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem;
  font-size: .76rem; color: var(--muted); font-weight: 500;
  margin: 0 0 .75rem;
}
.ticket-meta > span + span::before { content: '·'; margin-right: .7rem; color: #b8c2cf; }

.ticket-message {
  font-size: .87rem; color: var(--text-soft);
  white-space: pre-wrap; line-height: 1.6; margin: 0 0 .85rem;
}

.ticket-image {
  max-width: 100%; max-height: 320px;
  border-radius: 8px; border: 1px solid var(--border);
  margin: .5rem 0 1rem; cursor: zoom-in; display: block;
}

.ticket-reply {
  background: #f0f7ff; border-left: 3px solid var(--blue);
  border-radius: 6px; padding: .85rem 1rem; margin: .75rem 0;
}
.ticket-reply-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); margin: 0 0 .35rem;
}
.ticket-reply-text {
  font-size: .86rem; color: var(--text-soft);
  white-space: pre-wrap; line-height: 1.6; margin: 0;
}

.ticket-admin-actions {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.ticket-status-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.ticket-reply-input {
  width: 100%; padding: .65rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .85rem; font-weight: 500;
  resize: vertical; min-height: 70px;
}
.ticket-reply-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.14); }

/* =========================================================
   IMAGE ZOOM OVERLAY
   ========================================================= */
.img-zoom-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: imgZoomFade .2s ease-out;
}
@keyframes imgZoomFade { from { opacity: 0; } to { opacity: 1; } }

.img-zoom-content {
  max-width: 95vw; max-height: 95vh;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  cursor: default;
}
.img-zoom-content img {
  max-width: 95vw; max-height: 85vh;
  border-radius: 10px; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.img-zoom-caption {
  color: #fff; font-size: .95rem; font-weight: 600;
  text-align: center; margin: 0; letter-spacing: .02em;
}
.img-zoom-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff; font-size: 1.75rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, transform .1s;
}
.img-zoom-close:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }

/* =========================================================
   TABLET (max 1024px)
   ========================================================= */
@media (max-width: 1024px){
  :root{ --view-pt: 2.5rem; --view-pb: 3rem; }

  .search-bar{ grid-template-columns: 1fr 1fr; gap: .65rem; }
  .search-bar .field-grow{ grid-column: 1 / -1; }
  .search-bar .field-btn{ grid-column: 1 / -1; }
  .btn-search{ width: 100%; }

  .form-grid-3{ grid-template-columns: 1fr 1fr; }
  .form-grid-3 > .form-row:last-child{ grid-column: 1 / -1; }

  .hero{ min-height: 400px; }

  .notif-panel{ right: 1rem; width: min(400px, calc(100vw - 2rem)); }

  .footer-logo-color{ max-width: 190px; max-height: 70px; }
}

/* =========================================================
   TABLET PORTRAIT / MOBILE LARGE (max 880px)
   ========================================================= */
@media (max-width: 880px){
  :root{ --view-pt: 2rem; --view-pb: 2.5rem; --header-h: 68px; }

  .logo-text{ font-size: .92rem; }
  .logo-img{ height: 38px; max-width: 180px; }
  .burger{ display: flex; }

  .main-nav{
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0a2d5c;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(10,45,92,.35);
    padding: .5rem .75rem 1rem;
    display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ padding: .9rem .85rem; border-radius: 8px; color: rgba(255,255,255,.95); }
  .main-nav a.nav-cta{ text-align: center; margin-top: .5rem; }
  .main-nav .btn-ghost{ text-align: center; justify-content: center; margin-top: .4rem; }

  .notif-btn{
    width: 100%; height: auto; min-height: 44px;
    padding: .8rem .85rem; margin: .5rem 0 0;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.22);
    justify-content: flex-start; gap: .75rem;
    font-weight: 600; color: #fff; font-size: .95rem;
  }
  .notif-btn::after{
    content: 'Notifiche';
    font-weight: 600; letter-spacing: .02em;
  }
  .notif-btn .notif-bell{ width: 20px; height: 20px; }
  .notif-badge{
    position: static; margin-left: auto;
    animation: none; border: none;
    min-width: 22px; height: 22px; font-size: .72rem;
  }

  .notif-panel{
    position: fixed; top: var(--header-h); right: 0; left: 0;
    width: 100vw; max-width: 100vw;
    max-height: calc(100vh - var(--header-h) - 20px);
    border-radius: 0 0 12px 12px;
    border-left: none; border-right: none; border-top: none;
    animation: notifSlideDown .22s ease-out;
  }
  @keyframes notifSlideDown{
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .job-card{ grid-template-columns: 52px 1fr; }
  .job-logo{ width: 52px; height: 52px; }
  .job-actions{ grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .job-actions .btn, .job-actions .fav-btn{ flex: 1; min-width: 0; }

  .form-grid, .form-grid-3{ grid-template-columns: 1fr; }
  .form-grid-3 > .form-row:last-child{ grid-column: auto; }

  .hero{ padding: 2.5rem 0 3rem; min-height: 360px; }
  .dash-user{ flex-direction: row; }
  .avatar{ width: 56px; height: 56px; font-size: 1rem; }

  .dash-tabs{ overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; flex-wrap: nowrap; }
  .dash-tab{ flex-shrink: 0; }

  .app-card{ grid-template-columns: 52px 1fr; gap: .85rem; padding: 1.05rem 1.1rem; }
  .app-avatar{ width: 52px; height: 52px; font-size: .95rem; }
  .app-actions{ grid-column: 1 / -1; flex-direction: row; min-width: 0; gap: .5rem; }
  .app-actions .btn{ flex: 1; }

  .app-detail-head{ gap: .85rem; }
  .app-detail-avatar{ width: 60px; height: 60px; font-size: 1.2rem; }
  .app-detail-head-info h2{ font-size: 1.12rem; }

  .admin-item{ grid-template-columns: 1fr; gap: .75rem; padding: 1rem 1.1rem; }
  .admin-item-status{ justify-content: flex-start; }
  .admin-item-actions{ justify-content: flex-start; }
  .admin-item-actions .btn{ flex: 1; min-width: 90px; }

  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand{ grid-column: 1 / -1; }
  .footer-logo-color{ max-width: 180px; max-height: 65px; }

  .jobs-overlay{ padding: 2rem 1.25rem; gap: 1rem; }
  .legal-card{ padding: 1.5rem 1.35rem; }
  .modal-box{ width: min(640px, 100%); }

  .footer-made-in-italy {
    max-width: 120px;
    max-height: 50px;
  }
}

/* =========================================================
   MOBILE (max 540px)
   ========================================================= */
@media (max-width: 540px){
  :root{ --view-pt: 1.75rem; --view-pb: 2.25rem; --header-h: 64px; }

  body{ font-size: 15px; }
  .container{ width: min(1200px, 100% - 1.5rem); }
  .container.narrow{ width: min(760px, 100% - 1.5rem); }
  .card{ padding: 1.35rem 1.2rem; }
  .modal-box{ padding: 1.35rem 1.1rem; border-radius: 8px; }
  .modal{ padding: .5rem; }
  .form-section{ padding: 1rem 1rem .25rem; }

  .logo-text{ display: none; }
  .hero{ padding: 2rem 0 2.5rem; min-height: 300px; }
  .hero-sub{ font-size: .92rem; }
  .search-bar{ padding: .85rem; }

  .results-tools{ width: 100%; justify-content: space-between; }
  .results-head h2{ font-size: 1.15rem; }

  .job-card{ padding: 1.1rem; gap: .9rem; }
  .job-title-row h3{ font-size: 1rem; }
  .job-actions{ flex-direction: column; }
  .job-actions .btn, .job-actions .fav-btn{ width: 100%; }

  .profile-switch{ grid-template-columns: 1fr; }
  .pc-body{ min-height: auto; padding: 1rem; }

  .auth-tabs{ padding: .25rem; }
  .auth-tab{ padding: .65rem .6rem; font-size: .82rem; }

  .dash-head{ gap: .75rem; }
  .avatar{ width: 50px; height: 50px; font-size: .95rem; }

  .dash-tab{ padding: .7rem .85rem; font-size: .82rem; }
  .dash-tab-count{ font-size: .66rem; min-width: 18px; height: 18px; }

  .app-card{ grid-template-columns: 46px 1fr; padding: 1rem; gap: .75rem; }
  .app-avatar{ width: 46px; height: 46px; font-size: .85rem; }
  .app-name{ font-size: .95rem; }
  .app-actions{ grid-column: 1 / -1; flex-direction: column; }
  .app-actions .btn{ width: 100%; }
  .app-meta{ font-size: .75rem; }
  .app-meta > span + span::before{ content: ''; margin: 0; }
  .app-meta{ gap: .15rem; flex-direction: column; align-items: flex-start; }

  .app-detail-head{ flex-direction: column; align-items: flex-start; text-align: left; }
  .app-detail-info{ grid-template-columns: 1fr; gap: .55rem; }
  .app-detail-info-item{ padding: .65rem .8rem; }

  .stats{ grid-template-columns: 1fr 1fr; gap: .65rem; }
  .stat-card{ padding: 1rem .85rem; }
  .stat-value{ font-size: 1.85rem; }
  .stat-label{ font-size: .62rem; letter-spacing: .06em; }

  .charts-panel{ grid-template-columns: 1fr; }
  .chart-card{ padding: 1.15rem; }

  .tabs { gap: .25rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .tab { padding: .7rem .8rem; font-size: .78rem; flex-shrink: 0; }

  .list-item{ padding: .95rem 1rem; flex-direction: column; align-items: stretch; gap: .65rem; }
  .list-item > div:last-child{ display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }

  .footer-grid{ grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-legal-links{ font-size: .78rem; }

  .footer-logo-color{ max-width: 160px; max-height: 60px; margin-inline: auto; }
  .footer-brand{ align-items: center; text-align: center; }
  .footer-brand p{ text-align: center; margin-inline: auto; }

  .footer-col h4 {
    display: block;
    border-bottom: 1px solid var(--border);
    padding-bottom: .4rem;
  }
  .footer-contacts {
    align-items: center;
    text-align: center;
  }
  .footer-contacts li {
    align-items: center;
  }
  .footer-made-in-italy {
    margin-inline: auto;
    max-width: 110px;
    max-height: 48px;
  }

  .geo-fieldset{ padding: .9rem .85rem .15rem; }
  .preview-avatar{ width: 84px; height: 84px; }

  .profile-header{ flex-direction: column; align-items: flex-start; text-align: left; }

  .jobs-overlay{ padding: 1.5rem 1rem; gap: .85rem; }
  .jobs-overlay-text{ font-size: .87rem; }
  .btn-pulse{ padding: .9rem 1.75rem; font-size: .92rem; }
  .btn-load-more{ padding: .75rem 1.5rem; font-size: .85rem; }

  .legal-card{ padding: 1.25rem 1.15rem; }
  .legal-card h2{ font-size: 1rem; }

  .notif-panel-head{ padding: .85rem 1rem; }
  .notif-panel-head h3{ font-size: .92rem; }
  .notif-item{ padding: .8rem 1rem; gap: .7rem; }
  .notif-icon{ width: 34px; height: 34px; }
  .notif-icon svg{ width: 18px; height: 18px; }
  .notif-title{ font-size: .84rem; }
  .notif-message{ font-size: .78rem; }
  .notif-time{ font-size: .68rem; }

  .log-toolbar{ padding: .85rem; }
  .log-toolbar input[type="text"]{ flex: 1 1 100%; }
  .log-summary{ padding: .55rem .75rem; gap: .5rem .9rem; font-size: .78rem; }
  .log-item{ padding: .6rem .75rem; font-size: .78rem; }
  .log-route{ margin-left: 0; }

  .ticket-card { padding: 1rem 1.1rem; }
  .ticket-title { font-size: .95rem; }
  .ticket-status-buttons .btn { flex: 1; min-width: 90px; }
  .img-zoom-overlay { padding: 1rem; }
  .img-zoom-close { top: .75rem; right: .75rem; width: 42px; height: 42px; }
}