/* Header + Footer CliccaLavoro (allineati a www.cliccalavoro.it / registrati) */

:root {
  --cl-green: #39b362;
  --cl-green-dark: #2f9552;
  --cl-nav: #000000;
  --cl-footer-bg: #111827;
  --cl-footer-muted: #9ca3af;
  --cl-footer-text: #e5e7eb;
  --cl-border: #e5e7eb;
  --cl-header-max: 1200px;
}

.cl-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--cl-border);
}

.cl-site-header-inner {
  box-sizing: border-box;
  max-width: var(--cl-header-max);
  margin: 0 auto;
  height: 64px;
  min-height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.cl-site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.cl-site-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.cl-site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.cl-site-nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.cl-site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.cl-site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--cl-nav) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
}

.cl-site-nav a:hover {
  color: var(--cl-green) !important;
}

.cl-site-nav li.is-current a,
.cl-site-nav a[aria-current="page"] {
  background: var(--cl-green);
  color: #fff !important;
}

.cl-site-nav li.is-current a:hover,
.cl-site-nav a[aria-current="page"]:hover {
  color: #fff !important;
  background: var(--cl-green-dark);
}

.cl-site-header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.cl-btn--primary {
  background: var(--cl-green);
  color: #fff;
  border: 2px solid var(--cl-green);
}

.cl-btn--primary:hover {
  background: var(--cl-green-dark);
  border-color: var(--cl-green-dark);
  color: #fff;
}

.cl-btn--outline {
  background: #fff;
  color: var(--cl-green);
  border: 2px solid var(--cl-green);
}

.cl-btn--outline:hover {
  background: rgba(57, 179, 98, 0.08);
  color: var(--cl-green-dark);
}

.cl-site-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--cl-border);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  padding: 0;
}

.cl-site-nav-toggle span {
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
}

/* Footer */
.cl-site-footer {
  background: var(--cl-footer-bg);
  color: var(--cl-footer-muted);
  margin-top: 0;
  padding: 48px 0;
}

.cl-site-footer-inner {
  box-sizing: border-box;
  max-width: var(--cl-header-max);
  margin: 0 auto;
  padding: 0 20px;
}

.cl-site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.cl-site-footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.cl-site-footer-claim {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cl-footer-muted);
}

.cl-site-footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.cl-site-footer-social a {
  color: var(--cl-footer-muted);
  text-decoration: none;
  display: inline-flex;
}

.cl-site-footer-social a:hover {
  color: #fff;
}

.cl-site-footer-heading {
  margin: 0 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cl-site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 2.1;
}

.cl-site-footer-links a {
  color: var(--cl-footer-muted);
  text-decoration: none;
}

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

.cl-site-footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cl-site-footer-legal-entity {
  margin: 0 0 10px;
  color: var(--cl-footer-text);
  font-size: 13px;
}

.cl-site-footer-legal-links {
  margin: 0;
  font-size: 13px;
  color: var(--cl-footer-muted);
}

.cl-site-footer-legal-links a {
  color: var(--cl-footer-muted);
  text-decoration: none;
}

.cl-site-footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.cl-site-footer-legal-links span {
  margin: 0 8px;
  color: #4b5563;
}

@media (max-width: 1100px) {
  .cl-site-nav-toggle {
    display: inline-flex;
  }

  .cl-site-header-inner {
    position: relative;
    height: auto;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
  }

  .cl-site-header-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0 8px;
  }

  .cl-site-header-main.is-open {
    display: flex;
  }

  .cl-site-nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .cl-site-nav a {
    justify-content: flex-start;
  }

  .cl-site-header-cta {
    width: 100%;
    flex-direction: column;
  }

  .cl-btn {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .cl-site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cl-site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cl-site-footer-legal-links span {
    margin: 0 6px;
  }
}

/* Link sul benefit "Ricerca rapida" in home blog */
.dp-home-simple-benefit-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
