/**
 * POL Services hub - SSOT Blueprint v2.1 + Brand Capsule I alignment.
 * Scoped to body.pol-services only. No global theme files required.
 *
 * Institutional: Navy #1B2A4A | Sand #F2EBDD | Terracotta #C4663A | Georgia titles
 */

/* -- Design tokens (fallbacks when seasonal theme omits vars) -- */
body.pol-services {
  /* Literal SSOT - no self-ref var() (caused whitewashed hero on live) */
  --pol-navy:           #1B2A4A;
  --pol-navy-soft:      #2D4568;
  --pol-navy-night:     #141E33;
  --pol-sand:           #F2EBDD;
  --pol-terracotta:     #C4663A;
  --pol-accent:         #C4663A;
  --pol-gold-micro:     #C8A878;

  --pol-text-primary:   #1B2A4A;
  --pol-text-secondary: #5C6778;
  --pol-text-light:     #F5F0E4;
  --pol-text-main:      #1B2A4A;
  --pol-text-muted:     #5C6778;

  --pol-bg-primary:     #F2EBDD;
  --pol-bg-main:        #F2EBDD;
  --pol-bg-card:        #E8DFD0;
  --pol-bg-dark:        #141E33;
  --pol-border:         color-mix(in srgb, #1B2A4A 12%, #F2EBDD);

  --pol-logo-color:     #F5F0E4;
  --pol-payoff-color:   rgba(245, 240, 228, 0.92);
  /* Hero tokens are light-on-dark; navbar needs dark-on-sand contrast */
  --pol-nav-logo-color: var(--pol-navy);

  --pol-font-brand:     var(--pol-font-brand, Georgia, 'Cormorant Garamond', 'Times New Roman', serif);
  --pol-font-body:      var(--pol-font-body, 'Jost', 'Inter', system-ui, sans-serif);

  --pol-radius-sm:      6px;
  --pol-radius-md:      14px;
  --pol-radius-lg:      22px;
  --pol-shadow-card:    0 4px 24px rgba(27, 42, 74, 0.07);
  --pol-shadow-hover:   0 12px 40px rgba(27, 42, 74, 0.14);
  --pol-shadow-soft:    0 2px 12px rgba(27, 42, 74, 0.05);

  --pol-services-nav-h: 4.5rem;

  --pol-btn-primary-bg:           var(--pol-navy);
  --pol-btn-primary-color:        var(--pol-text-light);
  --pol-btn-primary-border:       var(--pol-navy);
  --pol-btn-primary-hover-bg:     var(--pol-navy-soft);
  --pol-btn-primary-hover-color:  var(--pol-text-light);

  --pol-btn-secondary-bg:              var(--pol-bg-card);
  --pol-btn-secondary-color:           var(--pol-navy);
  --pol-btn-secondary-border:          var(--pol-border);
  --pol-btn-secondary-hover-bg:        color-mix(in srgb, var(--pol-sand) 60%, var(--pol-bg-card));
  --pol-btn-secondary-hover-color:     var(--pol-navy);

  --pol-btn-padding-sm:     0.4rem 1rem;
  --pol-btn-padding-md:     0.65rem 1.6rem;
  --pol-btn-padding-lg:     0.85rem 2.2rem;
  --pol-btn-radius:         var(--pol-radius-sm);
  --pol-btn-font-weight:    500;
  --pol-btn-letter-spacing: 0.08em;
  --pol-btn-transition:     all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: var(--pol-font-body);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--pol-sand) 40%, white) 0%, transparent 55%),
    var(--pol-bg-main);
  color: var(--pol-text-main);
  overflow-x: hidden;
}

body.pol-services *,
body.pol-services *::before,
body.pol-services *::after {
  box-sizing: border-box;
}

/* -- Nav -- */
body.pol-services nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: color-mix(in srgb, var(--pol-sand) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 0.5px solid var(--pol-border);
  transition: box-shadow 0.3s ease;
}

body.pol-services .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.pol-services .nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pol-text-secondary);
  text-decoration: none;
  transition: color 0.22s ease;
}

body.pol-services .nav-links a:hover,
body.pol-services .nav-links a.active {
  color: var(--pol-navy);
}

body.pol-services nav a.pol-brand-logo.nav-logo,
body.pol-services nav .nav-brand-stack .pol-logo,
body.pol-services nav .nav-brand-stack .pol-logo-line2 {
  color: var(--pol-nav-logo-color, var(--pol-navy)) !important;
  opacity: 1;
}

body.pol-services .nav-cta.pol-btn {
  padding: 0.6rem 1.4rem;
  background: var(--pol-terracotta);
  border-color: var(--pol-terracotta);
  color: var(--pol-text-light);
}

body.pol-services .nav-cta.pol-btn:hover {
  background: color-mix(in srgb, var(--pol-terracotta) 88%, #1B2A4A);
  border-color: color-mix(in srgb, var(--pol-terracotta) 88%, #1B2A4A);
  color: var(--pol-text-light);
}

/* -- Fixed nav offset -- */
body.pol-services #pol-services-hero {
  padding-top: var(--pol-services-nav-h);
}

body.pol-services .pol-services-hub-section,
body.pol-services .section,
body.pol-services .contact-section,
body.pol-services #building,
body.pol-services #legal-consulting,
body.pol-services #servizi-elenco {
  scroll-margin-top: var(--pol-services-nav-h);
}

@media (max-width: 720px) {
  body.pol-services {
    --pol-services-nav-h: 4rem;
  }
  body.pol-services nav {
    padding: 0.9rem 1.35rem;
  }
}

/* -- Buttons -- */
body.pol-services .pol-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: var(--pol-btn-padding-md);
  border-radius: var(--pol-btn-radius);
  font-family: var(--pol-font-body);
  font-weight: var(--pol-btn-font-weight);
  font-size: 0.875rem;
  letter-spacing: var(--pol-btn-letter-spacing);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--pol-btn-transition);
  white-space: nowrap;
}

body.pol-services .pol-btn-primary {
  background-color: var(--pol-btn-primary-bg);
  color: var(--pol-btn-primary-color);
  border-color: var(--pol-btn-primary-border);
}

body.pol-services .pol-btn-primary:hover {
  background-color: var(--pol-btn-primary-hover-bg);
  color: var(--pol-btn-primary-hover-color);
  box-shadow: var(--pol-shadow-hover);
  transform: translateY(-1px);
}

body.pol-services .pol-btn-secondary {
  background-color: var(--pol-btn-secondary-bg);
  color: var(--pol-btn-secondary-color);
  border-color: var(--pol-btn-secondary-border);
}

body.pol-services .pol-btn-secondary:hover {
  background-color: var(--pol-btn-secondary-hover-bg);
  color: var(--pol-btn-secondary-hover-color);
  box-shadow: var(--pol-shadow-soft);
}

body.pol-services .pol-btn-sm { padding: var(--pol-btn-padding-sm); font-size: 0.78rem; }
body.pol-services .pol-btn-lg { padding: var(--pol-btn-padding-lg); font-size: 1rem; }

body.pol-services #pol-services-hero .pol-btn-secondary,
body.pol-services .pol-services-building-spotlight .pol-btn-secondary,
body.pol-services .contact-section .pol-btn-secondary,
body.pol-services .pol-services-fornitore-cta .pol-btn-secondary {
  background: color-mix(in srgb, var(--pol-text-light) 10%, transparent);
  color: var(--pol-text-light);
  border-color: color-mix(in srgb, var(--pol-text-light) 38%, transparent);
}

body.pol-services #pol-services-hero .pol-btn-secondary:hover,
body.pol-services .pol-services-building-spotlight .pol-btn-secondary:hover,
body.pol-services .contact-section .pol-btn-secondary:hover,
body.pol-services .pol-services-fornitore-cta .pol-btn-secondary:hover {
  background: color-mix(in srgb, var(--pol-text-light) 18%, transparent);
  color: var(--pol-text-light);
  border-color: var(--pol-text-light);
}

body.pol-services .pol-services-building-spotlight .pol-btn-primary,
body.pol-services #pol-services-hero .pol-btn-primary,
body.pol-services .contact-section .pol-btn-primary,
body.pol-services .pol-services-cta-hub .pol-btn-primary,
body.pol-services .pol-services-fornitore-cta .pol-btn-primary {
  background-color: var(--pol-navy);
  color: var(--pol-text-light);
  border-color: color-mix(in srgb, var(--pol-text-light) 25%, transparent);
}

body.pol-services .pol-services-building-spotlight .pol-btn-primary:hover,
body.pol-services #pol-services-hero .pol-btn-primary:hover,
body.pol-services .contact-section .pol-btn-primary:hover,
body.pol-services .pol-services-cta-hub .pol-btn-primary:hover,
body.pol-services .pol-services-fornitore-cta .pol-btn-primary:hover {
  background-color: var(--pol-navy-soft);
  border-color: var(--pol-terracotta);
}

/* -- Hero: cinematic navy (not whitewashed glass) -- */
body.pol-services #pol-services-hero {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  z-index: 1;
}

body.pol-services #pol-services-hero .page-hero.hero-section {
  min-height: min(88vh, 920px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 4.5rem 5rem 4.5rem;
  position: relative;
  overflow: hidden;
  background: #141E33;
  margin: 0;
}

body.pol-services #pol-services-hero .hero-video,
body.pol-services #pol-services-hero .hero-poster-fallback {
  filter: saturate(1.05) brightness(0.88) contrast(1.05);
  object-position: center 42%;
}

body.pol-services #pol-services-hero .hero-overlay {
  background: linear-gradient(
    118deg,
    rgba(20, 30, 51, 0.92) 0%,
    rgba(27, 42, 74, 0.62) 38%,
    rgba(27, 42, 74, 0.28) 68%,
    rgba(20, 30, 51, 0.45) 100%
  ) !important;
}

body.pol-services #pol-services-hero .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: rgba(20, 30, 51, 0.78);
  padding: 2.5rem 2.75rem;
  border-radius: var(--pol-radius-md);
  border: 0.5px solid rgba(245, 240, 228, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(8, 12, 22, 0.45);
  color: #F5F0E4;
  text-align: left;
}

body.pol-services #pol-services-hero .page-hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pol-terracotta) 0%, var(--pol-gold-micro) 100%);
  border-radius: var(--pol-radius-md) 0 0 var(--pol-radius-md);
  opacity: 1;
}

body.pol-services #pol-services-hero .page-hero-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 2.75rem;
  right: 2.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--pol-terracotta), transparent 70%);
  opacity: 0.55;
}

body.pol-services #pol-services-hero .page-hero-content .pol-logo,
body.pol-services #pol-services-hero .page-hero-content .pol-hero-title,
body.pol-services #pol-services-hero .pol-hero-brand-container .pol-logo,
body.pol-services #pol-services-hero .pol-hero-brand-container .pol-hero-title {
  color: #F5F0E4 !important;
  font-family: var(--pol-font-brand);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

body.pol-services #pol-services-hero .page-hero-content .pol-payoff,
body.pol-services #pol-services-hero .pol-hero-brand-container .pol-payoff {
  color: rgba(245, 240, 228, 0.9) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

body.pol-services #pol-services-hero .pol-hero-brand-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin-bottom: 0.35rem;
  text-align: left;
  align-items: flex-start;
}

body.pol-services #pol-services-hero .pol-section-badge,
body.pol-services #pol-services-hero .page-hero-eyebrow,
body.pol-services #pol-services-hero .pol-section-badge__brand,
body.pol-services #pol-services-hero .pol-section-badge__name {
  color: rgba(245, 240, 228, 0.78) !important;
}

body.pol-services #pol-services-hero .page-hero-eyebrow::before,
body.pol-services #pol-services-hero .pol-section-badge::before {
  background: var(--pol-terracotta);
}

body.pol-services #pol-services-hero .page-hero-sub {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(245, 240, 228, 0.84) !important;
  max-width: 100%;
  margin: 0;
}

body.pol-services #pol-services-hero .pol-btn-primary {
  background: var(--pol-terracotta) !important;
  border-color: var(--pol-terracotta) !important;
  color: #F5F0E4 !important;
}

body.pol-services #pol-services-hero .pol-btn-primary:hover {
  background: color-mix(in srgb, var(--pol-terracotta) 86%, #141E33) !important;
  border-color: #F5F0E4 !important;
}

body.pol-services .hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

/* -- Hub section (navy editorial band) -- */
body.pol-services .pol-services-hub-section {
  padding: 4.5rem 5rem 5rem;
  background: linear-gradient(165deg, #141E33 0%, #1B2A4A 55%, #243656 100%);
  position: relative;
  overflow: hidden;
}

body.pol-services .pol-services-hub-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(196, 102, 58, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(200, 168, 120, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

body.pol-services .pol-services-hub-section .section-eyebrow,
body.pol-services .pol-services-hub-section .section-title {
  position: relative;
  color: #F5F0E4;
}

body.pol-services .pol-services-hub-section .section-eyebrow::before {
  background: var(--pol-terracotta);
}

body.pol-services .section-eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pol-navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

body.pol-services .section-eyebrow::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--pol-terracotta);
}

body.pol-services .section-title {
  font-family: var(--pol-font-brand);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 400;
  color: var(--pol-navy);
  margin-bottom: 2.5rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

body.pol-services .pol-services-hub-agents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 0.5rem;
}

body.pol-services .pol-services-hub-agent {
  border: 0.5px solid rgba(245, 240, 228, 0.12);
  border-radius: var(--pol-radius-md);
  background: rgba(245, 240, 228, 0.96);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 28px rgba(8, 12, 22, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

body.pol-services .pol-services-hub-agent:hover {
  transform: translateY(-3px);
  box-shadow: var(--pol-shadow-card);
  border-color: color-mix(in srgb, var(--pol-terracotta) 35%, var(--pol-border));
}

body.pol-services .pol-services-hub-agent__type {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pol-terracotta);
  font-weight: 500;
}

body.pol-services .pol-services-hub-agent__title {
  font-family: var(--pol-font-brand);
  font-size: 1.25rem;
  color: var(--pol-navy);
  margin: 0.5rem 0 0.4rem;
  font-weight: 400;
}

body.pol-services .pol-services-hub-agent__text {
  font-size: 0.84rem;
  color: var(--pol-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

body.pol-services .pol-services-hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}

body.pol-services .pol-services-hub-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: var(--pol-radius-md);
  overflow: hidden;
  border: 0.5px solid var(--pol-border);
  background: linear-gradient(165deg, color-mix(in srgb, var(--pol-sand) 70%, white) 0%, var(--pol-bg-card) 100%);
  min-height: 220px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

body.pol-services .pol-services-hub-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pol-terracotta);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pol-services .pol-services-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pol-shadow-hover);
  border-color: color-mix(in srgb, var(--pol-navy) 18%, var(--pol-border));
}

body.pol-services .pol-services-hub-card:hover::after {
  transform: scaleY(1);
}

body.pol-services .pol-services-hub-card__body {
  padding: 1.35rem 1.3rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

body.pol-services .pol-services-hub-card__num {
  font-family: var(--pol-font-brand);
  font-size: 1.9rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--pol-navy) 32%, transparent);
  line-height: 1;
}

body.pol-services .pol-services-hub-card__title {
  font-family: var(--pol-font-brand);
  font-size: 1.22rem;
  color: var(--pol-navy);
  margin: 0.35rem 0 0.45rem;
  font-weight: 400;
}

body.pol-services .pol-services-hub-card__text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--pol-text-secondary);
}

body.pol-services .pol-services-hub-card__go {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--pol-terracotta);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease;
}

body.pol-services .pol-services-hub-card:hover .pol-services-hub-card__go {
  transform: translateX(4px);
}

body.pol-services .pol-services-cta-hub {
  margin-top: 2rem;
  margin-bottom: 0;
  background: rgba(245, 240, 228, 0.08);
  border: 0.5px solid rgba(245, 240, 228, 0.22);
  border-radius: var(--pol-radius-md);
  padding: 1.75rem 2rem;
  color: #F5F0E4;
  box-shadow: inset 0 1px 0 rgba(245, 240, 228, 0.08);
  position: relative;
  overflow: hidden;
}

body.pol-services .pol-services-cta-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--pol-terracotta) 18%, transparent) 0%, transparent 50%);
  pointer-events: none;
}

body.pol-services .pol-services-cta-hub h3 {
  font-family: var(--pol-font-brand);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  position: relative;
}

body.pol-services .pol-services-cta-hub p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--pol-text-light) 76%, transparent);
  position: relative;
  max-width: 640px;
}

/* -- Main listing section -- */
body.pol-services .section {
  padding: 4rem 5rem 5rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

body.pol-services .pol-services-building-spotlight {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 2.25rem 2.5rem;
  border-radius: var(--pol-radius-lg);
  border: 0.5px solid color-mix(in srgb, var(--pol-gold-micro) 28%, var(--pol-border));
  background: linear-gradient(145deg, var(--pol-navy) 0%, var(--pol-navy-night) 100%);
  color: var(--pol-text-light);
  box-shadow: var(--pol-shadow-card);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

body.pol-services .pol-services-building-spotlight:hover {
  box-shadow: var(--pol-shadow-hover);
  transform: translateY(-2px);
}

body.pol-services .pol-services-building-spotlight__eyebrow {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pol-terracotta);
  margin-bottom: 0.7rem;
}

body.pol-services .pol-services-building-spotlight__title {
  font-family: var(--pol-font-brand);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

body.pol-services .pol-services-building-spotlight__text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.78;
  color: color-mix(in srgb, var(--pol-text-light) 74%, transparent);
  max-width: 560px;
}

body.pol-services .pol-services-building-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

body.pol-services .pol-services-building-tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

body.pol-services .pol-services-building-tags span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--pol-text-light) 12%, transparent);
  color: var(--pol-text-light);
  border: 0.5px solid color-mix(in srgb, var(--pol-text-light) 24%, transparent);
}

/* -- Filters -- */
body.pol-services .pol-services-filters-wrap {
  background: color-mix(in srgb, var(--pol-sand) 85%, transparent);
  padding: 1.5rem 0 2.25rem;
  margin-top: 1rem;
  border-bottom: 0.5px solid var(--pol-border);
}

body.pol-services .pol-services-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  background: color-mix(in srgb, var(--pol-sand) 50%, white);
  padding: 1.35rem 1.6rem;
  border-radius: var(--pol-radius-md);
  border: 0.5px solid var(--pol-border);
  box-shadow: var(--pol-shadow-soft);
}

body.pol-services .pol-services-filter-field label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pol-navy);
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

body.pol-services .pol-services-filter-field input,
body.pol-services .pol-services-filter-field select {
  font-family: var(--pol-font-body);
  font-size: 0.85rem;
  padding: 9px 13px;
  border: 0.5px solid var(--pol-border);
  border-radius: var(--pol-radius-sm);
  background: var(--pol-sand);
  color: var(--pol-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.pol-services .pol-services-filter-field input:focus,
body.pol-services .pol-services-filter-field select:focus {
  outline: none;
  border-color: var(--pol-terracotta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pol-terracotta) 18%, transparent);
}

body.pol-services .pol-services-filter-reset {
  font-size: 0.8rem;
  color: var(--pol-text-muted);
  align-self: center;
  text-decoration: none;
}

body.pol-services .pol-services-filter-reset:hover {
  color: var(--pol-navy);
}

/* -- Service grid -- */
body.pol-services .pol-services-empty {
  text-align: center;
  padding: 4.5rem 2rem;
  color: var(--pol-text-muted);
  border: 0.5px solid var(--pol-border);
  border-radius: var(--pol-radius-lg);
  background:
    linear-gradient(145deg, rgba(245, 240, 228, 0.65) 0%, rgba(232, 223, 208, 0.9) 100%);
  box-shadow: var(--pol-shadow-soft);
}

body.pol-services .pol-services-empty-icon {
  font-family: var(--pol-font-brand);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--pol-terracotta);
}

body.pol-services .pol-services-empty-title {
  font-family: var(--pol-font-brand);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pol-navy);
  margin-bottom: 0.5rem;
}

body.pol-services .pol-services-empty p {
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto;
  color: var(--pol-text-secondary);
}

body.pol-services .pol-services-empty a {
  color: var(--pol-navy-soft);
}

body.pol-services .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

body.pol-services .services-grid > * {
  min-width: 0;
}

body.pol-services .service-card {
  position: relative;
  height: 268px;
  border-radius: var(--pol-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  text-decoration: none;
}

body.pol-services .service-card:focus-visible {
  outline: 2px solid var(--pol-terracotta);
  outline-offset: 3px;
}

body.pol-services .service-card:hover {
  box-shadow: var(--pol-shadow-hover);
  transform: translateY(-3px);
}

body.pol-services .service-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--pol-navy) 0%, var(--pol-navy-night) 100%);
}

body.pol-services .service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pol-services .service-card:hover img,
body.pol-services .service-card:focus-within img {
  transform: scale(1.06);
}

body.pol-services .service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--pol-navy-night) 92%, transparent) 0%, color-mix(in srgb, var(--pol-navy) 20%, transparent) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem 1.25rem;
  color: var(--pol-text-light);
  z-index: 1;
}

body.pol-services .service-card-overlay .service-num {
  font-family: var(--pol-font-brand);
  font-size: 2.1rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--pol-text-light) 42%, transparent);
  line-height: 1;
  margin: 0 0 0.35rem;
}

body.pol-services .service-card-overlay .service-name {
  font-family: var(--pol-font-brand);
  font-size: 1.38rem;
  font-weight: 400;
  color: var(--pol-text-light);
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

body.pol-services .service-card-overlay .service-desc {
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.5;
  color: color-mix(in srgb, var(--pol-text-light) 86%, transparent);
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.pol-services .service-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

body.pol-services .service-tag {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pol-text-light);
  background: color-mix(in srgb, var(--pol-text-light) 12%, transparent);
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  border: 0.5px solid color-mix(in srgb, var(--pol-text-light) 22%, transparent);
}

body.pol-services .service-card .btn-request {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

body.pol-services .service-card:hover .btn-request,
body.pol-services .service-card:focus-within .btn-request {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  body.pol-services .service-card .btn-request {
    opacity: 1;
    transform: none;
  }
}

/* -- Contact & supplier CTA -- */
body.pol-services .contact-section {
  background: linear-gradient(145deg, var(--pol-navy) 0%, var(--pol-navy-night) 100%);
  padding: 5.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  color: var(--pol-text-light);
}

body.pol-services .contact-title {
  font-family: var(--pol-font-brand);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--pol-text-light);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

body.pol-services .contact-sub {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: color-mix(in srgb, var(--pol-text-light) 68%, transparent);
}

body.pol-services .pol-services-fornitore-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--pol-navy-night) 88%, var(--pol-navy)) 0%, var(--pol-navy-night) 100%);
  padding: 4.5rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 0.5px solid color-mix(in srgb, var(--pol-text-light) 10%, transparent);
}

body.pol-services .pol-services-fornitore-cta h2 {
  font-family: var(--pol-font-brand);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--pol-text-light);
  margin-bottom: 0.5rem;
}

body.pol-services .pol-services-fornitore-cta p {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--pol-text-light) 72%, transparent);
  max-width: 550px;
  line-height: 1.75;
}

/* -- Footer (scoped; mobile global fix deferred) -- */
body.pol-services footer {
  background: var(--pol-navy-night);
  color: var(--pol-bg-card);
  padding: 4rem 5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

body.pol-services .footer-brand-name {
  font-family: var(--pol-font-brand);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--pol-gold-micro);
  margin-bottom: 0.5rem;
}

body.pol-services .footer-brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--pol-sand) 88%, transparent);
  margin-bottom: 1.5rem;
}

body.pol-services .footer-desc {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.85;
  color: color-mix(in srgb, var(--pol-sand) 88%, transparent);
}

body.pol-services .footer-col-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pol-terracotta);
  margin-bottom: 1.2rem;
}

body.pol-services .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

body.pol-services .footer-links a {
  font-size: 0.8rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--pol-sand) 90%, transparent);
  text-decoration: none;
  transition: color 0.2s;
}

body.pol-services .footer-links a:hover {
  color: var(--pol-sand);
}

body.pol-services .footer-links a.footer-link-accent {
  color: var(--pol-gold-micro);
  font-weight: 500;
}

body.pol-services .footer-bottom {
  background: var(--pol-navy-night);
  border-top: 0.5px solid color-mix(in srgb, var(--pol-sand) 12%, transparent);
  padding: 1.5rem 5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
}

body.pol-services .footer-copy {
  font-size: 0.7rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--pol-sand) 85%, transparent);
}

/* -- Assist widget -- */
body.pol-services .pol-main-assist__msg--bot {
  color: var(--pol-text-primary);
}

body.pol-services .pol-main-assist__fab,
body.pol-services .pol-main-assist__msg--user {
  color: var(--pol-text-light);
}

/* -- Responsive -- */
@media (max-width: 900px) {
  body.pol-services .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body.pol-services .contact-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  body.pol-services footer {
    grid-template-columns: 1fr 1fr;
  }
  body.pol-services .pol-services-hub-cards,
  body.pol-services .pol-services-hub-agents {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body.pol-services .pol-services-hub-section {
    padding: 2rem 1.35rem 0;
  }
  body.pol-services .pol-services-hub-cards,
  body.pol-services .pol-services-hub-agents {
    grid-template-columns: 1fr;
  }
  body.pol-services #pol-services-hero .page-hero.hero-section {
    padding: 2.5rem 1.35rem 3rem;
    min-height: 58vh;
  }
  body.pol-services #pol-services-hero .page-hero-content {
    padding: 1.75rem 1.5rem;
  }
  body.pol-services .section,
  body.pol-services .contact-section,
  body.pol-services .pol-services-fornitore-cta,
  body.pol-services footer,
  body.pol-services .footer-bottom {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
  body.pol-services .pol-services-building-spotlight {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.35rem;
  }
  body.pol-services .pol-services-building-spotlight__actions {
    justify-content: flex-start;
  }
  body.pol-services .services-grid {
    grid-template-columns: 1fr;
  }
  body.pol-services footer {
    grid-template-columns: 1fr;
  }
  body.pol-services .section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
}
