@charset "UTF-8";
/* ── Variabili :root ───────────────────────────────────── */
:root {
  --panthera-navy: #292C33;
  --panthera-white: #ffffff;
  --panthera-form-bg: #f7f9fb;
  --panthera-light-gray: #f7f9fb;
  --panthera-dark-gray: #292C33;
  --panthera-mid-gray: #3D5C99;
  --panthera-accent: #FF0077;
  --panthera-radius: 0px;
  --panthera-transition: 0.25s ease;
  /* Typekit — Good Times preset */
  --wp--preset--font-family--good-times: "good-times", sans-serif;
}

/* ── Mixins Breakpoints ────────────────────────────────── */
/* ── Modern Transition, Box-Shadow & Opacity Mixins ────── */
/* Main Stylesheet Customizations for Panthera Block Theme (Legacy Main.css) */
/* Header Styles */
.panthera-header {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  border-bottom: 1px solid var(--wp--preset--color--steel) !important;
}

.panthera-logo {
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.panthera-nav-container {
  gap: 24px !important;
  display: flex !important;
  align-items: center !important;
  margin-right: 24px !important;
}

.panthera-nav-link {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  margin: 0 !important;
}

.panthera-nav-link a {
  text-decoration: none !important;
  color: inherit !important;
}

.panthera-lang-switcher {
  font-size: 10px !important;
  font-weight: 700 !important;
  margin-right: 24px !important;
  display: flex !important;
  align-items: center !important;
}

.panthera-lang-switcher .active-lang {
  color: var(--wp--preset--color--navy) !important;
}

.panthera-btn-contatti {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0px !important;
}

/* Footer Styles */
.panthera-footer-logo {
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.panthera-footer-info {
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.panthera-footer-link {
  font-size: 14px !important;
}

.panthera-footer-link a {
  color: inherit !important;
  text-decoration: none !important;
}

.panthera-footer-copyright {
  font-size: 10px !important;
  letter-spacing: 0.05em !important;
}

.panthera-footer-legal-links {
  font-size: 10px !important;
  letter-spacing: 0.05em !important;
  text-align: right !important;
}

.panthera-footer-legal-links a {
  color: inherit !important;
  text-decoration: none !important;
  margin-right: 15px !important;
}

.panthera-footer-legal-links a:last-child {
  margin-right: 0 !important;
}

/* Wrapper tecnico per bloccare wpautop — nessun impatto visivo */
.no-autop-wrapper {
  display: contents; /* ereditato dal contenuto figlio */
}

main {
  margin: 0;
}

/* General layout adjustments and resets */
.wp-block-query.query-cards-3cols .wp-block-post-template:not(.is-layout-grid):not(.swiper-wrapper) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}

.wp-block-query.query-cards-3cols .wp-block-post-template:not(.is-layout-grid):not(.swiper-wrapper) > li {
  display: flex !important;
  flex-direction: column !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: calc(33.333% - 16px) !important;
}

@media (max-width: 1024px) {
  .wp-block-query.query-cards-3cols .wp-block-post-template:not(.is-layout-grid):not(.swiper-wrapper) > li {
    width: calc(50% - 12px) !important;
  }
}
@media (max-width: 640px) {
  .wp-block-query.query-cards-3cols .wp-block-post-template:not(.is-layout-grid):not(.swiper-wrapper) > li {
    width: 100% !important;
  }
}
.wp-block-query:not(.swiper):not(.query-cards-3cols) .wp-block-post-template:not(.is-layout-grid):not(.swiper-wrapper) > li {
  width: 100%;
}

/* CLIENTS LOGO CAROUSEL STYLE */
.clienti-carousel-section {
  background-color: #0c0d0e !important;
  padding: 80px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  overflow: hidden !important;
  width: 100% !important;
}

.clienti-carousel-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.clienti-swiper {
  width: 100% !important;
  overflow: hidden !important;
}

/* Resets for integrating native WordPress Query Loops */
ul.wp-block-post-template.swiper-wrapper {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
}

li.wp-block-post-template-post.swiper-slide {
  width: auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  list-style-type: none !important;
}

.client-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100px !important;
}

.client-logo-container {
  width: 100%;
  height: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.client-logo-svg,
.client-logo-img img,
.client-logo-img {
  max-width: 140px !important;
  max-height: 40px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  filter: brightness(0) invert(1) opacity(0.35) !important;
}

.client-logo-svg svg {
  max-width: 140px !important;
  max-height: 40px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
}

.client-logo-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
}

.client-logo-container:hover .client-logo-svg,
.client-logo-container:hover .client-logo-img img,
.client-logo-container:hover .client-logo-img,
.client-logo-container:hover svg {
  filter: brightness(0) invert(1) opacity(0.9) !important;
  transform: scale(1.05) !important;
}

.client-logo-placeholder {
  font-family: var(--wp--preset--font-family--display, "Manrope", sans-serif), sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  color: rgba(255, 255, 255, 0.15) !important;
  border: 1px dashed rgba(255, 255, 255, 0.08) !important;
  padding: 12px 18px !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
}

.clienti-carousel-empty-info {
  padding: 20px 0;
  text-align: center;
}

/* Core Site Logo sizing and compatibility fixes */
.wp-block-site-logo .custom-logo-link,
.wp-block-site-logo {
  display: inline-flex !important;
  align-items: center !important;
}

.wp-block-site-logo img.custom-logo,
.wp-block-site-logo img {
  width: 260px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media (max-width: 768px) {
  .wp-block-site-logo img.custom-logo,
  .wp-block-site-logo img {
    width: 180px !important;
  }
}
/* Filter Utilities for Images/Logos to make them White/Light */
.svg-filter-white,
.svg-filter-white img,
.svg-filter-white svg,
.svg-filter-light,
.svg-filter-light img,
.svg-filter-light svg {
  filter: brightness(0) invert(1) !important;
}

/* Material Symbols Outlined Base Rendering and Reset rules for block editor / frontend consistency */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px;
  display: inline-block !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
  direction: ltr !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  font-feature-settings: "liga" !important;
}

/* Unified Eyebrow Subtitles above headings */
.is-style-text-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.panthera-section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL GRAPHICAL NORMALIZATION (VAR GROUP ALIGNMENT)
   ───────────────────────────────────────────────────────────── */
/* 1. Typography Overrides */
/* Override specific heavy inline / class rules from style.css legacy style block */
.dna-title,
.compliance-inner-title,
.localizzazione-inner-title,
.ecosistema-title,
.soluzioni-richieste-title,
.soluzioni-obiettivi-title,
.desktop-dinamico-title,
.ai-automazione-title,
.legacy-title,
.settori-title,
.industrial-title,
.usabilita-title,
.adattabilita-h2-title,
.archive-title,
.var-group-card-title {
  font-weight: 300;
  text-transform: none;
}

/* Maintain font weight 500 for smaller, structurally supportive titles (H3, H4) */
.var-group-card-title,
.sidebar-title,
.ecosistema-card-title,
.desktop-dinamico-card-title,
.ai-automazione-card-title,
.legacy-card-title {
  font-weight: 500;
  text-transform: none;
}

/* 2. Yoast Breadcrumbs Styling */
/* Breadcrumb Layout Variants */
/* Reduced bulky backgrounds, compact spacing for below-hero placement */
.panthera-breadcrumbs-variant-a,
.panthera-breadcrumbs-variant-b,
.panthera-breadcrumbs-variant-c {
  background-color: transparent !important;
  padding-top: var(--wp--preset--spacing--30);
  padding-bottom: var(--wp--preset--spacing--30);
  border-bottom: none !important;
  line-height: 13px !important;
}

.panthera-breadcrumbs-row span,
.panthera-breadcrumbs-row a {
  font-size: 13px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  color: #64748b !important;
  text-decoration: none !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
}

.panthera-breadcrumbs-row a {
  transition: color 0.15s ease-in-out !important;
}

.panthera-breadcrumbs-row a:hover {
  color: var(--wp--preset--color--primary, #0057FF) !important;
}

.panthera-breadcrumbs-row .breadcrumb_last {
  color: var(--wp--preset--color--navy, #292C33) !important;
  font-weight: 600 !important;
}

.yoast-breadcrumbs {
  position: relative;
  top: -2px;
}

/* Dark theme support for breadcrumbs on dark-themed pages/sections */
.is-style-dark .panthera-breadcrumbs-row span,
.is-style-dark .panthera-breadcrumbs-row a,
.page-contatti-main .panthera-breadcrumbs-row span,
.page-contatti-main .panthera-breadcrumbs-row a,
.archive-partner-panthera-main .panthera-breadcrumbs-row span,
.archive-partner-panthera-main .panthera-breadcrumbs-row a {
  color: rgba(255, 255, 255, 0.6) !important;
}
.is-style-dark .panthera-breadcrumbs-row a:hover,
.page-contatti-main .panthera-breadcrumbs-row a:hover,
.archive-partner-panthera-main .panthera-breadcrumbs-row a:hover {
  color: var(--wp--preset--color--panthera-accent, #0057FF) !important;
}
.is-style-dark .panthera-breadcrumbs-row .breadcrumb_last,
.page-contatti-main .panthera-breadcrumbs-row .breadcrumb_last,
.archive-partner-panthera-main .panthera-breadcrumbs-row .breadcrumb_last {
  color: #ffffff !important;
}

/* Global Hero Section Titles Typography Override */
.responsive-h1-erp {
  font-size: clamp(2rem, 5vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

@media (min-width: 768px) {
  .responsive-h1-erp {
    font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
  }
}
@media (min-width: 1440px) {
  .responsive-h1-erp {
    font-size: clamp(3rem, 4.5vw, 4.5rem) !important;
    padding-right: 2rem;
  }
}
/* Global Hero Excerpt & Button Typography Override */
.panthera-hero__excerpt,
.wp-block-post-excerpt.panthera-hero__excerpt,
.wp-block-post-excerpt.panthera-hero__excerpt p,
.wp-block-post-excerpt.panthera-hero__excerpt .wp-block-post-excerpt__excerpt {
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6 !important;
  font-size: var(--wp--preset--font-size--large, 1.25rem) !important;
  margin-bottom: 0 !important;
}

/* Override for light style heroes */
.is-style-light .panthera-hero__excerpt,
.is-style-light .wp-block-post-excerpt.panthera-hero__excerpt,
.is-style-light .wp-block-post-excerpt.panthera-hero__excerpt p,
.is-style-light .wp-block-post-excerpt.panthera-hero__excerpt .wp-block-post-excerpt__excerpt {
  color: var(--wp--preset--color--panthera-text-muted, rgba(15, 23, 42, 0.75)) !important;
}

.panthera-hero__cta-primary {
  display: inline-block !important;
  width: fit-content !important;
  max-width: max-content !important;
}
.panthera-hero__cta-primary.wp-block-button__link, .panthera-hero__cta-primary.wp-element-button, .panthera-hero__cta-primary.wp-block-read-more, .panthera-hero__cta-primary .wp-block-button__link {
  background-color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  color: #ffffff !important;
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  padding: 14px 32px !important;
  border-radius: 9999px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(230, 51, 41, 0.2) !important;
  display: inline-block !important;
  width: fit-content !important;
  max-width: max-content !important;
  text-align: center !important;
  border: none !important;
  text-decoration: none !important;
}
.panthera-hero__cta-primary.wp-block-button__link:hover, .panthera-hero__cta-primary.wp-element-button:hover, .panthera-hero__cta-primary.wp-block-read-more:hover, .panthera-hero__cta-primary .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--panthera-accent-hover, #cc251b) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(230, 51, 41, 0.3) !important;
  color: #ffffff !important;
}

/* Custom resets for default Gutenberg layout margins on template parts */
.wp-block-template-part {
  margin-block-start: 0 !important;
}

/* ─────────────────────────────────────────────────────────────
   ADMINISTRATOR VERSION BADGES (DEBUG HELPER)
   ───────────────────────────────────────────────────────────── */
.template-version-badge {
  display: none !important; /* Hidden by default */
}

body.logged-in .template-version-badge {
  display: inline-block !important; /* Always visible for easy debugging */
  position: absolute !important;
  bottom: 8px !important;
  right: 8px !important;
  background-color: rgba(15, 23, 42, 0.85) !important;
  color: #38bdf8 !important; /* Elegant Tech Sky Blue */
  font-family: var(--wp--preset--font-family--mono, "Space Grotesk", monospace) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transition: opacity 0.2s ease-in-out !important;
}

/* Ensure containing blocks are relative positioned to reference the absolute badge correctly */
.panthera-hero-group,
.panthera-var-group-section,
.panthera-compliance-section,
.panthera-localization-section {
  position: relative !important;
}

/* ─────────────────────────────────────────────────────────────
   SCROLL ANIMATIONS CSS FALLBACK
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, p, .wp-block-button, .wp-block-column, .wp-block-image, figure,
.hero-title, .hero-title-custom, .hero-description, .hero-description-custom,
.hero-cta-buttons, .hero-visual-column {
  opacity: 1; /* visible without JS */
}

/* ─────────────────────────────────────────────────────────────
   SWUP TRANSITION CLASSES
   ───────────────────────────────────────────────────────────── */
/* Base state (IN state) */
.transition-main {
  opacity: 1;
  transform: translateY(0);
}

/* Base style for transition-main when animating - only for variant 6 (and defaults) */
html.is-changing[data-swup-variant="6"] .transition-main,
html.is-changing:not([data-swup-variant]) .transition-main {
  opacity: 0;
  transform: translateY(12px);
}

/* OUT animation (leaving page) */
html.is-changing.is-leaving[data-swup-variant="6"] .transition-main,
html.is-changing.is-leaving:not([data-swup-variant]) .transition-main {
  transition: opacity 350ms cubic-bezier(0.4, 0, 1, 1), transform 350ms cubic-bezier(0.4, 0, 1, 1);
}

/* IN animation (entering new page) */
html.is-changing.is-rendering[data-swup-variant="6"] .transition-main,
html.is-changing.is-rendering:not([data-swup-variant]) .transition-main {
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html.is-changing .transition-main {
    transition: none !important;
  }
}
/* Progress bar */
.swup-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: var(--wp--preset--color--primary, #0057FF);
  z-index: 99999;
  width: 0%;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s ease-out, opacity 0.3s ease;
}

html.is-changing .swup-progress-bar {
  opacity: 1;
}

.section-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin: 0 0 20px 0 !important;
}

.section-intro {
  max-width: 750px;
  margin: 0 !important;
  font-weight: 400;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL BUTTON HOVER EFFECTS
   ───────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .wp-element-button:hover,
  .wp-block-button__link:hover {
    /* primary hover override */
    background-color: var(--wp--preset--color--primary-dark) !important;
    transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .wp-block-button.is-style-outline .wp-block-button__link:hover {
    /* outline hover override */
    background-color: var(--wp--preset--color--white) !important;
    color: var(--wp--preset--color--navy) !important;
    border-color: var(--wp--preset--color--white) !important;
    transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wp-element-button,
  .wp-block-button__link {
    transition: none !important;
  }
}
/* ─────────────────────────────────────────────────────────────
   FUNNEL SECTION BACKGROUND
   ───────────────────────────────────────────────────────────── */
.panthera-funnel-section {
  position: relative;
  overflow: hidden;
}

.panthera-funnel-section .panthera-funnel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.panthera-funnel-section .panthera-section__content-layer {
  position: relative;
  z-index: 10;
}

/* ─────────────────────────────────────────────────────────────
   BULLET LIST EDITORIALE (pattern editorial-two-column-cta e simili)
   Titolo in grassetto sempre visibile, dettaglio nascosto dietro
   un'icona info mostrata all'hover/focus - stessa interazione della
   fascia "Compliance italiana nativa / 100% successi" nell'hero ERP
   (.trust-item/.trust-tooltip in _parts.scss), non riusata direttamente
   perche' quella e' pensata per testo bianco su sfondo scuro (hero),
   qui il contesto e' una card chiara: stessa logica hover/tooltip,
   colori propri.
   ───────────────────────────────────────────────────────────── */
.panthera-bullet-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
  padding-top: 28px !important;
}

.panthera-bullet-list li:not(:last-child) {
  margin-bottom: 18px !important;
}

.panthera-bullet-list li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-left: 0 !important;
}

.panthera-bullet-label {
  position: relative !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.panthera-bullet-list li strong {
  font-weight: 700 !important;
}

.panthera-bullet-list li::before {
  content: "" !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  background-color: var(--wp--preset--color--panthera-accent) !important;
  mask-size: 32px 32px !important;
  -webkit-mask-size: 32px 32px !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-position: center !important;
  -webkit-mask-position: center !important;
}
.panthera-bullet-list li:nth-child(1)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3%2018h18%20M6%2018V8l4%202.5V8l4%202.5V8l3%202V18%20M17%205V2h2v3'/%3E%3C/svg%3E") !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3%2018h18%20M6%2018V8l4%202.5V8l4%202.5V8l3%202V18%20M17%205V2h2v3'/%3E%3C/svg%3E") !important;
}
.panthera-bullet-list li:nth-child(2)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4%2011a8%208%200%200%201%2016%200%20M4%2011v5a1%201%200%200%200%201%201h1a1%201%200%200%200%201-1v-3a1%201%200%200%200-1-1H4%20M20%2011v5a1%201%200%200%201-1%201h-1a1%201%200%200%201-1-1v-3a1%201%200%200%201%201-1h2%20M18%2017v1a2%202%200%200%201-2%202h-2'/%3E%3C/svg%3E") !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4%2011a8%208%200%200%201%2016%200%20M4%2011v5a1%201%200%200%200%201%201h1a1%201%200%200%200%201-1v-3a1%201%200%200%200-1-1H4%20M20%2011v5a1%201%200%200%201-1%201h-1a1%201%200%200%201-1-1v-3a1%201%200%200%201%201-1h2%20M18%2017v1a2%202%200%200%201-2%202h-2'/%3E%3C/svg%3E") !important;
}
.panthera-bullet-list li:nth-child(3)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18z%20M15%209l-2%206-6%202%202-6%206-2z'/%3E%3C/svg%3E") !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18z%20M15%209l-2%206-6%202%202-6%206-2z'/%3E%3C/svg%3E") !important;
}

.panthera-bullet-info-wrap {
  display: inline-flex !important;
}

.panthera-bullet-info {
  display: inline-flex !important;
  font-size: 1.15rem !important;
  color: var(--wp--preset--color--panthera-text-muted, #64748b) !important;
  cursor: help !important;
  vertical-align: middle !important;
  position: relative !important;
  top: 2px !important;
  opacity: 0.7 !important;
  transition: opacity 200ms ease, color 200ms ease !important;
}

.panthera-bullet-label:hover .panthera-bullet-info,
.panthera-bullet-label:focus-within .panthera-bullet-info {
  opacity: 1 !important;
  color: var(--wp--preset--color--panthera-accent) !important;
}

.panthera-bullet-tooltip {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(4px) !important;
  background: #ffffff !important;
  color: var(--wp--preset--color--navy, #12304d) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  white-space: normal !important;
  width: max-content !important;
  max-width: 300px !important;
  text-align: center !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
}
.panthera-bullet-tooltip::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-width: 6px !important;
  border-style: solid !important;
  border-color: #ffffff transparent transparent transparent !important;
}

.panthera-bullet-label:hover .panthera-bullet-tooltip,
.panthera-bullet-label:focus-within .panthera-bullet-tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

@media (max-width: 480px) {
  .panthera-bullet-tooltip {
    left: 0 !important;
    transform: translateY(4px) !important;
  }
  .panthera-bullet-tooltip::after {
    left: 20px !important;
    transform: none !important;
  }
  .panthera-bullet-label:hover .panthera-bullet-tooltip,
  .panthera-bullet-label:focus-within .panthera-bullet-tooltip {
    transform: translateY(0) !important;
  }
}
/* PANTHERA HEADER */
.panthera-header {
  padding: 20px 40px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #eceef0 !important;
}

#header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  will-change: transform;
}
.admin-bar #header {
  top: 46px;
}
@media (min-width: 768px) {
  .admin-bar #header {
    top: 32px;
  }
}
#header.is-fixed {
  position: fixed;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}
#header.is-hidden {
  transform: translateY(-100%);
}
.admin-bar #header.is-hidden {
  transform: translateY(calc(-100% - 46px));
}
@media (min-width: 768px) {
  .admin-bar #header.is-hidden {
    transform: translateY(calc(-100% - 32px));
  }
}
@media (max-width: 767.98px) {
  #header > div {
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
  }
}
#header > div {
  position: relative;
  z-index: 2;
}
#header > div:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  left: 0;
  height: 100%;
  bottom: 0;
  opacity: 0;
  -webkit-box-shadow: 0px 6px 6px rgba(102, 102, 102, 0.1);
  -moz-box-shadow: 0px 6px 6px rgba(102, 102, 102, 0.1);
  box-shadow: 0px 6px 6px rgba(102, 102, 102, 0.1);
  transition: opacity 0.3s ease;
}
@media (max-width: 767.98px) {
  #header > div:after {
    display: none !important;
  }
}
#header.is-fixed > div:after {
  opacity: 1;
}

#headerSpacer {
  height: var(--header-height, 0px);
}

.panthera-logo {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin: 0 !important;
}

.panthera-logo-subtitle {
  font-size: 0.65rem !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  margin: 0 !important;
}

.panthera-lang-switcher {
  font-size: 12px !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.panthera-lang-switcher .active-lang {
  font-weight: 700 !important;
}

/* PANTHERA FOOTER */
.panthera-footer {
  padding-top: 80px !important;
  padding-bottom: 40px !important;
  background-color: var(--wp--preset--color--navy, #292C33) !important;
  color: #ffffff !important;
}
.panthera-footer .wp-block-columns {
  margin-bottom: 60px !important;
}

.panthera-footer-logo {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.panthera-footer-logo-sub {
  font-size: 0.75rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  margin-top: 5px !important;
  margin-bottom: 20px !important;
}

.panthera-footer-desc {
  font-size: 0.9rem !important;
  color: #7c839b !important;
  line-height: 1.6 !important;
}

.panthera-footer-col h2,
.panthera-footer-col h3,
.panthera-footer-col h4 {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
}
.panthera-footer-col p {
  font-size: 0.9rem !important;
  margin: 5px 0 !important;
}
.panthera-footer-col p a {
  color: #7c839b !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}
.panthera-footer-col p a:hover {
  color: #ffffff !important;
}

.panthera-footer-col-contact {
  font-size: 0.85rem !important;
  color: #7c839b !important;
  line-height: 1.6 !important;
}

.panthera-footer-divider-row {
  border-top: 1px solid #212c45 !important;
  padding-top: 30px !important;
}

.panthera-footer-copyright {
  font-size: 0.75rem !important;
  color: #7c839b !important;
  margin: 0 !important;
}

.panthera-footer-links {
  font-size: 0.75rem !important;
  color: #7c839b !important;
  margin: 0 !important;
  text-align: right !important;
}
.panthera-footer-links a {
  color: #7c839b !important;
  text-decoration: none !important;
  margin-left: 15px !important;
}
.panthera-footer-links a:hover {
  color: #ffffff !important;
}

.panthera-footer-recaptcha {
  font-size: 0.65rem !important;
  /* #4e556e su #111827 aveva contrasto 2,4:1 (serve 4,5:1): schiarito a ~7:1 */
  color: #94a3b8 !important;
  margin-top: 8px !important;
  line-height: 1.4 !important;
}
.panthera-footer-recaptcha a {
  color: #7c839b !important;
  text-decoration: underline !important;
}
.panthera-footer-recaptcha a:hover {
  color: #ffffff !important;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

/* ─────────────────────────────────────────────────────────────
   STILI DI NAVIGAZIONE - VOCE ATTIVA & HOVER (DYN PRIMARY)
   ───────────────────────────────────────────────────────────── */
/* Forza il colore primario sulle voci di pagina correnti del menu */
.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a,
.current-menu-parent > a,
.current-page-ancestor > a,
.current-page-parent > a {
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  font-weight: 700 !important;
}

/* Effetto hover con transizione morbida e cambio colore e indicatore bottom */
.panthera-nav-link a,
.panthera-nav-container .wp-block-navigation-item > a {
  transition: color 0.15s ease-in-out !important;
  border-bottom: none !important;
  text-decoration: none !important;
  padding-bottom: 0 !important;
}

.panthera-nav-link a:hover,
.panthera-nav-container .wp-block-navigation-item > a:hover {
  color: var(--wp--preset--color--primary, #e21b1b) !important;
}

/* Eccezione per la topbar: testo sempre bianco e sottolineato allo stato hover/attivo per leggibilità su fondo scuro */
.panthera-topbar-wrapper .current-menu-item > a,
.panthera-topbar-wrapper .current_page_item > a,
.panthera-topbar-wrapper .current-menu-ancestor > a,
.panthera-topbar-wrapper .current-menu-parent > a,
.panthera-topbar-wrapper .current-page-ancestor > a,
.panthera-topbar-wrapper .current-page-parent > a,
.panthera-topbar-wrapper .wp-block-navigation-item > a:hover,
.panthera-topbar-wrapper .wp-block-navigation-item > a:focus,
.panthera-topbar-wrapper .panthera-nav-link a:hover,
.panthera-topbar-wrapper .panthera-nav-link a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

#main-bar {
  align-items: stretch !important;
}

#main-bar > .wp-block-group {
  display: flex;
  align-items: center;
  height: auto;
}

#main-bar > .wp-block-group:has(.panthera-nav-container) {
  align-items: stretch !important;
}

.panthera-nav-container {
  display: flex;
  align-items: stretch !important;
  height: 100%;
}

.panthera-nav-container .wp-block-navigation {
  display: flex;
  align-items: stretch !important;
  height: 100%;
}

.panthera-nav-container .wp-block-navigation-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.panthera-nav-container .wp-block-navigation-item::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--wp--preset--spacing--40));
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--wp--preset--color--primary, #0057FF);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  z-index: 10;
}

.panthera-nav-container .wp-block-navigation-item:hover::after,
.panthera-nav-container .wp-block-navigation-item:focus-within::after,
.panthera-nav-container .wp-block-navigation-item.current-menu-item::after,
.panthera-nav-container .wp-block-navigation-item.current_page_item::after,
.panthera-nav-container .wp-block-navigation-item.current-menu-ancestor::after,
.panthera-nav-container .wp-block-navigation-item.current-menu-parent::after,
.panthera-nav-container .wp-block-navigation-item.current-page-ancestor::after,
.panthera-nav-container .wp-block-navigation-item.current-page-parent::after,
.panthera-nav-container .wp-block-navigation-item.is-active::after {
  transform: scaleX(1);
}

/* Custom Icons for Menu Items with Dynamic Coloring (using CSS Masks) */
.menu-icon-riservata a,
.menu-icon-jobs a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.menu-icon-riservata a::before,
.menu-icon-jobs a::before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background-color: currentColor !important; /* Forces the icon to match the text color dynamically */
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
}

/* Icon for Area Riservata (Lock/User icon) */
.menu-icon-riservata a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Icon for Jobs (Briefcase) */
.menu-icon-jobs a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* --------------------------------------------------------------------------
   FLOATING CONNECT WIDGET
-------------------------------------------------------------------------- */
.panthera-floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.panthera-floating-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--wp--preset--color--secondary, #FF0077) !important;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s, background-color 0.3s ease;
}

.panthera-floating-btn:hover {
  background-color: var(--wp--preset--color--secondary-dark, #b1003c) !important;
}

.btn-icon-close {
  display: none;
  width: 20px;
  height: 20px;
}

body.show-floating-btn .panthera-floating-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Menu panel */
.panthera-floating-menu {
  pointer-events: auto;
  position: absolute;
  bottom: calc(100% + 15px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  border: 1px solid #eceef0;
}

.panthera-floating-menu::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 40px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-right: 1px solid #eceef0;
  border-bottom: 1px solid #eceef0;
}

.floating-menu-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wp--preset--color--navy, #292C33);
  margin-bottom: 20px;
  line-height: 1.3;
}

.floating-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f9fa;
  color: var(--wp--preset--color--navy, #292C33);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.floating-menu-item svg {
  color: var(--wp--preset--color--primary, #0057FF);
  transition: color 0.2s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.floating-menu-item:hover {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.floating-menu-item:hover svg {
  color: #fff !important;
}

/* Active State (Menu Open) */
.panthera-floating-widget.is-open .panthera-floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.panthera-floating-widget.is-open .btn-text {
  display: none;
}

.panthera-floating-widget.is-open .btn-icon-close {
  display: block;
  margin: 0;
  padding: 0;
}

.panthera-floating-widget.is-open .panthera-floating-btn {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  min-width: 60px;
  padding: 0;
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px) {
  .panthera-floating-widget {
    bottom: 20px;
    right: 20px;
  }
  .panthera-floating-menu {
    width: calc(100vw - 40px);
  }
}
/* ── Topbar Social Icons ─────────────────────────────────────────────── */
.panthera-topbar-socials {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  margin: 0;
  padding: 0;
}

.topbar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--white, #fff);
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.topbar-social-link svg {
  flex-shrink: 0;
}

.topbar-social-link:hover {
  opacity: 1;
  color: var(--wp--preset--color--primary, #e21b1b);
}

/* ── Header CTA Dropdown ─────────────────────────────────────────────── */
.panthera-header-cta {
  position: relative;
  /* Use group class from Tailwind/HTML for nesting */
}

.panthera-header-btn {
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.panthera-header-btn:hover {
  background-color: var(--wp--preset--color--secondary-dark, #b1003c) !important;
}

.panthera-header-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: top right;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--navy) 10%, transparent);
  z-index: 1000;
}

/* Invisible bridge to catch hovers between the button and the menu */
.panthera-header-menu::before {
  content: "";
  position: absolute;
  top: -20px; /* covers the 15px gap + a bit of overlap */
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
}

.panthera-header-menu::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 40px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--navy) 10%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--navy) 10%, transparent);
}

.panthera-header-cta:hover .panthera-header-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#header .wp-block-navigation__responsive-close {
  height: 100%;
}
#header .wp-block-navigation__responsive-close .wp-block-navigation__responsive-dialog {
  height: 100%;
}
#header .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
  height: 100%;
}

#main-bar {
  flex-wrap: nowrap !important;
  gap: clamp(12px, 1.8vw, 36px) !important;
  padding-left: clamp(16px, 3vw, 56px) !important;
  padding-right: clamp(16px, 3vw, 56px) !important;
}
#main-bar > .wp-block-group {
  flex: 0 0 auto;
  min-width: 0;
}
#main-bar > .wp-block-group:first-child {
  flex: 0 0 auto;
  align-items: center;
}
#main-bar .wp-block-site-logo {
  display: flex !important;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
#main-bar .wp-block-site-logo img.custom-logo,
#main-bar .wp-block-site-logo img {
  width: clamp(165px, 15vw, 250px) !important;
  max-width: none !important;
  height: auto !important;
}

.panthera-header-btn {
  white-space: nowrap;
}

@media (max-width: 1439.98px) {
  .panthera-header-btn {
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    justify-content: center;
    gap: 0;
  }
  .panthera-header-btn .btn-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .panthera-header-btn::before {
    content: "";
    width: 22px;
    height: 22px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}
.panthera-header-cta:focus-within .panthera-header-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (min-width: 1120px) {
  #main-bar > .wp-block-group:has(.panthera-nav-container) {
    flex: 1 1 auto;
    justify-content: center;
  }
  .panthera-nav-container .wp-block-navigation__container {
    flex-wrap: nowrap !important;
    gap: clamp(14px, 1.7vw, 34px) !important;
  }
  .panthera-nav-container .wp-block-navigation-item__content {
    white-space: nowrap;
    font-size: clamp(0.9rem, 0.5vw + 0.62rem, 1rem);
  }
}
@media (max-width: 1119.98px) {
  #header .panthera-nav-container .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  #header .panthera-nav-container .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  #main-bar > .wp-block-group:first-child {
    order: 1;
  }
  #main-bar > .panthera-header-cta {
    order: 2;
    margin-left: auto;
  }
  #main-bar > .wp-block-group:has(.panthera-nav-container) {
    order: 3;
    flex: 0 0 auto;
    align-items: center !important;
  }
  .panthera-nav-container {
    align-items: center !important;
  }
  .panthera-nav-container .wp-block-navigation__responsive-container-open {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  .panthera-nav-container .wp-block-navigation__responsive-container-open svg {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 599.98px) {
  #main-bar > .panthera-header-cta {
    position: static;
  }
  .panthera-header-menu {
    left: 16px;
    right: 16px;
    width: auto;
    top: calc(100% + 8px);
  }
  .panthera-header-menu::after {
    display: none;
  }
}
html.has-modal-open #header {
  will-change: auto !important;
  transform: none !important;
}

#header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 80px 24px 24px !important;
}
#header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100%;
}
#header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  display: block !important;
  height: auto !important;
}
#header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item::after {
  display: none !important;
}
#header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  padding: 10px 0;
  font-size: 1.25rem;
}

@media (max-width: 1119.98px) {
  #top-bar {
    display: none !important;
  }
}
.panthera-menu-extras {
  display: none;
}

#header .wp-block-navigation__responsive-container.is-menu-open .panthera-menu-extras {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}
#header .wp-block-navigation__responsive-container.is-menu-open .panthera-menu-extras ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#header .wp-block-navigation__responsive-container.is-menu-open .panthera-menu-extras .wp-block-navigation-item__content {
  padding: 8px 0;
  font-size: 1rem;
}
#header .wp-block-navigation__responsive-container.is-menu-open .panthera-menu-extras .panthera-topbar-socials {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
#header .wp-block-navigation__responsive-container.is-menu-open .panthera-menu-extras .panthera-topbar-socials .topbar-social-link {
  color: var(--wp--preset--color--navy, #12304d);
  opacity: 1;
}

/* --- PORTFOLIO CASE HISTORIES / PROGETTI CARDS --- */
.case-history-section {
  background-color: #0c0d0e !important;
  color: #ffffff !important;
}

.case-history-header-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 24px !important;
  margin-bottom: 64px !important;
  margin-top: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}

.case-history-subtitle {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin-bottom: 8px !important;
}

.case-history-title {
  font-size: 2.25rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  margin: 0 !important;
}
.case-history-title .case-history-title-light {
  color: #a0aec0 !important;
  font-weight: 400 !important;
}

.case-history-cta, .wp-block-paragraph.case-history-cta {
  margin: 0 !important;
  line-height: 1.5 !important;
}
.case-history-cta a, .wp-block-paragraph.case-history-cta a {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  color: #ffffff !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  text-decoration: none !important;
  border-bottom: 2px solid var(--wp--preset--color--primary, #0057FF) !important;
  padding-bottom: 4px !important;
  transition: color 0.3s ease, border-color 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}
.case-history-cta a:hover, .wp-block-paragraph.case-history-cta a:hover {
  color: var(--wp--preset--color--primary, #0057FF) !important;
}

.progetto-card {
  background-color: #111215 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  margin-bottom: 30px;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  flex-grow: 1 !important;
  justify-content: flex-start !important;
}
.progetto-card:hover {
  transform: translateY(-6px);
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
  box-shadow: 0 16px 40px rgba(33, 58, 143, 0.1) !important;
}
.progetto-card:hover .wp-block-post-featured-image img {
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
  transform: scale(1.04);
}
.progetto-card:hover .wp-block-post-title a {
  color: var(--wp--preset--color--primary, #0057FF) !important;
}
.progetto-card:hover .progetto-card-arrow {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
}
.progetto-card .wp-block-post-featured-image {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 8px 8px 0 0 !important;
  width: 100% !important;
}
.progetto-card .wp-block-post-featured-image a {
  display: block !important;
}
.progetto-card .wp-block-post-featured-image img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px 8px 0 0 !important;
  object-fit: cover !important;
  aspect-ratio: 4/3 !important;
}
.progetto-card .wp-block-post-title a {
  color: #ffffff !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.progetto-card-content {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  text-align: left !important;
}

.progetto-card-title, .progetto-card .wp-block-post-title {
  text-align: left !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
}

.progetto-settore-tag, .wp-block-post-terms.progetto-settore-tag {
  align-self: flex-start !important;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #a0aec0 !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.progetto-settore-tag a, .wp-block-post-terms.progetto-settore-tag a {
  color: #cbd5e0 !important;
  text-decoration: none !important;
}
.progetto-settore-tag a:hover, .wp-block-post-terms.progetto-settore-tag a:hover {
  color: #ffffff !important;
}

.wp-block-post-excerpt, .progetto-card .wp-block-post-excerpt {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #a0aec0 !important;
  text-align: left !important;
  flex-grow: 1 !important;
}
.wp-block-post-excerpt p, .progetto-card .wp-block-post-excerpt p {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  text-align: left !important;
}

.progetto-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 20px !important;
  margin-top: auto !important;
  width: 100% !important;
}

.progetto-contatore {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

.progetto-contatore-valore {
  font-family: var(--font-display, "Barlow Condensed", sans-serif) !important;
  font-size: 2.25rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 1px !important;
}

.contatore-prefisso {
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin-right: 1px !important;
}

.contatore-suffisso {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #cbd5e0 !important;
}

.progetto-contatore-etichetta {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: #718096 !important;
  margin-top: 4px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.progetto-contatore-vuoto {
  height: 48px !important;
  display: flex !important;
  align-items: flex-end !important;
}

.progetto-card-arrow {
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  background-color: transparent !important;
  flex-shrink: 0 !important;
  margin-bottom: 2px !important;
}
.progetto-card-arrow svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}

/* 1. HERO SECTION */
.panthera-hero {
  position: relative !important;
  overflow: hidden !important;
}

/* Base Hero Bleed-Right Layout */
.panthera-hero--bleed-right {
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  /* Optional defaults if no specific color is set via Gutenberg */
  background-color: var(--wp--preset--color--panthera-surface-alt, #F7F9FB);
}

.panthera-hero__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-inline: auto;
  box-sizing: border-box;
}

.panthera-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 20px;
}

.panthera-hero__title {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
  margin-top: 0;
  margin-bottom: var(--wp--preset--spacing--30, 1.5rem);
}

.panthera-hero__excerpt {
  font-size: clamp(1rem, 1.15vw, 1.2rem) !important;
  line-height: 1.6 !important;
  margin: 0;
}

.hero-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-split-right-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.panthera-hero__media-wrapper {
  width: 100% !important;
  overflow: hidden;
  border-radius: 16px;
}

.panthera-hero__media,
.panthera-hero__media-wrapper img,
.panthera-hero__media-wrapper figure {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
}

/* Desktop Bleed-Right Layout */
@media (min-width: 1024px) {
  .wp-block-template-part:has(.panthera-hero--bleed-right),
  section.wp-block-template-part:has(.panthera-hero--bleed-right),
  .wp-block-group.panthera-hero--bleed-right,
  .panthera-hero--bleed-right {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .panthera-hero--bleed-right > .wp-block-columns,
  .panthera-hero--bleed-right .panthera-hero__inner {
    display: flex !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    min-height: 600px;
  }
  .panthera-hero--bleed-right > .wp-block-columns > .wp-block-column,
  .panthera-hero--bleed-right .panthera-hero__inner > .wp-block-column,
  .panthera-hero--bleed-right .panthera-hero__inner > .hero-split-right-col,
  .panthera-hero--bleed-right .panthera-hero__inner > .panthera-hero__content {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .panthera-hero--bleed-right > .wp-block-columns > .wp-block-column:first-child,
  .panthera-hero--bleed-right .panthera-hero__inner > .panthera-hero__content {
    flex-basis: 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-left: max(var(--wp--style--root--padding-left, 40px), 50vw - var(--wp--style--global--wide-size, 1440px) / 2) !important;
    padding-right: var(--wp--preset--spacing--60, 3rem) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .panthera-hero--bleed-right > .wp-block-columns > .wp-block-column:last-child,
  .panthera-hero--bleed-right .panthera-hero__inner > .hero-split-right-col {
    flex-basis: 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: stretch !important;
    align-self: stretch !important;
  }
  .panthera-hero--bleed-right .panthera-hero__media-wrapper {
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    max-height: none !important;
    border-radius: 16px 0 0 16px !important;
  }
  .panthera-hero--bleed-right .panthera-hero__media,
  .panthera-hero--bleed-right .panthera-hero__media-wrapper img,
  .panthera-hero--bleed-right .panthera-hero__media-wrapper figure {
    border-radius: 16px 0 0 16px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* aspect-ratio: auto !important; */
    overflow: hidden;
    min-height: 100%;
    display: block;
    max-height: calc(100vh - 232px) !important;
    max-width: none !important;
  }
}
/* Secondary CTA Outline button */
.panthera-hero__cta-secondary.is-style-outline .wp-block-button__link {
  transition: all 0.3s ease;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.panthera-hero__cta-secondary.is-style-outline .wp-block-button__link:hover,
.panthera-hero__cta-secondary.is-style-outline .wp-block-button__link:focus {
  background-color: white !important;
  color: var(--wp--preset--color--panthera-surface, #f8f9fa) !important;
  border-color: white !important;
}

/* Hero Credibility Band & Trust Items */
.hero-credibility-band {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-credibility-features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  flex-direction: row;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .hero-credibility-features {
    flex-wrap: nowrap;
    gap: 40px;
  }
}
.trust-item {
  position: relative;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.trust-label {
  font-size: 0.95rem;
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
  transition: color 200ms ease;
}

.trust-info-icon {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 200ms ease;
}

.trust-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  color: var(--wp--preset--color--panthera-surface, #12304d);
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  font-weight: 500;
}

.trust-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.trust-item:hover .trust-label {
  color: rgba(255, 255, 255, 0.8);
}

.trust-item:hover .trust-info-icon {
  color: rgba(255, 255, 255, 0.8);
}

.trust-item:hover .trust-tooltip,
.trust-item:focus-within .trust-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  .hero-credibility-features {
    flex-direction: column;
    gap: 16px;
  }
  .trust-item {
    width: 100%;
  }
}
/* Hero CH Logo */
.panthera-hero-ch-logo {
  display: block;
}

.panthera-hero-ch-logo img {
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.panthera-hero-ch-logo:hover img {
  opacity: 0.95;
  transform: scale(1.02);
}

@media (min-width: 1024px) and (min-height: 820px) {
  .admin-bar .panthera-hero--bleed-right .panthera-hero__media,
  .admin-bar .panthera-hero--bleed-right .panthera-hero__media-wrapper img,
  .admin-bar .panthera-hero--bleed-right .panthera-hero__media-wrapper figure {
    max-height: calc(100vh - 520px) !important;
  }
}
/* Tablets and Laptop viewports adjustment */
@media (max-width: 1023px) {
  .panthera-hero__inner {
    padding-inline: clamp(20px, 4vw, 40px);
    gap: 32px;
  }
  .panthera-hero__media-wrapper {
    min-height: 380px;
  }
  .wp-block-group.panthera-hero--bleed-right .panthera-hero__media,
  .wp-block-group.panthera-hero--bleed-right .panthera-hero__media img {
    border-radius: 8px !important;
    overflow: hidden;
  }
}
/* Mobile stacking */
@media (max-width: 767px) {
  .panthera-hero__inner {
    flex-direction: column !important;
    gap: 24px;
    padding-inline: 20px;
  }
  .panthera-hero__content,
  .hero-split-right-col {
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .panthera-hero__media-wrapper {
    min-height: 280px;
    border-radius: 12px;
  }
  .panthera-hero__media,
  .panthera-hero__media-wrapper img,
  .panthera-hero__media-wrapper figure {
    border-radius: 12px !important;
  }
}
/* Hero Slider Additional Overrides */
.panthera-hero-group.hero-slider {
  position: relative;
  z-index: 4;
}

.panthera-hero-group.hero-slider .swiper-pagination {
  max-width: var(--wp--style--global--wide-size, 1440px) !important;
  padding-left: var(--wp--style--root--padding-left, 40px) !important;
  padding-right: var(--wp--style--root--padding-right, 40px) !important;
}

.panthera-hero-group.hero-slider.is-style-dark {
  background-image: none !important;
}

.panthera-hero-group.hero-slider.is-style-dark::before,
.panthera-hero-group.hero-slider.is-style-dark::after {
  background-image: none !important;
}

.panthera-hero-group.hero-slider .swiper-slide.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.panthera-hero-group.hero-slider .panthera-hero__media img {
  border-radius: 8px;
}

@media (min-width: 1024px) {
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .swiper-slide {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .swiper-slide > .wp-block-columns {
    display: flex !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    grid-column-gap: 0 !important;
    gap: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    flex-wrap: nowrap !important;
  }
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .swiper-slide > .wp-block-columns > .wp-block-column {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .swiper-slide > .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-left: max(var(--wp--style--root--padding-left, 40px), 50vw - var(--wp--style--global--wide-size, 1440px) / 2) !important;
    padding-right: var(--wp--preset--spacing--60, 3rem) !important;
  }
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .swiper-slide > .wp-block-columns > .wp-block-column:last-child {
    flex-basis: 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .panthera-hero__media {
    margin: 0 !important;
    height: 100%;
    width: 100% !important;
    display: block;
  }
  .panthera-hero-group.hero-slider.panthera-hero--bleed-right .panthera-hero__media img {
    border-radius: 8px 0 0 8px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    min-height: 500px;
    display: block;
  }
}
@media (max-width: 768px) {
  .panthera-hero-group.hero-slider .swiper-pagination {
    padding-left: var(--wp--style--root--padding-left, 20px) !important;
    padding-right: var(--wp--style--root--padding-right, 20px) !important;
  }
}
@media (max-width: 781px) {
  .panthera-hero-group.hero-slider .wp-block-column {
    flex-basis: 100% !important;
  }
}
/* Hero slider della home sotto i 1024px: la regola sopra azzera il padding
   laterale delle slide per il layout "bleed" desktop, ma su tablet/smartphone
   il testo restava attaccato al bordo dello schermo (verificato a 375px:
   titolo e occhiello a x=0). Il padding si rimette sulla colonna del testo. */
@media (max-width: 1023.98px) {
  .panthera-hero-group.hero-slider .swiper-slide > .wp-block-columns > .wp-block-column:first-child {
    box-sizing: border-box;
    padding-left: var(--wp--style--root--padding-left, 20px) !important;
    padding-right: var(--wp--style--root--padding-right, 20px) !important;
  }
}
/* Hero slider della home sotto i 1024px: l'altezza e' calcolata sullo schermo
   (100dvh - header) e le slide sono centrate in verticale, ma su schermi bassi
   il contenuto (testo + immagine impilati, ~780px) e' piu' alto della slide:
   centrato, sbordava anche verso l'alto e la prima riga finiva sotto l'header
   (verificato a 375x812: colonna da y=87 con header che arriva a y=140).
   Qui l'altezza segue il contenuto: le slide stanno tutte nella stessa cella di
   una griglia (la piu' alta decide l'altezza, nessun salto cambiando slide),
   il contenuto parte dall'alto e le dissolvenze restano quelle di prima. */
@media (max-width: 1023.98px) {
  .panthera-hero-group.hero-slider {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 32px !important;
    padding-bottom: 88px !important;
  }
  .panthera-hero-group.hero-slider .swiper-wrapper {
    display: grid !important;
    height: auto !important;
  }
  .panthera-hero-group.hero-slider .swiper-slide {
    grid-area: 1/1;
    /* WordPress da' a ogni figlio di un contenitore "flow", tranne il primo,
       un margine superiore (~19px): le slide dalla seconda in poi partivano
       piu' in basso della prima e il testo "saltava" cambiando slide. */
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}
/* Editor overrides: show slides inside the Site Editor */
.editor-styles-wrapper .panthera-hero-group.hero-slider .swiper-wrapper {
  height: auto !important;
  min-height: 100% !important;
}

.editor-styles-wrapper .panthera-hero-group.hero-slider .swiper-slide {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
  z-index: 2 !important;
  margin-bottom: 2rem !important;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.panthera-hero-group {
  padding-top: 120px !important;
  padding-bottom: 120px !important;
  position: relative !important;
  overflow: hidden !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px) !important;
  background-size: 32px 32px !important;
  background-position: center center !important;
}
.panthera-hero-group .wp-block-columns {
  gap: 40px !important;
}
.panthera-hero-group.hero-slider {
  display: block !important;
  position: relative !important;
  height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - var(--header-height, 0px)) !important;
  min-height: 500px !important;
}
.panthera-hero-group {
  /* Elegant Fade Transition Framework for Slides */
}
.panthera-hero-group .swiper-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.panthera-hero-group .swiper-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out !important;
  pointer-events: none !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.panthera-hero-group .swiper-slide.swiper-slide-active {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}
.panthera-hero-group .swiper-pagination {
  position: absolute !important;
  bottom: 50px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: var(--wp--custom--layout--wide-size, 1200px) !important;
  z-index: 10 !important;
  padding-left: var(--wp--style--root--padding-left, 40px) !important;
  padding-right: var(--wp--style--root--padding-right, 40px) !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  pointer-events: auto !important;
  justify-content: flex-start !important;
}
@media (max-width: 768px) {
  .panthera-hero-group .swiper-pagination {
    bottom: 30px !important;
    padding-left: var(--wp--style--root--padding-left, 20px) !important;
    padding-right: var(--wp--style--root--padding-right, 20px) !important;
  }
}
.panthera-hero-group .swiper-pagination-bullet {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
  margin: 0 !important;
}
.panthera-hero-group .swiper-pagination-bullet-active {
  width: 28px !important;
  height: 8px !important;
  border-radius: 4px !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
}
.panthera-hero-group .swiper-pagination-bullet-active::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: var(--progress, 100%) !important;
  background-color: #0056ff !important;
  border-radius: 4px !important;
  transition: none !important;
}

.hero-description {
  font-size: 1.2rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  line-height: 1.6 !important;
}

.btn-secondary .wp-block-button__link {
  background-color: var(--wp--preset--color--secondary, #FF0077) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}
.btn-secondary .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
}

.btn-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}
.btn-outline .wp-block-button__link:hover {
  background-color: #ffffff !important;
  color: #0d111b !important;
  border-color: #ffffff !important;
}

.hero-infra-visual {
  background-color: var(--wp--preset--color--primary-container, #3D4B66) !important;
  border-radius: 12px !important;
  border: 1px solid #212c45 !important;
  padding: 40px !important;
}

.hero-infra-subtitle {
  font-size: 0.75rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  margin: 0 !important;
  letter-spacing: 0.05em !important;
}

.hero-infra-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-top: 20px !important;
  margin-bottom: 15px !important;
}

.hero-infra-description {
  font-size: 0.85rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.hero-infra-metric-row {
  background-color: #19233c !important;
  border-radius: 8px !important;
  padding: 15px !important;
  margin-top: 30px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.hero-infra-metric-label {
  font-size: 0.7rem !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.hero-infra-metric-value {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--secondary, #FF0077) !important;
  margin: 0 !important;
}

/* 2. AZIENDA SPLIT */
.panthera-ai-split-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-ai-split-section .wp-block-columns {
  gap: 60px !important;
}

.ai-split-title {
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.ai-split-description {
  font-size: 1.15rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  line-height: 1.6 !important;
}

.ai-dashboard-mock {
  background-color: var(--wp--preset--color--primary-container, #3D4B66) !important;
  border-radius: 12px !important;
  border: 1px solid #212c45 !important;
  padding: 35px !important;
}

.ai-dashboard-subtitle {
  font-size: 0.75rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  margin: 0 !important;
}

.ai-dashboard-row {
  margin-top: 24px !important;
  display: flex !important;
  gap: 20px !important;
}

.ai-dashboard-card {
  background-color: #19233c !important;
  border-radius: 8px !important;
  padding: 20px !important;
  flex: 1 1 0% !important;
}

.ai-dashboard-card-label {
  font-size: 10px !important;
  color: #7c839b !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  display: block !important;
}

.ai-dashboard-card-val {
  font-size: 20px !important;
  color: #ffffff !important;
  margin: 5px 0 0 0 !important;
  font-weight: 700 !important;
}
.ai-dashboard-card-val.warning {
  color: #ef4444 !important;
}

.ai-dashboard-footer-desc {
  font-size: 0.8rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, Monaco, monospace) !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;
}

/* 3. TRUST BADGES */
.panthera-ecosistema-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-ecosistema-section .wp-block-columns {
  gap: 60px !important;
}

.eco-title {
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin: 0 !important;
}

.eco-description {
  font-size: 1.1rem !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  line-height: 1.6 !important;
}

.eco-features-grid {
  gap: 30px !important;
}

.eco-features-column-offset {
  margin-top: 30px !important;
}

.btn-primary .wp-block-button__link {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}
.btn-primary .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--navy, #1a2e44) !important;
  color: #ffffff !important;
}

.feature-badge-card {
  background-color: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #eceef0 !important;
  padding: 30px !important;
}
.feature-badge-card.mb-30 {
  margin-bottom: 30px !important;
}

.feature-badge-number {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--wp--preset--color--secondary, #FF0077) !important;
  margin: 0 !important;
}

.feature-badge-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin-top: 15px !important;
  margin-bottom: 10px !important;
}

.feature-badge-description {
  font-size: 0.9rem !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* 4. SERVICES QUERY */
.panthera-fabbrica-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.fabbrica-grid {
  gap: 30px !important;
}

.fabbrica-column-offset {
  margin-top: 20px !important;
}

.fabbrica-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin-top: 15px !important;
}

.fabbrica-description {
  font-size: 1.1rem !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  margin-top: 35px !important;
  line-height: 1.6 !important;
}

.fabbrica-card {
  background-color: var(--wp--preset--color--steel, #f7f9fb) !important;
  border-radius: 12px !important;
  border: 1px solid #eceef0 !important;
  padding: 30px !important;
}
.fabbrica-card.mb-30 {
  margin-bottom: 30px !important;
}

.fabbrica-card-number {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--wp--preset--color--secondary, #FF0077) !important;
  margin: 0 !important;
}

.fabbrica-card-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin-top: 15px !important;
  margin-bottom: 10px !important;
}

.fabbrica-card-description {
  font-size: 0.9rem !important;
  color: #45464d !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.fabbrica-btn-row {
  margin-top: 50px !important;
}

/* 5. ADATTABILITA */
.panthera-adattabilita-section {
  padding-top: 110px !important;
  padding-bottom: 110px !important;
}
.panthera-adattabilita-section .wp-block-columns {
  gap: 60px !important;
}

.adattabilita-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.adattabilita-description {
  font-size: 1.15rem !important;
  color: var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  line-height: 1.6 !important;
}

.adatta-split-grid {
  gap: 30px !important;
}

.adatta-split-col-left {
  border-right: 1px solid #212c45 !important;
  padding-right: 20px !important;
}

.adatta-split-col-right {
  padding-left: 10px !important;
}

.adatta-split-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.adatta-split-p {
  font-size: 0.85rem !important;
  color: #7c839b !important;
  margin: 10px 0 0 0 !important;
  line-height: 1.5 !important;
}

.compliance-combo-card {
  background-color: var(--wp--preset--color--primary-container, #3D4B66) !important;
  border-radius: 12px !important;
  border: 1px solid #212c45 !important;
  padding: 45px !important;
  margin-top: 50px !important;
}

.compliance-combo-title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 24px !important;
  margin-top: 0 !important;
}

.compliance-combo-col h4 {
  font-size: 1.1rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}
.compliance-combo-col p {
  font-size: 0.85rem !important;
  color: #7c839b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* 6. PARTNER DI FIDUCIA */
.panthera-solidita-section {
  background-color: var(--wp--preset--color--steel, #f7f9fb) !important;
  color: #191c1e !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-solidita-section .wp-block-columns {
  gap: 60px !important;
}

.partner-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin: 0 !important;
}

.partner-description {
  font-size: 1.1rem !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  line-height: 1.6 !important;
}

.success-metric-card {
  background-color: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #eceef0 !important;
  padding: 45px !important;
  text-align: center !important;
}

.success-metric-number {
  font-size: 5.5rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: var(--wp--preset--color--secondary, #FF0077) !important;
  margin: 0 !important;
}

.success-metric-title {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

.success-metric-desc {
  font-size: 0.95rem !important;
  color: #45464d !important;
  margin: 0 !important;
}

/* --- SOCIAL PROOF & KPI CARDS SECTION --- */
.panthera-social-proof {
  color: #111827 !important;
  padding-top: clamp(64px, 8vw, 120px) !important;
  padding-bottom: clamp(64px, 8vw, 120px) !important;
  border-top: 1px solid #f3f4f6 !important;
}
.panthera-social-proof h2, .panthera-social-proof h3 {
  margin: 0 !important;
  text-align: left !important;
}

.social-proof-a-cols {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 40px !important;
  margin-bottom: 64px !important;
}

@media (min-width: 1024px) {
  .social-proof-a-cols {
    grid-template-columns: 7fr 5fr !important;
    gap: 80px !important;
  }
}
.social-proof-a-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.social-proof-a-title {
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #0d1b2a !important;
  margin-bottom: 24px !important;
}

.social-proof-a-body {
  font-size: 1.125rem !important;
  line-height: 1.6 !important;
  color: #526071 !important;
  margin-bottom: 32px !important;
}

.social-proof-a-button {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 28px !important;
  border-radius: 9999px !important;
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
  border: none !important;
}
.social-proof-a-button:hover {
  background-color: #172a6b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(33, 58, 143, 0.3) !important;
}

.social-proof-a-right {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
}

@media (min-width: 1024px) {
  .social-proof-a-right {
    align-items: flex-start !important;
    text-align: left !important;
  }
}
.social-proof-kpi-num {
  font-family: var(--wp--preset--font-family--display, "Manrope", sans-serif) !important;
  font-size: clamp(3rem, 6vw, 4rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  color: var(--wp--preset--color--secondary, #FF0077) !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.03em !important;
}

.social-proof-kpi-label {
  font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #0d1b2a !important;
  line-height: 1.2 !important;
  margin: 0 0 8px 0 !important;
}

.social-proof-kpi-sub {
  font-size: 1rem !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.social-proof-block-divider {
  border-top: 1px solid #e5e7eb !important;
  padding-top: 48px !important;
  margin-bottom: 64px !important;
}

.social-proof-block-title {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #0d1b2a !important;
  margin-bottom: 32px !important;
}

.social-proof-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 40px !important;
  width: 100% !important;
}
.social-proof-header-row .social-proof-block-title {
  margin-bottom: 6px !important;
}

.social-proof-block-subtitle {
  font-size: 1rem !important;
  color: #4b5563 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  font-family: "Inter", sans-serif !important;
}

.panthera-view-all-link {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0d1b2a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease-in-out !important;
}
.panthera-view-all-link span {
  font-size: 18px !important;
  transition: transform 0.2s ease-in-out !important;
  display: inline-block !important;
}
.panthera-view-all-link:hover {
  color: #0056b3 !important;
  text-decoration: none !important;
}
.panthera-view-all-link:hover span {
  transform: translateX(4px) !important;
}

.panthera-query-grid {
  display: block !important;
}
.panthera-query-grid ul.wp-block-post-template,
.panthera-query-grid .wp-block-post-template {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
}
.panthera-query-grid ul.wp-block-post-template > li,
.panthera-query-grid .wp-block-post-template > li {
  width: 100% !important;
}

@media (min-width: 768px) {
  .panthera-query-grid ul.wp-block-post-template,
  .panthera-query-grid .wp-block-post-template {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
.panthera-card-b, .panthera-card-c {
  position: relative !important;
  cursor: pointer !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #f3f4f6 !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  height: 100% !important;
  min-height: 180px !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.panthera-card-b:hover, .panthera-card-c:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
}
.panthera-card-b:hover .card-cta-link, .panthera-card-c:hover .card-cta-link {
  color: var(--wp--preset--color--primary, #0057FF) !important;
}

/* Link stretching to make the entire card clickable */
.panthera-card-b .card-title-b a::before,
.panthera-card-c .card-title-c a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 5 !important;
}

/* Deactivate redundant links on categories and cta to allow clicking through to the card link */
.card-category-tag a,
.card-cta-link a {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}

.card-category-tag {
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  margin-bottom: 12px !important;
  display: inline-block !important;
}

.card-title-b {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #0d1b2a !important;
  margin: 0 0 16px 0 !important;
  text-decoration: none !important;
}

.card-title-b a, .card-title-c a {
  color: inherit !important;
  text-decoration: none !important;
}

.card-cta-link {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #4b5563 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: auto !important;
  transition: color 0.2s ease !important;
}

.card-header-c {
  display: flex !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  margin-bottom: 12px !important;
}

.card-date-c {
  font-size: 0.75rem !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
}

.card-title-c {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #0d1b2a !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* 7. BRAND PROOF SECTION */
.panthera-brand-proof-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-brand-proof-section .brand-proof-header {
  margin-bottom: 0 !important;
  text-align: left !important;
}
.panthera-brand-proof-section .brand-proof-header .brand-proof-section-title {
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 24px !important;
}
.panthera-brand-proof-section .brand-proof-header .is-style-lead {
  line-height: 1.6 !important;
  padding-right: 20px !important;
}
.panthera-brand-proof-section .brand-proof-grid {
  gap: 30px !important;
  margin-bottom: 60px !important;
}
.panthera-brand-proof-section .brand-proof-card {
  background-color: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #eceef0 !important;
  padding: 40px 30px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s ease !important;
}
.panthera-brand-proof-section .brand-proof-card.featured-stat-card {
  border-left: 4px solid var(--wp--preset--color--primary, #0057FF) !important;
}
.panthera-brand-proof-section .brand-proof-card.featured-stat-card .stat-number {
  font-size: 4.5rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 16px 0 !important;
}
.panthera-brand-proof-section .brand-proof-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.06) !important;
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
}
.panthera-brand-proof-section .brand-proof-card-title {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--navy, #292C33) !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.3 !important;
}
.panthera-brand-proof-section .brand-proof-card-text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #45464d !important;
  margin: 0 !important;
}
.panthera-brand-proof-section .card-arrow-link {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: opacity 0.2s ease !important;
}
.panthera-brand-proof-section .card-arrow-link .cta-arrow {
  font-size: 18px !important;
}
.panthera-brand-proof-section .card-arrow-link:hover {
  opacity: 0.8 !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .panthera-brand-proof-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .panthera-brand-proof-section .brand-proof-section-title {
    font-size: 2.2rem !important;
  }
  .panthera-brand-proof-section .brand-proof-grid {
    gap: 20px !important;
  }
  .panthera-brand-proof-section .brand-proof-card {
    padding: 30px 20px !important;
  }
  .panthera-brand-proof-section .brand-proof-cta-links {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
}
/* GENERIC LIST STYLES */
ul.is-style-checkmark-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
ul.is-style-checkmark-list li {
  position: relative !important;
  padding-left: 28px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
}
ul.is-style-checkmark-list li::before {
  content: "check" !important;
  font-family: "Material Symbols Outlined" !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  font-size: 20px !important;
  color: var(--wp--preset--color--secondary, #FF0077) !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

/* GENERIC PATTERNS: SPACING & UTILITIES */
.panthera-feature-checklist-section,
.panthera-comparison-section {
  padding-top: var(--wp--preset--spacing--80) !important;
  padding-bottom: var(--wp--preset--spacing--80) !important;
}

.feature-checklist-title {
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

.card-banner-tag {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

.feature-checklist-desc {
  margin-top: var(--wp--preset--spacing--40) !important;
  margin-bottom: var(--wp--preset--spacing--50) !important;
}

.feature-checklist-panel {
  border: 2px solid var(--wp--preset--color--steel) !important;
  border-radius: 12px !important;
  padding: var(--wp--preset--spacing--50) !important;
}

.comparison-header-group {
  margin-bottom: var(--wp--preset--spacing--60) !important;
}

.comparison-label {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

.comparison-card-left {
  border-top: 2px solid var(--wp--preset--color--steel) !important;
  padding: var(--wp--preset--spacing--40) !important;
}

.comparison-card-right {
  border-top: 4px solid var(--wp--preset--color--primary) !important;
  padding: var(--wp--preset--spacing--40) !important;
}

/* 6. ADATTABILITA TECNOLOGICA (NEW) */
.panthera-adattabilita-tecnologica-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-columns {
  gap: 60px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-h2-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #292C33 !important;
  margin-top: 15px !important;
  margin-bottom: 30px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-cta-wrapper {
  margin-top: 40px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-card {
  background-color: #f7f9fb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 35px !important;
  transition: all 0.2s ease-in-out !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #292C33 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .panthera-adattabilita-tecnologica-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .panthera-adattabilita-tecnologica-section .adattabilita-columns {
    gap: 30px !important;
  }
  .panthera-adattabilita-tecnologica-section .adattabilita-cta-wrapper {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }
}
/* ============================================================
   BLOG NEWS COMPACT CARDS & SUBCATEGORIES STYLING
   ============================================================ */
.panthera-news-card-compact {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  position: relative !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}
.panthera-news-card-compact:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
}
.panthera-news-card-compact:hover .news-read-more-link {
  color: var(--wp--preset--color--secondary, #FF0077) !important;
}
.panthera-news-card-compact .news-card-title a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 5 !important;
}
.panthera-news-card-compact .news-card-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
  color: var(--wp--preset--color--navy, #292C33) !important;
}
.panthera-news-card-compact .news-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.panthera-news-card-compact .news-card-excerpt {
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin-bottom: 20px !important;
}

/* ============================================================
   BLOCK VALIDATION FIXES FOR BLOG TEMPLATE PARTS
   ============================================================ */
.blog-subcategories-section {
  padding-top: 40px !important;
  padding-bottom: 10px !important;
}

.blog-latest-posts-section {
  padding-top: 10px !important;
  padding-bottom: 60px !important;
}

.card-meta-row {
  margin-bottom: 8px !important;
}

.wp-block-query-pagination {
  margin-top: 40px !important;
}

.blog-news-section {
  padding-top: 70px !important;
  padding-bottom: 80px !important;
  border-top: 1px solid #cbd5e1 !important;
}

.news-card-meta {
  margin-bottom: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.panthera-hero__media[data-lqip] {
  position: relative;
  overflow: hidden;
}
.panthera-hero__media[data-lqip]::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: var(--lqip) center/cover no-repeat;
  filter: blur(22px);
  transform: scale(1.05);
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.panthera-hero__media[data-lqip] img {
  position: relative;
  z-index: 1;
}
.panthera-hero__media[data-lqip].is-loaded::before {
  opacity: 0;
}

@media (scripting: enabled) {
  .panthera-hero__media[data-lqip] img {
    transition: opacity 0.7s ease;
  }
  .panthera-hero__media[data-lqip]:not(.is-loaded) img {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panthera-hero__media[data-lqip]::before,
  .panthera-hero__media[data-lqip] img {
    transition: none;
  }
}
.panthera-cf7-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--panthera-radius, 0px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
@media (max-width: 768px) {
  .panthera-cf7-form-wrapper {
    padding: 24px 16px;
    box-shadow: none;
    border: none;
    background-color: transparent;
  }
}

/* ─────────────────────────────────────────────────────────────
   PAGINA CONTATTI - RESPONSIVE TWO-COLUMN & CARD WRAPPER
   ───────────────────────────────────────────────────────────── */
.page-contatti-main {
  background-color: var(--wp--preset--color--deep-black, #111111) !important;
}

.contatti-grid-section {
  background-color: var(--wp--preset--color--deep-black, #111111) !important;
  padding-top: 80px !important;
  padding-bottom: 100px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Page contatti left column components */
.contatti-info-column .hero-description-custom {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
  margin-bottom: 40px !important;
}

/* Partners Section styling in contatti page */
.contatti-partner {
  position: relative !important;
  padding-top: 32px !important;
  margin-top: 48px !important;
  width: 100% !important;
}
.contatti-partner::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%) !important;
}

.contatti-partner-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin: 0 0 32px 0 !important;
  font-family: var(--wp--preset--font-family--mono, "Space Grotesk", monospace) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.contatti-partner-title::before {
  content: "" !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: var(--wp--preset--color--panthera-accent, #e63329) !important;
}

/* Partners Swiper styling */
.contatti-partners-swiper {
  width: 100% !important;
  overflow: hidden !important;
}
.contatti-partners-swiper .swiper-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  transition: opacity 0.3s ease !important;
}
.contatti-partners-swiper .swiper-slide:hover {
  opacity: 1 !important;
}
.contatti-partners-swiper .swiper-slide span {
  user-select: none;
  display: inline-block;
}
.contatti-partners-swiper {
  /* Style the Gutenberg post featured image blocks used for partners */
}
.contatti-partners-swiper .wp-block-post-featured-image {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.contatti-partners-swiper .wp-block-post-featured-image a, .contatti-partners-swiper .wp-block-post-featured-image img {
  max-width: 140px !important;
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  filter: brightness(0) invert(1) opacity(0.35) !important; /* Silhouette gray/white style */
}
.contatti-partners-swiper .wp-block-post-featured-image:hover img {
  filter: brightness(0) invert(1) opacity(0.9) !important;
  transform: scale(1.05) !important;
}

/* Card Wrapper per il modulo di contatto */
.contatti-card-wrapper {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 40px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .contatti-card-wrapper {
    padding: 24px !important;
  }
}

.wpcf7 {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.wpcf7 form {
  margin: 0 auto;
}
.wpcf7 p {
  margin-bottom: 14px;
}

.page-contatti-main label,
.page-contatti-main .wpcf7-form-control-wrap > label,
.page-contatti-main p > label:first-child,
.contatti-card-wrapper label,
.contatti-card-wrapper .wpcf7-form-control-wrap > label,
.contatti-card-wrapper p > label:first-child,
.partner-contact-form-card label,
.partner-contact-form-card .wpcf7-form-control-wrap > label,
.partner-contact-form-card p > label:first-child,
.partner-lead-form-card label,
.partner-lead-form-card .wpcf7-form-control-wrap > label,
.partner-lead-form-card p > label:first-child,
.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap > label,
.wpcf7 p > label:first-child,
.wpcf7-form label,
.wpcf7-form .wpcf7-form-control-wrap > label,
.wpcf7-form p > label:first-child {
  display: block !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #64748b !important;
  margin-bottom: 6px !important;
  pointer-events: auto !important;
}
.page-contatti-main label span.required,
.page-contatti-main .wpcf7-form-control-wrap > label span.required,
.page-contatti-main p > label:first-child span.required,
.contatti-card-wrapper label span.required,
.contatti-card-wrapper .wpcf7-form-control-wrap > label span.required,
.contatti-card-wrapper p > label:first-child span.required,
.partner-contact-form-card label span.required,
.partner-contact-form-card .wpcf7-form-control-wrap > label span.required,
.partner-contact-form-card p > label:first-child span.required,
.partner-lead-form-card label span.required,
.partner-lead-form-card .wpcf7-form-control-wrap > label span.required,
.partner-lead-form-card p > label:first-child span.required,
.wpcf7 label span.required,
.wpcf7 .wpcf7-form-control-wrap > label span.required,
.wpcf7 p > label:first-child span.required,
.wpcf7-form label span.required,
.wpcf7-form .wpcf7-form-control-wrap > label span.required,
.wpcf7-form p > label:first-child span.required {
  color: #ec008c !important;
  margin-left: 2px;
}
.page-contatti-main .wpcf7 label,
.page-contatti-main .wpcf7-acceptance,
.page-contatti-main .wpcf7-acceptance label,
.page-contatti-main .wpcf7-list-item,
.page-contatti-main .wpcf7-list-item label,
.page-contatti-main .wpcf7-list-item-label,
.page-contatti-main .radio-mkt-label,
.contatti-card-wrapper .wpcf7 label,
.contatti-card-wrapper .wpcf7-acceptance,
.contatti-card-wrapper .wpcf7-acceptance label,
.contatti-card-wrapper .wpcf7-list-item,
.contatti-card-wrapper .wpcf7-list-item label,
.contatti-card-wrapper .wpcf7-list-item-label,
.contatti-card-wrapper .radio-mkt-label,
.partner-contact-form-card .wpcf7 label,
.partner-contact-form-card .wpcf7-acceptance,
.partner-contact-form-card .wpcf7-acceptance label,
.partner-contact-form-card .wpcf7-list-item,
.partner-contact-form-card .wpcf7-list-item label,
.partner-contact-form-card .wpcf7-list-item-label,
.partner-contact-form-card .radio-mkt-label,
.partner-lead-form-card .wpcf7 label,
.partner-lead-form-card .wpcf7-acceptance,
.partner-lead-form-card .wpcf7-acceptance label,
.partner-lead-form-card .wpcf7-list-item,
.partner-lead-form-card .wpcf7-list-item label,
.partner-lead-form-card .wpcf7-list-item-label,
.partner-lead-form-card .radio-mkt-label,
.wpcf7 .wpcf7 label,
.wpcf7 .wpcf7-acceptance,
.wpcf7 .wpcf7-acceptance label,
.wpcf7 .wpcf7-list-item,
.wpcf7 .wpcf7-list-item label,
.wpcf7 .wpcf7-list-item-label,
.wpcf7 .radio-mkt-label,
.wpcf7-form .wpcf7 label,
.wpcf7-form .wpcf7-acceptance,
.wpcf7-form .wpcf7-acceptance label,
.wpcf7-form .wpcf7-list-item,
.wpcf7-form .wpcf7-list-item label,
.wpcf7-form .wpcf7-list-item-label,
.wpcf7-form .radio-mkt-label {
  pointer-events: auto !important;
}
.page-contatti-main input[type=text],
.page-contatti-main input[type=email],
.page-contatti-main input[type=tel],
.page-contatti-main input[type=url],
.page-contatti-main select,
.page-contatti-main textarea,
.contatti-card-wrapper input[type=text],
.contatti-card-wrapper input[type=email],
.contatti-card-wrapper input[type=tel],
.contatti-card-wrapper input[type=url],
.contatti-card-wrapper select,
.contatti-card-wrapper textarea,
.partner-contact-form-card input[type=text],
.partner-contact-form-card input[type=email],
.partner-contact-form-card input[type=tel],
.partner-contact-form-card input[type=url],
.partner-contact-form-card select,
.partner-contact-form-card textarea,
.partner-lead-form-card input[type=text],
.partner-lead-form-card input[type=email],
.partner-lead-form-card input[type=tel],
.partner-lead-form-card input[type=url],
.partner-lead-form-card select,
.partner-lead-form-card textarea,
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=url],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form input[type=url],
.wpcf7-form select,
.wpcf7-form textarea {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  padding: 12px 16px !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: normal !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.page-contatti-main input[type=text]::placeholder,
.page-contatti-main input[type=email]::placeholder,
.page-contatti-main input[type=tel]::placeholder,
.page-contatti-main input[type=url]::placeholder,
.page-contatti-main select::placeholder,
.page-contatti-main textarea::placeholder,
.contatti-card-wrapper input[type=text]::placeholder,
.contatti-card-wrapper input[type=email]::placeholder,
.contatti-card-wrapper input[type=tel]::placeholder,
.contatti-card-wrapper input[type=url]::placeholder,
.contatti-card-wrapper select::placeholder,
.contatti-card-wrapper textarea::placeholder,
.partner-contact-form-card input[type=text]::placeholder,
.partner-contact-form-card input[type=email]::placeholder,
.partner-contact-form-card input[type=tel]::placeholder,
.partner-contact-form-card input[type=url]::placeholder,
.partner-contact-form-card select::placeholder,
.partner-contact-form-card textarea::placeholder,
.partner-lead-form-card input[type=text]::placeholder,
.partner-lead-form-card input[type=email]::placeholder,
.partner-lead-form-card input[type=tel]::placeholder,
.partner-lead-form-card input[type=url]::placeholder,
.partner-lead-form-card select::placeholder,
.partner-lead-form-card textarea::placeholder,
.wpcf7 input[type=text]::placeholder,
.wpcf7 input[type=email]::placeholder,
.wpcf7 input[type=tel]::placeholder,
.wpcf7 input[type=url]::placeholder,
.wpcf7 select::placeholder,
.wpcf7 textarea::placeholder,
.wpcf7-form input[type=text]::placeholder,
.wpcf7-form input[type=email]::placeholder,
.wpcf7-form input[type=tel]::placeholder,
.wpcf7-form input[type=url]::placeholder,
.wpcf7-form select::placeholder,
.wpcf7-form textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
.page-contatti-main input[type=text]:hover,
.page-contatti-main input[type=email]:hover,
.page-contatti-main input[type=tel]:hover,
.page-contatti-main input[type=url]:hover,
.page-contatti-main select:hover,
.page-contatti-main textarea:hover,
.contatti-card-wrapper input[type=text]:hover,
.contatti-card-wrapper input[type=email]:hover,
.contatti-card-wrapper input[type=tel]:hover,
.contatti-card-wrapper input[type=url]:hover,
.contatti-card-wrapper select:hover,
.contatti-card-wrapper textarea:hover,
.partner-contact-form-card input[type=text]:hover,
.partner-contact-form-card input[type=email]:hover,
.partner-contact-form-card input[type=tel]:hover,
.partner-contact-form-card input[type=url]:hover,
.partner-contact-form-card select:hover,
.partner-contact-form-card textarea:hover,
.partner-lead-form-card input[type=text]:hover,
.partner-lead-form-card input[type=email]:hover,
.partner-lead-form-card input[type=tel]:hover,
.partner-lead-form-card input[type=url]:hover,
.partner-lead-form-card select:hover,
.partner-lead-form-card textarea:hover,
.wpcf7 input[type=text]:hover,
.wpcf7 input[type=email]:hover,
.wpcf7 input[type=tel]:hover,
.wpcf7 input[type=url]:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover,
.wpcf7-form input[type=text]:hover,
.wpcf7-form input[type=email]:hover,
.wpcf7-form input[type=tel]:hover,
.wpcf7-form input[type=url]:hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
}
.page-contatti-main input[type=text]:focus,
.page-contatti-main input[type=email]:focus,
.page-contatti-main input[type=tel]:focus,
.page-contatti-main input[type=url]:focus,
.page-contatti-main select:focus,
.page-contatti-main textarea:focus,
.contatti-card-wrapper input[type=text]:focus,
.contatti-card-wrapper input[type=email]:focus,
.contatti-card-wrapper input[type=tel]:focus,
.contatti-card-wrapper input[type=url]:focus,
.contatti-card-wrapper select:focus,
.contatti-card-wrapper textarea:focus,
.partner-contact-form-card input[type=text]:focus,
.partner-contact-form-card input[type=email]:focus,
.partner-contact-form-card input[type=tel]:focus,
.partner-contact-form-card input[type=url]:focus,
.partner-contact-form-card select:focus,
.partner-contact-form-card textarea:focus,
.partner-lead-form-card input[type=text]:focus,
.partner-lead-form-card input[type=email]:focus,
.partner-lead-form-card input[type=tel]:focus,
.partner-lead-form-card input[type=url]:focus,
.partner-lead-form-card select:focus,
.partner-lead-form-card textarea:focus,
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 input[type=url]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpcf7-form input[type=text]:focus,
.wpcf7-form input[type=email]:focus,
.wpcf7-form input[type=tel]:focus,
.wpcf7-form input[type=url]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  background-color: #ffffff !important;
  border-color: #ec008c !important;
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.1) !important;
  outline: none !important;
}
.page-contatti-main textarea,
.contatti-card-wrapper textarea,
.partner-contact-form-card textarea,
.partner-lead-form-card textarea,
.wpcf7 textarea,
.wpcf7-form textarea {
  height: auto !important;
  min-height: 140px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
}
.page-contatti-main select,
.contatti-card-wrapper select,
.partner-contact-form-card select,
.partner-lead-form-card select,
.wpcf7 select,
.wpcf7-form select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ec008c' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 16px !important;
  padding-right: 45px !important;
}
.page-contatti-main .wpcf7-checkbox,
.contatti-card-wrapper .wpcf7-checkbox,
.partner-contact-form-card .wpcf7-checkbox,
.partner-lead-form-card .wpcf7-checkbox,
.wpcf7 .wpcf7-checkbox,
.wpcf7-form .wpcf7-checkbox {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 8px !important;
  pointer-events: auto !important;
}
.page-contatti-main .wpcf7-radio,
.contatti-card-wrapper .wpcf7-radio,
.partner-contact-form-card .wpcf7-radio,
.partner-lead-form-card .wpcf7-radio,
.wpcf7 .wpcf7-radio,
.wpcf7-form .wpcf7-radio {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  margin-top: 8px !important;
  pointer-events: auto !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item,
.page-contatti-main .wpcf7-radio .wpcf7-list-item,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item,
.wpcf7-form .wpcf7-radio .wpcf7-list-item,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #475569 !important;
  pointer-events: auto !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=checkbox],
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio],
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=checkbox],
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio],
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox],
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio],
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox],
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio],
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=checkbox],
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio],
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=checkbox],
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio],
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio] {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #ffffff !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: 19px !important;
  height: 19px !important;
  padding: 0 !important;
  border: 2px solid #94a3b8 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  position: relative !important;
  transition: border-color 0.15s ease, background-color 0.15s ease !important;
  pointer-events: auto !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:hover,
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio]:hover,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=checkbox]:hover,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio]:hover,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:hover,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio]:hover,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:hover,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio]:hover,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=checkbox]:hover,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio]:hover,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:hover,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio]:hover,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:hover,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:hover,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:hover,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:hover,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:hover,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:hover,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:hover,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:hover,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:hover,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:hover,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:hover,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:hover,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:hover,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio]:hover,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=checkbox]:hover,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio]:hover,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:hover,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio]:hover,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:hover,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio]:hover,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=checkbox]:hover,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio]:hover,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:hover,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio]:hover {
  border-color: #ec008c !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked,
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio]:checked,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio]:checked,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:checked,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:checked,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio]:checked,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio]:checked,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked {
  background-color: #ec008c !important;
  border-color: #ec008c !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked::after,
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked::after,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked::after,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked::after,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked::after,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked::after,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked::after,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked::after,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked::after,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked::after,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked::after,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked::after,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked::after,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked::after,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked::after,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:checked::after,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=checkbox]:checked::after,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked::after,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 6px !important;
  height: 10px !important;
  border: solid #ffffff !important;
  border-width: 0 2.5px 2.5px 0 !important;
  transform: rotate(45deg) !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:focus,
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio]:focus,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=checkbox]:focus,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio]:focus,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:focus,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio]:focus,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:focus,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio]:focus,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=checkbox]:focus,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio]:focus,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:focus,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio]:focus,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:focus,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:focus,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:focus,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:focus,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:focus,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:focus,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:focus,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:focus,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=checkbox]:focus,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:focus,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:focus,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:focus,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:focus,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio]:focus,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=checkbox]:focus,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio]:focus,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:focus,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio]:focus,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=checkbox]:focus,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio]:focus,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=checkbox]:focus,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio]:focus,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:focus,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio]:focus {
  box-shadow: 0 0 0 3px rgba(236, 0, 140, 0.15) !important;
  border-color: #ec008c !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio],
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio],
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio],
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio],
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio],
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio],
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio],
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio],
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio] {
  border-radius: 50% !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.page-contatti-main .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type=radio]:checked::after,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=radio]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  width: 7px !important;
  height: 7px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  border: none !important;
  transform: none !important;
}
.page-contatti-main .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.page-contatti-main .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label,
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label,
.contatti-card-wrapper .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.contatti-card-wrapper .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label,
.partner-contact-form-card .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.partner-contact-form-card .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label,
.partner-lead-form-card .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.partner-lead-form-card .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.wpcf7 .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.wpcf7-form .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label {
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  user-select: none;
  pointer-events: auto !important;
}
.page-contatti-main .radio-mkt-label,
.contatti-card-wrapper .radio-mkt-label,
.partner-contact-form-card .radio-mkt-label,
.partner-lead-form-card .radio-mkt-label,
.wpcf7 .radio-mkt-label,
.wpcf7-form .radio-mkt-label {
  display: block !important;
  margin-bottom: 8px !important;
}
.page-contatti-main .wpcf7-acceptance,
.contatti-card-wrapper .wpcf7-acceptance,
.partner-contact-form-card .wpcf7-acceptance,
.partner-lead-form-card .wpcf7-acceptance,
.wpcf7 .wpcf7-acceptance,
.wpcf7-form .wpcf7-acceptance {
  display: block !important;
  margin-top: 4px !important;
}
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item,
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item,
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item,
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  align-items: flex-start !important;
}
.page-contatti-main .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.contatti-card-wrapper .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.partner-contact-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.partner-lead-form-card .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input[type=checkbox],
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type=checkbox] {
  margin-top: 2px !important;
}
.page-contatti-main .wpcf7-acceptance label,
.contatti-card-wrapper .wpcf7-acceptance label,
.partner-contact-form-card .wpcf7-acceptance label,
.partner-lead-form-card .wpcf7-acceptance label,
.wpcf7 .wpcf7-acceptance label,
.wpcf7-form .wpcf7-acceptance label {
  display: contents !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #475569 !important;
  margin-bottom: 0 !important;
}
.page-contatti-main .wpcf7-submit,
.page-contatti-main input[type=submit],
.contatti-card-wrapper .wpcf7-submit,
.contatti-card-wrapper input[type=submit],
.partner-contact-form-card .wpcf7-submit,
.partner-contact-form-card input[type=submit],
.partner-lead-form-card .wpcf7-submit,
.partner-lead-form-card input[type=submit],
.wpcf7 .wpcf7-submit,
.wpcf7 input[type=submit],
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type=submit] {
  display: inline-block !important;
  width: auto !important;
  min-width: 160px;
  background-color: var(--wp--preset--color--secondary, #FF0077) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  padding: 16px 36px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
  margin-top: 10px !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
}
.page-contatti-main .wpcf7-submit:hover,
.page-contatti-main input[type=submit]:hover,
.contatti-card-wrapper .wpcf7-submit:hover,
.contatti-card-wrapper input[type=submit]:hover,
.partner-contact-form-card .wpcf7-submit:hover,
.partner-contact-form-card input[type=submit]:hover,
.partner-lead-form-card .wpcf7-submit:hover,
.partner-lead-form-card input[type=submit]:hover,
.wpcf7 .wpcf7-submit:hover,
.wpcf7 input[type=submit]:hover,
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type=submit]:hover {
  background-color: var(--wp--preset--color--secondary-dark, #b1003c) !important;
  box-shadow: 0 4px 12px rgba(177, 0, 60, 0.2) !important;
}
.page-contatti-main .wpcf7-submit:active,
.page-contatti-main input[type=submit]:active,
.contatti-card-wrapper .wpcf7-submit:active,
.contatti-card-wrapper input[type=submit]:active,
.partner-contact-form-card .wpcf7-submit:active,
.partner-contact-form-card input[type=submit]:active,
.partner-lead-form-card .wpcf7-submit:active,
.partner-lead-form-card input[type=submit]:active,
.wpcf7 .wpcf7-submit:active,
.wpcf7 input[type=submit]:active,
.wpcf7-form .wpcf7-submit:active,
.wpcf7-form input[type=submit]:active {
  transform: scale(0.97) !important;
}
@media (max-width: 480px) {
  .page-contatti-main .wpcf7-submit,
  .page-contatti-main input[type=submit],
  .contatti-card-wrapper .wpcf7-submit,
  .contatti-card-wrapper input[type=submit],
  .partner-contact-form-card .wpcf7-submit,
  .partner-contact-form-card input[type=submit],
  .partner-lead-form-card .wpcf7-submit,
  .partner-lead-form-card input[type=submit],
  .wpcf7 .wpcf7-submit,
  .wpcf7 input[type=submit],
  .wpcf7-form .wpcf7-submit,
  .wpcf7-form input[type=submit] {
    width: 100% !important;
    min-width: unset !important;
  }
}
.page-contatti-main label a,
.contatti-card-wrapper label a,
.partner-contact-form-card label a,
.partner-lead-form-card label a,
.wpcf7 label a,
.wpcf7-form label a {
  color: #ec008c !important;
  text-decoration: underline !important;
  transition: color 0.15s ease !important;
}
.page-contatti-main label a:hover,
.contatti-card-wrapper label a:hover,
.partner-contact-form-card label a:hover,
.partner-lead-form-card label a:hover,
.wpcf7 label a:hover,
.wpcf7-form label a:hover {
  color: #d1007a !important;
}

.page-contatti-main input[type=text],
.page-contatti-main input[type=email],
.page-contatti-main input[type=tel],
.page-contatti-main input[type=url],
.page-contatti-main select,
.page-contatti-main textarea {
  font-size: 13px !important;
  color: #0f172a !important;
  background-color: #f1f3f6 !important;
  border-color: #cbd5e1 !important;
}
.page-contatti-main label {
  font-size: 10px !important;
}

.wpcf7-spinner {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 !important;
}

.wpcf7-not-valid-tip {
  display: block !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ef4444 !important;
  margin-top: 6px !important;
  text-align: left !important;
}

.wpcf7-response-output {
  margin: 25px 0 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 6px !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  border: 1px solid transparent !important;
}

.wpcf7.invalid .wpcf7-response-output,
.wpcf7.unsent .wpcf7-response-output {
  background-color: rgba(239, 68, 68, 0.04) !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.wpcf7.sent .wpcf7-response-output {
  background-color: rgba(34, 197, 94, 0.04) !important;
  border-color: #86efac !important;
  color: #16a34a !important;
}

.wpcf7-form {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}
.wpcf7-form p:empty,
.wpcf7-form p:has(> br:only-child),
.wpcf7-form span:empty {
  display: none !important;
}
.wpcf7-form br {
  display: none !important;
}

.wpcf7-form > p,
.wpcf7-form > div,
.wpcf7-form .col-xs-12 {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  /* Di default, su desktop i campi p prendono il 50% di larghezza per alternarsi a sinistra e destra (due colonne) */
  .wpcf7-form > p {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  /* Classe esplicita per forzare 50% a prescindere dal tag */
  .wpcf7-form .half-row,
  .wpcf7-form .col-sm-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  /* Elementi a tutta larghezza (messaggi, note, consensi, select/tendine, privacy e pulsanti di invio) */
  .wpcf7-form > p:has(textarea),
  .wpcf7-form > p:has(select),
  .wpcf7-form > p:has(.wpcf7-select),
  .wpcf7-form > p:has(.select2-container),
  .wpcf7-form > p:has(input[type=submit]),
  .wpcf7-form > p:has(input[type=checkbox]),
  .wpcf7-form > p:has(input[type=radio]),
  .wpcf7-form > p:has(.wpcf7-acceptance),
  .wpcf7-form > p:has(span.wpcf7-list-item),
  .wpcf7-form > div:has(input[type=submit]),
  .wpcf7-form p.full-row,
  .wpcf7-form .full-row {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  /* Supporto per i padding asimmetrici delle colonne della bozza di CF7 */
  .wpcf7-form .padding-right-10-sm {
    padding-right: 20px !important;
    padding-left: 12px !important;
  }
  .wpcf7-form .padding-left-10-sm {
    padding-left: 20px !important;
    padding-right: 12px !important;
  }
}
.panthera-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .panthera-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.panthera-form-full-row {
  grid-column: 1/-1;
}

.panthera-cf7-privacy-row {
  margin-top: 15px;
  margin-bottom: 25px;
}
.panthera-cf7-privacy-row .wpcf7-list-item {
  margin-right: 0 !important;
}

.select2-container--default .select2-selection--single {
  height: 52px !important;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--panthera-radius, 0px) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  transition: all 0.22s ease !important;
}
.select2-container--default .select2-selection--single:focus, .select2-container--default .select2-selection--single:hover {
  border-color: #94a3b8 !important;
  background-color: #ffffff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-family: var(--wp--preset--font-family--body, "Manrope", sans-serif) !important;
  font-size: 15px !important;
  color: #1e293b !important;
  padding-left: 6px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px !important;
  right: 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #475569 transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
}
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.08) !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #475569 transparent !important;
  border-width: 0 5px 6px 5px !important;
}

.select2-dropdown {
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--panthera-radius, 0px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
  z-index: 999999 !important;
}

.select2-results__option {
  font-family: var(--wp--preset--font-family--body, "Manrope", sans-serif) !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
}
.select2-results__option.select2-results__option--highlighted[aria-selected] {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
}
.select2-results__option[aria-selected=true] {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Blog Hero Query List Reset */
.panthera-blog-hero-query ul.wp-block-post-template {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.panthera-blog-hero-query ul.wp-block-post-template > li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Design System Typographic Specimen */
.panthera-specimen-container .specimen-grid-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--wp--preset--color--panthera-border-soft);
  align-items: center;
}
.panthera-specimen-container .specimen-grid-row:last-child {
  border-bottom: none;
}
.panthera-specimen-container .specimen-weight-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  color: var(--wp--preset--color--panthera-text-muted);
  line-height: 1.4;
}
.panthera-specimen-container .specimen-weight-number {
  font-family: var(--wp--preset--font-family--display);
  font-size: 24px;
  font-weight: 800;
  color: var(--wp--preset--color--panthera-accent);
}
.panthera-specimen-container .specimen-preview-text {
  font-family: var(--wp--preset--font-family--body);
  color: var(--wp--preset--color--panthera-text);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   CASE HISTORY ARCHIVE TEMPLATE STYLING
   ───────────────────────────────────────────────────────────── */
/* Sidebar Navigation and List Formatting */
.archive-sidebar-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.archive-sidebar-col ul li {
  margin-bottom: 12px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  padding: 0 !important;
}

.archive-sidebar-col ul li a {
  color: #4b5563 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease-in-out !important;
}

.archive-sidebar-col ul li a:hover {
  color: var(--wp--preset--color--primary, #0057FF) !important;
  text-decoration: none !important;
}

.archive-sidebar-col ul li span {
  color: #9ca3af !important;
  font-size: 12px !important;
  margin-left: 6px !important;
}

/* Sidebar Search integration */
.sidebar-search-block {
  margin-bottom: 30px !important;
}

/* Excerpt size adjustments inside standard cards */
.card-excerpt-b {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #4b5563 !important;
  margin: 4px 0 20px 0 !important;
  flex-grow: 1 !important;
}
.card-excerpt-b p {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 !important;
}

/* Spacing alignment: visually connect sidebar + grid directly below the intro */
.archive-layout-group .archive-columns {
  margin-top: var(--wp--preset--spacing--40) !important;
}

/* Il layout a 2 colonne per le card Case History e' gestito dalla griglia CSS
   nello style del pattern query-case-history-archive.php (display:grid,
   grid-template-columns:repeat(2,1fr)). Qui c'era una SECONDA implementazione
   concorrente, a colonne CSS in stile "giornale" (column-count), piu'
   specifica (extra classe .archive-layout-group) e quindi sempre vincente
   sulla griglia. A differenza di una griglia, le colonne CSS riempiono una
   colonna alla volta dall'alto: con poche card di altezza molto diversa (es.
   un termine di settore con solo 2 case history, una con testo lungo e una
   corta) il browser puo' decidere di mettere entrambe nella prima colonna,
   lasciando la seconda vuota - le card impilate invece che affiancate.
   Sull'archivio principale il difetto restava invisibile per puro caso: con
   6 card di altezza simile la distribuzione "a caso" del multi-colonna
   capitava comunque di sembrare una griglia regolare. Rimossa: resta solo
   la griglia, deterministica a prescindere da quante card ci sono o quanto
   sono alte. */
/* Redesigned contemporary B2B cards */
.case-history-split-card {
  background: var(--wp--preset--color--panthera-black, #111520) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin-bottom: 0 !important; /* Managed by grid gap */
  color: #ffffff !important;
}
.case-history-split-card h3, .case-history-split-card h4, .case-history-split-card .archive-item-title {
  color: #ffffff !important;
}
.case-history-split-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}
.case-history-split-card {
  /* Standardize internal columns representation inside the card */
}
.case-history-split-card .wp-block-columns {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}
.case-history-split-card .wp-block-column {
  margin: 0 !important;
  width: 100% !important;
  flex-basis: unset !important;
}

/* Desktop split card visual layout: left featured image (40%), right content (60%) */
@media (min-width: 768px) {
  .case-history-split-card .wp-block-columns {
    flex-direction: row !important;
  }
  .case-history-split-card .wp-block-column:first-child {
    width: 40% !important;
    flex: 0 0 40% !important;
    position: relative !important;
  }
  .case-history-split-card .wp-block-column:last-child {
    width: 60% !important;
    flex: 0 0 60% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
}
/* Fully fill column with cover featured image */
.case-history-split-card .wp-block-post-featured-image {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.case-history-split-card .wp-block-post-featured-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.case-history-split-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.case-history-split-card {
  /* Padding & visual scaling of content */
}
.case-history-split-card .wp-block-column:last-child {
  padding: var(--wp--preset--spacing--40, 32px) !important;
}
.case-history-split-card {
  /* Title hover animation & clean rendering */
}
.case-history-split-card h3.wp-block-post-title {
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--20, 16px) !important;
}
.case-history-split-card h3.wp-block-post-title a {
  text-decoration: none !important;
  color: var(--wp--preset--color--navy, #12304d) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  transition: color 0.15s ease !important;
}
.case-history-split-card h3.wp-block-post-title a:hover {
  color: var(--wp--preset--color--primary, #e21b1b) !important;
}
.case-history-split-card {
  /* Refined blockquote / quote ACF decoration */
}
.case-history-split-card .ch-archive-quote-block {
  border-left: 2px solid var(--wp--preset--color--primary, #e21b1b) !important;
  padding-left: var(--wp--preset--spacing--30, 20px) !important;
  margin: 0 0 var(--wp--preset--spacing--30, 24px) 0 !important;
  background: transparent !important;
}
.case-history-split-card .ch-archive-quote-block blockquote {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  font-style: italic !important;
  color: var(--wp--preset--color--navy, #12304d) !important;
}
.case-history-split-card {
  /* Readmore positioning & interaction: automatically pushes to absolute bottom */
}
.case-history-split-card .wp-block-read-more {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}
.case-history-split-card .wp-block-read-more:hover {
  color: var(--wp--preset--color--navy, #12304d) !important;
  transform: translateX(4px) !important;
}

@media (max-width: 767px) {
  .case-history-split-card .wp-block-post-featured-image {
    height: 240px !important;
  }
}
/* Search block aesthetic refinement: clean modern rounded pill */
.sidebar-search-block .wp-block-search__inside-wrapper {
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 4px 4px 4px 16px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.sidebar-search-block .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--wp--preset--color--navy, #12304d) !important;
  box-shadow: 0 0 0 3px rgba(18, 48, 77, 0.1) !important;
}
.sidebar-search-block input.wp-block-search__input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  color: var(--wp--preset--color--navy, #12304d) !important;
  width: 100% !important;
  min-width: 0 !important;
}
.sidebar-search-block input.wp-block-search__input::placeholder {
  color: var(--wp--preset--color--medium-grey, #64748b) !important;
  opacity: 0.7;
}
.sidebar-search-block button.wp-block-search__button {
  background-color: var(--wp--preset--color--primary, #e21b1b) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
  height: auto !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.sidebar-search-block button.wp-block-search__button:hover {
  background-color: var(--wp--preset--color--navy, #12304d) !important;
}

/* ── Specific structural spacing for Block Editor Templates ── */
.case-history-hero {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hero-right-col {
  display: flex !important;
  align-items: center !important;
}

.hero-title {
  margin-top: 10px !important;
  margin-bottom: 24px !important;
}

.hero-description {
  margin-bottom: 0 !important;
}

.var-group-card {
  border: 1px solid var(--wp--preset--color--blue-mono-3) !important;
  border-top: 4px solid var(--wp--preset--color--primary) !important;
  padding: 24px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
}

.var-group-card-title {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.35 !important;
}

.var-group-card p {
  opacity: 0.85 !important;
  margin-bottom: 20px !important;
}

.archive-layout-group {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.sidebar-title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  border-bottom: 2px solid var(--wp--preset--color--steel) !important;
  padding-bottom: 8px !important;
}

.archive-listing-col .archive-title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.archive-listing-col .archive-subtitle {
  margin-top: 0 !important;
  margin-bottom: 40px !important;
}

/* =========================================================================
   CASE HISTORY SLIDER (OVERRIDE BLOCK STYLES)
   ========================================================================= */
.panthera-case-history-showcase {
  margin: 4rem auto;
  width: 100%;
}

.panthera-case-history-showcase__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panthera-case-history-showcase__hidden-permalink {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 40;
  margin: 0 !important;
}

.panthera-case-history-showcase__hidden-permalink a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Base Mobile Layout (Stacked Vertical Cards) */
.panthera-case-history-showcase__slider {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: auto;
}

.panthera-case-history-showcase__item,
.panthera-case-history-showcase__slider > .wp-block-post {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  background-color: var(--wp--preset--color--deep-black, #111827) !important;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panthera-case-history-showcase__media-container {
  position: relative;
  flex: 1;
  height: calc(100% - 40px);
  border-radius: 0 12px 0 0;
  top: 40px;
  width: 100%;
}

.panthera-case-history-showcase__media,
.panthera-case-history-showcase__media-container .wp-block-post-featured-image,
.panthera-case-history-showcase__media-container .wp-block-post-featured-image figure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1;
}

.panthera-case-history-showcase__media-container img:not(.panthera-ch-logo) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.panthera-case-history-showcase__media-container .wp-block-post-featured-image > a,
.panthera-case-history-showcase__media-container .wp-block-post-featured-image > div {
  display: block;
  width: 100%;
  height: 100%;
}

.panthera-case-history-showcase__media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.panthera-case-history-showcase__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.6s ease;
  z-index: 2;
}

.panthera-case-history-showcase__slider > .wp-block-post .panthera-case-history-showcase__hidden-permalink {
  position: static;
  margin: 0;
  padding: 0;
}

.panthera-case-history-showcase__slider > .wp-block-post .panthera-case-history-showcase__hidden-permalink a {
  position: static;
}

.panthera-case-history-showcase__slider > .wp-block-post .panthera-case-history-showcase__hidden-permalink a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50; /* ensure it stays on top of everything inside the card */
}

.panthera-case-history-showcase__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.5) inset;
}

.panthera-case-history-showcase__slider > .wp-block-post .panthera-case-history-showcase__title a:focus-visible::after {
  box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.5) inset;
}

.panthera-case-history-showcase__panel {
  position: relative;
  z-index: 3;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.panthera-case-history-showcase__panel-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 2rem;
  z-index: 5;
  pointer-events: none;
  box-sizing: border-box;
}

.panthera-case-history-showcase__arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  z-index: 5;
}

.panthera-case-history-showcase__item:hover .panthera-case-history-showcase__arrow,
.panthera-case-history-showcase__slider > .wp-block-post:hover .panthera-case-history-showcase__arrow,
.panthera-case-history-showcase__link:focus-visible ~ .panthera-case-history-showcase__panel .panthera-case-history-showcase__arrow {
  background: var(--wp--preset--color--primary, #e6005c);
  color: #ffffff;
  border-color: var(--wp--preset--color--primary, #e6005c);
  transform: scale(1.05);
}

.panthera-case-history-showcase__eyebrow {
  margin-bottom: 0.25rem;
}

.panthera-case-history-showcase__eyebrow a {
  background-color: var(--wp--preset--color--primary, #e6005c);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 9999px !important;
  padding: 0.35rem 1rem !important;
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.panthera-case-history-showcase__title,
.panthera-case-history-showcase__title-display {
  font-size: 2.75rem;
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.4s ease;
}

.panthera-case-history-showcase__title a,
.panthera-case-history-showcase__title-display a {
  color: inherit;
  text-decoration: none;
}

.panthera-case-history-showcase__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.4s ease;
}

.wp-block-post-excerpt.panthera-case-history-showcase__excerpt,
.panthera-case-history-showcase__excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 !important;
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panthera-ch-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.panthera-ch-logo-text {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  display: block;
  margin-bottom: 1rem;
}

.panthera-case-history-showcase__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.panthera-case-history-showcase__archive-link {
  display: inline-flex;
  align-items: center;
  color: #333333;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.125rem;
  transition: color 0.3s ease;
}

.panthera-case-history-showcase__archive-link:hover {
  color: #40e0d0;
}

/* Empty state */
.panthera-case-history-showcase__empty {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #666666;
  font-size: 1.125rem;
}

/* Desktop Horizontal Accordion Layout */
.panthera-case-history-showcase__plus-circle {
  display: none !important;
}

@media (min-width: 1024px) {
  .panthera-case-history-showcase__slider {
    flex-direction: row;
    height: 500px; /* Fixed height for the accordion */
    align-items: stretch !important;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .panthera-case-history-showcase__slider > .wp-block-post {
    flex: 1 !important; /* Non-active default flex */
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    color: #ffffff;
    background-color: var(--wp--preset--color--deep-black, #111827) !important;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post,
  .panthera-case-history-showcase__slider > .wp-block-post > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
  }
  /* Active Item */
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active {
    flex: 4 !important; /* Takes up most of the space */
    flex-direction: row !important; /* Split horizontal */
    cursor: pointer;
    background-color: var(--wp--preset--color--panthera-black, #111520) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(17, 21, 32, 0.15) !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__media-container {
    width: 50%;
    margin: 0;
    position: relative;
    height: calc(100% - 40px);
    border-radius: 0 12px 0 0;
    top: 40px;
    overflow: hidden !important;
    background-color: transparent !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__media-container .wp-post-image {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px 0 0 12px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__panel {
    width: 50%;
    height: 100%;
    padding: 3rem;
    box-sizing: border-box !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0 12px 12px 0;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__panel-inner {
    width: 50%; /* Set to 50% so it stays over the image area */
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 4rem 1.5rem 2.5rem !important;
    z-index: 5;
    pointer-events: none;
    box-sizing: border-box !important;
  }
  .panthera-case-history-showcase__combined-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
  }
  .panthera-case-history-showcase__combined-text strong {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    margin-right: 6px !important;
  }
  /* Left active panel content positions */
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .wp-block-acf-case-history-logo,
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-ch-logo-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-ch-logo {
    position: relative;
    width: auto;
    height: auto;
    max-width: 260px;
    max-height: 96px;
    top: -20px;
    object-fit: contain;
    transform: none;
    filter: brightness(0) invert(1);
    margin: 0;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-ch-logo-text {
    text-align: center;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__media,
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__media-container img:not(.panthera-ch-logo) {
    transform: scale(1.02);
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__arrow {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    background: var(--wp--preset--color--primary, #e6005c);
    color: #ffffff;
    border: none;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(230, 0, 92, 0.3);
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__plus-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--primary, #e6005c);
    color: #ffffff;
    border: none;
    z-index: 25;
    box-shadow: 0 4px 15px rgba(230, 0, 92, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active:hover .panthera-case-history-showcase__plus-circle {
    transform: translate(-50%, -50%) scale(1.1) !important;
    background-color: #ffffff;
    color: var(--wp--preset--color--primary, #e6005c);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
  }
  .panthera-case-history-showcase__partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.2s;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__partner-logo,
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .wp-block-acf-case-history-panthera-logo {
    opacity: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__partner-logo img,
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .wp-block-acf-case-history-panthera-logo img {
    max-width: 260px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__partner-logo,
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .wp-block-acf-case-history-panthera-logo {
    display: none;
  }
  .panthera-case-history-showcase__eyebrow {
    position: absolute;
    top: 25px !important;
    left: 2rem;
    font-size: 0;
    z-index: 15;
    margin: 0 !important;
    margin-block-start: 0 !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__eyebrow {
    top: 25px !important;
    left: 24px !important;
    transform: none !important;
    z-index: 25 !important;
    font-size: 0;
  }
  .panthera-case-history-showcase__eyebrow a {
    display: inline-block;
    padding: 0.35rem 1rem !important;
    background-color: var(--wp--preset--color--primary, #e6005c);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 9999px !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
  }
  /* Media content overlays for readability */
  .panthera-case-history-showcase__media-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
  }
  /* Inactive Items */
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) {
    flex: 1 !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background-color: var(--wp--preset--color--panthera-black, #111520) !important;
    position: relative !important;
    height: 100%;
    border-radius: 0 12px 0 0 !important;
    display: flex !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__media-container {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 0 12px 0 12px !important;
    height: calc(100% - 40px) !important;
    top: 40px !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__panel {
    display: none;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__panel-inner {
    position: relative !important;
    width: 100%;
    height: auto !important;
    background: linear-gradient(0deg, rgba(17, 21, 32, 0.9) 0%, rgba(17, 21, 32, 0.6) 40%, rgba(17, 21, 32, 0) 100%) !important;
    padding: 3rem 1.5rem 1.5rem !important;
    z-index: 5;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .ch-slider-sep,
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .ch-slider-excerpt {
    display: none !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__combined-text {
    display: block !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .ch-slider-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__arrow {
    display: none;
    opacity: 0;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__media,
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__media-container img:not(.panthera-ch-logo) {
    filter: blur(2px) grayscale(30%);
    transform: scale(1.05);
  }
  /* Hide Details on Inactive Items */
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__details {
    display: none;
  }
  .panthera-case-history-showcase__slider > .wp-block-post.panthera-case-history-showcase__item--active .panthera-case-history-showcase__details {
    opacity: 1;
    max-height: 500px;
    visibility: visible;
    width: 100%;
    z-index: 30;
    pointer-events: none;
  }
  /* Inactive State: Hide Logos and show Title Display */
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__title {
    display: none;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__title-display {
    font-size: 2rem;
    display: block;
    margin-top: auto;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-case-history-showcase__eyebrow {
    opacity: 1;
    top: 24px !important;
    left: 24px !important;
    transform: none !important;
  }
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .wp-block-acf-case-history-logo,
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-ch-logo,
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-ch-logo-text,
  .panthera-case-history-showcase__slider > .wp-block-post:not(.panthera-case-history-showcase__item--active) .panthera-ch-logo-wrapper {
    display: none !important;
  }
  .panthera-case-history-showcase__media-container .wp-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  }
}
/* Safety net: <p> vuoti iniettati da wpautop nella sezione correlati */
.section-related-cases p:empty,
.section-related-cases p:not([class]):empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

/* Evita che wpautop avvolga la CTA in <p> aggiungendo display block */
.related-case-card__cta-wrap {
  display: block;
  margin-top: auto;
}

/* Card dell'archivio Case History (template-parts/components/case-history-card.php,
   variante "archive"): tutta la card e' cliccabile, non solo titolo e freccia.
   Il link del titolo viene esteso a tutta la card con il suo ::after; il badge
   del settore (z-index 10) e la freccia restano cliccabili/visibili sopra. */
.ch-card-variant-archive {
  position: relative;
  cursor: pointer;
}

.ch-card-variant-archive .ch-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ch-card-variant-archive .ch-card-arrow-link {
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────
   ERP LANDING PAGE STYLING
   ───────────────────────────────────────────────────────────── */
/* Global Section Spacing & Padding */
.panthera-erp-hero,
.panthera-dna-section,
.panthera-erp-compliance-section,
.panthera-erp-localizzazione-section,
.panthera-erp-ecosistema-section,
.panthera-erp-soluzioni-richieste-section,
.panthera-erp-soluzioni-obiettivi-section,
.panthera-erp-desktop-dinamico-section,
.panthera-erp-ai-automazione-section,
.panthera-erp-legacy-section,
.panthera-erp-settori-section {
  padding-top: var(--wp--preset--spacing--80) !important;
  padding-bottom: var(--wp--preset--spacing--80) !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* 1. ERP Hero Section */
.panthera-erp-hero .erp-hero-p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  line-height: 1.6 !important;
  max-width: 800px !important;
  margin-bottom: 40px !important;
}

/* 2. DNA Manifatturiero Section */
.panthera-dna-section .dna-eyebrow {
  color: var(--wp--preset--color--primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 12px !important;
}
.panthera-dna-section .dna-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
}
.panthera-dna-section .dna-p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 32px !important;
}
.panthera-dna-section .dna-list-container {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 30px !important;
}

.panthera-dna-list {
  margin: 0 !important;
  padding-left: 20px !important;
  list-style-type: disc !important;
}
.panthera-dna-list li {
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--wp--preset--color--navy) !important;
}
.panthera-dna-list li:last-child {
  margin-bottom: 0 !important;
}

/* 3 & 4. Compliance and Localizzazione */
.panthera-erp-compliance-section .erp-compliance-inner,
.panthera-erp-localizzazione-section .erp-localizzazione-inner {
  max-width: 800px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 24px !important;
}

.compliance-inner-title,
.localizzazione-inner-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 0 !important;
}

.compliance-inner-p,
.localizzazione-inner-p {
  font-size: 18px !important;
  line-height: 1.65 !important;
  margin-bottom: 16px !important;
}

/* 5. Ecosistema Section */
.panthera-erp-ecosistema-section .ecosistema-header {
  margin-bottom: 60px !important;
}
.panthera-erp-ecosistema-section .ecosistema-title {
  font-size: clamp(2.1rem, 4.5vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
}
.panthera-erp-ecosistema-section .ecosistema-p {
  font-size: 18px !important;
  line-height: 1.6 !important;
  max-width: 800px !important;
}
.panthera-erp-ecosistema-section .ecosistema-intro-group {
  margin-bottom: 40px !important;
}
.panthera-erp-ecosistema-section .ecosistema-subtitle {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}
.panthera-erp-ecosistema-section .ecosistema-intro-p {
  font-size: 16px !important;
  line-height: 1.65 !important;
}
.panthera-erp-ecosistema-section .ecosistema-card {
  border-radius: 6px !important;
  margin-bottom: 30px !important;
  padding: 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.panthera-erp-ecosistema-section .ecosistema-card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}
.panthera-erp-ecosistema-section .ecosistema-card-p {
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.ecosistema-foot-links {
  margin-top: 60px !important;
  display: flex !important;
  justify-content: center !important;
}

.ecosistema-links-p a {
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin: 0 12px !important;
}
.ecosistema-links-p a:hover {
  text-decoration: underline !important;
}

/* 6. Soluzioni Richieste Section */
.soluzioni-richieste-header {
  margin-bottom: 40px !important;
}

.soluzioni-richieste-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.soluzioni-richieste-hero-card {
  border-radius: 8px !important;
  padding: 30px 25px !important;
}

.soluzioni-richieste-hero-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Custom ERP Module Cards styling (migrated from inline block style & enhanced) */
.panthera-modulo-new-card,
.erp-module-card {
  background-color: var(--wp--preset--color--panthera-surface, #ffffff) !important;
  border: 1px solid var(--wp--preset--color--panthera-border-soft, #e2e8f0) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-decoration: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, background-color 0.25s !important;
  position: relative !important;
  /* Force white background in dark sections */
}
.is-style-dark .panthera-modulo-new-card,
.is-style-dark .erp-module-card {
  background-color: #ffffff !important;
  --wp--preset--color--panthera-text: #292C33 !important;
  --wp--preset--color--panthera-text-muted: #475569 !important;
}
.panthera-modulo-new-card,
.erp-module-card {
  /* Base hover for light mode */
}
.panthera-modulo-new-card:hover,
.erp-module-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--wp--preset--color--panthera-border, #cbd5e1) !important;
}
.panthera-modulo-new-card,
.erp-module-card {
  /* Standard cards (not featured) */
}
.panthera-modulo-new-card.is-standard-card,
.erp-module-card.is-standard-card {
  /* User preferred light background, no dark overrides needed */
}
.panthera-modulo-new-card,
.erp-module-card {
  /* Featured cards - stronger contrast/depth */
}
.panthera-modulo-new-card.is-featured-card,
.erp-module-card.is-featured-card {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
}

.panthera-modulo-new-icon-box,
.erp-module-icon-circle {
  position: absolute !important;
  top: 138px !important;
  right: 24px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
  border: 2px solid #ffffff !important;
  transition: transform 0.25s ease !important;
}
.panthera-modulo-new-icon-box img,
.erp-module-icon-circle img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

.panthera-modulo-new-card:hover .panthera-modulo-new-icon-box {
  transform: scale(1.1) !important;
}

/* 7. Soluzioni Obiettivi Section */
.soluzioni-obiettivi-header {
  margin-bottom: 40px !important;
}

.soluzioni-obiettivi-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
}

.soluzioni-obiettivi-p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* 8. Desktop Dinamico Section */
.desktop-dinamico-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
}

.desktop-dinamico-p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.desktop-dinamico-features {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.desktop-dinamico-card {
  border-radius: 6px !important;
  padding: 20px !important;
}

.desktop-dinamico-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.desktop-dinamico-card-p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* 9. AI e Automazione Section */
.ai-automazione-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
}

.ai-automazione-p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 32px !important;
}

.ai-automazione-features {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
}

.ai-automazione-card {
  border-radius: 6px !important;
  padding: 25px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.ai-automazione-card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}

.ai-automazione-card-p {
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* 10. Legacy Section */
.legacy-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
}

.legacy-p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.legacy-card {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 30px !important;
}

.legacy-card-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
}

.legacy-card-p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* 11. Settori Section Custom Style Refinement */
.settori-header {
  margin-bottom: var(--wp--preset--spacing--60) !important;
}

.erp-sectors-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--wp--preset--spacing--30) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (min-width: 600px) {
  .erp-sectors-grid .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--wp--preset--spacing--40) !important;
  }
}
@media (min-width: 960px) {
  .erp-sectors-grid .wp-block-post-template {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: var(--wp--preset--spacing--40) !important;
  }
}

.erp-sector-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: var(--wp--preset--spacing--40) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.erp-sector-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03) !important;
  border-color: var(--wp--preset--color--primary, #e21b1b) !important;
}
.erp-sector-card .wp-block-post-featured-image {
  margin-bottom: var(--wp--preset--spacing--30) !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}
.erp-sector-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: clamp(160px, 15vw, 200px) !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}
.erp-sector-card:hover .wp-block-post-featured-image img {
  transform: scale(1.05) !important;
}
.erp-sector-card .wp-block-post-title {
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--wp--preset--color--navy, #12304D) !important;
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--20) !important;
}
.erp-sector-card .wp-block-post-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.erp-sector-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--primary, #e21b1b) !important;
}
.erp-sector-card .has-primary-color {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.02em !important;
  transition: color 0.2s, transform 0.2s !important;
}
.erp-sector-card .has-primary-color:after {
  transition: transform 0.2s !important;
}
.erp-sector-card:hover .has-primary-color {
  color: var(--wp--preset--color--navy, #12304D) !important;
}

/* ==========================================================================
   PANTHERA WORDPRESS THEME - PAGE MODULI GESTIONALI STYLES
   ========================================================================== */
/* ==========================================================================
   1. SLIDER FULL-BLEED ALIGNMENT & NAVIGATION
   ========================================================================== */
.panthera-slider-full-bleed-container {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-inline: 0 !important;
}

.panthera-slider-full-bleed-container .moduli-gestionali-carousel-intro-txt {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding-left: max(24px, (100vw - var(--wp--style--global--wide-size, 1440px)) / 2) !important;
  padding-right: max(24px, (100vw - var(--wp--style--global--wide-size, 1440px)) / 2) !important;
  box-sizing: border-box !important;
  /* Premium Graphical Revision */
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.panthera-slider-full-bleed-container .moduli-gestionali-carousel-intro-txt::before {
  content: "" !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  background-color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.panthera-slider-full-bleed-container .panthera-moduli-swiper-wrapper {
  overflow: visible !important;
  padding-left: max(24px, (100vw - var(--wp--style--global--wide-size, 1440px)) / 2) !important;
  padding-right: max(24px, (100vw - var(--wp--style--global--wide-size, 1440px)) / 2) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: auto !important;
  display: flex !important;
}

/* Tablet & Mobile tweaks for full-bleed slider */
@media (max-width: 1024px) {
  .panthera-slider-full-bleed-container .moduli-gestionali-carousel-intro-txt,
  .panthera-slider-full-bleed-container .panthera-moduli-swiper-wrapper {
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
  }
}
@media (max-width: 767px) {
  .panthera-slider-full-bleed-container .moduli-gestionali-carousel-intro-txt,
  .panthera-slider-full-bleed-container .panthera-moduli-swiper-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
/* Styling for the Moduli Navigation Strip */
.panthera-moduli-swiper-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 20px !important;
  margin-bottom: 20px !important;
}

.panthera-moduli-swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.panthera-modulo-tab-btn {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
}

.panthera-modulo-tab-btn:hover:not(.is-active-tab) {
  border-color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 18px rgba(230, 51, 41, 0.08) !important;
}

.panthera-modulo-tab-btn.is-active-tab {
  pointer-events: none;
}

/* ==========================================================================
   2. MAIN EDITORIAL CONTENT & PREMIUM TYPOGRAPHY
   ========================================================================== */
.panthera-editorial-content {
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
}

.panthera-editorial-content > * {
  margin-bottom: 1.5rem;
}

.panthera-editorial-content h2 {
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-size: 2rem;
  font-weight: 700;
  color: var(--wp--preset--color--navy);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.panthera-editorial-content h3 {
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wp--preset--color--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.panthera-editorial-content p {
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--wp--preset--color--medium-grey, #475569);
  font-weight: 400;
}

/* Custom Modern Bullet List Design */
.panthera-editorial-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 2.25rem !important;
}

.panthera-editorial-content li {
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: var(--wp--preset--color--medium-grey, #475569) !important;
  margin-bottom: 12px !important;
  position: relative !important;
  padding-left: 28px !important;
  font-weight: 400 !important;
}

.panthera-editorial-content li::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 10px !important;
  width: 7px !important;
  height: 7px !important;
  background-color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  border-radius: 50% !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.panthera-editorial-content li:hover::before {
  transform: scale(1.4) !important;
}

/* ==========================================================================
   3. SIDEBAR: solo il layout esterno (spazio tra le due card)
   ========================================================================== */
.gestione-finanziaria-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

/* ==========================================================================
   4. HERO PRIMARY CTA MATCHING
   ========================================================================== */
.panthera-hero__cta-primary .wp-block-button__link {
  background-color: var(--wp--preset--color--panthera-accent, #e63329) !important;
  color: #ffffff !important;
  font-family: var(--wp--preset--font-family--manrope, "Manrope", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  padding: 14px 32px !important;
  border-radius: 9999px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(230, 51, 41, 0.2) !important;
}

.panthera-hero__cta-primary .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--panthera-accent-hover, #cc251b) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(230, 51, 41, 0.3) !important;
}

/* ==========================================================================
   5. CONTACT FORM & LEAD CAPTURE PREMIUM REVISION
   ========================================================================== */
.partner-contact-section {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0f172a 100%) !important;
  position: relative;
  overflow: hidden;
}

.partner-contact-section::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  pointer-events: none !important;
}

/* ─────────────────────────────────────────────────────────────
   NATIVE GUTENBERG QUERY LOOP STYLES FOR MODULES & SECTORS
   ───────────────────────────────────────────────────────────── */
.panthera-moduli-query-grid .wp-block-post-template,
.panthera-settori-query-grid .wp-block-post-template,
.panthera-moduli-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout,
.panthera-settori-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 15px !important;
  list-style: none !important;
  margin: 30px 0 0 0 !important;
  padding: 0 !important;
}
@media (min-width: 576px) {
  .panthera-moduli-query-grid .wp-block-post-template,
  .panthera-settori-query-grid .wp-block-post-template,
  .panthera-moduli-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout,
  .panthera-settori-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 992px) {
  .panthera-moduli-query-grid .wp-block-post-template,
  .panthera-moduli-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 992px) {
  .panthera-settori-query-grid .wp-block-post-template,
  .panthera-settori-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Force standard full size on list items inside FSE grid containers to stop single-letter squishing */
.panthera-moduli-query-grid .wp-block-post,
.panthera-settori-query-grid .wp-block-post,
.panthera-moduli-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout > .block-editor-block-list__block,
.panthera-settori-query-grid [data-type="core/post-template"] > .block-editor-block-list__layout > .block-editor-block-list__block {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style-type: none !important;
  box-sizing: border-box !important;
  flex-grow: 1 !important;
  flex-basis: auto !important;
  display: block !important;
}

/* Modulo gesture loop Card content */
.panthera-modulo-query-card {
  aspect-ratio: 1/1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 15px !important;
  border-radius: 6px !important;
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.25s ease !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  text-align: center !important;
  height: 100% !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}
.panthera-modulo-query-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04) !important;
  filter: brightness(1.08) !important;
}

.panthera-modulo-query-title {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  margin: 0 0 14px 0 !important;
  display: block !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.panthera-modulo-query-icon-wrapper {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.panthera-modulo-query-icon {
  max-width: 100% !important;
  max-height: 100% !important;
  filter: brightness(0) invert(1) !important; /* Forces the SVG icon to render crisp white */
  object-fit: contain !important;
}

/* Sectors Grid styling: le regole per .panthera-settore-query-card e
   .panthera-settore-query-title erano legacy, superate dal markup attuale
   di panthera_render_settore_card_markup() (inc/acf-blocks.php), che stampa
   il proprio stile inline/una tantum. Erano rimaste qui, con !important e
   caricate globalmente, e vincevano silenziosamente sullo stile corretto -
   in particolare aspect-ratio:1.2/1 forzava l'altezza proporzionale alla
   larghezza, raddoppiando l'altezza di ogni card "in evidenza" (doppia
   larghezza) invece di lasciarla identica alle altre. Rimosse. */
/* Custom visual cards links */
.panthera-vert-link {
  transition: opacity 0.15s ease-in-out;
}
.panthera-vert-link:hover {
  opacity: 0.8;
}

/* Custom Template Parts: Industrial Native & Usabilità / AI styling */
.panthera-industrial-native-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-industrial-native-section .industrial-header-row {
  margin-bottom: 50px !important;
}
.panthera-industrial-native-section .industrial-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #292C33 !important;
  margin-top: 15px !important;
  margin-bottom: 20px !important;
  max-width: 800px !important;
}
.panthera-industrial-native-section .industrial-lead {
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  max-width: 900px !important;
  margin: 0 !important;
}
.panthera-industrial-native-section .industrial-grid {
  gap: 30px !important;
  margin-bottom: 50px !important;
}
.panthera-industrial-native-section .industrial-card {
  background-color: #f7f9fb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 35px !important;
}
.panthera-industrial-native-section .industrial-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}
.panthera-industrial-native-section .industrial-card-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #292C33 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
.panthera-industrial-native-section .industrial-card-text {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  margin: 0 !important;
}
.panthera-industrial-native-section .industrial-buttons {
  margin-top: 10px !important;
}

.panthera-usabilita-ai-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-usabilita-ai-section .usabilita-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #292C33 !important;
  margin-top: 15px !important;
  margin-bottom: 20px !important;
}
.panthera-usabilita-ai-section .usabilita-lead {
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  margin-bottom: 35px !important;
}
.panthera-usabilita-ai-section .usabilita-element-card {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 35px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}
.panthera-usabilita-ai-section .usabilita-card-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #292C33 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
.panthera-usabilita-ai-section .usabilita-card-text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .panthera-industrial-native-section,
  .panthera-usabilita-ai-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}
/* Custom Template Parts: Adattabilità Tecnologica styling */
.panthera-adattabilita-tecnologica-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-columns {
  gap: 60px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-h2-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #292C33 !important;
  margin-top: 15px !important;
  margin-bottom: 30px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-cta-wrapper {
  margin-top: 40px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-card {
  background-color: #f7f9fb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 35px !important;
  transition: all 0.2s ease-in-out !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #292C33 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
.panthera-adattabilita-tecnologica-section .adattabilita-item-text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  .panthera-adattabilita-tecnologica-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .panthera-adattabilita-tecnologica-section .adattabilita-columns {
    gap: 30px !important;
  }
  .panthera-adattabilita-tecnologica-section .adattabilita-cta-wrapper {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }
}

/* ============================================================
   PANTHERA FSE BLOG REDESIGN - PREMIUM LIGHT ARCHITECTURE
   ============================================================ */
/* General Container Styling */
.blog-hero-group-custom {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f1f5f9;
}

/* Hero Section */
.blog-hero-columns {
  align-items: center !important;
}

.hero-description-custom {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  max-width: 620px;
}

/* Rotate subtle animation for the vector representation */
@keyframes compassFloat {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.blog-hero-vector-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.blog-hero-vector {
  animation: compassFloat 120s linear infinite;
}

/* ─────────────────────────────────────────────────────────────
   CATEGORIES NAVIGATION & SEARCH BAR - HORIZONTAL SINGLE LINE
   ───────────────────────────────────────────────────────────── */
.blog-subcategories-section {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background-color: #ffffff !important;
}

.blog-filters-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.blog-filters-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-grow: 1 !important;
  overflow: hidden !important;
}

.blog-filter-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

.blog-filter-chips {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  padding: 6px 2px !important;
  flex-grow: 1 !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.blog-filter-chips::-webkit-scrollbar {
  display: none !important;
}

/* Chip Buttons */
.blog-filter-chips .blog-cat-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif) !important;
  cursor: pointer !important;
}
.blog-filter-chips .blog-cat-nav-btn:hover {
  color: #0057FF !important;
  border-color: #0057FF !important;
  background-color: rgba(0, 87, 255, 0.02) !important;
}
.blog-filter-chips .blog-cat-nav-btn.is-active {
  color: #ffffff !important;
  background-color: #0057FF !important;
  border-color: #0057FF !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 10px rgba(0, 87, 255, 0.15) !important;
}

/* Inline Search Form on Right */
.blog-filters-right {
  flex-shrink: 0 !important;
}

.blog-search-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 220px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.blog-search-form:focus-within {
  background-color: #ffffff !important;
  border-color: #0057FF !important;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.08) !important;
}

.blog-search-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.blog-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 6px 0 !important;
  font-size: 13px !important;
  color: #1e293b !important;
  width: 100% !important;
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif) !important;
  box-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────────
   ASYMMETRICAL 6-COLUMN GRID LAYOUT (FEATURED + LIST + GRIDS)
   ───────────────────────────────────────────────────────────── */
.blog-latest-posts-section {
  padding-top: 60px !important;
  padding-bottom: 80px !important;
  background-color: #ffffff !important;
}

/* General Post Card */
.panthera-blog-post-card {
  background-color: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: none !important;
}
.panthera-blog-post-card:hover {
  transform: translateY(-2px) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.04) !important;
}
.panthera-blog-post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.02) !important;
}
.panthera-blog-post-card .wp-block-post-featured-image {
  width: 100% !important;
  height: 200px !important;
  margin: 0 0 16px 0 !important;
  overflow: hidden !important;
}
.panthera-blog-post-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}
.panthera-blog-post-card:not(:has(.wp-block-post-featured-image)) {
  padding-top: 24px !important;
}
.panthera-blog-post-card {
  /* Padding for card content elements to keep text away from borders */
}
.panthera-blog-post-card .card-meta-row,
.panthera-blog-post-card .card-title-b,
.panthera-blog-post-card .card-excerpt-b,
.panthera-blog-post-card .card-cta-group {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.panthera-blog-post-card .card-cta-group {
  padding-bottom: 24px !important;
  margin-top: auto !important;
}

/* Card Metadata */
.card-meta-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 12px !important;
  margin-bottom: 12px !important;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Force date color to black for all blog cards */
.panthera-blog-post-card .wp-block-post-date,
.panthera-news-card-compact .wp-block-post-date,
.card-meta-row .wp-block-post-date,
.news-card-meta .wp-block-post-date {
  color: #000000 !important;
}

.card-category-tag a {
  color: #0057FF !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.card-title-b {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #1e293b !important;
  margin: 0 0 10px 0 !important;
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif) !important;
}
.card-title-b a {
  color: inherit !important;
  text-decoration: none !important;
}
.card-title-b a:hover {
  color: #0057FF !important;
}

.card-excerpt-b {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #64748b !important;
  margin-bottom: 20px !important;
}

.card-cta-group {
  margin-top: auto !important;
}

.card-cta-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0057FF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}
.card-cta-link:hover {
  color: #1e293b !important;
}

/* ─────────────────────────────────────────────────────────────
   STYLING FOR ROW/COLUMN ASSYMETRICAL GRID ON DESKTOP
   ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  /* Set up global grid structure override inside the query block with high specificity to override Gutenberg columns-3 */
  .blog-query-grid .wp-block-post-template,
  .blog-query-grid .wp-block-post-template.is-layout-grid,
  .blog-query-grid .wp-block-post-template.is-layout-grid.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    grid-gap: 32px !important;
    grid-auto-rows: auto !important;
  }
  .blog-query-grid .wp-block-post-template > li,
  .blog-query-grid .wp-block-post-template.is-layout-grid.columns-3 > li {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* ──── 1. FEATURED ARTICLE (Left item, 4 columns, span 2 rows) ──── */
  .blog-query-grid .wp-block-post-template > li:nth-child(1),
  .blog-query-grid .wp-block-post-template > li.post-index-1,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) {
    grid-column: 1/span 4 !important;
    grid-row: 1/span 2 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .panthera-blog-post-card {
    border-color: #e2e8f0 !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .panthera-blog-post-card > * {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .panthera-blog-post-card > .wp-block-post-featured-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .wp-block-post-featured-image {
    position: relative !important;
    height: 380px !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    overflow: hidden !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .wp-block-post-featured-image::before,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .wp-block-post-featured-image::before,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .wp-block-post-featured-image::before {
    content: "BLOG";
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #0057FF;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.05em;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .wp-block-post-featured-image a, .blog-query-grid .wp-block-post-template > li:nth-child(1) .wp-block-post-featured-image img,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .wp-block-post-featured-image a,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .wp-block-post-featured-image img,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .wp-block-post-featured-image a,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .wp-block-post-featured-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .card-title-b,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .card-title-b,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .card-title-b {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .card-title-b a,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .card-title-b a,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .card-title-b a {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .card-excerpt-b,
  .blog-query-grid .wp-block-post-template > li.post-index-1 .card-excerpt-b,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-1) .card-excerpt-b {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  /* ──── 2. SIDEBAR ARTICLES (Right items, 2 columns, stacked) ──── */
  .blog-query-grid .wp-block-post-template > li:nth-child(2),
  .blog-query-grid .wp-block-post-template > li.post-index-2,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-2) {
    grid-column: 5/span 2 !important;
    grid-row: 1 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(2) .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li.post-index-2 .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-2) .panthera-blog-post-card {
    border-top: 3.5px solid #0057FF !important;
    border-radius: 0 0 8px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 24px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(3),
  .blog-query-grid .wp-block-post-template > li.post-index-3,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-3) {
    grid-column: 5/span 2 !important;
    grid-row: 2 !important;
    position: relative !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(3) .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li.post-index-3 .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-3) .panthera-blog-post-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 24px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(3)::after,
  .blog-query-grid .wp-block-post-template > li.post-index-3::after,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-3)::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292C33' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-cpu'%3E%3Crect width='16' height='16' x='4' y='4' rx='2' ry='2'/%3E%3Crect width='6' height='6' x='9' y='9' rx='1'/%3E%3Cpath d='M9 1v3'/%3E%3Cpath d='M15 1v3'/%3E%3Cpath d='M9 20v3'/%3E%3Cpath d='M15 20v3'/%3E%3Cpath d='M20 9h3'/%3E%3Cpath d='M20 15h3'/%3E%3Cpath d='M1 9h3'/%3E%3Cpath d='M1 15h3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 10;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(2) .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-2 .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-2) .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:nth-child(3) .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-3 .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-3) .wp-block-post-featured-image {
    display: none !important;
  }
  /* ──── 3. FOOTER ARTICLES (Bottom grid, columns 4, 5, 6) ──── */
  .blog-query-grid .wp-block-post-template > li:nth-child(4),
  .blog-query-grid .wp-block-post-template > li.post-index-4,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-4) {
    grid-column: 1/span 2 !important;
    grid-row: 3 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(4) .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li.post-index-4 .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-4) .panthera-blog-post-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(4) .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li.post-index-4 .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-4) .panthera-blog-post-card > * {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(4) .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-4 .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-4) .panthera-blog-post-card > .wp-block-post-featured-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(5),
  .blog-query-grid .wp-block-post-template > li.post-index-5,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-5) {
    grid-column: 3/span 2 !important;
    grid-row: 3 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(5) .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li.post-index-5 .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-5) .panthera-blog-post-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(5) .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li.post-index-5 .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-5) .panthera-blog-post-card > * {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(5) .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-5 .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-5) .panthera-blog-post-card > .wp-block-post-featured-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(6),
  .blog-query-grid .wp-block-post-template > li.post-index-6,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-6) {
    grid-column: 5/span 2 !important;
    grid-row: 3 !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(6) .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li.post-index-6 .panthera-blog-post-card,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-6) .panthera-blog-post-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(6) .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li.post-index-6 .panthera-blog-post-card > *,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-6) .panthera-blog-post-card > * {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(6) .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li.post-index-6 .panthera-blog-post-card > .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:has(.post-index-6) .panthera-blog-post-card > .wp-block-post-featured-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* Pagination Row */
.wp-block-query-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 50px !important;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}
.wp-block-query-pagination a:hover,
.wp-block-query-pagination span:hover {
  color: #0057FF !important;
  border-color: #0057FF !important;
  background-color: rgba(0, 87, 255, 0.02) !important;
}

.wp-block-query-pagination .current {
  font-weight: 700 !important;
  color: #ffffff !important;
  background-color: #1e293b !important;
  border-color: #1e293b !important;
}

/* Style Next Button differently to resemble "Carica altri articoli" outline ghost button */
.wp-block-query-pagination-next a {
  min-width: unset !important;
  height: auto !important;
  padding: 10px 24px !important;
  font-weight: bold !important;
  background-color: transparent !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
}
.wp-block-query-pagination-next a:hover {
  color: #0057FF !important;
  border-color: #0057FF !important;
  background-color: transparent !important;
}

/* ─────────────────────────────────────────────────────────────
   NEWS & CORPORATE PRESS SECTION
   ───────────────────────────────────────────────────────────── */
.blog-news-section {
  background-color: var(--wp--preset--color--light-grey, #f8fafc) !important;
  padding-top: 80px !important;
  padding-bottom: 90px !important;
  border-top: 1px solid var(--wp--preset--color--panthera-border-soft, #e2e8f0) !important;
}

.news-section-header .is-style-text-eyebrow {
  color: var(--wp--preset--color--primary, #0057FF) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
}
.news-section-header h2 {
  color: var(--wp--preset--color--navy, #1e293b) !important;
  font-size: clamp(32px, 4vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
}

/* Grid layout for news */
.news-query-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr) !important;
  gap: 24px !important;
}
@media (min-width: 768px) {
  .news-query-grid .wp-block-post-template {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* News cards design (white surface, rounded, compact) */
.panthera-news-card-compact {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.panthera-news-card-compact:hover {
  transform: translateY(-3px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.04) !important;
}

.news-card-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

.news-card-title {
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #1e293b !important;
  margin: 0 !important;
}
.news-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.news-card-title a:hover {
  color: #0057FF !important;
}

/* Hide excerpt on news per mockup specification */
.news-card-excerpt {
  display: none !important;
}

.news-read-more-link {
  color: #0057FF !important;
  transition: color 0.15s ease !important;
}
.news-read-more-link:hover {
  color: #1e293b !important;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE & TABLETS)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .blog-hero-group-custom {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  /* Hide decorative orb/sphere on small/medium units to prioritize clean reading space */
  .hero-right-col {
    display: none !important;
  }
  .hero-left-col {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  /* On under 1024px screens, fall back to simple 2-column or 1-column layout for post templates with high specificity */
  .blog-query-grid .wp-block-post-template,
  .blog-query-grid .wp-block-post-template.is-layout-grid,
  .blog-query-grid .wp-block-post-template.is-layout-grid.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  /* Override featured larger height & width specs on small screens to align symmetrically */
  .wp-block-post-template > li,
  .blog-query-grid .wp-block-post-template.is-layout-grid.columns-3 > li {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }
  .blog-query-grid .wp-block-post-template > li:nth-child(1) .wp-block-post-featured-image {
    height: 200px !important;
  }
  /* Restabilize images for second/third elements */
  .blog-query-grid .wp-block-post-template > li:nth-child(2) .wp-block-post-featured-image,
  .blog-query-grid .wp-block-post-template > li:nth-child(3) .wp-block-post-featured-image {
    display: block !important;
  }
}
@media (max-width: 767px) {
  .blog-filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .blog-filters-right {
    width: 100% !important;
  }
  .blog-search-form {
    width: 100% !important;
  }
  .blog-query-grid .wp-block-post-template,
  .blog-query-grid .wp-block-post-template.is-layout-grid,
  .blog-query-grid .wp-block-post-template.is-layout-grid.columns-3 {
    grid-template-columns: 1fr !important;
  }
}
/* Category Slider (Case History style).
   Prima sfondava a 100vw per guadagnare spazio di scorrimento extra, ma lo
   swiper (usato sia qui che nell'archivio Case History, stessa classe)
   misura il proprio overflow sulla larghezza del SUO box: essendo quel box
   piu' largo della zona realmente visibile, considerava il contenuto "non
   tagliato" anche quando alcune pillole restavano fuori dalla vista - lo
   spazio vuoto oltre la freccia. Questa e' la copia globale della regola
   (caricata su ogni pagina via main.css): la versione locale nello style
   del pattern query-case-history-archive.php da sola non bastava, perche'
   questa vince per !important + ordine di caricamento. */
.panthera-ch-categories-swiper {
  overflow: hidden;
  padding-top: 15px !important;
  padding-bottom: 25px !important;
  margin-top: -15px !important;
  margin-bottom: -25px !important;
  box-sizing: border-box !important;
}

.panthera-custom-categories {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.panthera-custom-categories::-webkit-scrollbar {
  display: none;
}
.panthera-custom-categories li {
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
}
.panthera-custom-categories li a {
  display: inline-block;
  padding: 10px 24px !important;
  background-color: white !important;
  border: 1px solid var(--wp--preset--color--panthera-border-soft, #e2e8f0) !important;
  border-radius: 9999px !important;
  color: var(--wp--preset--color--panthera-text, #1e293b) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
}
.panthera-custom-categories li a:hover {
  border-color: var(--wp--preset--color--panthera-accent, #0057FF) !important;
  color: var(--wp--preset--color--panthera-accent, #0057FF) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.panthera-custom-categories li.current-cat a {
  background-color: var(--wp--preset--color--panthera-accent, #0057FF) !important;
  color: white !important;
  border-color: var(--wp--preset--color--panthera-accent, #0057FF) !important;
}

/* ─────────────────────────────────────────────────────────────
   PANTHERA REDESIGN: NEW EVENTS SECTION (HIGH-FIDELITY IMPLEMENTATION)
   ───────────────────────────────────────────────────────────── */
.panthera-events-wrapper-new {
  width: 100%;
  margin-top: 20px;
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif);
}

/* 1. HERO SECTION & PROSSIMO EVENTO CARD */
.panthera-hero-group-custom {
  background-color: #ffffff !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.panthera-hero-group-custom .hero-title {
  color: #12304D !important;
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}
.panthera-hero-group-custom .hero-description {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  max-width: 640px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.archive-layout-group {
  background-color: #ffffff !important;
  padding-top: 40px !important;
  padding-bottom: 85px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.panthera-meta-eyebrow {
  display: inline-block;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #0057FF !important;
  letter-spacing: 0.15em !important;
  background-color: rgba(0, 87, 255, 0.06) !important;
  padding: 6px 14px !important;
  border-radius: 100px !important;
  margin: 0 !important;
}

.panthera-hero-next-event-card {
  position: relative;
  background-color: #f0f7ff;
  border-radius: 12px;
  height: 180px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 87, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 87, 255, 0.04);
}

.calendar-card-dots {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(#0057FF 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.calendar-giant-icon-wrapper {
  position: absolute;
  right: -10px;
  bottom: -15px;
  opacity: 0.35;
  transform: rotate(12deg);
  pointer-events: none;
}

.next-event-alert-bubble {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 87, 255, 0.08);
  border: 1px solid rgba(0, 87, 255, 0.1);
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 280px;
  width: 100%;
}
.next-event-alert-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 87, 255, 0.15);
}

.bubble-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0057FF;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 87, 255, 0.3);
}

.bubble-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.bubble-title-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
}

.bubble-countdown-lbl {
  font-size: 15px;
  font-weight: 800;
  color: #12304D;
}

/* 2. FILTERS & SEARCH BAR */
.eventi-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 45px;
  gap: 30px;
  background-color: #ffffff;
}

.eventi-filters-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.eventi-filter-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.eventi-filter-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.eventi-filter-chips::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.panthera-filter-pill {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #1a202c;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.panthera-filter-pill:hover {
  border-color: #0057FF;
  color: #0057FF;
}
.panthera-filter-pill.is-active {
  background: #0057FF;
  border-color: #0057FF;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 87, 255, 0.25);
}

.eventi-filters-right {
  flex-shrink: 0;
}

.eventi-search-form {
  position: relative;
  width: 280px;
}

.eventi-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.eventi-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  color: #12304D;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.eventi-search-input:focus {
  border-color: #0057FF;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

/* 3. ASYMMETRICAL EDITORIAL LAYOUT */
.eventi-editorial-section-title {
  margin-bottom: 28px;
}

.section-title-clean {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #12304D !important;
  margin: 0 0 6px 0 !important;
}

.section-subtitle-clean {
  font-size: 15px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.eventi-editorial-grid {
  display: flex;
  gap: 36px;
  align-items: stretch;
  margin-bottom: 60px;
}

.editorial-col-60 {
  flex: 0 0 calc(62% - 18px);
  width: calc(62% - 18px);
}

.editorial-col-40 {
  flex: 0 0 calc(38% - 18px);
  width: calc(38% - 18px);
}

/* CARDS COMMON SPECS */
.panthera-event-grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.panthera-event-grid-card:hover {
  transform: translateY(-4px);
  border-color: #0057FF;
  box-shadow: 0 16px 35px -10px rgba(0, 87, 255, 0.08);
}
.panthera-event-grid-card:hover .panthera-card-image {
  transform: scale(1.025);
}

.panthera-card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.panthera-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.panthera-card-floating-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #0057FF;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Badge specific color presets */
.badge-webinar {
  background-color: #0057FF !important;
}

.badge-workshop {
  background-color: #2563eb !important;
}

.badge-convegno {
  background-color: #1e3a8a !important;
}

.badge-formazione {
  background-color: #4f46e5 !important;
}

.panthera-card-pill-badge {
  display: inline-block;
  color: #0057FF;
  background-color: rgba(0, 87, 255, 0.06);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 4px;
}

.panthera-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.panthera-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.meta-icon-wrapper {
  display: flex;
  align-items: center;
  color: #0057FF;
  flex-shrink: 0;
}

.meta-texts {
  line-height: 1.4;
}

.panthera-card-title {
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 14px 0 !important;
  color: #12304D !important;
}
.panthera-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.panthera-card-title a:hover {
  color: #0057FF !important;
}

.panthera-card-excerpt {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  margin: 0 0 24px 0 !important;
}

.panthera-card-cta-row {
  margin-top: auto;
}

.panthera-card-cta-btn {
  display: inline-block;
  color: #0057FF !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease, transform 0.15s ease;
}
.panthera-card-cta-btn:hover {
  color: #12304D !important;
  transform: translateX(3px);
}

/* FEATURED SPECIFIC LAYOUT */
.layout-featured {
  height: 100%;
}
.layout-featured .panthera-card-image-wrapper {
  height: 280px;
}

/* SECONDARY STACKS (COMPACT TEXT CARDS) */
.editorial-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.layout-secondary-top,
.layout-secondary-bottom {
  background-color: #ffffff;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}
.layout-secondary-top .panthera-card-content,
.layout-secondary-bottom .panthera-card-content {
  padding: 24px !important;
}
.layout-secondary-top .panthera-card-title,
.layout-secondary-bottom .panthera-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 10px 0 12px 0 !important;
}

.layout-secondary-top {
  border-top: 3px solid #0057FF !important; /* Top accent matching Stitch blog sidebar first item */
}

/* PROMO FALLBACK ON SIDEBAR */
.editorial-empty-sidebar {
  position: relative;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.dots-accent-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(#12304D 2px, transparent 2px);
  background-size: 14px 14px;
}

.sidebar-promo-text {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #12304D !important;
  line-height: 1.5 !important;
  margin: 0 0 20px 0 !important;
  z-index: 1;
}

.sidebar-promo-btn {
  display: inline-block;
  background: #0057FF;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  z-index: 1;
  transition: background 0.15s ease;
}
.sidebar-promo-btn:hover {
  background: #12304D;
}

/* 4. REMAINING GRID (BLOCK 2) */
.eventi-grid-section-divider {
  border-top: 1px solid #e2e8f0;
  padding-top: 45px;
  margin-bottom: 28px;
}

.section-divider-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #12304D !important;
  margin: 0 !important;
}

.eventi-bottom-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.layout-grid-block .panthera-card-image-wrapper,
.layout-pool-item .panthera-card-image-wrapper {
  height: 190px;
}
.layout-grid-block .panthera-card-content,
.layout-pool-item .panthera-card-content {
  padding: 24px;
}
.layout-grid-block .panthera-card-title,
.layout-pool-item .panthera-card-title {
  font-size: 17px !important;
  line-height: 1.4 !important;
}

/* FLAT GRID FOR FILTER RESULTS */
.panthera-events-filtered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.panthera-events-filtered-grid .clone-item {
  display: flex !important;
  flex-direction: column !important;
}

/* 5. PAST EVENTS COLLAPSIBLE LIST */
.panthera-past-toggle-btn {
  background-color: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #12304D !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}
.panthera-past-toggle-btn:hover {
  border-color: #0057FF !important;
  color: #0057FF !important;
  background-color: rgba(0, 87, 255, 0.02) !important;
}

.panthera-past-events-section-clean {
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.panthera-past-events-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panthera-past-clean-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}
.panthera-past-clean-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.panthera-past-row-left {
  flex: 1;
  padding-right: 32px;
}

.panthera-past-meta-labels {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.past-date-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.past-category-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0057FF;
  letter-spacing: 0.05em;
  background-color: rgba(0, 87, 255, 0.06);
  padding: 2px 8px;
  border-radius: 3px;
}

.panthera-past-row-title {
  font-family: var(--wp--preset--font-family--sans, "Inter", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  color: #12304D !important;
}
.panthera-past-row-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.panthera-past-row-title a:hover {
  color: #0057FF !important;
}

.past-row-visualizza-btn {
  display: inline-flex;
  align-items: center;
  color: #12304D !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  transition: color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.past-row-visualizza-btn:hover {
  color: #0057FF !important;
  transform: translateX(2px);
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN ADAPTATIONS (TABLETS & MOBILE)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .eventi-editorial-grid {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .editorial-col-60,
  .editorial-col-40 {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .eventi-bottom-blocks-grid,
  .panthera-events-filtered-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .layout-featured .panthera-card-image-wrapper {
    height: 380px !important;
  }
}
@media (max-width: 768px) {
  .panthera-hero-group-custom {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }
  .panthera-hero-group-custom .wp-block-columns {
    flex-direction: column !important;
    gap: 25px !important;
  }
  .hero-left-col,
  .hero-right-col {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .eventi-filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 20px 0 !important;
  }
  .eventi-filters-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .eventi-filter-chips {
    width: 100% !important;
    padding-bottom: 4px !important;
  }
  .eventi-filters-right,
  .eventi-search-form {
    width: 100% !important;
  }
  .eventi-bottom-blocks-grid,
  .panthera-events-filtered-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .layout-featured .panthera-card-image-wrapper {
    height: 220px !important;
  }
  .panthera-past-clean-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .panthera-past-row-left {
    padding-right: 0 !important;
  }
  .panthera-past-events-section-clean {
    padding: 24px !important;
  }
}
/* ==========================================================================
   TARGET REDESIGN: 3-LAYER STRUCTURAL LAYOUT
   ========================================================================== */
.events-archive-hero {
  background-color: #f8fafc !important;
  padding: var(--wp--preset--spacing--60) 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  width: 100%;
}
.events-archive-hero__inner {
  margin: 0 auto;
  padding: 0 24px;
}
.events-archive-hero__grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--40) !important;
}
.events-archive-hero__content-col {
  flex: 1 1 65% !important;
  max-width: 100% !important;
}
.events-archive-hero__visual-col {
  flex: 1 1 32% !important;
  max-width: 100% !important;
}
.events-archive-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.events-archive-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #0057FF;
  letter-spacing: 0.15em;
  background-color: rgba(0, 87, 255, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.events-archive-hero__title {
  color: var(--wp--preset--color--navy, #12304D) !important;
  line-height: 1.15 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.02em !important;
}
.events-archive-hero__excerpt {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 0 28px 0 !important;
  max-width: 580px;
}
.events-archive-hero__meta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 32px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  width: 100%;
  max-width: 580px;
}
.events-archive-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}
.events-archive-hero__meta-item .meta-icon-wrapper {
  color: #0057FF !important;
  display: flex;
  align-items: center;
}
.events-archive-hero__meta-item .meta-text {
  line-height: 1.2;
}
.events-archive-hero__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}
.events-archive-hero__card {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 20px -2px rgba(18, 48, 77, 0.05), 0 2px 4px -1px rgba(18, 48, 77, 0.03) !important;
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.events-archive-hero__image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9 !important;
}
.events-archive-hero__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease;
}
.events-archive-hero__image:hover {
  transform: scale(1.03);
}
.events-archive-hero__image-fallback {
  aspect-ratio: 16/9 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border-radius: 8px;
  color: #94a3b8;
}
.events-archive-hero__badge {
  position: absolute;
  top: 16px !important;
  right: 16px !important;
  background: var(--wp--preset--color--white, #ffffff) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 54px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  z-index: 5 !important;
}
.events-archive-hero__badge .badge-day {
  font-size: 20px !important;
  font-weight: 850 !important;
  color: var(--wp--preset--color--navy, #12304D) !important;
  line-height: 1 !important;
}
.events-archive-hero__badge .badge-month {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-top: 3px !important;
}
.events-archive-hero {
  /* Fallback layout styles */
}
.events-archive-hero__fallback {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.events-archive-hero__fallback .fallback-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.events-archive-hero__fallback .fallback-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #64748b;
  margin-bottom: 16px;
}
.events-archive-hero__fallback-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #12304D !important;
  margin: 0 0 16px 0 !important;
}
.events-archive-hero__fallback-desc {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  max-width: 600px;
  margin: 0 auto 12px auto !important;
}
.events-archive-hero__fallback-desc.text-muted {
  color: #64748b !important;
  font-size: 14px !important;
  margin-bottom: 0 !important;
}

.events-archive-upcoming {
  background-color: #ffffff !important;
  padding: var(--wp--preset--spacing--60) 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  width: 100%;
}
.events-archive-upcoming__inner {
  margin: 0 auto;
  padding: 0 24px;
}
.events-archive-upcoming__title {
  font-family: var(--wp--preset--font-family--display, "Manrope", sans-serif) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #12304D !important;
  margin: 0 0 32px 0 !important;
  position: relative;
}
.events-archive-upcoming__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background-color: #0057FF;
  border-radius: 2px;
}
.events-archive-upcoming__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wp--preset--spacing--30);
}
.events-archive-upcoming.events-archive-upcoming--cols-3 .events-archive-upcoming__grid {
  grid-template-columns: repeat(3, 1fr);
}
.events-archive-upcoming__card {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 30px !important;
  box-shadow: 0 4px 12px rgba(18, 48, 77, 0.02) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.events-archive-upcoming__card:hover {
  transform: translateY(-4px) !important;
  border-color: #0057FF !important;
  box-shadow: 0 16px 30px rgba(18, 48, 77, 0.06) !important;
}
.events-archive-upcoming__card-badge {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  margin-bottom: 16px !important;
  align-self: flex-start !important;
  line-height: 1.2 !important;
  background-color: var(--wp--preset--color--light-grey, #f1f3f6) !important;
  color: var(--wp--preset--color--navy, #292C33) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.events-archive-upcoming__card-badge.event-badge-webinar, .events-archive-upcoming__card-badge.event-badge--webinar, .events-archive-upcoming__card-badge.badge-webinar {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: var(--wp--preset--color--white, #ffffff) !important;
  border: 1px solid var(--wp--preset--color--primary, #0057FF) !important;
}
.events-archive-upcoming__card-badge.event-badge-evento-in-presenza, .events-archive-upcoming__card-badge.event-badge-in-presenza, .events-archive-upcoming__card-badge.event-badge--in-presenza, .events-archive-upcoming__card-badge.event-badge-convegno, .events-archive-upcoming__card-badge.event-badge--convegno, .events-archive-upcoming__card-badge.badge-convegno, .events-archive-upcoming__card-badge.event-badge-workshop, .events-archive-upcoming__card-badge.event-badge--workshop, .events-archive-upcoming__card-badge.badge-workshop, .events-archive-upcoming__card-badge.event-badge-formazione, .events-archive-upcoming__card-badge.event-badge--formazione, .events-archive-upcoming__card-badge.badge-formazione, .events-archive-upcoming__card-badge.event-badge-evento, .events-archive-upcoming__card-badge.event-badge--evento {
  background-color: rgba(0, 87, 255, 0.06) !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  border: 1px solid rgba(0, 87, 255, 0.12) !important;
}
.events-archive-upcoming__card-title {
  font-family: var(--wp--preset--font-family--display, "Manrope", sans-serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
  color: #12304D !important;
}
.events-archive-upcoming__card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.events-archive-upcoming__card-title a:hover {
  color: #0057FF !important;
}
.events-archive-upcoming__card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.events-archive-upcoming__card-meta .meta-icon-wrapper {
  color: #0057FF;
  display: flex;
  align-items: center;
}
.events-archive-upcoming__card-excerpt {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 0 24px 0 !important;
}
.events-archive-upcoming__card-cta {
  margin-top: auto;
}
.events-archive-upcoming__card-link {
  display: inline-flex;
  align-items: center;
  color: #0057FF !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, color 0.15s ease;
}
.events-archive-upcoming__card-link:hover {
  color: #12304D !important;
  transform: translateX(3px);
}

.events-archive-past {
  background-color: #ffffff !important;
  padding: var(--wp--preset--spacing--60) 0 var(--wp--preset--spacing--80) 0 !important;
  width: 100%;
}
.events-archive-past__inner {
  margin: 0 auto;
  padding: 0 24px;
}
.events-archive-past__header {
  margin-bottom: 36px;
}
.events-archive-past__title {
  font-family: var(--wp--preset--font-family--display, "Manrope", sans-serif) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #12304D !important;
  margin: 0 0 6px 0 !important;
}
.events-archive-past__subtext {
  font-size: 15px !important;
  color: #64748b !important;
  margin: 0 !important;
}
.events-archive-past__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}
.events-archive-past__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 32px;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.events-archive-past__row:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px -10px rgba(0, 87, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 87, 255, 0.25) !important;
  background-color: #ffffff !important;
}
.events-archive-past__row:hover .events-archive-past__row-title a {
  color: var(--wp--preset--color--primary, #0057FF) !important;
}
.events-archive-past__badge-col {
  display: flex;
  align-items: center;
  gap: 16px;
}
.events-archive-past__index {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}
.events-archive-past__badge {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  background-color: var(--wp--preset--color--light-grey, #f1f3f6) !important;
  color: var(--wp--preset--color--navy, #292C33) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.events-archive-past__badge.event-badge-webinar, .events-archive-past__badge.event-badge--webinar, .events-archive-past__badge.badge-webinar {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: var(--wp--preset--color--white, #ffffff) !important;
  border: 1px solid var(--wp--preset--color--primary, #0057FF) !important;
}
.events-archive-past__badge.event-badge-evento-in-presenza, .events-archive-past__badge.event-badge-in-presenza, .events-archive-past__badge.event-badge--in-presenza, .events-archive-past__badge.event-badge-convegno, .events-archive-past__badge.event-badge--convegno, .events-archive-past__badge.badge-convegno, .events-archive-past__badge.event-badge-workshop, .events-archive-past__badge.event-badge--workshop, .events-archive-past__badge.badge-workshop, .events-archive-past__badge.event-badge-formazione, .events-archive-past__badge.event-badge--formazione, .events-archive-past__badge.badge-formazione, .events-archive-past__badge.event-badge-evento, .events-archive-past__badge.event-badge--evento {
  background-color: rgba(0, 87, 255, 0.06) !important;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  border: 1px solid rgba(0, 87, 255, 0.12) !important;
}
.events-archive-past__content-col {
  padding-right: 32px;
}
.events-archive-past__row-title {
  font-family: var(--wp--preset--font-family--display, "Manrope", sans-serif) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 6px 0 !important;
  color: var(--wp--preset--color--navy, #12304D) !important;
}
.events-archive-past__row-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.events-archive-past__row-title a:hover {
  color: var(--wp--preset--color--primary, #0057FF) !important;
}
.events-archive-past__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px !important;
  color: #64748b !important;
  margin-top: 4px;
}
.events-archive-past__location .meta-icon-wrapper {
  display: inline-flex;
  align-items: center;
  color: var(--wp--preset--color--primary, #0057FF) !important;
  opacity: 0.85;
}
.events-archive-past__location .meta-icon-wrapper svg {
  width: 15px;
  height: 15px;
}
.events-archive-past__row-summary {
  font-size: 14px !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  line-height: 1.5 !important;
}
.events-archive-past__date-col {
  text-align: right !important;
  width: auto !important;
  flex-shrink: 0 !important;
}
.events-archive-past__date-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: #475569 !important;
  font-weight: 600 !important;
  background-color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}
.events-archive-past__date-day .meta-icon-wrapper {
  display: inline-flex;
  align-items: center;
  color: #64748b;
}
.events-archive-past__date-day .meta-icon-wrapper svg {
  width: 14px;
  height: 14px;
}
.events-archive-past__date {
  font-size: 14px !important;
  color: var(--wp--preset--color--on-surface-variant, #475569) !important;
  font-weight: 600 !important;
}
.events-archive-past__empty {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 15px;
}
.events-archive-past__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px !important;
}
.events-archive-past__pagination a, .events-archive-past__pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--wp--preset--color--navy, #12304D) !important;
  text-decoration: none !important;
  background-color: #ffffff !important;
  border: 1px solid var(--wp--preset--color--panthera-border-soft, #cbd5e1) !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}
.events-archive-past__pagination a:hover, .events-archive-past__pagination .page-numbers:hover {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
}
.events-archive-past__pagination a.current, .events-archive-past__pagination .page-numbers.current {
  background-color: var(--wp--preset--color--primary, #0057FF) !important;
  border-color: var(--wp--preset--color--primary, #0057FF) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  box-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN FOR NEW 3-LAYER STRUCTURE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .events-archive-hero {
    padding: var(--wp--preset--spacing--50) 0 !important;
  }
  .events-archive-hero__grid {
    flex-direction: column !important;
    gap: var(--wp--preset--spacing--30) !important;
  }
  .events-archive-hero__content-col, .events-archive-hero__visual-col {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .events-archive-hero__content {
    align-items: flex-start;
    text-align: left;
  }
  .events-archive-hero__visual {
    justify-content: flex-start;
  }
  .events-archive-hero__card {
    max-width: 100%;
  }
  .events-archive-upcoming__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .events-archive-upcoming__card {
    padding: 24px !important;
  }
  .events-archive-past__row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px !important;
    margin-bottom: 12px !important;
  }
  .events-archive-past__badge-col {
    order: 1;
  }
  .events-archive-past__content-col {
    order: 2;
    padding-right: 0;
  }
  .events-archive-past__date-col {
    order: 3;
    text-align: left !important;
    margin-top: 4px;
    width: auto !important;
  }
}
/* ==========================================================================
   PAGINA CHI SIAMO - REDESIGN GRAFICO & STORYTELLING MOOD
   ========================================================================== */
:is(.page-chi-siamo, body) {
  width: 100%;
  margin: 0 auto;
}
:is(.page-chi-siamo, body) .section-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
  color: #ff0077;
}
:is(.page-chi-siamo, body) .section-badge.badge-navy {
  color: #0057FF;
}
:is(.page-chi-siamo, body) .section-badge.badge-grey {
  color: #64748b;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-description-custom {
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  color: #cbd5e1 !important;
  margin-bottom: 40px !important;
  max-width: 600px;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 20px !important;
  flex-wrap: wrap;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .wp-block-button {
  margin: 0 !important;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .wp-block-button a.wp-element-button {
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 14px 30px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-block;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .btn-filled a.wp-element-button {
  background-color: #0057FF !important;
  color: #ffffff !important;
  border: 1px solid #0057FF !important;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .btn-filled a.wp-element-button:hover {
  background-color: #0043c8 !important;
  border-color: #0043c8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 87, 255, 0.3);
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .btn-outline a.wp-element-button {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .btn-outline a.wp-element-button:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-visual-column {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-trust-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 380px;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-trust-box .trust-box-tagline {
  font-family: var(--font-mono, monospace);
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  color: #ff0077 !important;
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-trust-box .hero-trust-logo {
  margin-bottom: 24px;
  display: block !important;
  height: 32px !important;
  width: auto !important;
  object-fit: contain !important;
}
:is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-trust-box .trust-box-text {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  font-weight: 300;
}
:is(.page-chi-siamo, body) .panthera-var-group-section {
  background-color: #ffffff !important;
  padding: 100px 0 !important;
  position: relative;
  overflow: hidden;
}
:is(.page-chi-siamo, body) .panthera-var-group-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 1;
  pointer-events: none;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-header {
  max-width: 1200px;
  margin: 0 auto 60px auto !important;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-section-title {
  font-size: clamp(32px, 4.5vw, 44px) !important;
  font-weight: 700 !important;
  color: #0057FF !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-grid {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
  display: flex;
  gap: 32px !important;
  position: relative;
  z-index: 2;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-col {
  margin: 0 !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 4px solid var(--wp--preset--color--primary) !important;
  border-radius: 4px !important;
  padding: 48px 36px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card:hover {
  border-color: #0057FF !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 87, 255, 0.05) !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #ff0077;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
  gap: 16px;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-num::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.08);
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .var-group-card-title {
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
  letter-spacing: normal !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .var-group-card-text {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  margin-bottom: 32px !important;
  flex-grow: 1;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-cta-wrapper {
  margin: 0 !important;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-arrow-link {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0057FF !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-arrow-link .cta-arrow {
  font-size: 16px;
  margin-left: 6px;
  transition: transform 0.2s ease !important;
  display: inline-block;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-arrow-link:hover {
  color: #ff0077 !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card .card-arrow-link:hover .cta-arrow {
  transform: translateX(3px);
  color: #ff0077 !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card.featured-stat-card {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card.featured-stat-card .stat-number {
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: #0057FF !important;
  display: block;
}
:is(.page-chi-siamo, body) .panthera-var-group-section .var-group-card.featured-stat-card .stat-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ff0077;
  margin-top: 6px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
:is(.page-chi-siamo, body) .panthera-compliance-section {
  background-color: #f8fafc !important;
  padding: 100px 0 !important;
  color: #1e293b !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-header {
  max-width: 1200px;
  margin: 0 auto 60px auto !important;
  padding: 0 20px;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-section-title {
  font-size: clamp(32px, 4.5vw, 44px) !important;
  font-weight: 700 !important;
  color: #0057FF !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-section-intro {
  font-size: 1.15rem !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  max-width: 750px;
  margin: 0 !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-content-row {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 60px !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-text-container {
  margin: 0 !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-detail-title {
  font-size: clamp(24px, 3.5vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: -0.01em !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-detail-text {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #475569 !important;
  margin-bottom: 36px !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .btn-navy a.wp-element-button {
  background-color: #0057FF !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 14px 30px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid #0057FF !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  display: inline-block;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .btn-navy a.wp-element-button:hover {
  background-color: #0043c8 !important;
  border-color: #0043c8 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 87, 255, 0.2);
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-bullets-container {
  margin: 0 !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-list-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 48px 40px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01) !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-list-card .card-banner-tag {
  font-family: var(--font-mono, monospace);
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  color: #64748b !important;
  margin-bottom: 30px !important;
  text-transform: uppercase !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-list-card .compliance-features-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 24px !important;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-list-card .compliance-features-list li.compliance-list-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  margin: 0 !important;
  font-weight: 500;
}
:is(.page-chi-siamo, body) .panthera-compliance-section .compliance-list-card .compliance-features-list li.compliance-list-item::before {
  content: "✓" !important; /* Elegant green checkmark */
  color: #10b981 !important;
  font-weight: bold !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.06) !important;
  border: 1px solid rgba(16, 185, 129, 0.15) !important;
  line-height: 1 !important;
}
:is(.page-chi-siamo, body) .panthera-localization-section {
  background-color: #ffffff !important;
  padding: 120px 0 !important;
  position: relative;
  overflow: hidden;
  color: #0f172a;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-container {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-title {
  font-size: clamp(32px, 4.5vw, 44px) !important;
  font-weight: 700 !important;
  color: #0057FF !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-prose-row {
  display: flex;
  gap: 60px !important;
  margin-top: 40px !important;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-prose-col {
  margin: 0 !important;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-prose-col.col-left {
  border-right: 1px solid #e2e8f0;
  padding-right: 60px;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-paragraph {
  font-size: 1.15rem !important;
  line-height: 1.85 !important;
  color: #475569 !important;
  margin: 0 !important;
  font-weight: 400;
}
:is(.page-chi-siamo, body) .panthera-localization-section .localization-paragraph.highlight-first-letter::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  padding-right: 16px;
  padding-top: 4px;
  font-weight: 800;
  color: #ff0077;
  font-family: var(--font-sans, "Inter", sans-serif);
}

@media (max-width: 992px) {
  :is(.page-chi-siamo, body) .chi-siamo-hero-group {
    padding: 60px 0 !important;
  }
  :is(.page-chi-siamo, body) .chi-siamo-hero-group .chi-siamo-hero-columns {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 40px !important;
  }
  :is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-visual-column {
    justify-content: flex-start;
  }
  :is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-trust-box {
    max-width: 100%;
    width: 100%;
  }
  :is(.page-chi-siamo, body) .panthera-var-group-section {
    padding: 60px 0 !important;
  }
  :is(.page-chi-siamo, body) .panthera-var-group-section .var-group-grid {
    flex-direction: column !important;
    gap: 24px !important;
  }
  :is(.page-chi-siamo, body) .panthera-compliance-section {
    padding: 60px 0 !important;
  }
  :is(.page-chi-siamo, body) .panthera-compliance-section .compliance-content-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 40px !important;
  }
  :is(.page-chi-siamo, body) .panthera-localization-section {
    padding: 80px 0 !important;
  }
  :is(.page-chi-siamo, body) .panthera-localization-section .localization-prose-row {
    flex-direction: column !important;
    gap: 30px !important;
    margin-top: 30px !important;
  }
  :is(.page-chi-siamo, body) .panthera-localization-section .localization-prose-col.col-left {
    border-right: none;
    padding-right: 0;
  }
}
@media (max-width: 576px) {
  :is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  :is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .wp-block-button {
    width: 100% !important;
  }
  :is(.page-chi-siamo, body) .chi-siamo-hero-group .hero-cta-buttons .wp-block-button a.wp-element-button {
    width: 100% !important;
    text-align: center !important;
  }
  :is(.page-chi-siamo, body) .panthera-compliance-section .compliance-list-card {
    padding: 30px 20px !important;
  }
}
.section-compliance {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-compliance__bg-image {
  position: absolute;
  inset: 0;
  left: 40%;
  z-index: 0;
  pointer-events: none;
}

.section-compliance__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 25%, rgb(0, 0, 0) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 25%, rgb(0, 0, 0) 100%);
  opacity: 0.18;
}

.section-compliance__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .section-compliance__bg-image {
    display: none;
  }
}
@media (min-width: 1024px) {
  .page-chi-siamo .hero-split-right-col {
    padding-left: 3rem !important;
  }
}
.panthera-vargroup-logo {
  max-width: 220px !important;
  width: 100% !important;
}
.panthera-vargroup-logo img {
  width: 100% !important;
  height: auto !important;
}

.panthera-ecosystem-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
  align-items: start !important;
  gap: var(--wp--preset--spacing--60) !important;
}
@media (max-width: 1024px) {
  .panthera-ecosystem-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  .panthera-ecosystem-col-left {
    position: static !important;
  }
}

.panthera-col-gap-30 {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.panthera-card-flex {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 180px !important;
}

.panthera-inner-gap-20 {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--20) !important;
}

.panthera-feature-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
}

.panthera-value-card {
  border: 1px solid var(--wp--preset--color--panthera-border-soft) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  background-color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.panthera-value-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--wp--preset--color--panthera-accent) !important;
}
.panthera-value-card a.panthera-link-action {
  transition: color 0.2s ease !important;
}
.panthera-value-card a.panthera-link-action:hover {
  color: var(--wp--preset--color--panthera-text) !important;
}

.panthera-value-card-featured {
  border-top: 4px solid var(--wp--preset--color--panthera-accent) !important;
  background-color: var(--wp--preset--color--panthera-surface-subtle) !important;
}

.panthera-text--lead-light {
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
}

.panthera-stat__number {
  font-size: 3.5rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  color: var(--wp--preset--color--panthera-accent) !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.panthera-text--body-light {
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.panthera-link-action {
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: var(--wp--preset--color--panthera-accent) !important;
  text-decoration: none !important;
}

.panthera-compliance-checklist-heading {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
}

.panthera-compliance-checklist-container {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.panthera-compliance-row-card {
  display: flex !important;
  align-items: center !important;
}

.panthera-icon--large {
  font-size: 2rem !important;
  color: var(--wp--preset--color--panthera-accent) !important;
  margin-right: 20px !important;
  flex-shrink: 0 !important;
}

.panthera-text--list-item-light {
  font-size: 1.15rem !important;
  line-height: 1.5 !important;
}

.panthera-section--dark .panthera-compliance-row-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid var(--wp--preset--color--panthera-accent) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.panthera-section--dark .panthera-compliance-row-card:hover {
  transform: translateX(5px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}
.panthera-section--dark .panthera-text--lead-light {
  color: rgba(255, 255, 255, 0.95) !important;
}
.panthera-section--dark .panthera-text--body-light {
  color: rgba(255, 255, 255, 0.8) !important;
}
.panthera-section--dark .panthera-text--list-item-light {
  color: rgba(255, 255, 255, 0.95) !important;
}

.panthera-comparison-header {
  display: flex !important;
  align-items: center !important;
}

.panthera-comparison-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.panthera-comparison-card-light {
  background-color: #f8fafc !important;
}
.panthera-comparison-card-light:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
  border-color: #cbd5e1 !important;
}

.panthera-comparison-card-highlight {
  background-color: #ffffff !important;
}
.panthera-comparison-card-highlight:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.panthera-shadow-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid var(--wp--preset--color--panthera-border-soft) !important;
  border-top: 4px solid var(--wp--preset--color--panthera-accent) !important;
}

.panthera-icon--warning {
  color: #ef4444 !important;
  font-size: 1.8rem !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
}

.panthera-icon--success {
  color: var(--wp--preset--color--panthera-accent) !important;
  font-size: 1.8rem !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
}

.panthera-comparison-eyebrow {
  font-weight: 700 !important;
}

.panthera-comparison-eyebrow--highlight {
  font-weight: 700 !important;
  color: var(--wp--preset--color--panthera-accent) !important;
}

.panthera-comparison-text {
  line-height: 1.6 !important;
  font-size: 1.1rem !important;
  color: var(--wp--preset--color--panthera-text-muted) !important;
}

.panthera-comparison-text--highlight {
  line-height: 1.6 !important;
  font-size: 1.1rem !important;
  color: var(--wp--preset--color--panthera-text) !important;
}

/* PART 1 — Ecosistema e Garanzia di Successo Section */
.partner-ecosystem-section {
  background-color: #ffffff !important;
}

.partner-ecosystem-header {
  margin-bottom: var(--wp--preset--spacing--60) !important;
}
.partner-ecosystem-header p {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.partner-ecosystem-columns {
  gap: var(--wp--preset--spacing--40) !important;
}

.partner-ecosystem-card {
  background-color: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-radius: 16px !important;
  padding: var(--wp--preset--spacing--40) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01) !important;
}
.partner-ecosystem-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(226, 27, 27, 0.15) !important;
  background-color: #ffffff !important;
}
.partner-ecosystem-card h3 {
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--20) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--navy) !important;
}
.partner-ecosystem-card p {
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--30) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--wp--preset--color--on-surface-variant) !important;
}
.partner-ecosystem-card .is-style-link {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 10px !important;
}
.partner-ecosystem-card .is-style-link a {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}
.partner-ecosystem-card .is-style-link a:hover {
  color: var(--wp--preset--color--navy, #12304d) !important;
  transform: translateX(4px) !important;
}

/* PART 2 — Trova un partner Section & Finder Block */
.partner-search-section .wp-block-group {
  margin-bottom: var(--wp--preset--spacing--40) !important;
}
.partner-search-section .partner-finder-block {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.partner-region-widget {
  max-width: 420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.partner-region-widget__row {
  margin: 0 !important;
}

select.partner-region-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230057FF' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 14px !important;
  border: 1px solid var(--wp--preset--color--panthera-border, rgba(41, 44, 51, 0.16)) !important;
  border-radius: 10px !important;
  padding: 0 46px 0 20px !important;
  font-family: var(--wp--preset--font-family--body), sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: normal !important;
  color: var(--wp--preset--color--navy, #12304d) !important;
  width: 100% !important;
  height: 56px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(41, 44, 51, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  margin: 0 !important;
}
select.partner-region-select:hover {
  border-color: var(--wp--preset--color--panthera-accent, #0057ff) !important;
}
select.partner-region-select:focus {
  border-color: var(--wp--preset--color--panthera-accent, #0057ff) !important;
  box-shadow: 0 0 0 3px var(--wp--preset--color--panthera-focus-ring, rgba(0, 87, 255, 0.5)) !important;
  outline: none !important;
}

.partner-region-widget__alt {
  margin: 18px 0 0 0 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--wp--preset--color--on-surface-variant, #64748b) !important;
}

.partner-finder-view-all {
  color: var(--wp--preset--color--panthera-accent, #0057ff) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  transition: color 0.15s ease !important;
}
.partner-finder-view-all:hover {
  color: var(--wp--preset--color--panthera-accent-hover, #003bba) !important;
}

/* Results list / grid styles when query executes */
.partner-finder-results-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: var(--wp--preset--spacing--30) !important;
  margin-top: var(--wp--preset--spacing--50) !important;
}

.partner-card {
  background: #ffffff !important;
  border: 1px solid #d8dde3 !important;
  border-radius: 12px !important;
  padding: var(--wp--preset--spacing--40) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  cursor: pointer !important;
}
.partner-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--wp--preset--color--panthera-accent) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}
.partner-card .partner-card-link::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  border-radius: inherit !important;
}
.partner-card:focus-within {
  outline: 2px solid var(--wp--preset--color--panthera-accent) !important;
  outline-offset: 2px !important;
}
.partner-card .partner-logo {
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: var(--wp--preset--spacing--30) !important;
}
.partner-card .partner-logo img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;
  object-fit: contain !important;
}
.partner-card h3 {
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--20) !important;
  color: var(--wp--preset--color--navy, #12304d) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}
.partner-card .partner-location {
  font-size: 13px !important;
  color: #64748b !important;
  margin-top: 0 !important;
  margin-bottom: var(--wp--preset--spacing--30) !important;
}
.partner-card .is-style-link {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}
.partner-card .is-style-link a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  text-decoration: none !important;
}
.partner-card .is-style-link a:hover {
  color: var(--wp--preset--color--navy, #12304d) !important;
}

/* PART 3 — Ti interessa diventare partner? / Lead Generation Card */
.partner-contact-section .partner-contact-benefits {
  text-align: left !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: var(--wp--preset--spacing--30) !important;
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.partner-contact-section .partner-contact-benefits li {
  position: relative !important;
  padding-left: 28px !important;
  font-size: 15px !important;
  color: #cbd5e1 !important;
}
.partner-contact-section .partner-contact-benefits li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--wp--preset--color--primary, #e21b1b) !important;
  font-weight: bold !important;
  font-size: 16px !important;
}
.partner-contact-section .partner-contact-benefits li strong {
  color: #ffffff !important;
}

.partner-contact-form-card,
.partner-lead-form-card {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  padding: var(--wp--preset--spacing--50) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
  max-width: 850px !important;
  margin: var(--wp--preset--spacing--50) auto 0 auto !important;
}

.archive-partner-hero .responsive-h1-erp {
  padding-right: 0 !important;
}

@media (max-width: 767px) {
  .partner-contact-form-card {
    padding: var(--wp--preset--spacing--30) !important;
    margin-top: var(--wp--preset--spacing--30) !important;
  }
}
/* PART 4 — Hero pagina singolo partner */
.panthera-hero__location {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: var(--wp--preset--spacing--20) 0 0 0 !important;
  font-size: 1.05rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
.panthera-hero__location i {
  font-size: 1.15rem !important;
  color: var(--wp--preset--color--panthera-accent, #0057ff) !important;
}

@media (min-width: 769px) {
  .partner-sidebar {
    position: sticky !important;
    top: 100px !important;
  }
}
.single-partner-panthera-main .entry-content p,
.single-partner-panthera-main .entry-content li,
.single-promoter-main .entry-content p,
.single-promoter-main .entry-content li {
  font-size: clamp(0.875rem, 0.7678rem + 0.536vw, 1.25rem) !important;
  line-height: 1.6 !important;
}

/* PART 5 — Carousel "I nostri partner" (fondo pagina, single partner) */
.partner-related {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important;
  box-sizing: border-box !important;
}

.partner-related__intro {
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  letter-spacing: 0.8px !important;
  margin: 0 0 var(--wp--preset--spacing--30) 0 !important;
  text-align: center !important;
}

.panthera-partner-related-swiper {
  padding: 8px 4px 32px !important;
  margin: -8px -4px -32px !important;
}
.panthera-partner-related-swiper .swiper-wrapper {
  align-items: stretch !important;
}
.panthera-partner-related-swiper .swiper-slide {
  width: 240px !important;
  flex-shrink: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
}
.panthera-partner-related-swiper .partner-card {
  padding: var(--wp--preset--spacing--30) !important;
  height: auto !important;
  flex: 1 1 auto !important;
}
.panthera-partner-related-swiper .partner-related-card-link {
  color: inherit !important;
  text-decoration: none !important;
}
.panthera-partner-related-swiper .partner-related-card-link::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  border-radius: inherit !important;
}

.panthera-cf7-form-wrapper.panthera-premium-form-shadow {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.panthera-form-card .wpcf7-form-control-wrap input:not([type=checkbox]):not([type=radio]),
.panthera-form-card .wpcf7-form-control-wrap textarea,
.panthera-form-card .wpcf7-form-control-wrap select {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  margin-bottom: 0 !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
}
.panthera-form-card .wpcf7-form-control-wrap input:not([type=checkbox]):not([type=radio]):focus,
.panthera-form-card .wpcf7-form-control-wrap textarea:focus,
.panthera-form-card .wpcf7-form-control-wrap select:focus {
  outline: none !important;
  border-color: var(--wp--preset--color--panthera-accent) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.panthera-form-card .wpcf7-form-control-wrap select {
  color-scheme: dark;
}
.panthera-form-card .wpcf7-form-control-wrap select option,
.panthera-form-card .wpcf7-form-control-wrap select optgroup {
  background-color: #0f172a !important;
  color: #ffffff !important;
}
.panthera-form-card .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px 0;
}
.panthera-form-card input[type=radio],
.panthera-form-card input[type=checkbox] {
  margin: 0 !important;
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
}
.panthera-form-card input[type=radio] {
  border-radius: 50%;
}
.panthera-form-card input[type=radio]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}
.panthera-form-card input[type=checkbox] {
  border-radius: 4px;
}
.panthera-form-card input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.panthera-form-card input[type=radio]:checked,
.panthera-form-card input[type=checkbox]:checked {
  background: var(--wp--preset--color--panthera-accent);
  border-color: var(--wp--preset--color--panthera-accent);
}
.panthera-form-card .wpcf7-list-item-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  cursor: pointer;
  margin-left: 0;
}
.panthera-form-card .wpcf7-acceptance {
  display: block !important;
  margin-top: 8px !important;
}
.panthera-form-card .wpcf7-acceptance .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start !important;
  margin: 0 !important;
  gap: 12px;
}
.panthera-form-card .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.panthera-form-card .wpcf7-submit {
  background: var(--wp--preset--color--panthera-accent);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  margin-top: 8px;
}
.panthera-form-card .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--wp--preset--color--panthera-accent-rgb), 0.3);
}

.quotes-carousel {
  margin-top: 40px;
}
.quotes-carousel .swiper-pagination {
  position: static;
  margin-top: 20px;
}
.quotes-carousel .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}
.quotes-carousel .swiper-pagination-bullet-active {
  background: var(--wp--preset--color--panthera-accent);
}

.quotes-carousel__card {
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.quotes-carousel__mark {
  position: absolute;
  top: 16px;
  right: 24px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 4rem;
  font-family: serif;
  line-height: 1;
}

.quotes-carousel__text {
  font-size: 1.15rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.quotes-carousel__author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.quotes-carousel__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.9;
}

.quotes-carousel__avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wp--preset--color--panthera-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.quotes-carousel__company {
  color: white;
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.quotes-carousel__person {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-style: normal;
}

@media (max-width: 768px) {
  .partner-contact-section.wp-block-columns,
  .partner-contact-section .wp-block-columns {
    flex-direction: column !important;
  }
  .partner-contact-section .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}
.contatti-partner {
  background: transparent !important;
  padding: 0 !important;
}
.contatti-partner .contatti-partners-swiper {
  overflow: hidden;
  background: transparent !important;
}
.contatti-partner .contatti-partners-swiper .swiper-wrapper,
.contatti-partner .contatti-partners-swiper .wp-block-post-template {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  transition-timing-function: linear !important;
}
.contatti-partner .contatti-partners-swiper .swiper-slide,
.contatti-partner .contatti-partners-swiper .wp-block-post {
  margin: 0 !important;
  width: auto !important;
  flex: 0 0 auto !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contatti-partner .contatti-partners-swiper .partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
}
.contatti-partner .contatti-partners-swiper .partner-logo-img,
.contatti-partner .contatti-partners-swiper .partner-logo-img img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 120px;
  max-height: 36px;
  object-fit: contain !important;
}

.partner-logo-img {
  filter: grayscale(1) brightness(0) invert(1) opacity(0.7);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-logo-link:hover .partner-logo-img {
  filter: grayscale(1) brightness(0) invert(1) opacity(1);
}

/* Single Case History Styles */
/* 1. BREADCRUMB OFFSET BACKGROUND */
.single-case-history-main .panthera-breadcrumbs-row {
  background-color: var(--wp--preset--color--panthera-surface-offset) !important;
  border-bottom: 1px solid oklch(from var(--wp--preset--color--panthera-text) l c h/0.08);
  /* Assuming RankMath breadcrumbs or similar are inside */
}
.single-case-history-main .panthera-breadcrumbs-row a, .single-case-history-main .panthera-breadcrumbs-row span {
  font-size: 0.85rem;
  color: var(--wp--preset--color--panthera-muted);
  text-decoration: none;
}
.single-case-history-main .panthera-breadcrumbs-row a:hover {
  color: var(--wp--preset--color--panthera-accent);
}
.single-case-history-main .panthera-breadcrumbs-row .breadcrumb_last, .single-case-history-main .panthera-breadcrumbs-row .breadcrumb-current {
  color: var(--wp--preset--color--panthera-text);
  font-weight: 500;
}

/* 3. CAROUSEL WIDE CONTAINER CON FRECCE ESTERNE */
/* Sezione esterna al contenuto, sfondo separato */
.section-related-cases {
  background-color: var(--wp--preset--color--panthera-surface);
  padding-block: var(--wp--preset--spacing--60);
  border-top: 1px solid var(--wp--preset--color--panthera-surface-offset);
}

/* Contenitore interno allineato al container WIDE */
.section-related-cases__inner {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: var(--wp--preset--spacing--40);
}

/* Header a tutta larghezza con titolo e sottotitolo */
.section-related-cases__header {
  margin-bottom: 2.5rem;
  text-align: left;
}
.section-related-cases__header .eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--panthera-accent);
  margin-bottom: 0.5rem;
}
.section-related-cases__header .section-related-cases__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--wp--preset--color--panthera-text);
  margin: 0;
}

/* Frecce di navigazione FUORI dal contenitore: le card occupano tutta la
   larghezza del contenitore (stesso bordo sinistro/destro di titolo e testo),
   le frecce stanno nello spazio a lato, centrate in altezza sul carousel. */
.section-related-cases__carousel-wrap {
  position: relative;
  /* Livello che copre solo l'area delle card (esclusi il padding dello
     swiper sopra e lo spazio dei pallini sotto): le frecce si centrano in
     verticale su questo, entrambe alla stessa altezza. Non intercetta i clic. */
}
.section-related-cases__carousel-wrap .section-related-cases__nav {
  position: absolute;
  top: 8px;
  bottom: 52px;
  left: 0;
  right: 0;
  pointer-events: none;
}
.section-related-cases__carousel-wrap {
  /* Frecce di navigazione */
}
.section-related-cases__carousel-wrap .swiper-nav-prev,
.section-related-cases__carousel-wrap .swiper-nav-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: var(--wp--preset--color--panthera-surface-offset);
  border: 1px solid var(--wp--preset--color--panthera-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--panthera-text);
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Su finestre strette non c'e' spazio fuori dal contenitore: le frecce
     restano nel margine laterale (padding del contenitore) e si
     sovrappongono appena al bordo delle card. */
  left: calc(-1 * var(--wp--preset--spacing--40));
}
.section-related-cases__carousel-wrap .swiper-nav-prev:hover,
.section-related-cases__carousel-wrap .swiper-nav-next:hover {
  background-color: var(--wp--preset--color--panthera-accent);
  border-color: var(--wp--preset--color--panthera-accent);
  color: #ffffff;
}
.section-related-cases__carousel-wrap .swiper-nav-prev.swiper-button-disabled,
.section-related-cases__carousel-wrap .swiper-nav-next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.section-related-cases__carousel-wrap .swiper-nav-next {
  left: auto;
  right: calc(-1 * var(--wp--preset--spacing--40));
}

/* Con abbastanza spazio (finestra larga) le frecce escono del tutto dal contenitore. */
@media (min-width: 1360px) {
  .section-related-cases__carousel-wrap .swiper-nav-prev {
    left: -64px;
  }
  .section-related-cases__carousel-wrap .swiper-nav-next {
    right: -64px;
  }
}
/* Slider: .swiper ha overflow:hidden e ritagliava bordo e ombra delle card
   (e il sollevamento in hover). Si da' spazio dentro al box con il padding e
   lo si ricompensa con margini negativi uguali: le card restano allineate al
   contenitore e il layout intorno non si sposta. Il padding sotto ospita
   anche i pallini di paginazione, che cosi' non finiscono sopra le card. */
/* Selettore con .section-related-cases davanti: il CSS di Swiper
   (.swiper { padding: 0; margin-inline: auto }), caricato dopo il nostro,
   a parita' di specificita' azzerava padding e margini laterali - misurato dal
   vivo con il pannello di debug (padding 0px) - lasciando solo il margine
   negativo in basso, che tirava il footer sopra le card. */
.section-related-cases .related-swiper {
  width: auto;
  padding: 8px 4px 52px;
  margin: -8px -4px -52px;
  /* Pallini piu' staccati dalle card (di default stanno a 8px dal fondo). */
}
.section-related-cases .related-swiper .swiper-pagination {
  bottom: 12px;
}

/* Variante con un solo correlato: niente frecce/swiper, una card sola al
   50% dello spazio disponibile invece che a tutta larghezza. */
.section-related-cases__single-wrap {
  width: 50%;
}
.section-related-cases__single-wrap .related-case-card {
  height: auto;
}

@media (max-width: 767px) {
  .section-related-cases__single-wrap {
    width: 100%;
  }
}
/* 4. CAROUSEL CARD - Leggibilità e Altezze uniformi */
/* Card stile "Related Case" */
.related-case-card {
  position: relative; /* riferimento del link esteso (.related-case-card__cta::after) */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%; /* Altezza 100% per allineamento uniforme */
  background-color: var(--wp--preset--color--panthera-surface);
  border: 1px solid oklch(from var(--wp--preset--color--panthera-text) l c h/0.08);
  border-radius: 8px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  border-color: oklch(from var(--wp--preset--color--panthera-text) l c h/0.15);
}
.related-case-card .related-case-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #f1f5f9;
}
.related-case-card .related-case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-case-card:hover .related-case-card__image img {
  transform: scale(1.04);
}
.related-case-card .related-case-card__body {
  padding: var(--wp--preset--spacing--40);
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
  flex: 1; /* Permette al body di espandersi per spingere la CTA in fondo */
}
.related-case-card .related-case-card__badge {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--panthera-accent);
  background-color: oklch(from var(--wp--preset--color--panthera-accent) l c h/0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.related-case-card .related-case-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wp--preset--color--panthera-text);
  margin: 0;
  /* Limitazione righe titolo */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-case-card .related-case-card__excerpt {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--wp--preset--color--panthera-muted);
  margin: 0;
  flex: 1;
  /* Limitazione righe estratto */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-case-card .related-case-card__cta {
  /* Link esteso: l'<a> resta uno solo ("Scopri il caso", accessibile), ma il
     suo ::after copre tutta la card, immagine compresa, cosi' un clic
     ovunque apre il caso. */
}
.related-case-card .related-case-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}
.related-case-card .related-case-card__cta {
  margin-top: auto; /* Spinge la CTA sempre sul fondo */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--wp--preset--color--panthera-accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.related-case-card .related-case-card__cta svg {
  transition: transform 0.2s ease;
}
.related-case-card .related-case-card__cta:hover {
  gap: 0.75rem;
}
.related-case-card .related-case-card__cta:hover svg {
  transform: translateX(2px);
}

.related-swiper .swiper-slide {
  height: auto;
}

/* 5. MOBILE RESPONSIVENESS CHECKS */
@media (max-width: 767px) {
  .section-related-cases__carousel-wrap {
    padding-inline: 0;
  }
  .section-related-cases__carousel-wrap .swiper-nav-prev,
  .section-related-cases__carousel-wrap .swiper-nav-next {
    display: none;
  }
}
/* 6. SIDEBAR REDESIGN STYLES */
/* Container */
.case-history-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* gap: var(--space-6) / 24px */
}

/* Card generica della sidebar (usata anche dalla scheda Contatti del partner,
   che ne ridefinisce gran parte con stili propri): non toccare senza controllare
   la pagina del singolo partner. */
.sidebar-card {
  background-color: var(--wp--preset--color--panthera-surface, #ffffff);
  border: 1px solid oklch(from var(--wp--preset--color--panthera-text) l c h/0.08);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.sidebar-card .sidebar-category-wrap {
  margin-bottom: 1.5rem;
}
.sidebar-card .sidebar-logo-wrap {
  margin-bottom: 1.5rem;
}
.sidebar-card .sidebar-logo-wrap .sidebar-logo-img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.sidebar-card .sidebar-title {
  font-family: var(--wp--preset--font-family--heading, inherit);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wp--preset--color--panthera-text);
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.sidebar-card .sidebar-divider {
  border: 0;
  height: 1px;
  background: oklch(from var(--wp--preset--color--panthera-text) l c h/0.08);
  margin: 1.5rem 0;
}
.sidebar-card .quick-data-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar-card .sidebar-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-card .sidebar-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--panthera-muted);
}
.sidebar-card .sidebar-meta-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--panthera-text);
  line-height: 1.4;
}
.sidebar-card .sidebar-meta-divider {
  border: 0;
  height: 1px;
  background: oklch(from var(--wp--preset--color--panthera-text) l c h/0.04);
  margin: 0;
}

/* Schede "Cliente" e "Partner" della sidebar della Case History.
   UN SOLO componente per entrambe (stesse classi .ch-info-card*, usate da
   inc/shortcodes.php per il cliente e da blocks/case-history-partner/render.php
   per il partner): cosi' bordi, margini e tipografia sono identici per
   costruzione e non si possono piu' disallineare.
   Struttura: etichetta > testata (riquadro logo + nome) > righe "etichetta / valore".
   Sfondo tinto, bordo e ombra per staccarle dal fondo bianco della pagina. */
.ch-info-card {
  --ch-card-bg: #f2f5fa;
  --ch-card-border: #cfd8e6;
  --ch-card-text: #12304d;
  --ch-card-label: #4a5b73;
  background-color: var(--ch-card-bg);
  border: 1px solid var(--ch-card-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  color: var(--ch-card-text);
}
.ch-info-card__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ch-card-label);
}
.ch-info-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ch-info-card__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 72px;
  padding: 0.5rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid var(--ch-card-border);
  border-radius: 10px;
}
.ch-info-card__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ch-info-card__name {
  margin: 0;
  min-width: 0;
  font-family: var(--wp--preset--font-family--heading, inherit);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ch-card-text);
}
.ch-info-card__name a {
  color: inherit;
  text-decoration: none;
}
.ch-info-card__name a:hover {
  color: var(--wp--preset--color--primary, #0057ff);
}
.ch-info-card__list {
  margin: 1.25rem 0 0;
  padding: 0;
}
.ch-info-card__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ch-card-border);
}
.ch-info-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-card-label);
}
.ch-info-card__value {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ch-card-text);
  overflow-wrap: anywhere;
}
.ch-info-card__value a {
  font-weight: 600;
  color: var(--wp--preset--color--primary, #0057ff);
  text-decoration: none;
}
.ch-info-card__value a:hover {
  text-decoration: underline;
}

/* Box CTA dark */
.sidebar-cta-box {
  background-color: var(--wp--preset--color--deep-black, #12304D);
  border-radius: 12px;
  padding: 2.5rem 2rem; /* padding generoso */
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.sidebar-cta-box .sidebar-cta-title {
  font-family: var(--wp--preset--font-family--heading, inherit);
  font-size: 1.25rem;
  font-weight: 600; /* font-weight 600 */
  color: #ffffff; /* colore bianco */
  margin: 0;
  line-height: 1.4;
}
.sidebar-cta-box .wp-block-button {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.sidebar-cta-box .wp-block-button a {
  background-color: var(--wp--preset--color--panthera-accent, #e21b1b) !important;
  color: #ffffff !important;
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.sidebar-cta-box .wp-block-button a:hover {
  background-color: #ffffff !important;
  color: var(--wp--preset--color--deep-black, #12304D) !important;
  transform: translateY(-2px);
}

/* 7. OTHER IMPROVEMENTS styling */
/* B. PULSANTE "SCARICA IL CASE HISTORY" */
.btn-download-case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* gap: var(--space-2) */
  padding: 0.75rem 1.5rem; /* padding: var(--space-4) var(--space-8) */
  border: 2px solid var(--wp--preset--color--panthera-accent);
  border-radius: 6px; /* rounded-md */
  background-color: transparent;
  color: var(--wp--preset--color--panthera-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-download-case i {
  font-size: 1.2em;
}
.btn-download-case:hover {
  background-color: var(--wp--preset--color--panthera-accent);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px oklch(from var(--wp--preset--color--panthera-accent) l c h/0.15);
}

/* C. QUOTE HERO — autore più visibile */
.case-history-quote-box .hero-quote-author {
  font-size: 0.75rem !important; /* font-size --text-xs */
  font-weight: 700 !important; /* font-weight 700 */
  color: var(--wp--preset--color--panthera-accent) !important; /* var(--color-accent) */
  text-transform: uppercase !important; /* uppercase */
  letter-spacing: 0.08em !important; /* letter-spacing */
  margin-top: 0.75rem;
}

/* D. LINK WEBSITE IN SIDEBAR — stile coerente */
.sidebar-website-link {
  color: var(--wp--preset--color--panthera-accent) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  word-break: break-all;
}
.sidebar-website-link:hover {
  color: var(--wp--preset--color--panthera-text) !important;
  text-decoration: underline !important;
}

.panthera-event-featured-image {
  width: 100%;
}
.panthera-event-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.panthera-event-columns {
  /* desktop is normally row */
}
.panthera-event-columns .wp-block-post-content > *:first-child {
  margin-top: 0 !important;
}
.panthera-event-columns .wp-block-post-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .panthera-event-columns {
    flex-direction: column-reverse !important;
  }
}
.event-registration-cta {
  box-sizing: border-box; /* width:100% + padding 30px sforava lo schermo su mobile */
  margin-top: 40px;
  padding: 30px;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.event-registration-cta__title {
  font-family: var(--wp--preset--font-family--heading, inherit);
  font-size: 18px;
  font-weight: 300;
  color: #12304D;
  margin: 0 0 5px 0;
  text-transform: none;
}

.event-registration-cta__subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.event-registration-cta__button {
  background-color: var(--wp--preset--color--primary, #e21b1b);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
  display: inline-block;
}
.event-registration-cta__button:hover {
  background-color: #12304D;
  color: #ffffff;
}

.panthera-event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 769px) {
  .panthera-event-sidebar {
    position: sticky;
    top: 100px;
  }
}
.panthera-event-sidebar__card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}
.panthera-event-sidebar__card--info {
  background-color: #f1f5f9;
  border-style: dashed;
}

.panthera-event-sidebar__card-title {
  font-family: var(--wp--preset--font-family--heading, inherit);
  font-size: 14px;
  font-weight: 700;
  color: #12304D;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px 0;
}
.panthera-event-sidebar__card-title--margin-top {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.panthera-event-sidebar__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panthera-event-sidebar__icon {
  font-size: 20px;
  color: var(--wp--preset--color--primary, #e21b1b);
  flex-shrink: 0;
  margin-top: 2px;
}

.panthera-event-sidebar__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panthera-event-sidebar__value {
  font-size: 16px;
  font-weight: 600;
  color: #12304D;
  line-height: 1.4;
}
.panthera-event-sidebar__value--alert {
  color: #ef4444;
}

.panthera-event-sidebar__subvalue {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}
.panthera-event-sidebar__subvalue--alert {
  font-weight: 700;
  text-transform: uppercase;
  color: #ef4444;
  letter-spacing: 0.5px;
}

.panthera-event-sidebar__cta-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panthera-event-sidebar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.panthera-event-sidebar__btn--primary {
  background-color: var(--wp--preset--color--primary, #e21b1b);
  color: #ffffff;
  border: 1px solid var(--wp--preset--color--primary, #e21b1b);
}
.panthera-event-sidebar__btn--primary:hover {
  background-color: #12304D;
  border-color: #12304D;
  color: #ffffff;
}
.panthera-event-sidebar__btn--outline {
  background-color: transparent;
  color: #12304D;
  border: 1.5px solid #cbd5e1;
}
.panthera-event-sidebar__btn--outline:hover {
  border-color: #12304D;
}
.panthera-event-sidebar__btn--disabled {
  background-color: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
}

.panthera-event-sidebar__info-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.panthera-event-sidebar__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panthera-event-sidebar__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #e21b1b);
  text-decoration: none;
  word-break: break-all;
}
.panthera-event-sidebar__contact-link:hover {
  color: #12304D;
}

.panthera-event-sidebar__contact-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.single-eventi-main .panthera-hero {
  padding-top: clamp(32px, 4vw, 56px) !important;
  padding-bottom: clamp(32px, 4vw, 56px) !important;
}
.single-eventi-main .panthera-hero__title {
  font-size: clamp(2rem, 2.7vw, 2.75rem) !important;
}
.single-eventi-main .panthera-breadcrumbs-row {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.single-eventi-main .wp-block-group:has(> .panthera-event-columns) {
  padding-top: 12px !important;
}

@media (min-width: 1024px) {
  .single-eventi-main .panthera-hero--bleed-right > .wp-block-columns {
    min-height: 410px;
  }
}
/* =========================================================================
   PANTHERA SWUP TRANSITIONS (INVERSE GEOMETRY LOGIC)
   ========================================================================= */
body {
  --panthera-overlay-color: #221e1f;
}

#swup {
  overflow: hidden;
}

/* Base Wrapper for all Panthera Transitions */
.panthera-swup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none; /* Let clicks pass through when NOT animating */
  overflow: hidden; /* Ensure nothing breaks out of viewport */
}

/* Block clicks during the ENTIRE animation lifecycle (cover and reveal) */
html.is-changing .panthera-swup-overlay {
  pointer-events: auto;
}

/* Only display the active variant */
.panthera-swup-overlay .panther-variant {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.panthera-swup-overlay[data-variant="1"] .variant-1,
.panthera-swup-overlay[data-variant="2"] .variant-2,
.panthera-swup-overlay[data-variant="3"] .variant-3,
.panthera-swup-overlay[data-variant="4"] .variant-4,
.panthera-swup-overlay[data-variant="5"] .variant-5,
.panthera-swup-overlay[data-variant="6"] .variant-6 {
  display: block;
}

/* =========================================================================
   VARIANT 1: SILHOUETTE SCALE REVERSE
   The shape scales up from 0 to massive, covering the screen.
   On reveal, the exact same shape scales back down to 0.
   ========================================================================= */
.variant-1 .v1-silhouette-container {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.variant-1 .v1-svg-shape {
  width: 15vmax; /* Safe base size relative to screen */
  height: auto;
  transform: scale(0); /* Base state: hidden / fully revealed page */
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

/* Outgoing phase: block expands to cover the screen */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="1"] .variant-1 .v1-svg-shape {
  transform: scale(50); /* Expands massively to cover the screen */
}

/* =========================================================================
   VARIANT 2: CIRCULAR SEAL WITH WHITE BG & EXPANDING LOGO
   ========================================================================= */
.variant-2 .v2-seal-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 150vmax;
  background: #ffffff; /* White background requested */
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  z-index: 10;
}

.variant-2 .v2-seal-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 11;
  pointer-events: none;
}

.variant-2 .v2-seal-logo {
  width: 80px;
  height: 80px;
  transform: scale(0.5) rotate(-45deg);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
  will-change: transform;
}

/* Outgoing phase: expand circle and rotate logo in */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="2"] .variant-2 .v2-seal-bg {
  transform: translate(-50%, -50%) scale(1);
}

html.is-changing.is-leaving .panthera-swup-overlay[data-variant="2"] .variant-2 .v2-seal-logo {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  transition-delay: 0.1s;
}

/* Entering phase: reverse the geometric growth */
html.is-changing:not(.is-leaving) .panthera-swup-overlay[data-variant="2"] .variant-2 .v2-seal-bg {
  transform: translate(-50%, -50%) scale(0);
}

html.is-changing:not(.is-leaving) .panthera-swup-overlay[data-variant="2"] .variant-2 .v2-seal-logo {
  transform: scale(0.5) rotate(-45deg);
  opacity: 0;
  transition-delay: 0s;
}

/* Cleanup reset */
html:not(.is-changing) .panthera-swup-overlay[data-variant="2"] .variant-2 .v2-seal-bg {
  transition: none;
  transform: translate(-50%, -50%) scale(0);
}

html:not(.is-changing) .panthera-swup-overlay[data-variant="2"] .variant-2 .v2-seal-logo {
  transition: none;
  transform: scale(0.5) rotate(-45deg);
  opacity: 0;
}

/* =========================================================================
   VARIANT 3: IRIS EXPAND & RETRACT
   Uses pure CSS clip-path mathematically.
   ========================================================================= */
.variant-3 .v3-iris-bg {
  background: var(--panthera-overlay-color);
  position: absolute;
  inset: 0;
  /* Base state: circle shrunk to 0% at click coordinates */
  clip-path: circle(0% at var(--swup-reveal-x, 50%) var(--swup-reveal-y, 50%));
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Outgoing phase: expand to cover */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="3"] .variant-3 .v3-iris-bg {
  clip-path: circle(150% at var(--swup-reveal-x, 50%) var(--swup-reveal-y, 50%));
}

/* =========================================================================
   VARIANT 4: DOUBLE LAYER CURTAIN
   Covers by wiping bottom-to-top.
   Reveals by retreating top-to-bottom (the geometric reverse).
   ========================================================================= */
.variant-4 .v4-curtain-layer {
  position: absolute;
  inset: 0;
}

/* Base state (revealed): both curtains sit completely below the viewport */
.variant-4 .v4-curtain-bg {
  background: #47536b; /* Accent layer */
  transform: translateY(100vh);
  /* Enter transition: accent retreats last for a trail effect */
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.1s;
}

.variant-4 .v4-curtain-main {
  background: var(--panthera-overlay-color);
  transform: translateY(100vh);
  /* Enter transition: main layer retreats first */
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0s;
}

/* Outgoing phase: move to 0 to cover the screen */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="4"] .variant-4 .v4-curtain-bg {
  transform: translateY(0);
  /* Leave transition: accent layer covers first */
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0s;
}

html.is-changing.is-leaving .panthera-swup-overlay[data-variant="4"] .variant-4 .v4-curtain-main {
  transform: translateY(0);
  /* Leave transition: main layer covers second */
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.1s;
}

/* =========================================================================
   VARIANT 5: CURVE CONTRACTION CONTINUOUS (SWEEP UP & DISAPPEAR UP)
   Sweeps up to cover, then continues sweeping up to reveal the new page.
   ========================================================================= */
.variant-5 .v5-curved-sweep {
  position: absolute;
  top: 0;
  left: -10vw;
  width: 120vw;
  height: 135vh; /* 15vh curve + 105vh fill + 15vh bottom curve */
  display: flex;
  flex-direction: column;
  /* Base state: parked completely below viewport. */
  transform: translateY(100vh);
  transition: none; /* Snap back to bottom when idle */
}

.variant-5 .v5-curve-top {
  width: 100%;
  height: 15vh;
  background: var(--panthera-overlay-color);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

.variant-5 .v5-fill {
  height: 105vh;
  background: var(--panthera-overlay-color);
}

.variant-5 .v5-curve-bottom {
  width: 100%;
  height: 15vh;
  background: var(--panthera-overlay-color);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

/* Outgoing phase: curve rises to cover the screen */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="5"] .variant-5 .v5-curved-sweep {
  transform: translateY(-15vh);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Entering phase: continue sweeping UP to reveal the new page */
html.is-changing.is-rendering .panthera-swup-overlay[data-variant="5"] .variant-5 .v5-curved-sweep {
  transform: translateY(-135vh);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* =========================================================================
   VARIANT 6: MINIMALIST (CONTENT FADE & SLIDE)
   Header and footer remain visible. Native #swup node transition.
   ========================================================================= */
/* Hide the global overlay entirely for V6 */
.panthera-swup-overlay[data-variant="6"] {
  display: none !important;
}

/* Style the main content container instead */
html[data-swup-variant="6"] #swup {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

/* Leaving phase: fade out and slide up */
html.is-changing.is-leaving[data-swup-variant="6"] #swup {
  opacity: 0;
  transform: translateY(-30px);
}

/* Entering phase (new node injected): starts faded out and below */
html.is-changing.is-rendering[data-swup-variant="6"] #swup {
  opacity: 0;
  transform: translateY(30px);
  transition: none; /* Needs to teleport down instantly before fading in */
}

/* =========================================================================
   VARIANT 7: DOUBLE CURVE (Opposite direction of V4)
   Using a single sweeping element that goes 100vh -> 0 -> -100vh
   ========================================================================= */
.panthera-swup-overlay[data-variant="7"] .variant-7,
.panthera-swup-overlay[data-variant="8"] .variant-8,
.panthera-swup-overlay[data-variant="9"] .variant-9 {
  display: block;
}

.variant-7 .v7-sweep, .variant-8 .v8-sweep {
  position: absolute;
  top: 0;
  left: -10vw;
  width: 120vw;
  height: 130vh;
  display: flex;
  flex-direction: column;
}

.variant-7 .v7-curve-top, .variant-8 .v8-curve-top, .variant-9 .v9-curve-top {
  width: 100%;
  height: 15vh;
  background: var(--panthera-overlay-color);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

.variant-7 .v7-fill, .variant-8 .v8-fill, .variant-9 .v9-fill {
  height: 100vh;
  background: var(--panthera-overlay-color);
}

.variant-7 .v7-curve-bottom, .variant-8 .v8-curve-bottom, .variant-9 .v9-curve-bottom {
  width: 100%;
  height: 15vh;
  background: var(--panthera-overlay-color);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

.variant-7 .v7-sweep {
  transform: translateY(100vh); /* parked below */
  transition: none;
}

html.is-changing.is-leaving .panthera-swup-overlay[data-variant="7"] .variant-7 .v7-sweep {
  transform: translateY(-15vh);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

html.is-changing.is-rendering .panthera-swup-overlay[data-variant="7"] .variant-7 .v7-sweep {
  transform: translateY(-130vh);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* =========================================================================
   VARIANT 8: SCALEY CURTAIN
   Scales up from bottom, then scales down towards top! 
   ========================================================================= */
.variant-8 .v8-sweep {
  top: -15vh; /* position covering */
  transform-origin: bottom;
  transform: scaleY(0);
  transition: none;
}

html.is-changing.is-leaving .panthera-swup-overlay[data-variant="8"] .variant-8 .v8-sweep {
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

html.is-changing.is-rendering .panthera-swup-overlay[data-variant="8"] .variant-8 .v8-sweep {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* =========================================================================
   VARIANT 9: TWO INDEPENDENT LAYERS (Sweep UP cover, Sweep UP uncover)
   ========================================================================= */
.variant-9 .v9-layer {
  position: absolute;
  top: 0;
  left: -10vw;
  width: 120vw;
  height: 115vh;
  display: flex;
  flex-direction: column;
}

.variant-9 .v9-sweep-out {
  transform: translateY(100vh); /* Parked below */
  opacity: 1;
  transition: none;
}

.variant-9 .v9-sweep-in {
  opacity: 0; /* hidden init */
  transform: translateY(-115vh); /* Parked above (we don't care about base here, since it teleports before entering) */
  transition: none;
}

/* Leaving: out layer sweeps up to cover */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="9"] .variant-9 .v9-sweep-out {
  transform: translateY(-15vh);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Leaving: in layer teleports under cover to prepare */
html.is-changing.is-leaving .panthera-swup-overlay[data-variant="9"] .variant-9 .v9-sweep-in {
  opacity: 0;
  transition: none;
  transform: translateY(0); /* Pre-position for IN phase */
}

/* Entering: out snaps away, in fades in and sweeps up */
html.is-changing.is-rendering .panthera-swup-overlay[data-variant="9"] .variant-9 .v9-sweep-out {
  transition: none;
  opacity: 0;
}

html.is-changing.is-rendering .panthera-swup-overlay[data-variant="9"] .variant-9 .v9-sweep-in {
  opacity: 1;
  transform: translateY(-115vh);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* =========================================================================
   REDUCED MOTION FALLBACK
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .panthera-swup-overlay .panther-variant {
    display: none !important;
  }
  html.is-changing .reduced-motion-fallback {
    position: fixed;
    inset: 0;
    background: var(--panthera-overlay-color);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  html.is-changing.is-leaving .reduced-motion-fallback {
    opacity: 1;
  }
}
/* =========================================================================
   DEBUG TESTER PANEL (Only active during development)
   ========================================================================= */
.swup-variant-tester {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  z-index: 100000; /* Above overlay so it remains clickable */
  font-family: monospace;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: auto; /* ensure we can click it */
}

.swup-variant-tester button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.swup-variant-tester button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.swup-variant-tester button.active {
  background: #0057FF;
  border-color: #0057FF;
}

.swup-tester-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 5px 0;
}

.swup-variant-tester label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.8;
}

.swup-variant-tester label:hover {
  opacity: 1;
}

/* =========================================================================
   GLOBAL BRAND OVERLAY (SWUP)
   ========================================================================= */
.swup-brand-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 99999; /* Above Swup curtain */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

body.admin-bar .swup-brand-overlay {
  top: max(32px, var(--wp-admin--admin-bar--height, 32px));
  height: calc(100dvh - max(32px, var(--wp-admin--admin-bar--height, 32px)));
}

.swup-brand-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.swup-brand-overlay svg {
  max-width: clamp(160px, 25vw, 320px);
  height: auto;
  display: block;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 600ms ease-in-out;
}

.swup-brand-overlay.logo-reveal svg {
  clip-path: inset(0 0 0 0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .swup-brand-overlay {
    transition: none !important;
  }
  .swup-brand-overlay svg {
    animation: none !important;
  }
}

/*# sourceMappingURL=main.css.map */
