/* Header + cookie: allineati al Squarespace live (walrus-lychee-766t). */

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #6e7c63 !important;
  color: #fffef5 !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  transition: transform 0.35s ease;
}

.site-header.is-hidden {
  transform: none !important;
}

.site-header-inner {
  min-height: 72px !important;
  padding: 16px 22px !important;
  align-items: center;
}

.site-title,
.site-brand {
  color: #fffef5 !important;
  text-decoration: none;
  font-family: "Averia Libre", "Cormorant Garamond", serif !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.desktop-nav,
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.desktop-nav a,
.site-nav a {
  color: #fffef5 !important;
  text-decoration: none;
  font-family: "Fragment Mono", ui-monospace, monospace !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff !important;
}

.header-cta,
.mobile-menu-cta,
.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 21px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #000 !important;
  text-decoration: none;
  font-family: "Fragment Mono", ui-monospace, monospace !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  background: #fffef5 !important;
}

.mobile-menu {
  background: #6e7c63 !important;
  border-top: 1px solid rgba(255, 254, 245, 0.16) !important;
}

.mobile-menu nav a {
  color: #fffef5 !important;
  font-family: "Fragment Mono", ui-monospace, monospace !important;
  border-bottom-color: rgba(255, 254, 245, 0.12) !important;
}

@media (max-width: 980px) {
  .desktop-nav,
  .site-nav,
  .header-cta,
  .site-header-cta {
    display: none !important;
  }

  .site-header.menu-open .site-nav {
    position: absolute;
    display: flex !important;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 24px 24px;
    background: #6e7c63 !important;
    border-top: 1px solid rgba(255, 254, 245, 0.16);
  }

  .site-header.menu-open .site-nav a {
    width: 100%;
    padding: 13px 0;
  }

  .menu-toggle {
    display: block !important;
  }

  .site-header-inner {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Cookie — stesso copy e CTA del banner Squarespace live */
.axel-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 12000;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 22px 20px;
  background: #fff;
  color: #151311;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(21, 19, 17, 0.18);
}

.axel-cookie[hidden] {
  display: none !important;
}

.axel-cookie p {
  margin: 0 0 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #151311;
}

.axel-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.axel-cookie-accept {
  appearance: none;
  border: 0;
  min-height: 44px;
  padding: 10px 22px;
  background: #e5383b;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.axel-cookie-reject {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 8px 0;
  color: #e5383b;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
}

.axel-cookie-prefs {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Hero: testo visibile a sinistra, card a destra senza coprire */
[class*="hero-v1"],
.axel-adoptionhero-v1 {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  padding-top: 140px !important;
}

[class*="hero-content"],
.axel-adoptionhero-content {
  display: block !important;
  position: relative;
  z-index: 2;
  flex: 0 1 720px;
  max-width: 720px !important;
  width: auto;
  min-width: 0;
  padding-right: 0 !important;
}

[class*="hero-title"],
.axel-adoptionhero-title {
  max-width: 100% !important;
  font-size: clamp(40px, 5.8vw, 82px) !important;
  line-height: 1.02 !important;
}

[class*="hero-text"],
.axel-adoptionhero-text {
  max-width: 100% !important;
}

[class$="-hero-card"],
.axel-adoptionhero-card {
  position: absolute !important;
  right: 7vw !important;
  bottom: 70px !important;
  left: auto !important;
  top: auto !important;
  z-index: 3;
  width: 280px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  [class*="hero-title"],
  .axel-adoptionhero-title {
    font-size: clamp(36px, 9.5vw, 48px) !important;
    line-height: 1.06 !important;
  }

  [class*="hero-content"],
  .axel-adoptionhero-content {
    max-width: 100% !important;
  }

  [class$="-hero-card"],
  .axel-adoptionhero-card {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(280px, 100%) !important;
    margin-top: 28px;
  }
}

/* Respiro sezioni: i 13/20px originali attaccavano i titoli al bordo alto */
.axel-urgent-v2,
.axel-story-v1,
.axel-dogs-v1,
.axel-adopt-v1,
.axel-support-v1,
.axel-reviews-v1,
.axel-meaning-v1,
.axel-form-v1,
.axel-contact-info-v1,
.axel-contact-reviews,
.axel-faq-v1,
.axel-5x1000-v1,
.axel-mama-v1,
.axel-donate-v1,
.axel-project-v3,
.axel-share-v1,
.axel-quest-intro-v1,
.axel-quest-after-v1,
.axel-cinofilo-services-v1,
.axel-cinofilo-method-v1,
.axel-cinofilo-space-v1,
.axel-cinofilo-training-v1,
.axel-cinofilo-reviews-v2,
.axel-storie-intro-v1,
.axel-storia-axel-v1,
.axel-primadopo-v1,
.axel-storie-testi-v1 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.axel-footer-v2 {
  padding-top: 48px;
}

@media (max-width: 768px) {
  .axel-urgent-v2,
  .axel-story-v1,
  .axel-dogs-v1,
  .axel-adopt-v1,
  .axel-support-v1,
  .axel-reviews-v1,
  .axel-meaning-v1,
  .axel-form-v1,
  .axel-contact-info-v1,
  .axel-contact-reviews,
  .axel-faq-v1,
  .axel-5x1000-v1,
  .axel-mama-v1,
  .axel-donate-v1,
  .axel-project-v3,
  .axel-share-v1,
  .axel-quest-intro-v1,
  .axel-quest-after-v1,
  .axel-cinofilo-services-v1,
  .axel-cinofilo-method-v1,
  .axel-cinofilo-space-v1,
  .axel-cinofilo-training-v1,
  .axel-cinofilo-reviews-v2 {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .axel-footer-v2 {
    padding-top: 36px;
  }
}

.axel-footer-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.axel-wa-float {
  position: fixed;
  z-index: 1100;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 19, 17, 0.28);
  text-decoration: none;
}

.axel-wa-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

.axel-wa-float:focus-visible {
  outline: 2px solid #fffef5;
  outline-offset: 3px;
}
