:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --brand-blue: #0066cc;
  --brand-blue-hover: #0055b3;
  --gus-navy: #1b2a41;
  --brand-orange: #c9521e;
  --whatsapp: #1b7a43;
  --whatsapp-hover: #146134;
  --danger: #c62828;
  --radius-card: 16px;
  --radius-control: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.035);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Frosted Apple-style Navigation */
header {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.brand-title {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  display: block;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted);
  display: block;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

/* Hero Cover with Siracusa Photography */
.hero-cover {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 36px 32px;
  margin-bottom: 24px;
  background: var(--gus-navy) url('/hero-siracusa.jpg') center 58% / cover no-repeat;
  box-shadow: var(--shadow-md);
}

.hero-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 26, 40, 0.22) 0%,
    rgba(16, 26, 40, 0.56) 55%,
    rgba(16, 26, 40, 0.84) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: #ffffff;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 8px;
}

.hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
}

.hero-content p {
  margin: 0 0 22px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

/* Apple Spotlight-style Search Bar inside Hero */
.hero-search {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  grid-template-columns: 2fr 1.15fr 1.15fr auto;
  gap: 8px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero-search input,
.hero-search select {
  border: 1px solid transparent;
  background: transparent;
  padding: 11px 12px;
  font-size: 0.94rem;
  color: var(--ink);
  border-radius: 9px;
}

.hero-search input:focus,
.hero-search select:focus {
  background: #f5f5f7;
  outline: none;
}

/* Stats Bar */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Secondary Filter Row (Clean, zero capsules) */
.sub-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.quick-cats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.quick-cat-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.quick-cat-btn:hover,
.quick-cat-btn.active {
  color: var(--ink);
  border-bottom-color: var(--brand-blue);
  font-weight: 600;
}

.sub-filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sub-filter-controls select {
  width: auto;
  min-width: 155px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

/* Inputs & Buttons */
input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 0.93rem;
  background: var(--surface);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 102, 204, 0.28);
  border-color: var(--brand-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-blue-hover);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #323236;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: #efeff2;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-inline input {
  width: auto;
}

/* Job Cards — Apple Clean Elevated Surfaces */
.jobs-grid {
  display: grid;
  gap: 12px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.13);
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.job-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.job-company {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2px;
}

.price-text {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--brand-blue);
  white-space: nowrap;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.meta-verified {
  color: var(--whatsapp);
  font-weight: 600;
}

.meta-hidden {
  color: var(--brand-orange);
  font-weight: 600;
}

.meta-fb {
  color: var(--brand-blue);
  font-weight: 600;
}

.job-desc {
  margin: 2px 0 0;
  color: #424245;
  font-size: 0.92rem;
  max-width: 820px;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

/* Employer Visual Feature Banner (Cover Aziende) */
.employer-feature {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  box-shadow: var(--shadow-sm);
}

.employer-copy {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.employer-copy small {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
}

.employer-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.employer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.employer-media {
  min-height: 260px;
  background: #e5e7eb url('/cover-aziende.webp') center / cover no-repeat;
}

/* External Portals Section */
.external-section {
  margin-top: 44px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.external-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.external-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.external-card small {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.external-card h3 {
  margin: 4px 0 6px;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.external-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
}

/* Local SEO Municipalities & FAQ Section */
.seo-section {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.mun-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.mun-link-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--brand-blue);
  cursor: pointer;
  text-decoration: none;
}

.mun-link-btn:hover {
  text-decoration: underline;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list p {
  margin: 10px 0 2px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 780px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 31, 0.52);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.close-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.section-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.section-box h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.comment-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.comment-item.employer {
  border-left: 3px solid var(--brand-blue);
}

.comment-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Admin tabs */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer with Siracusa Web Design Brand */
.site-footer {
  margin-top: 48px;
  padding: 26px 0 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-dev img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  display: none;
  z-index: 100;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.toast.show {
  display: block;
}

/* Responsive / Mobile-First Polish */
@media (max-width: 900px) {
  .hero-search {
    grid-template-columns: 1fr 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .employer-feature {
    grid-template-columns: 1fr;
  }
  .external-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 16px 14px 48px;
  }
  .header-inner {
    padding: 10px 14px;
  }
  .hero-cover {
    padding: 28px 18px 20px;
    min-height: 330px;
    border-radius: 16px;
  }
  .hero-search {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .external-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .employer-copy {
    padding: 24px 18px;
  }
  .seo-section {
    padding: 22px 18px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .btn {
    min-height: 44px;
  }
  .job-actions .btn {
    flex: 1 1 100%;
  }
  .nav-actions {
    width: 100%;
  }
  .nav-actions .btn {
    flex: 1;
  }
  .modal {
    padding: 18px;
  }
}

/* SEO Guides Layout (Apple Clean Editorial) */
.guide-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 36px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.guide-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.guide-breadcrumb a {
  color: var(--brand-blue);
  text-decoration: none;
}

.guide-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.guide-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}

.guide-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
}

.guide-answer {
  background: var(--bg);
  border-left: 3px solid var(--brand-blue);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 0.96rem;
  color: var(--ink);
}

.guide-article h2 {
  margin: 28px 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.guide-article p,
.guide-article li {
  color: #424245;
  font-size: 0.95rem;
}

.guide-article ul,
.guide-article ol {
  padding-left: 20px;
  margin: 10px 0 18px;
}

.guide-article li {
  margin: 6px 0;
}

.guide-aside {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-aside h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.guide-aside a {
  font-size: 0.88rem;
  color: var(--brand-blue);
  text-decoration: none;
}

.guide-aside a:hover {
  text-decoration: underline;
}

.guide-cta {
  margin-top: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.guide-cta h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.guide-cta p {
  margin: 0 0 14px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-aside {
    position: static;
  }
  .guides-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .guide-hero,
  .guide-article {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

/* Manual Load More Pagination Bar */
.load-more-bar {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.load-more-info {
  font-size: 0.84rem;
  color: var(--muted);
}

.load-more-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Source origin subtle indicator next to job title */
.job-origin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.origin-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

.origin-link:hover {
  text-decoration: underline;
}

/* Overhaul Redesign — Job Detail Modal (Apple Sheet) */
.modal.modal-overhaul {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-hero-banner {
  background: linear-gradient(135deg, #132238 0%, #1d4e89 100%);
  color: #ffffff;
  padding: 24px 26px 20px;
  position: relative;
}

.modal-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.modal-hero-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
}

.modal-hero-banner h2 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.2;
}

.modal-hero-sub {
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.modal-hero-price {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 8px;
}

.modal-close-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close-light:hover {
  background: rgba(255, 255, 255, 0.26);
}

.modal-body-scroll {
  padding: 22px 26px 26px;
  overflow-y: auto;
}

.info-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.info-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.info-tile small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.info-tile strong {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 600;
}

.source-banner {
  background: #f0f6ff;
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.source-banner-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.source-banner-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.modal-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 14px;
}

.modal-tab-btn {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.modal-tab-btn.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.modal-tab-panel {
  display: none;
}

.modal-tab-panel.active {
  display: block;
}

.comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.comment-row.employer {
  background: #f0f6ff;
  border-color: rgba(0, 102, 204, 0.22);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gus-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.comment-row.employer .comment-avatar {
  background: var(--brand-blue);
}

/* Overhaul Redesign — Editorial Photographic Guide Pages */
.guide-hero-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 36px 30px;
  margin-bottom: 24px;
  background: var(--gus-navy) url('/hero-siracusa.jpg') center 55% / cover no-repeat;
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.guide-hero-photo.aziende-bg {
  background-image: url('/cover-aziende.webp');
  background-position: center;
}

.guide-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 39, 0.32) 0%,
    rgba(15, 25, 39, 0.68) 55%,
    rgba(15, 25, 39, 0.9) 100%
  );
}

.guide-hero-photo > * {
  position: relative;
  z-index: 1;
}

.guide-hero-photo .guide-breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

.guide-hero-photo .guide-breadcrumb a {
  color: #ffffff;
}

.guide-hero-photo h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  max-width: 780px;
}

.guide-hero-photo .guide-lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.guide-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.highlight-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-blue);
  border-radius: 12px;
  padding: 14px 16px;
}

.highlight-card small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.highlight-card strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.highlight-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.guide-live-jobs {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.guide-live-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.guide-live-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guide-live-card strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
}

.guide-live-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.aside-card-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.aside-card-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.aside-card-photo div {
  padding: 12px;
  background: var(--bg);
}

.aside-card-photo strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.aside-card-photo p {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .info-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .guide-highlights {
    grid-template-columns: 1fr;
  }
  .guide-hero-photo {
    padding: 24px 18px 22px;
    min-height: 240px;
    border-radius: 16px;
  }
  .modal-hero-banner {
    padding: 18px;
  }
  .modal-body-scroll {
    padding: 16px 18px 20px;
  }
}
