/* Shared Netsons footer. Layout, type, controls, then responsive and Eco states. */
.woo-netsons-footer {
  --footer-text: #11213b;
  --footer-heading: #0d2746;
  --footer-link: #52657a;
  --footer-muted: #687b90;
  --footer-ai-copy: #50647d;
  --footer-border: #dce6f0;
  --footer-accent: #1769e0;
  --footer-grade: #1769e0;
  --footer-social: #11213b;
  width: 100%;
  margin: 104px 0 0;
  padding: 54px 0 34px;
  background: #fff;
  color: var(--footer-text);
  font: 400 16px/1.5 "Poppins", sans-serif;
}

.woo-footer-container {
  width: min(calc(100% - 80px), 1420px);
  margin-inline: auto;
}

.woo-footer-head {
  display: flex;
  min-height: 53px;
  margin-bottom: 48px;
  align-items: flex-start;
  justify-content: space-between;
}

.woo-footer-head .netsons-brand-logo { width: 148px; height: auto; }
.woo-footer-tools { display: flex; align-items: center; gap: 8px; }

.woo-footer-directory {
  display: grid;
  grid-template-columns: .82fr .82fr 1.02fr 1.28fr 1.52fr;
  align-items: start;
  gap: clamp(22px, 2.25vw, 34px);
}

.woo-footer-directory > * { min-width: 0; }
.woo-footer-directory h2 {
  position: relative;
  display: flex;
  margin: 0 0 20px;
  padding-bottom: 12px;
  align-items: center;
  gap: 8px;
  color: var(--footer-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.woo-footer-directory h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: var(--footer-accent);
}

.woo-footer-directory h2 .wp-ni { width: 20px; margin-left: -4px; font-size: 16px; text-align: center; }
.woo-footer-directory ul { display: grid; margin: 0; padding: 0; gap: 8px; list-style: none; }
.woo-footer-directory li { font-size: 16px; line-height: 1.65; }
.woo-footer-directory a { color: var(--footer-link); font-size: 15px; line-height: 1.6; }
.woo-footer-directory a:hover, .woo-footer-legal a:hover { text-decoration: underline; }
.woo-footer-contacts address { display: grid; margin: 0; gap: 8px; font-size: 15px; font-style: normal; line-height: 1.6; }
.woo-footer-contacts address > * { min-width: 0; max-width: 100%; }
.woo-footer-contacts p { margin: 0; }
.woo-footer-contacts strong { font-weight: 600; }
.woo-footer-contacts address > a:first-child { margin-bottom: 2px; }

/* Green profile: copy is supplied by the localized theme catalog. */
.woo-carbon-card { padding-left: 24px; border-left: 2px solid #dce8f5; }
.woo-green-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.woo-green-heading strong { color: var(--footer-grade); font-size: 20px; font-weight: 600; line-height: 1.5; }
.woo-green-heading span { font-size: 12px; font-weight: 500; line-height: 1.5; }
.woo-carbon-card > p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; }
.woo-green-metrics {
  display: grid;
  margin: 15px 0 12px;
  padding: 12px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-block: 1px solid var(--footer-border);
}
.woo-green-metrics > span { display: grid; min-width: 0; align-content: start; gap: 3px; }
.woo-green-metrics b { min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.woo-green-metrics small { color: var(--footer-muted); font-size: 13px; font-weight: 500; line-height: 1.65; }
.woo-green-method { display: block; color: var(--footer-muted); font-size: 13px; line-height: 1.65; }
.woo-green-action {
  display: flex;
  width: 100%;
  min-height: 40px;
  margin: 10px 0 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--footer-accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

/* Language and energy controls. Only Italian and English are exposed. */
.woo-footer-languages { position: relative; }
.woo-footer-languages > summary, .woo-footer-tools > .wp-eco-toggle {
  display: inline-flex;
  height: 40px;
  margin: 0;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  background: #fff;
  color: var(--footer-text);
  line-height: 24px;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 8px 20px rgb(17 50 88 / .04);
}
.woo-footer-languages > summary { min-width: 60px; }
.woo-footer-tools > .wp-eco-toggle { width: 42px; }
.woo-footer-tools .wp-ni { font-size: 20px; }
.woo-footer-languages .ns-language-flag { flex-shrink: 0; border-radius: 2px; }
.woo-footer-languages > summary::-webkit-details-marker { display: none; }
.woo-footer-languages > div {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  width: min(180px, calc(100vw - 56px));
  padding: 8px;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  border: 1px solid var(--footer-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(8 36 76 / .14);
}
.woo-footer-languages > div a { display: flex; min-height: 43px; padding: 8px 10px; align-items: center; gap: 8px; border-radius: 10px; color: #253b57; font-size: 15px; line-height: 1.6; }
.woo-footer-languages > div a:is(:hover, .active) { background: #edf5ff; color: #0d5dcc; }

/* AI discovery, social links and legal line. */
.woo-footer-rule { height: 0; margin: 40px 0 28px; }
.woo-footer-ai-row { display: grid; min-height: 82px; grid-template-columns: minmax(240px, .9fr) minmax(420px, 1.35fr) auto; align-items: center; gap: 24px; }
.woo-footer-ai-copy { display: grid; gap: 5px; }
.woo-footer-ai-copy strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.woo-footer-ai-copy p { margin: 0; color: var(--footer-ai-copy); font-size: 13px; line-height: 1.65; }
.woo-footer-ai-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.woo-footer-ai-links a { display: inline-flex; width: 42px; height: 42px; padding: 9px; align-items: center; justify-content: center; border: 1px solid #cbd9e7; border-radius: 50%; background: rgb(255 255 255 / .72); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.woo-footer-ai-links img { width: 24px; height: 24px; object-fit: contain; }
.woo-footer-ai-links a:hover { border-color: var(--footer-accent); background: #f5f9ff; transform: translateY(-1px); }
.woo-footer-socials { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.woo-footer-socials > span { display: none; font-weight: 600; }
.woo-footer-socials a { color: var(--footer-social); font-size: 13px; line-height: 1.5; }
.woo-footer-legal { margin: 24px 0 0; font-size: 13px; line-height: 1.65; }
.woo-footer-legal strong { font-weight: 700; }
.woo-footer-legal a { text-decoration: underline; }

@media (max-width: 1279px) {
  .woo-footer-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 52px); }
  .woo-carbon-card { grid-column: 1 / -1; }
  .woo-footer-ai-row { grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr); }
  .woo-footer-socials { grid-column: 1 / -1; justify-content: center; gap: 12px; }
  .woo-footer-socials > span { display: block; }
}

@media (max-width: 767px) {
  .woo-netsons-footer { padding: 42px 0 28px; }
  .woo-footer-container { width: calc(100% - 48px); }
  .woo-footer-head { margin-bottom: 32px; }
  .woo-footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .woo-carbon-card { padding-left: 0; border-left: 0; }
  .woo-green-metrics { grid-template-columns: 1fr; }
  .woo-green-metrics > span { grid-template-columns: minmax(92px, auto) minmax(0, 1fr); align-items: baseline; }
  .woo-footer-ai-row { grid-template-columns: 1fr; gap: 15px; text-align: center; }
  .woo-footer-ai-links a { width: 40px; height: 40px; }
  .woo-footer-socials { grid-column: auto; margin-top: 4px; }
  .woo-footer-socials > span { margin-right: 5px; }
}

@media (max-width: 430px) {
  .woo-footer-directory h2 { gap: 6px; }
}

/* Eco uses the same full-width frame; only palette and profile-card layout change. */
html[data-theme="eco"] .woo-netsons-footer {
  --footer-text: #f0f4f8;
  --footer-heading: #f0f4f8;
  --footer-link: #afbfce;
  --footer-muted: #b9c4d0;
  --footer-ai-copy: #afbfce;
  --footer-border: #3a516e;
  --footer-accent: #88beff;
  --footer-grade: #5fd19a;
  --footer-social: #dce7f1;
  background: linear-gradient(180deg, #0d1117 0%, #090c10 100%);
}
html[data-theme="eco"] .woo-footer-directory h2::after { background: #79b6ff; }
html[data-theme="eco"] .woo-footer-contacts address { color: #afbfce; }
html[data-theme="eco"] .woo-footer-contacts strong { color: #dfe7ef; }
html[data-theme="eco"] .woo-carbon-card { padding: 26px; overflow: hidden; border: 1px solid #354354; border-radius: 20px; background: #171d26; }
html[data-theme="eco"] .woo-green-heading span { color: #f2f6fb; }
html[data-theme="eco"] .woo-carbon-card > p { color: #afbfce; }
html[data-theme="eco"] .woo-green-metrics { grid-template-columns: 1fr; gap: 10px; }
html[data-theme="eco"] .woo-green-metrics > span { grid-template-columns: minmax(92px, auto) minmax(0, 1fr); align-items: baseline; gap: 12px; }
html[data-theme="eco"] .woo-green-metrics b { color: #afbfce; }
html[data-theme="eco"] .woo-footer-legal a { color: #afbfce; }
html[data-theme="eco"] .woo-footer-languages > summary, html[data-theme="eco"] .woo-footer-languages > div { background: #223a58; }
html[data-theme="eco"] .woo-footer-languages > div a { color: #dce6f0; }
html[data-theme="eco"] .woo-footer-languages > div a:is(:hover, .active) { background: #294565; color: #fff; }
html[data-theme="eco"] .woo-footer-tools > .wp-eco-toggle { border-color: #2c3746; background: #171d26; color: #eef3f8; }
html[data-theme="eco"] body .woo-footer-head .netsons-brand-logo { filter: brightness(0) invert(1); }
html[data-theme="eco"] .woo-footer-ai-links a { border-color: #2c3746; background: #171d26; }
html[data-theme="eco"] body .woo-footer-ai-links img { filter: brightness(0) saturate(100%) invert(79%) sepia(45%) saturate(672%) hue-rotate(184deg) brightness(105%) contrast(101%); }
@media (max-width: 767px) {
  html[data-theme="eco"] .woo-carbon-card { padding: 22px; }
}
