/**
 * Step 135B - Hotfix consolidato.
 * Scope: ripristino hero Chi sono + pagine servizio tecniche, inclusa WooCommerce,
 * e hide honeypot CF7.
 */

/* Hide anti-spam honeypot fields accidentally exposed by CF7/Akismet. */
.ff-cf7-embed :is(input, textarea)[name*="ak_hp"],
.ff-cf7-embed :is(input, textarea)[name*="honeypot"],
.ff-cf7-embed :is(input, textarea)[name*="hp_"] {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ff-cf7-embed :is(p, label, span, div):has(> :is(input, textarea)[name*="ak_hp"]),
.ff-cf7-embed :is(p, label, span, div):has(> :is(input, textarea)[name*="honeypot"]),
.ff-cf7-embed :is(p, label, span, div):has(> :is(input, textarea)[name*="hp_"]) {
  display: none !important;
}

/* Approved full-bleed hero system. WooCommerce usa lo stesso layout di Chi sono. */
body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media {
  position: relative !important;
  overflow: hidden !important;
  padding-block: 0 !important;
  min-height: clamp(540px, 72vw, 760px) !important;
  background: linear-gradient(180deg, #fcfcfe 0%, #f4f8ff 100%) !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__inner--media,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(540px, 72vw, 760px) !important;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4.4vw, 72px) clamp(40px, 5vw, 56px) !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__content,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__content,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__content,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__content,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__content,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__content {
  position: relative !important;
  z-index: 2 !important;
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  padding: 0 !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media picture,
body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media picture,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media picture,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media picture,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media picture,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media picture,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media img {
  object-fit: cover !important;
  object-position: 72% center !important;
  aspect-ratio: auto !important;
  transform: none !important;
  filter: none !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media::after,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(251, 251, 254, 0.98) 0%, rgba(251, 251, 254, 0.94) 24%, rgba(251, 251, 254, 0.76) 44%, rgba(251, 251, 254, 0.26) 66%, rgba(251, 251, 254, 0.05) 100%),
    radial-gradient(circle at 22% 42%, rgba(124, 92, 255, 0.08), transparent 28%) !important;
  pointer-events: none !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media figcaption,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media figcaption,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media figcaption,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media figcaption,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media figcaption,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media figcaption {
  display: none !important;
}

body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-breadcrumbs,
body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-breadcrumbs a,
body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__text,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs a,
body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__text,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs a,
body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__text,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs a,
body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__text,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs a,
body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__text,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-breadcrumbs a,
body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__text {
  color: rgba(15, 23, 42, 0.72) !important;
}

@media (max-width: 767px) {
  body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media,
  body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media,
  body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media,
  body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media,
  body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media,
  body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media {
    min-height: 680px !important;
  }

  body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__inner--media,
  body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
  body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
  body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
  body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media,
  body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__inner--media {
    min-height: 680px !important;
    padding: 112px 22px 42px !important;
    align-items: center !important;
  }

  body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__media::after,
  body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
  body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
  body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
  body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after,
  body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__media::after {
    background:
      linear-gradient(180deg, rgba(251, 251, 254, 0.92) 0%, rgba(251, 251, 254, 0.72) 46%, rgba(251, 251, 254, 0.94) 100%),
      radial-gradient(circle at 46% 36%, rgba(124, 92, 255, 0.10), transparent 34%) !important;
  }

  body.ff-page-about-art .ff-page-hero--about.ff-page-hero--has-media .ff-page-hero__title,
  body.ff-service-art--woocommerce .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__title,
  body.ff-service-art--plugin .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__title,
  body.ff-service-art--seo .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__title,
  body.ff-service-art--performance .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__title,
  body.ff-service-art--ux .ff-page-hero--service.ff-page-hero--has-media .ff-page-hero__title {
    font-size: clamp(2.65rem, 13.5vw, 4rem) !important;
    line-height: 1.03 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

/* STEP NATIONAL INTERNAL LINKS - percorsi strategici verso landing nazionali. */
.ff-national-paths {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 255, 0.09), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(25, 211, 255, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(247, 250, 255, 0.86), rgba(255, 255, 255, 0.96));
}

.ff-national-paths__panel {
  position: relative;
  z-index: 1;
}

.ff-national-paths__heading > p {
  max-width: 680px;
  color: rgba(15, 23, 42, 0.72);
}

.ff-national-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.ff-national-paths__card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ff-national-paths__card:hover,
.ff-national-paths__card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 255, 0.22);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.ff-national-paths__card span {
  width: fit-content;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.09);
  color: rgba(37, 99, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ff-national-paths__card strong {
  display: block;
  font-family: var(--ff-font-heading);
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  line-height: 1.08;
  color: rgba(10, 18, 32, 0.96);
}

.ff-national-paths__card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.55;
}

.ff-national-paths__card em {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(37, 99, 255, 0.95);
  font-style: normal;
  font-weight: 850;
}

@media (max-width: 1024px) {
  .ff-national-paths__grid {
    grid-template-columns: 1fr;
  }

  .ff-national-paths__card {
    min-height: auto;
  }
}

/* STEP LOGO FINAL - logo SVG bianco in header e footer. */
.ff-brand--logo {
  gap: 0 !important;
  min-width: 0;
}

.ff-brand--logo .ff-brand__logo--ff {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.ff-brand--logo .ff-brand__logo--ff img {
  width: clamp(128px, 11vw, 168px) !important;
  height: auto !important;
  max-height: 34px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 24px rgba(25, 211, 255, 0.16));
}

.ff-site-header .ff-brand--logo {
  padding: 8px 10px !important;
}

.ff-site-header .ff-brand--logo .ff-brand__logo--ff img {
  width: clamp(126px, 10vw, 158px) !important;
  max-height: 32px !important;
}

.ff-site-footer .ff-brand--logo {
  width: fit-content;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ff-site-footer .ff-brand--logo .ff-brand__logo--ff img {
  width: clamp(150px, 16vw, 206px) !important;
  max-height: 40px !important;
  filter: drop-shadow(0 18px 36px rgba(25, 211, 255, 0.18));
}

@media (max-width: 767px) {
  .ff-site-header .ff-brand--logo {
    padding: 7px 8px !important;
  }

  .ff-site-header .ff-brand--logo .ff-brand__logo--ff img {
    width: min(136px, 42vw) !important;
    max-height: 30px !important;
  }

  .ff-site-footer .ff-brand--logo .ff-brand__logo--ff img {
    width: min(190px, 72vw) !important;
    max-height: 38px !important;
  }
}
