/* AKL landing polish — overrides Webflow export. Apple-adjacent: calm, premium, minimal. */

:root {
  --akl-bg: #f5f5f7;
  --akl-surface: #ffffff;
  --akl-text: #1d1d1f;
  --akl-text-secondary: #6e6e73;
  --akl-text-tertiary: #86868b;
  --akl-lime: #b8e632;
  --akl-lime-soft: rgba(184, 230, 50, 0.14);
  --akl-blue: #0077ed;
  --akl-blue-deep: #0a1628;
  --akl-footer: #000000;
  --akl-footer-text: var(--akl-lime);
  --akl-footer-text-muted: rgba(184, 230, 50, 0.82);
  --akl-radius-card: 22px;
  --akl-radius-field: 14px;
  --akl-radius-pill: 100px;
  --akl-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --akl-display: "Montserrat", var(--akl-font);
  --akl-section-y: clamp(3.5rem, 8vw, 6.5rem);
  --akl-contact-max: min(100%, 520px);
  --akl-contact-form-max: min(100%, 440px);
  --akl-contact-pad-y: clamp(4.5rem, 11vw, 7.5rem);
  /* Stessa risorsa della hero (Webflow) — footer allineato visivamente */
  --akl-hero-bg-image: url("https://cdn.prod.website-files.com/69a853e5b9ba9c277fe74838/69a86dc695c6c3e427bae8f6_hero%20section%20image.png");
  /* Services — dark band aligned with hero mood */
  --akl-services-bg-top: #000000;
  --akl-services-bg-bottom: #080c0a;
  --akl-services-text: rgba(255, 255, 255, 0.96);
  --akl-services-muted: rgba(255, 255, 255, 0.68);
  --akl-services-card: #1c2822;
  --akl-services-card-mid: #18211c;
  --akl-services-card-highlight: rgba(255, 255, 255, 0.07);
}

/* --- Base -------------------------------------------------------------- */
.body {
  mix-blend-mode: normal;
  background-color: var(--akl-bg);
  color: var(--akl-text);
  font-family: var(--akl-font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.body .section {
  color: inherit;
}

/* --- Hero -------------------------------------------------------------- */
.section.cc-store-home-wrap {
  position: relative;
  padding: 0;
  color: #fff;
  background-color: #000000;
}

.intro-header {
  position: relative;
  margin-bottom: 0;
  min-height: min(78vh, 720px);
  height: auto;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  background-image: var(--akl-hero-bg-image);
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}

/* Full-height overlay: clear at top → dark at bottom (matches services bg), no mid-band cutoff */
.intro-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  opacity: 0.48;
  backdrop-filter: blur(4px) saturate(1.06);
  -webkit-backdrop-filter: blur(4px) saturate(1.06);
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.85) 78%,
    #000 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.85) 78%,
    #000 100%
  );
}

.intro-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0.08) 48%,
    rgba(0, 0, 0, 0.28) 62%,
    rgba(0, 0, 0, 0.55) 74%,
    rgba(0, 0, 0, 0.78) 84%,
    rgba(0, 0, 0, 0.92) 93%,
    #000000 100%
  );
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(92%, 720px);
  margin-bottom: 0;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.intro-text {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.heading-jumbo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
  font-family: var(--akl-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero-logo {
  display: block;
  width: clamp(9.75rem, 32vw, 13.75rem);
  height: auto;
  margin: 0 auto 0.2em;
  filter: brightness(0) invert(1) drop-shadow(0 2px 24px rgba(0, 0, 0, 0.4));
}

.paragraph-bigger.cc-bigger-light {
  font-family: var(--akl-font);
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 0;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy Webflow strip caused a sharp horizontal cut; hero fade is handled by .intro-header::after */
.section.cc-store-home-wrap .w-embed {
  display: none;
}

/* --- Services (dark, continuous with hero) ----------------------------- */
.section[data-copilot="true"] {
  color: var(--akl-services-text);
  padding: var(--akl-section-y) clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(
    180deg,
    #000000 0%,
    #050807 22%,
    #0a0f0d 55%,
    var(--akl-services-bg-bottom) 100%
  );
  box-shadow: none;
}

.section[data-copilot="true"] .container {
  font-family: var(--akl-font);
  max-width: 1120px;
}

.section[data-copilot="true"] .grid-layout:first-of-type {
  margin-bottom: 0.5rem;
}

.section[data-copilot="true"] .heading {
  font-family: var(--akl-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--akl-services-text);
}

.section[data-copilot="true"] .paragraph-small {
  color: var(--akl-services-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42rem;
}

.grid-layout.grid-gap-xs {
  grid-column-gap: 1.25rem;
  grid-row-gap: 1.25rem;
}

@media screen and (min-width: 992px) {
  .grid-layout.grid-gap-xs {
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
  }
}

.card {
  background-color: var(--akl-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--akl-radius-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.utility-padding-all-2rem {
  height: auto;
  min-height: 100%;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  background-image: linear-gradient(165deg, var(--akl-lime-soft) 0%, #fff 42%, #fff 100%);
}

/* Dark cards: lift from section without heavy borders or flat black */
.section[data-copilot="true"] .card {
  background: linear-gradient(
    155deg,
    var(--akl-services-card) 0%,
    var(--akl-services-card-mid) 100%
  );
  border: 1px solid var(--akl-services-card-highlight);
  border-radius: var(--akl-radius-card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 32px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.45s ease;
}

.section[data-copilot="true"] .card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 14px 36px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.section[data-copilot="true"] .utility-padding-all-2rem {
  background-color: transparent;
  background-image: linear-gradient(
    165deg,
    rgba(184, 230, 50, 0.09) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    transparent 72%
  );
}

.section[data-copilot="true"] .service-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--akl-lime);
}

.section[data-copilot="true"] .service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section[data-copilot="true"] .heading-4 {
  font-family: var(--akl-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--akl-services-text);
  margin-bottom: 0.75rem;
}

.section[data-copilot="true"] .paragraph-small.utility-margin-bottom-0 {
  color: var(--akl-services-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Contact (centered column, light, intentional width) --------------- */
.section:has(.get-in-touch-form-wrap) {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fafafa;
  color: var(--akl-text);
  padding: var(--akl-contact-pad-y) clamp(1.25rem, 5vw, 2rem);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section:has(.get-in-touch-form-wrap) > .container {
  width: 100%;
  max-width: var(--akl-contact-max);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--akl-font);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.section:has(.get-in-touch-form-wrap) .container.cc-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section:has(.get-in-touch-form-wrap) .container.cc-heading-wrap .heading {
  font-family: var(--akl-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--akl-text);
  margin-top: 0;
  margin-bottom: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.section:has(.get-in-touch-form-wrap) .container.cc-heading-wrap .paragraph-bigger.cc-bigger-light {
  color: var(--akl-text-secondary);
  opacity: 1;
  font-size: 1.0625rem;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.get-in-touch-form-wrap {
  width: 100%;
  max-width: var(--akl-contact-form-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.section:has(.get-in-touch-form-wrap) > .container:has(.get-in-touch-form-wrap) {
  flex: 0 0 auto;
}

.section:has(.get-in-touch-form-wrap) .get-in-touch-form {
  width: 100%;
  max-width: var(--akl-contact-form-max);
  margin: 0 auto;
  text-align: left;
}

.section:has(.get-in-touch-form-wrap) .credentials-inputs-wrap {
  width: 100%;
  gap: 0.75rem;
}

.section:has(.get-in-touch-form-wrap) .contact-name-field-wrap,
.section:has(.get-in-touch-form-wrap) .email-name-field-wrap {
  width: 50%;
  min-width: 0;
}

.section:has(.get-in-touch-form-wrap) .text-field.cc-contact-field,
.section:has(.get-in-touch-form-wrap) .text-field.cc-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section:has(.get-in-touch-form-wrap) .submit-button {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
}

.akl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.get-in-touch-form-wrap.is-success .w-form-done,
.get-in-touch-form-wrap.is-error .w-form-fail {
  display: block;
}

.get-in-touch-form-wrap .status-message.cc-success-message {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--akl-radius-field);
  padding: 2rem 1.5rem;
  color: var(--akl-text);
  line-height: 1.6;
}

.get-in-touch-form-wrap .status-message-title {
  font-family: var(--akl-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--akl-text);
}

.get-in-touch-form-wrap .status-message.cc-error-message {
  background: #fff5f5;
  border: 1px solid rgba(180, 40, 40, 0.16);
  border-radius: var(--akl-radius-field);
  padding: 1rem 1.125rem;
  color: #7a1f1f;
  line-height: 1.5;
}

.get-in-touch-form-wrap.is-sending .submit-button {
  opacity: 0.7;
  cursor: wait;
}

.container.cc-heading-wrap {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.text-field.cc-contact-field,
.text-field.cc-textarea {
  border-radius: var(--akl-radius-field);
  border: 1px solid #d2d2d7;
  background-color: #fff;
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-field.cc-contact-field:hover,
.text-field.cc-textarea:hover {
  border-color: #c4c4c9;
}

.text-field.cc-contact-field:focus,
.text-field.cc-textarea:focus {
  border-color: var(--akl-blue);
  box-shadow: 0 0 0 4px rgba(0, 119, 237, 0.12);
  outline: none;
}

.field-label,
.field-label-2,
.field-label-3 {
  color: var(--akl-text) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.submit-button {
  margin-top: 0.5rem;
  padding: 0.875rem 2.25rem;
  border-radius: var(--akl-radius-pill);
  font-family: var(--akl-font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--akl-blue-deep) !important;
  background: linear-gradient(180deg, #d4f06a 0%, var(--akl-lime) 100%) !important;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
  transform: scale(0.98);
}

/* --- Footer: stessa immagine + blur + logica gradiente della hero (invertita) --- */
.section:has(.footer-dark) {
  padding: 0;
  background-color: #000000;
  background-image: none;
}

.section:has(.footer-dark) > .container {
  max-width: none;
  padding: 0;
  background-color: transparent;
  background-image: none;
}

.footer-dark {
  mix-blend-mode: normal;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #000000;
  background-image: var(--akl-hero-bg-image);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  border-bottom: none;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 9vw, 5.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Identico a .intro-header::before — stesso blur e maschera sulla texture hero */
.footer-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  opacity: 0.48;
  backdrop-filter: blur(4px) saturate(1.06);
  -webkit-backdrop-filter: blur(4px) saturate(1.06);
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.85) 78%,
    #000 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.85) 78%,
    #000 100%
  );
}

/* Invertito rispetto a .intro-header::after: nero in alto → trasparente in basso (stessi passaggi, specchiati) */
.footer-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #000000 0%,
    rgba(0, 0, 0, 0.92) 7%,
    rgba(0, 0, 0, 0.78) 16%,
    rgba(0, 0, 0, 0.55) 26%,
    rgba(0, 0, 0, 0.28) 38%,
    rgba(0, 0, 0, 0.08) 52%,
    rgba(0, 0, 0, 0) 72%,
    rgba(0, 0, 0, 0) 100%
  );
}

.footer-dark > * {
  position: relative;
  z-index: 2;
}

.container-3 {
  max-width: 1040px;
}

.footer-wrapper {
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 3rem);
}

@media screen and (min-width: 768px) {
  .footer-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }
}

.footer-brand .image {
  margin: 0;
  max-width: min(280px, 72vw);
  opacity: 1;
  /* Raster logo → tinta lime su sfondo nero (ottimizzato per logo scuro / contrasto) */
  filter: brightness(0) saturate(100%) invert(88%) sepia(28%) saturate(1200%) hue-rotate(38deg) brightness(1.02) contrast(0.92);
}

.footer-content {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  flex: 1;
  min-width: 0;
}

.footer-block {
  max-width: 26rem;
}

.footer-dark .title-small {
  font-family: var(--akl-display);
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin-left: 0;
  margin-bottom: 1rem;
  color: var(--akl-footer-text);
}

.footer-dark .paragraph {
  margin-left: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--akl-footer-text-muted);
  letter-spacing: 0.01em;
}

.footer-divider {
  background-color: rgba(184, 230, 50, 0.22);
  height: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.35rem;
}

.footer-dark .footer-copyright-center {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.5;
}

/* --- Responsive: match polish to existing breakpoints ------------------ */
@media screen and (max-width: 991px) {
  .heading-jumbo {
    font-size: clamp(2.25rem, 7vw, 3.25rem);
  }

}

@media screen and (max-width: 767px) {
  .body .section {
    margin-left: 0;
    margin-right: 0;
  }

  .grid-layout.desktop-4-column.tablet-2-column.mobile-landscape-1-column {
    grid-template-columns: 1fr;
  }

  .utility-margin-top-3rem {
    margin-top: 2.25rem;
  }

  .card:hover {
    transform: none;
  }

  .section:has(.get-in-touch-form-wrap) .contact-name-field-wrap,
  .section:has(.get-in-touch-form-wrap) .email-name-field-wrap {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}
