/* Clorophilla — fascia "analisi compliance greenwashing" */
:root {
  --cgw-ink: #172526;
  --cgw-accent: #077376;
  --cgw-paper: #ffffff;
  --cgw-paper-soft: #ebf3f3;
  --cgw-rule: rgba(255, 255, 255, 0.22);
  --cgw-shadow: 0 22px 64px rgba(16, 42, 39, 0.24);
}

#clorophilla-greenwashing-banner {
  position: fixed;
  z-index: 2147482000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  width: min(calc(100% - 40px), 1120px);
  min-height: 112px;
  margin-inline: auto;
  padding: 22px 72px 22px 26px;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
  color: var(--cgw-paper);
  background: var(--cgw-ink);
  border: 1px solid var(--cgw-rule);
  border-radius: 20px;
  box-shadow: var(--cgw-shadow);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

#clorophilla-greenwashing-banner.cgw-banner--visible {
  opacity: 1;
  transform: translateY(0);
}

#clorophilla-greenwashing-banner[hidden] {
  display: none !important;
}

/* Safety net while Wix's consent layer is visible. JavaScript applies the
   same rule and also restarts the banner timer only after consent is closed. */
html:has(#acb-banner.acb-visible) #clorophilla-greenwashing-banner {
  display: none !important;
}

.cgw-banner__number {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #8ed7d2;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cgw-banner__content {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.cgw-banner__kicker {
  margin: 0;
  color: #8ed7d2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.cgw-banner__title {
  margin: 0;
  color: var(--cgw-paper);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.cgw-banner__cta {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  color: var(--cgw-ink);
  background: var(--cgw-paper);
  border: 1px solid var(--cgw-paper);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.cgw-banner__cta::after {
  content: "→";
  margin-left: 12px;
  font-size: 18px;
  line-height: 1;
}

.cgw-banner__cta:hover {
  color: var(--cgw-paper);
  background: var(--cgw-accent);
  border-color: var(--cgw-accent);
  transform: translateY(-1px);
}

.cgw-banner__cta:focus-visible,
.cgw-banner__close:focus-visible {
  outline: 3px solid #8ed7d2;
  outline-offset: 3px;
}

.cgw-banner__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--cgw-paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.cgw-banner__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  #clorophilla-greenwashing-banner {
    width: auto;
    min-height: 0;
    padding: 22px;
    padding-top: 58px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border-radius: 18px;
  }

  .cgw-banner__number {
    position: absolute;
    top: 16px;
    left: 22px;
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 11px;
  }

  .cgw-banner__content {
    gap: 7px;
  }

  .cgw-banner__title {
    font-size: clamp(29px, 9vw, 38px);
  }

  .cgw-banner__cta {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  #clorophilla-greenwashing-banner {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    padding-right: 18px;
    padding-bottom: 18px;
    padding-left: 18px;
  }

  .cgw-banner__number {
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #clorophilla-greenwashing-banner,
  .cgw-banner__cta,
  .cgw-banner__close {
    transition: none;
  }
}

@media print {
  #clorophilla-greenwashing-banner {
    display: none !important;
  }
}
