@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&display=swap");
:root{
  --bg:#F7F5F2;
  --surface:#FFFFFF;
  --border:#E7E2DC;
  --text:#2F2B2A;
  --muted:#7E756E;
  --accent:#7BA55B;
  --accentDark:#5D8C43;
  --chip:#F4EFE9;
  --shadow: 0 10px 24px rgba(20,16,12,.10);
  --shadowSoft: 0 8px 18px rgba(20,16,12,.08);
  --r:16px;
  --r2:20px;
  --max: 1200px;
  --topbarH: 62px;
  --topbarH-mobile: 48px;
  --bottomnavH: 76px;
}

*{ box-sizing:border-box; }
html {
  height: 100%;
}
body {
  min-height: 100%;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: #fff;
}

a{ color:inherit; text-decoration:none; }
b{ font-weight:900; }

.wrap{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 12px;
}
@media (min-width: 640px){
  .wrap{
    padding:0 16px;
  }
}
@media (min-width: 920px){
  .wrap{
    padding:0 56px;
  }
}

/* Home topbar: allineato a jc-topbar-company (fixed, stesso layout) per evitare salto logo */
body.home {
  padding-top: var(--topbarH-mobile);
}
@media (min-width: 641px) {
  body.home {
    padding-top: var(--topbarH);
  }
}
/* Pagina Prezzi: usa topbar come Home, stesso padding-top */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(250,248,246,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(47,43,42,.08);
}
body.home .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.topbar__inner{
  height:var(--topbarH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
/* Home: stesso padding e grid di jc-topbar-company */
body.home .topbar .topbar__inner {
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  body.home .topbar .topbar__inner {
    display: grid;
    grid-template-columns: minmax(20px, 1fr) min(1120px, calc(100% - 40px)) minmax(20px, 1fr);
    gap: 0;
    padding: 0;
    align-items: center;
  }
  body.home .topbar .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    padding-left: 20px;
  }
  body.home .topbar .topnav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-right: 20px;
  }
}
.topbar .brand { flex: 1 1 auto; min-width: 0; }
.topbar .topnav { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.topbar .topnav__link { font-size: 16px; }

/* Home Header Responsive Rule: compatti su mobile, logo non compresso */
@media (max-width: 767px) {
  .topbar__inner {
    height: var(--topbarH-mobile);
    min-height: 44px;
    max-height: 50px;
  }
  .topbar .topnav {
    gap: 8px;
    flex-shrink: 0;
  }
  .topbar .topnav__link {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 4px;
    white-space: nowrap;
  }
  .topbar .topnav .jc-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
  }
  body.home .topbar__inner,
  body.jc-page-jobs .topbar__inner {
    padding: 0 10px;
    gap: 8px;
  }
  body.home .topbar .brand__mark,
  body.jc-page-jobs .topbar .brand__mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  body.home .topbar .brand__mark .brand__job,
  body.jc-page-jobs .topbar .brand__mark .brand__job {
    font-size: 13px;
    top: 10px;
  }
  body.home .topbar .brand__name--logo,
  body.jc-page-jobs .topbar .brand__name--logo {
    font-size: 24px;
  }
  body.home .topbar .brand__eye,
  body.jc-page-jobs .topbar .brand__eye {
    width: 17px;
    height: 19px;
  }
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brand__mark{
  flex-shrink:0;
  width:38px;
  height:38px;
  border-radius: 10px;
  background:
    radial-gradient(10px 10px at 20% 20%, rgba(184,226,255,.6), transparent 60%),
    linear-gradient(180deg, #A7C77A 0%, #7AA95B 100%);
  position:relative;
  box-shadow: var(--shadowSoft);
}
.brand__mark .brand__job{
  position:absolute;
  left:0;
  right:0;
  top:10px;
  text-align:center;
  font-size:14px;
  font-weight:900;
  color:#ffffff;
  letter-spacing:.2px;
  text-transform:uppercase;
  text-shadow: 0 1px 0 rgba(47,43,42,.25);
}
.brand__name{
  font-weight:900;
  letter-spacing:-.6px;
  text-transform:lowercase;
  color:#2F2B2A;
  font-family: "Comic Sans MS", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height:1;
}
.brand__name{
  position:relative;
}
.brand__name::after{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  bottom:-2px;
  height:4px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(140,182,108,.6), rgba(126,197,255,.6));
  opacity:.7;
}
.brand__name--logo{
  display:inline-flex;
  align-items:center;
  gap:0px;
  font-size:24px;
  color:#1E1E1E;
  letter-spacing:-.4px;
  text-shadow:
    0 2px 6px rgba(0,0,0,.2);
}
.brand__letter{
  display:inline-block;
  transform: translateY(0);
}
.brand__letter-wrap{
  display:inline-flex;
  align-items:center;
  margin:0 1px;
  font-family:"Comfortaa", "Comic Sans MS", cursive, sans-serif;
  font-size:0.92em;
  font-weight:800;
  letter-spacing:-0.06em;
  line-height:1;
  vertical-align:-0.05em;
}
.brand__eye{
  display:inline-block;
  position:relative;
  width:17px;
  height:19px;
  border-radius:999px;
  background:
    radial-gradient(circle at 55% 50%, #ffffff 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 60% 60%, #111 0 5px, transparent 6px),
    radial-gradient(circle at 35% 35%, #fff 0 4px, transparent 5px),
    #ffffff;
  border:1.5px solid #1E1E1E;
  box-shadow:
    inset 0 -1.5px 0 rgba(0,0,0,.12),
    0 1.5px 0 #000000;
  vertical-align:-0.15em;
  margin:0 -1px;
}
.brand__eye--left{
  box-shadow:
    inset 0.5px 0 0 #1E1E1E,
    inset 0 -1.5px 0 rgba(0,0,0,.12),
    0 1.5px 0 #000000;
}
.brand__eye--left::after{
  content:"";
  position:absolute;
  width:8px;
  height:15px;
  left:-2px;
  bottom:-12px;
  border-left:2px solid #1E1E1E;
  border-bottom:2px solid #1E1E1E;
  border-radius:0 0 0 22px;
  border-bottom-left-radius:22px;
  box-shadow: -0.5px 0.5px 0 rgba(30,30,30,.15);
  background:transparent;
}
.brand__eye--right::after{
  content:"";
  position:absolute;
  width:8px;
  height:12px;
  right:0px;
  bottom:-10px;
  border-right:2px solid #1E1E1E;
  border-bottom:2px solid #1E1E1E;
  border-radius:0 0 14px 0;
  border-bottom-right-radius:14px;
  box-shadow: 0.5px 0.5px 0 rgba(30,30,30,.15);
  background:transparent;
}

.brand__eye--left::before,
.brand__eye--right::before{
  content:"";
  position:absolute;
  top:-6px;
  width:10px;
  height:7px;
  border-top:2px solid #1E1E1E;
  border-radius:999px 999px 12px 12px;
}
.brand__eye--left::before{ left:1px; transform: rotate(-8deg); }
.brand__eye--right::before{ left:1px; transform: rotate(8deg); }
.brand__loading{
  display:flex;
  gap:3px;
  align-items:center;
  justify-content:center;
  position:absolute;
  left:50%;
  bottom:7px;
  width:24px;
  transform:translateX(-50%);
}
.brand__dot{
  width:5px;
  height:5px;
  border-radius:2px;
  display:inline-block;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.brand__dot--b{ background:#6CB7FF; }
.brand__dot--y{ background:#F4C542; }

.topnav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}
.topnav__link{
  font-weight:800;
  color: rgba(47,43,42,.70);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 12px;
  font-weight:900;
  border:1px solid rgba(47,43,42,.10);
  background: #fff;
  box-shadow: var(--shadowSoft);
  user-select:none;
  color:var(--text);
}
.btn--primary{
  background: linear-gradient(180deg, #8DB66C 0%, #6EA055 100%);
  color: #F7FBF3;
  border-color: rgba(47,43,42,.14);
}
.btn--ghost{
  background:#fff;
}
.btn--applied{
  background: #e8f0ff;
  color: #1e3a8a;
  border-color: rgba(30,58,138,.25);
  cursor: default;
  pointer-events: none;
}
.btn--muted{
  background: #e5e7eb;
  color: #6b7280;
  border-color: rgba(107,114,128,.3);
  cursor: default;
  pointer-events: none;
}
.btn__icon{
  width:14px;
  height:14px;
  border-radius:6px;
  background: rgba(47,43,42,.18);
  display:inline-block;
}
.btn__icon--bolt{
  background: linear-gradient(180deg, #E6D177 0%, #D2B254 100%);
  position:relative;
}
.btn__icon--bolt:after{
  content:"";
  position:absolute;
  inset:3px 5px 3px 5px;
  border-left:2px solid rgba(85,70,0,.7);
  border-bottom:2px solid rgba(85,70,0,.7);
  transform: skewX(-15deg);
}

.hero{
  padding:22px 0 12px;
  position:relative;
}
.hero__backdrop{
  position:absolute;
  left:50%;
  top:84px;
  transform:translateX(-50%);
  width:100%;
  max-width:720px;
  height:160px;
  background:
    radial-gradient(260px 120px at 20% 90%, rgba(160,196,140,.30), transparent 70%),
    radial-gradient(240px 120px at 80% 95%, rgba(160,196,140,.28), transparent 70%),
    linear-gradient(180deg, rgba(239,243,236,.9), rgba(245,242,237,0));
  border-radius: 999px;
  filter: blur(0.2px);
  z-index:0;
}
.hero__title,
.hero__sub,
.searchcard,
.chips{
  position:relative;
  z-index:1;
}
.hero__title{
  margin:4px 0 0;
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.6px;
}
.hero__accent{ color: var(--accentDark); }
.hero__sub{
  margin:8px 0 0;
  color:var(--muted);
  font-weight:700;
}

.searchcard{
  margin-top:14px;
  background: rgba(255,255,255,.95);
  border:1px solid rgba(47,43,42,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  padding:12px;
}
.searchcard__grid{
  display:grid;
  gap:10px;
}
.field{ display:flex; flex-direction:column; gap:6px; }
.field__label{
  font-size:13px;
  color:var(--text);
  font-weight:900;
}
.field__control{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(47,43,42,.10);
  background: #F6F2ED;
}
.field__control:focus-within{
  background:#fff;
  box-shadow: 0 0 0 4px rgba(170,200,140,.25);
  border-color: rgba(47,43,42,.16);
}
.field__icon{
  width:16px; height:16px;
  border-radius:6px;
  border:1px solid rgba(47,43,42,.10);
  background: rgba(47,43,42,.08);
  flex:0 0 auto;
}
.field__icon--search{
  position:relative;
}
.field__icon--search:after{
  content:"";
  position:absolute;
  width:6px;height:6px;
  border-radius:999px;
  border:2px solid rgba(47,43,42,.55);
  top:3px; left:3px;
}
.field__icon--search:before{
  content:"";
  position:absolute;
  width:6px;height:2px;
  background: rgba(47,43,42,.55);
  transform: rotate(45deg);
  right:1px; bottom:1px;
}
.field__icon--pin{
  position:relative;
}
.field__icon--pin:before{
  content:"";
  position:absolute;
  width:6px;height:6px;
  border-radius:999px;
  border:2px solid rgba(47,43,42,.55);
  top:2px; left:3px;
}
.field__icon--pin:after{
  content:"";
  position:absolute;
  width:0;height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid rgba(47,43,42,.55);
  bottom:1px; left:4px;
}
.field__control input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font-weight:800;
}
.field__control input::placeholder{ color: rgba(126,117,110,.9); }
.jc-suggestions{
  display:grid;
  gap:6px;
  margin-top:6px;
}
.jc-suggestion{
  border:1px solid rgba(47,43,42,.16);
  background:#fff;
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
  text-align:left;
  cursor:pointer;
}

.searchcard__row{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.searchcard__toggles{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.flash-bar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:5px 8px;
  border-radius:6px;
  border:1px solid #d7d2cb;
  background:#f1eeea;
  color:#6c5b4d;
  font-weight:800;
  font-size:11px;
  min-height:28px;
  cursor:pointer;
  width:auto;
  flex:0 0 auto;
  min-width:120px;
}
.flash-bar--standard{
  background:#f7f4ef;
}
.flash-bar__label{
  font-weight:800;
}
.flash-bar__check{
  width:14px;
  height:14px;
  border-radius:4px;
  border:1px solid #c9c3bb;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.flash-bar__check::after{
  content:"";
  width:6px;
  height:3px;
  border-left:2px solid transparent;
  border-bottom:2px solid transparent;
  transform: rotate(-45deg);
}
.flash-bar__icon{
  width:12px;
  height:12px;
  display:inline-flex;
  margin-left:2px;
}

@media (max-width: 640px){
  .flash-bar{
    padding:7px 10px;
    font-size:12px;
    min-height:32px;
    min-width:140px;
  }
  .flash-bar__check{
    width:16px;
    height:16px;
  }
  .flash-bar__check::after{
    width:8px;
    height:4px;
  }
  .flash-bar__icon{
    width:14px;
    height:14px;
  }
}
.flash-bar__icon--standard{
  background: no-repeat center/contain url("/assets/img/helmet.svg");
}
.flash-bar.is-active{
  background:#dff0d8;
  border-color:#8fbf75;
  color:#2f5c34;
}
.flash-bar.is-active .flash-bar__check{
  border-color:#5ea66a;
  background:#eaf7e6;
}
.flash-bar.is-active .flash-bar__check::after{
  border-left-color:#2f8a45;
  border-bottom-color:#2f8a45;
}
.flash-bar.is-active .flash-bar__icon{
  color:#2f5c34;
}

.searchcard__actions{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-left:auto;
  flex:0 0 auto;
}

.chips{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap:10px;
  background:
    linear-gradient(90deg,
      rgba(205,170,90,.18) 0%,
      rgba(126,197,255,.16) 45%,
      rgba(140,182,108,.16) 100%);
  padding:8px;
  border-radius:14px;
}
.chips__title{
  grid-column: 1 / -1;
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: #6B5D4F;
}
.chip{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 8px;
  border-radius: 0;
  border:1px solid rgba(47,43,42,.08);
  background: transparent;
  font-weight:900;
  text-align:center;
  box-shadow: var(--shadowSoft);
  min-width:0;
}
.chip__label{
  font-size:12px;
  line-height:1.1;
  max-width:100%;
  min-width:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  word-break:break-word;
  overflow-wrap:anywhere;
}
@supports not (-webkit-line-clamp: 2) {
  .chip__label{
    display:block;
    max-height:calc(1.1em * 2);
    overflow:hidden;
  }
}
.chip{ border-radius:12px; }
/* Griglia 4+4 da 520px in su (anche con browser ristretto) */
@media (min-width: 520px) {
  .chips { grid-template-columns: repeat(4, 1fr); }
  /* Chip 7 e 8: visibili su desktop (6 su mobile) — body.home per massima specificità */
  body.home .chips .chip.chip--desktop-only { display: flex !important; }
}
/* Ultime 2 chip nascoste solo su mobile (≤519px) */
@media (max-width: 519px) {
  body.home .chips .chip.chip--desktop-only { display: none !important; }
}
.chip__ico{
  width:48px;height:48px;
  min-width:48px;min-height:48px;
  flex-shrink:0;
  border-radius:10px;
  background: #E7E0D7;
  border:1px solid rgba(47,43,42,.10);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.chip__ico--img{
  background: transparent;
  border-color: rgba(47,43,42,.08);
}
.chip__ico--img img{
  width:46px;
  height:46px;
  min-width:46px;
  min-height:46px;
  max-width:46px;
  max-height:46px;
  object-fit:contain;
  object-position:center;
  display:block;
}
.chip__ico--img:before{
  content: none;
}
.chip__ico--food{
  background: transparent;
  border-color: rgba(47,43,42,.08);
  background-image: url("/assets/img/categories/food.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}
.chip__ico--food:before{
  content: none;
}
.chip__ico--box:before{
  content:"";
  position:absolute;
  inset:6px;
  border:2px solid #B08B56;
  border-top:3px solid #B08B56;
}
.chip__ico--logistics{
  background: transparent;
  border-color: rgba(47,43,42,.08);
  background-image: url("/assets/img/categories/logistics.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.chip__ico--logistics:before{
  content: none;
}
.chip__ico--office{
  background: transparent;
  border-color: rgba(47,43,42,.08);
  background-image: url("/assets/img/categories/office.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.chip__ico--office:before{
  content: none;
}
.chip__ico--trades{
  background: transparent;
  border-color: rgba(47,43,42,.08);
  background-image: url("/assets/img/categories/trades.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.chip__ico--trades:before{
  content: none;
}
.chip__ico--helmet:before{
  content:"";
  position:absolute;
  left:5px; right:5px; top:8px;
  height:12px;
  background:#E3B45F;
  border-radius:12px 12px 6px 6px;
}
.chip__ico--hospitality{
  background: transparent;
  border-color: rgba(47,43,42,.08);
  background-image: url("/assets/img/categories/hospitality.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.chip__ico--hospitality:before{
  content: none;
}
.chip__ico--construction{
  background: transparent;
  border-color: rgba(47,43,42,.08);
  background-image: url("/assets/img/categories/construction.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.chip__ico--construction:before{
  content: none;
}
.chip__ico--bolt{
  background:#F2E3B0;
}
.chip__ico--bolt:before{
  content:"";
  position:absolute;
  left:12px; top:5px;
  width:0;height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:8px solid #B48A2F;
  transform: skewX(-10deg);
}
.chip--today{
  background:#F5E9D0;
}

.section{
  padding:12px 0 6px;
}
/* Mobile: sezione annunci fino ai bordi */
@media (max-width: 639px) {
  body.home .section--jobs {
    margin-left: -12px;
    margin-right: -12px;
  }
}
/* Fix card Flash tagliata: diagnosi HOME · CARD FLASH CLIPPING */
/* PASSO 3: fix sul colpevole — main.wrap ha overflow-x:hidden (app.css 768px+)
   che può far diventare overflow-y:auto e creare clipping. Override solo per home. */
body.home main.wrap {
  overflow-x: hidden;
  overflow-y: visible;
}
/* 1) .jobcard senza min-height: 100% (evita vincolo circolare con grid) */
/* 2) Bottone "Dettagli" già con margin-top:auto (jobcard__actions) + flex column */
/* 3) Container senza height vincolanti, overflow visibile */
body.home .section--jobs,
body.home .section--jobs .jobs-grid,
body.home .section--jobs .jobs-col,
body.home .section--jobs .cards {
  overflow: visible;
  max-height: none;
  height: auto;
}
/* Evitare taglio seconda card Standard: colonne si adattano al contenuto */
body.home .section--jobs .jobs-grid {
  align-items: start;
}
body.home .section--jobs .cards {
  align-items: stretch;
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 10px;
}
.section__title{
  margin:0;
  font-size:16px;
  font-weight:900;
}
.section__link{
  font-size:13px;
  color:var(--muted);
  font-weight:900;
}

.jobs-grid{
  display:grid;
  gap:16px;
}
.jobs-col{
  background: rgba(255,255,255,.9);
  border:1px solid rgba(47,43,42,.08);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadowSoft);
}
.jobs-col .section__head{
  margin:0 0 12px;
}
.jobs-col .cards{
  grid-template-columns: 1fr;
}

.cards{
  display:grid;
  gap:12px;
  align-items:stretch;
}
.jobcard{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255,255,255,.94);
  border:1px solid rgba(47,43,42,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadowSoft);
  padding:12px;
}
.jobcard__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.badge{
  font-size:12px;
  font-weight:900;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid rgba(47,43,42,.10);
  background: #F3EFEA;
  color:#5B534C;
}
.badge--flash{ background: #E9F0DF; }
.badge--today{ background: #F5EAD3; }
.badge--urgent{ background: #F4DCDD; color:#8C3539; }
.badge--standard{ background: #E8EEF6; color:#2D4E7A; }
.badge--seasonal{ background: #F0E6F6; color:#5A3E7A; }
.badge--applied{ background: #E8F0FF; color:#1E3A8A; border-color: rgba(30,58,138,.2); }
.badge--published{ background: #E8F5E9; color:#2E7D32; border-color: rgba(46,125,50,.2); }
.badge--closed{ background: #FEE2E2; color:#b91c1c; border-color: rgba(185,28,28,.2); }
.badge--draft{ background: #F4F1ED; color:#6b7280; border-color: rgba(107,114,128,.2); }

.iconbtn{
  width:34px;height:34px;
  border-radius: 10px;
  border:1px solid rgba(47,43,42,.10);
  background: #F4F1ED;
  box-shadow: var(--shadowSoft);
  cursor:pointer;
}
.jobcard__title{
  margin:10px 0 0;
  font-size:15px;
  font-weight:900;
}
.jobcard__meta{
  margin-top:6px;
  min-height:3em;
  color:var(--muted);
  font-weight:800;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.jobcard__meta-spacer{
  display:block;
  min-height:1.2em;
  width:100%;
}
.dot{ opacity:.7; }
.jobcard__actions{
  margin-top:auto;
  padding-top:10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
/* Stili pulsanti card: sovrascritti in app.css per uniformità */

/* Footer: stili in app.css (.jc-footer) */

.spacer{
  height: calc(var(--bottomnavH) + env(safe-area-inset-bottom, 0px) + 8px);
}
@media (max-width: 767px) {
  .spacer { height: 0; }
}

.bottomnav{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:60;
  background: rgba(250,248,246,.94);
  backdrop-filter: blur(12px);
  border-top:1px solid rgba(47,43,42,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--bottomnavH) + env(safe-area-inset-bottom, 0px));
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  align-items:center;
  gap:8px;
  padding-left: 10px;
  padding-right: 10px;
}
.bottomnav__item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 8px;
  border-radius: 14px;
  font-weight:900;
  font-size:12px;
  color: var(--muted);
  border:1px solid transparent;
}
.bottomnav__ico{
  width:22px;height:22px;
  border-radius:8px;
  border:1px solid rgba(47,43,42,.10);
  background: rgba(47,43,42,.06);
  position:relative;
}
.bottomnav__ico--home:before{
  content:"";
  position:absolute;
  left:5px; top:5px;
  width:12px;height:10px;
  background:#7AA95B;
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
}
.bottomnav__ico--list:before{
  content:"";
  position:absolute;
  left:5px; top:6px;
  width:12px;height:2px;
  background:#7E756E;
  box-shadow: 0 4px 0 #7E756E, 0 8px 0 #7E756E;
}
.bottomnav__ico--bolt:before{
  content:"";
  position:absolute;
  left:9px; top:4px;
  width:0;height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:8px solid #7E756E;
  transform: skewX(-10deg);
}
.bottomnav__ico--user:before{
  content:"";
  position:absolute;
  left:7px; top:5px;
  width:8px;height:8px;
  border-radius:999px;
  background:#7E756E;
}
.bottomnav__ico--user:after{
  content:"";
  position:absolute;
  left:5px; bottom:4px;
  width:12px;height:6px;
  border-radius:999px 999px 4px 4px;
  background:#7E756E;
}
.bottomnav__item--active{
  background: rgba(165,194,141,.25);
  border-color: rgba(47,43,42,.08);
  color: var(--text);
}

@media (min-width: 920px){
  .hero__title{ font-size:38px; }
  .hero__sub{ font-size:16px; }
  .searchcard{ padding:16px; }
  /* Home desktop: evidenzia la zona di ricerca (celestino chiaro come badge standard) */
  body.home .searchcard{
    border:2px solid #B8C9E8;
    box-shadow: 0 4px 20px rgba(184,201,232,.3), 0 0 0 1px rgba(232,238,246,.5);
  }
  .field__label{ font-size:14px; }
  .field__control{ padding:12px 14px; }
  .jobcard{ padding:14px; }
  .jobcard__title{ font-size:16px; }
  .searchcard__grid{
    grid-template-columns: 1fr 1fr;
  }
  .searchcard__row{
    flex-wrap:nowrap;
  }
  .searchcard__actions{
    grid-template-columns: auto auto;
  }
  .searchcard__actions .btn{
    white-space:nowrap;
  }
  .chips{
    grid-template-columns: repeat(4, 1fr);
  }
  .chip__ico{
    width:54px;
    height:54px;
  }
  .chip__ico--img img{
    width:50px;
    height:50px;
    min-width:50px;
    min-height:50px;
    max-width:50px;
    max-height:50px;
  }
  .chip__ico--food{
    background-size: 50px 50px;
  }
  .chip__ico--logistics,
  .chip__ico--construction,
  .chip__ico--hospitality,
  .chip__ico--img{
    background-size: 50px 50px;
  }
  .jobs-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:20px;
    align-items: start;
  }
  .jobs-col .section__title{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border-radius:999px;
    font-size:14px;
    background:#F3EFEA;
  }
  .section__head--flash .section__title{
    background:#E9F0DF;
    color:#2F5C34;
  }
  .section__head--standard .section__title{
    background:#E8EEF6;
    color:#2D4E7A;
  }
  .section__head--seasonal .section__title{
    background:#F0E6F6;
    color:#5A3E7A;
  }
  .cards{
    grid-template-columns: 1fr 1fr;
    gap:14px;
  }
  .bottomnav{ display:none; }
  .spacer{ height: 18px; }
}

@media (max-width: 640px){
  .jobs-col{
    padding-top:12px;
    box-shadow: 0 -10px 16px -14px rgba(0,0,0,.18);
  }
  .jobs-col:first-child{
    padding-top:0;
    border-top:0;
  }
  .jobs-col .section__head{
    margin:10px 0 8px;
  }
  .jobs-col .section__title{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
  }
  .section__head--flash .section__title{
    background:#E9F0DF;
    color:#2F5C34;
  }
  .section__head--standard .section__title{
    background:#E8EEF6;
    color:#2D4E7A;
  }
  .section__head--seasonal .section__title{
    background:#F0E6F6;
    color:#5A3E7A;
  }
  .searchcard__row{
    flex-direction:column;
    align-items:stretch;
  }
  .flash-bar{
    width:100%;
    min-width:0;
  }
  .searchcard__actions{
    width:100%;
  }
}
