/*
Theme Name: RadiCER
Theme URI: https://www.radicer.it/
Author: Renewable Energy Foundation ETS
Description: Tema WordPress RadiCER con contenuti CER gestibili dal pannello.
Version: 1.3.34
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: radicer
*/

/* ========================================================================== 
   RadiCER - Renewable Energy Foundation ETS
   Design System & Modern Layout Styles
   ========================================================================== */


:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --color-primary: #15803d;         /* Vibrant leaf green */
  --color-primary-dark: #166534;    /* Deep forest green */
  --color-primary-light: #22c55e;   /* Bright emerald green */
  --color-primary-soft: #f0fdf4;    /* Soft green wash */
  
  --color-navy: #0f172a;           /* Deep dark slate/navy */
  --color-navy-light: #1e293b;     /* Navy card background */
  --color-navy-muted: #334155;     /* Navy secondary text */
  
  --color-accent-amber: #f59e0b;   /* Sun solar amber */
  --color-accent-cyan: #06b6d4;    /* Wind/sky cyan */
  
  --bg-page: #f8fafc;              /* Crisp clean light page background */
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-green: rgba(34, 197, 94, 0.3);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 30px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-glow: 0 0 30px rgba(34, 197, 94, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  word-spacing: 0.08em;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* Typography Utilities */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-primary-soft);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 18px;
  letter-spacing: normal;
}

.section-title span.highlight {
  color: var(--color-primary);
  position: relative;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

.text-center {
  text-align: center;
}

.center-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-navy);
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

/* Keep the fixed navigation below the WordPress toolbar while signed in. */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-nav { top: 46px; }
}

.site-nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.nav-brand-text span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-navy);
}

/* ==========================================================================
   HERO SECTION WITH INTERACTIVE MOUSE CURSOR REVEAL
   ========================================================================== */
.hero-reveal-container {
  position: relative;
  min-height: 90vh;
  margin-top: 80px;
  background-color: #0b1322;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Layer 1: Bottom Image Layer (The Hidden Solar/Green Landscape Revealed) */
.reveal-layer-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.15)), url('assets/images/featured-image-7.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Layer 2: Top Mask Layer (Initial/Dusk stylized environment) */
.reveal-layer-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.80) 100%), url('assets/images/ChatGPT-Image-28-apr-2026-13_06_58.webp');
  background-size: cover;
  background-position: center;
  z-index: 2;
  /* Masked dynamically by reveal.js */
  pointer-events: none;
}

/* Reveal Halo / Lens Glow follower */
.reveal-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(74, 222, 128, 0.85);
  box-shadow: 0 0 50px rgba(74, 222, 128, 0.45), inset 0 0 25px rgba(74, 222, 128, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reveal-halo.active {
  opacity: 1;
}

.reveal-lens-badge {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(74, 222, 128, 0.4);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Foreground Content */
.hero-content {
  position: relative;
  z-index: 10;
  color: #ffffff;
  padding: 80px 0;
  max-width: 800px;
  pointer-events: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #86efac;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: normal;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

.hero-interactive-tip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #cbd5e1;
  border: 1px dashed rgba(74, 222, 128, 0.4);
}

.hero-interactive-tip svg {
  color: #4ade80;
  animation: floatHand 1.5s ease-in-out infinite alternate;
}

@keyframes floatHand {
  0% { transform: translateX(0); }
  100% { transform: translateX(6px); }
}

/* Quick Metrics Strip */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.metric-val span {
  color: #4ade80;
}

.metric-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   STRISCIA SCORREVOLE A LOOP CONTINUO (INFINITE LOGO MARQUEE)
   ========================================================================== */
.logos-marquee-section {
  background: #ffffff;
  padding: 42px 0 46px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.marquee-header {
  margin-bottom: 24px;
}

.marquee-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid var(--border-green);
}

.marquee-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0;
  /* Sfumatura morbida ai bordi sinistro e destro */
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 22s linear infinite;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}

.marquee-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
  height: 80px;
  min-width: 220px;
  cursor: pointer;
}

.marquee-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-light);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.15);
}

.marquee-logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.marquee-card:hover .marquee-logo-img {
  transform: scale(1.06);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

@media (max-width: 768px) {
  .logos-marquee-section {
    padding: 32px 0 36px;
  }
  
  .marquee-group {
    gap: 24px;
    padding-right: 24px;
  }
  
  .marquee-card {
    height: 70px;
    min-width: 180px;
    padding: 10px 18px;
  }
  
  .marquee-logo-img {
    height: 44px;
  }
}

/* ==========================================================================
   CER OVERVIEW & MISSION SECTION
   ========================================================================== */
.cer-mission {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mission-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.mission-image-wrap:hover .mission-img {
  transform: scale(1.03);
}

.mission-card-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.mission-card-badge h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.mission-card-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong {
  color: var(--color-navy);
}

/* ==========================================================================
   CER PROFILES (PRODUCER, CONSUMER, PROSUMER)
   ========================================================================== */
.profiles-section {
  background: var(--bg-page);
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.profile-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--border-subtle);
  transition: background var(--transition-fast);
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-green);
}

.profile-card.featured {
  border: 2px solid var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}

.profile-card.featured::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.profile-badge-featured {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.profile-card.producer .profile-icon {
  background: #fef3c7;
  color: #d97706;
}

.profile-card.consumer .profile-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.profile-card.prosumer .profile-icon {
  background: #dcfce7;
  color: #16a34a;
}

.profile-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.profile-card.producer .profile-role { color: #d97706; }
.profile-card.consumer .profile-role { color: #0284c7; }
.profile-card.prosumer .profile-role { color: #16a34a; }

.profile-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.profile-benefits {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.profile-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-navy-muted);
}

.profile-benefit-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   MAP & CABINA PRIMARIA POD FINDER
   ========================================================================== */
.map-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.map-info-box {
  background: var(--bg-page);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.pod-helper-card {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.pod-helper-card h4 {
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pod-helper-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-iframe-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.map-card-header {
  padding: 16px 24px;
  background: var(--color-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-card-header a {
  font-size: 0.8rem;
  color: #4ade80;
  text-decoration: underline;
}

.map-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
}

.map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   JOIN / CONTACT FORM SECTION
   ========================================================================== */
.contact-section {
  background: linear-gradient(135deg, #091322 0%, #162438 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0) 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.contact-info .section-title {
  color: #ffffff;
}

.contact-info .section-subtitle {
  color: #94a3b8;
  margin-bottom: 36px;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.direct-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.direct-text span {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.direct-text strong {
  font-size: 1.05rem;
  color: #ffffff;
}

/* Modern Glass Form */
.modern-form-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.98rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: #4ade80;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: #0f172a;
  color: #ffffff;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  cursor: pointer;
}

.form-checkbox a {
  color: #4ade80;
  text-decoration: underline;
}

/* ==========================================================================
   NEWS & UPDATES SECTION
   ========================================================================== */
.news-section {
  background: var(--bg-page);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-category {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.news-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-link:hover {
  gap: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  display: flow-root;
  background: #090f1d;
  color: #94a3b8;
  padding-top: 80px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-nav a:hover {
  color: #4ade80;
}

.footer-bottom {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .mission-grid,
  .map-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .profiles-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
  
  .hero-reveal-container {
    min-height: 80vh;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .profiles-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .modern-form-card {
    padding: 24px;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .reveal-halo {
    display: none;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
    z-index: 1001;
  }

  .hero-counters {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .pilastri-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   HERO STAT COUNTER CARDS (4 METRICHE PERSONALIZZABILI)
   ========================================================================== */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}

.hero-counter-card {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.hero-counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-counter-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.22);
}

.hero-counter-card:hover::before {
  opacity: 1;
}

.hero-counter-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.hero-counter-card:hover .hero-counter-icon {
  transform: scale(1.1);
  background: rgba(34, 197, 94, 0.26);
}

.hero-counter-number {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}

.hero-counter-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.35;
  max-width: 175px;
}

@media (max-width: 1024px) {
  .hero-counters {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   SEZIONE "COS'È RADICER" & I 3 PILASTRI
   ========================================================================== */
.cos-e-radicer-section {
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.pilastri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.pilastro-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pilastro-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: #86efac;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.pilastro-featured {
  background: #ffffff;
  border-color: #86efac;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.09);
  position: relative;
}

.pilastro-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

.pilastro-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.pilastro-card:hover .pilastro-icon-wrap {
  background: #16a34a;
  color: #ffffff;
  transform: rotate(4deg) scale(1.05);
}

.pilastro-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.pilastro-desc {
  font-size: 0.95rem;
  color: var(--color-navy-muted);
  line-height: 1.7;
  flex-grow: 1;
}

/* ==========================================================================
   CER DIRECTORY & CARDS
   ========================================================================== */
.cer-directory-section {
  background: #f8fafc;
  padding: 80px 0;
}

.cer-filter-bar {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cer-search-input {
  flex: 1 1 280px;
  padding: 12px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.cer-search-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.cer-filter-select {
  padding: 12px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #ffffff;
  min-width: 180px;
  outline: none;
}

.cer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.cer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
}

.cer-card:hover {
  transform: translateY(-4px);
  border-color: #22c55e;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cer-badge-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cer-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.cer-card-codes {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cer-code-pill {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.cer-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
  text-align: center;
}

.cer-metric-box .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.cer-metric-box .val.co2-val {
  color: #16a34a;
}

.cer-metric-box .lbl {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
}

.cer-comuni-preview {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.cer-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #16a34a;
}



/* WordPress presentation while preserving the original RadiCER layout. */
.site-main { min-height: 40vh; }
.footer-logo-img { height: 38px; width: auto; max-width: 240px; object-fit: contain; }
.entry-content { color: var(--text-main); line-height: 1.75; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content img { border-radius: var(--radius-md); }
.cer-location-line { font-size: .8rem; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.cer-card[hidden] { display: none !important; }

/* The brand mark and menu keep the desktop alignment of the original page. */
.nav-container { gap: 14px; }
.nav-brand { flex: 0 0 auto; gap: 0; }
.nav-logo-img { display: block; width: auto; height: 44px; max-width: 210px; object-fit: contain; }
.nav-brand-text { display: none; }
.nav-container > nav { flex: 1 1 auto; min-width: 0; }
.nav-links { flex-wrap: nowrap; justify-content: center; gap: clamp(7px,.65vw,13px); }
.nav-links > li { flex: 0 0 auto; white-space: nowrap; }
.nav-links > li > a { display: inline-block; white-space: nowrap; font-size: clamp(.76rem,.78vw,.9rem); }
.nav-cta { flex: 0 0 auto; gap: 8px; }
.nav-cta > .btn { white-space: nowrap; padding: 11px 15px; font-size: .86rem; }

.radicer-home-content { width: 100%; --wp--style--block-gap: 0; }
.radicer-home-content .wp-block-group { box-sizing: border-box; }
/* WordPress wraps core Group contents in an inner container. Let the original
   layout rules see the section children directly (grid, flex, and positioning). */
.radicer-home-content .wp-block-group > .wp-block-group__inner-container,
.site-footer .radicer-footer-custom .wp-block-group > .wp-block-group__inner-container { display: contents; }
.radicer-home-content .wp-block-heading,
.radicer-home-content .wp-block-paragraph { margin-block-start: 0; }
.radicer-home-content .wp-block-image { max-width: none; }
.radicer-home-content .wp-block-buttons { align-items: center; flex-wrap: wrap; gap: 18px; margin: 0; }
.radicer-home-content .wp-block-buttons > .wp-block-button { margin: 0; }
.radicer-home-content .wp-block-button.radicer-button,
.site-footer .wp-block-button.radicer-footer-button { display: inline-flex; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; }
.radicer-home-content .wp-block-button.radicer-button > .wp-block-button__link,
.site-footer .wp-block-button.radicer-footer-button > .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border: 2px solid transparent; border-radius: var(--radius-full); font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; transition: all var(--transition-fast); }
.radicer-home-content .wp-block-button.radicer-button.btn-primary > .wp-block-button__link,
.site-footer .wp-block-button.radicer-footer-button.btn-primary > .wp-block-button__link { color: #fff; background: linear-gradient(135deg,#16a34a 0%,#15803d 100%); box-shadow: 0 4px 14px rgba(22,163,74,.35); }
.radicer-home-content .wp-block-button.radicer-button.btn-primary:hover > .wp-block-button__link,
.site-footer .wp-block-button.radicer-footer-button.btn-primary:hover > .wp-block-button__link { background: linear-gradient(135deg,#15803d 0%,#166534 100%); box-shadow: 0 6px 20px rgba(22,163,74,.45); transform: translateY(-2px); }
.radicer-home-content .wp-block-button.radicer-button.btn-secondary > .wp-block-button__link { color: var(--color-navy); background: #fff; border-color: rgba(203,213,225,.8); box-shadow: var(--shadow-sm); }
.radicer-home-content .wp-block-button.radicer-button.btn-secondary:hover > .wp-block-button__link { background: var(--bg-subtle); border-color: var(--text-muted); transform: translateY(-2px); }
.radicer-home-content .wp-block-button.radicer-button.btn-light > .wp-block-button__link { color: var(--color-navy); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.radicer-home-content .wp-block-button.radicer-button.btn-light:hover > .wp-block-button__link { background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.radicer-home-content .hero-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 48px; }
.radicer-home-content .hero-content { margin-left: auto; margin-right: auto; }
.radicer-home-content .marquee-header > .container > .wp-block-paragraph { margin: 0; }
.radicer-home-content .marquee-group-duplicate .wp-block-image img { pointer-events: none; }
.radicer-home-content .marquee-card { margin: 0; }
.radicer-home-content .marquee-card > .wp-block-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.radicer-home-content .marquee-card > .wp-block-image img { display: block; width: auto; height: 52px; max-width: 200px; object-fit: contain; transition: transform var(--transition-fast); }
.radicer-home-content .marquee-card:hover > .wp-block-image img { transform: scale(1.06); }
.radicer-home-content .marquee-track { gap: 0; }
.radicer-home-content .pilastri-grid,
.radicer-home-content .profiles-grid,
.radicer-home-content .mission-grid,
.radicer-home-content .map-layout,
.radicer-home-content .contact-grid,
.radicer-home-content .news-grid { display: grid; }
.radicer-home-content .pilastri-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.radicer-home-content .profiles-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.radicer-home-content .mission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px; align-items: center; }
.radicer-home-content .map-layout { grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.radicer-home-content .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.radicer-home-content .news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.radicer-home-content .profile-card { height: 100%; }
.radicer-home-content .profile-card { cursor: pointer; }
.radicer-home-content .profile-card > .profile-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
  color: transparent;
  text-decoration: none;
}
.radicer-home-content .profile-card .wp-block-button { position: relative; z-index: 2; }
.radicer-home-content .profile-card > .profile-card-overlay:focus-visible { outline: 3px solid #16a34a; outline-offset: -5px; }
.radicer-home-content .profile-card .wp-block-buttons { margin-top: auto; }
.radicer-home-content .mission-image-wrap { width: 100%; }
.radicer-home-content .mission-image-wrap > .wp-block-image { width: 100%; margin: 0; }
.radicer-home-content .mission-image-wrap > .wp-block-image img { display: block; width: 100%; height: 460px; object-fit: cover; transition: transform var(--transition-slow); }
.radicer-home-content .mission-image-wrap:hover > .wp-block-image img { transform: scale(1.03); }
.radicer-home-content .mission-card-badge { z-index: 1; }
.radicer-home-content .news-img-wrap > .wp-block-image { width: 100%; height: 100%; margin: 0; }

/* CER directory controls and full-card navigation */
.directory-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.directory-controls .search-wrapper { min-width: 0; }
.directory-controls .cer-search-input,
.directory-controls .cer-filter-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 52px;
}
.directory-controls .results-label {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  line-height: 1.5;
}
.directory-controls .results-label strong { color: var(--color-navy); }
.cer-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.cer-card { position: relative; min-width: 0; }
.cer-card-link {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  border-radius: inherit;
  color: transparent;
  text-decoration: none;
}
.cer-card-link:focus-visible {
  outline: 3px solid #16a34a;
  outline-offset: 4px;
}
.cer-card-title { line-height: 1.3; overflow-wrap: anywhere; }
.cer-card-footer { margin-top: auto; padding-top: 18px; }

@media (max-width: 900px) {
  .directory-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
  }
  .directory-controls .search-wrapper { grid-column: 1 / -1; }
  .cer-grid { gap: 20px; }
}

@media (max-width: 640px) {
  .cer-hero-section { padding: 112px 0 44px; }
  .cer-hero-section .hero-title { line-height: 1.12; }
  .cer-hero-section #configurationDescription { font-size: 1rem !important; }
  .cer-directory-section { padding: 48px 0; }
  .directory-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 14px;
  }
  .directory-controls .search-wrapper,
  .directory-controls .results-label { grid-column: 1; }
  .directory-controls .results-label { padding-top: 10px; }
  .cer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cer-card { padding: 20px; border-radius: 14px; }
  .cer-card-codes { flex-wrap: wrap; gap: 8px; }
  .cer-metrics-row { gap: 8px; }
  .cer-metric-box { min-width: 0; padding: 12px 8px; }
  .cer-comuni-preview { line-height: 1.6; }
  .radicer-home-content .hero-actions { flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
  .radicer-home-content .profiles-grid,
  .radicer-home-content .news-grid,
  .radicer-home-content .pilastri-grid { gap: 18px; }
  .radicer-home-content .profile-card,
  .radicer-home-content .news-card,
  .radicer-home-content .pilastro-card { padding: 24px; }
  .radicer-home-content .section-title { line-height: 1.16; }
  .radicer-home-content .section-subtitle { margin-bottom: 28px; line-height: 1.65; }
}
.radicer-home-content .news-img-wrap > .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.radicer-home-content .news-card:hover .news-img-wrap > .wp-block-image img { transform: scale(1.05); }
.radicer-home-content .news-link-block { margin: 0; }
.radicer-home-content .news-link-block a { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--color-primary); }
.radicer-home-content .news-link-block a:hover { gap: 10px; }
.radicer-home-content .pod-helper-title,
.radicer-home-content .map-card-title { display: flex; align-items: center; gap: 8px; }
.radicer-home-content .pod-helper-title { margin: 0 0 8px; }
.radicer-home-content .pod-helper-title svg { width: 20px; height: 20px; flex: 0 0 auto; }
.radicer-home-content .pod-helper-title-text { margin: 0; font-size: 1rem; color: var(--color-navy); }
.radicer-home-content .map-card-title { flex: 1 1 auto; min-width: 0; }
.radicer-home-content .map-card-title svg { flex: 0 0 auto; }
.radicer-home-content .map-card-title-text { margin: 0; font-size: .95rem; font-weight: 600; color: #fff; }
.radicer-home-content .map-card-header > .radicer-inline-link-block { flex: 0 0 auto; margin: 0; }
.radicer-home-content .map-card-header > .radicer-inline-link-block a { font-size: .8rem; color: #4ade80; text-decoration: underline; }
.radicer-home-content .map-iframe-wrapper iframe { display: block; }
.radicer-home-content .map-iframe-wrapper .wp-block-html { height: 100%; }
.radicer-home-content .radicer-inline-link-block { margin: 0; }
.radicer-home-content .hero-interactive-tip > .wp-block-paragraph { margin: 0; }
.radicer-home-content .hero-interactive-tip { width: fit-content; }
.radicer-home-content .radicer-about-section { background: #fff; }
.site-footer .radicer-footer-custom { color: #cbd5e1; }
.site-footer .radicer-footer-custom .footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin: 0 0 60px; }
.site-footer .radicer-footer-custom > .wp-block-columns { margin-bottom: 0; }
.site-footer .radicer-footer-custom .wp-block-column { min-width: 0; }
.site-footer .radicer-footer-custom .footer-top-grid > .wp-block-column { flex-basis: auto; width: auto; margin: 0; }
.site-footer .radicer-footer-custom .wp-block-heading { color: #fff; }
.site-footer .radicer-footer-custom a { color: #e2e8f0; }
.site-footer .radicer-footer-custom > .radicer-footer-widget { margin: 0; }
.site-footer .radicer-footer-custom .radicer-footer-logo { width: auto; margin: 0 0 16px; }
.site-footer .radicer-footer-custom .radicer-footer-logo img { display: block; height: 38px; width: auto; max-width: 240px; object-fit: contain; }
.site-footer .radicer-footer-custom .footer-brand p { margin-bottom: 20px; }
.site-footer .radicer-footer-custom .footer-contact-intro { font-size: .9rem; margin-bottom: 12px; }
.site-footer .radicer-footer-custom .footer-contact-email { font-size: .95rem; color: #fff; font-weight: 600; margin-bottom: 0; }
.site-footer .radicer-footer-custom .footer-contact-action { margin-top: 20px; }
.site-footer .radicer-footer-custom .radicer-footer-button > .wp-block-button__link { padding: 10px 20px; font-size: .85rem; }
.site-footer .radicer-footer-custom .footer-bottom { gap: 24px; }
.site-footer .radicer-footer-custom .footer-bottom > .wp-block-shortcode { margin: 0; }
.site-footer .radicer-footer-custom .footer-bottom p { margin: 0; }
.site-footer .radicer-footer-custom + .footer-top-grid { margin-top: 24px; }

/* The existing Contact Form 7 form follows the original dark glass form. */
.modern-form-card .wpcf7 form { display: block; }
.modern-form-card .wpcf7 p { margin: 0 0 20px; }
.modern-form-card .wpcf7 label { display: block; font-size: .88rem; font-weight: 600; color: #e2e8f0; margin-bottom: 8px; }
.modern-form-card .wpcf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.modern-form-card .wpcf7 input[type="text"],
.modern-form-card .wpcf7 input[type="email"],
.modern-form-card .wpcf7 input[type="tel"],
.modern-form-card .wpcf7 input[type="number"],
.modern-form-card .wpcf7 select,
.modern-form-card .wpcf7 textarea { display: block; width: 100%; min-height: 48px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: .98rem; transition: all var(--transition-fast); }
.modern-form-card .wpcf7 input::placeholder,
.modern-form-card .wpcf7 textarea::placeholder { color: rgba(255,255,255,.4); }
.modern-form-card .wpcf7 input:focus,
.modern-form-card .wpcf7 select:focus,
.modern-form-card .wpcf7 textarea:focus { outline: none; border-color: #4ade80; background: rgba(255,255,255,.12); box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.modern-form-card .wpcf7 select { cursor: pointer; }
.modern-form-card .wpcf7 select option { background: #0f172a; color: #fff; }
.modern-form-card .wpcf7 textarea { min-height: 120px; resize: vertical; }
.modern-form-card .wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.modern-form-card .wpcf7 .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 24px; color: #cbd5e1; font-size: .85rem; font-weight: 400; }
.modern-form-card .wpcf7 .wpcf7-acceptance input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: #16a34a; }
.modern-form-card .wpcf7 .wpcf7-acceptance a { color: #4ade80; text-decoration: underline; }
.modern-form-card .wpcf7 input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 14px 24px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#16a34a 0%,#15803d 100%); color: #fff; font-family: inherit; font-weight: 700; cursor: pointer; }
.modern-form-card .wpcf7 .wpcf7-response-output { margin: 16px 0 0; padding: 12px; border-radius: 8px; color: #fff; }

/* RadiCER branding and layout for the homepage Contact Form 7 form. */
.modern-form-card .wpcf7 .radicer-form { color: #fff; }
.modern-form-card .wpcf7 .radicer-form .radicer-field { min-width: 0; margin-bottom: 20px; }
.modern-form-card .wpcf7 .radicer-form .radicer-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.modern-form-card .wpcf7 .radicer-form .radicer-field label { display: block; margin-bottom: 8px; color: #f8fafc; font-weight: 600; }
.modern-form-card .wpcf7 .radicer-form .radicer-field input,
.modern-form-card .wpcf7 .radicer-form .radicer-field select,
.modern-form-card .wpcf7 .radicer-form .radicer-field textarea { width: 100%; border-radius: 10px; }
.modern-form-card .wpcf7 .radicer-form .radicer-field select { color-scheme: dark; }
.modern-form-card .wpcf7 .radicer-form .radicer-privacy { margin: 8px 0 24px; color: #e2e8f0; line-height: 1.55; }
.modern-form-card .wpcf7 .radicer-form .radicer-privacy .wpcf7-list-item { margin: 0; }
.modern-form-card .wpcf7 .radicer-form .radicer-privacy .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; }
.modern-form-card .wpcf7 .radicer-form .radicer-privacy input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #22c55e; }
.modern-form-card .wpcf7 .radicer-form .radicer-privacy a { color: #86efac; text-decoration: underline; }
.modern-form-card .wpcf7 .radicer-form .radicer-submit input[type="submit"] { border-radius: 999px; }
@media (max-width: 700px) {
  .modern-form-card .wpcf7 .radicer-form .radicer-field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 1100px) {
  .nav-container { position: relative; flex-wrap: wrap; gap: 8px 14px; }
  .nav-container > nav { order: 3; flex: 0 0 100%; }
  .nav-cta { margin-left: auto; }
  .site-nav .nav-links { display: none; }
  .site-nav .mobile-toggle { display: block; }
  .site-nav .nav-links.active { display: flex !important; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 24px; gap: 12px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.12); border-bottom: 1px solid #e2e8f0; z-index: 1001; }
}

@media (max-width: 1024px) {
  .site-footer .radicer-footer-custom .footer-top-grid { grid-template-columns: 1fr 1fr; }
  .radicer-home-content .mission-grid,
  .radicer-home-content .map-layout,
  .radicer-home-content .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-footer .radicer-footer-custom .footer-top-grid { grid-template-columns: 1fr; gap: 32px; }
  .radicer-home-content .pilastri-grid { grid-template-columns: 1fr; }
  .radicer-home-content .map-layout,
  .radicer-home-content .mission-grid,
  .radicer-home-content .contact-grid { gap: 40px; }
  .radicer-home-content .map-card-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .radicer-home-content .marquee-group { gap: 24px; padding-right: 24px; }
  .radicer-home-content .marquee-card { height: 70px; min-width: 180px; padding: 10px 18px; }
  .radicer-home-content .marquee-card > .wp-block-image img { height: 44px; }
  .site-footer .radicer-footer-custom .footer-bottom { align-items: center; flex-direction: column; gap: 12px; text-align: center; }
}

/* Keep Gutenberg's Group wrapper from collapsing the desktop profile grid. */
.radicer-home-content .profiles-grid > .wp-block-group__inner-container { display: contents !important; }
.radicer-home-content .profiles-grid > .wp-block-group__inner-container > .profile-card { min-width: 0; }

/* Center the hero text and keep a safe gutter on every screen size. */
.radicer-home-content .hero-content {
  box-sizing: border-box;
  width: calc(100% - 64px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .radicer-home-content .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .radicer-home-content .hero-reveal-container,
  .radicer-home-content.hero-reveal-container {
    min-height: 0;
    align-items: flex-start;
    padding-bottom: 28px;
  }
  .radicer-home-content .hero-content {
    width: calc(100% - 40px);
    max-width: 640px;
    padding: 52px 0 24px;
  }
  .radicer-home-content .hero-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.1;
    overflow-wrap: normal;
  }
  .radicer-home-content .hero-desc {
    max-width: none;
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.65;
  }
  .radicer-home-content .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
  }
  .radicer-home-content .hero-actions > .wp-block-button,
  .radicer-home-content .hero-actions > .radicer-button,
  .radicer-home-content .hero-actions .wp-block-button__link { box-sizing: border-box; width: 100%; }
  .radicer-home-content .hero-interactive-tip {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 10px 12px;
    line-height: 1.45;
  }
  .radicer-home-content .hero-counters {
    width: 100%;
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    margin: 28px auto 0;
  }
  .radicer-home-content .hero-counter-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
  }
  .radicer-home-content .hero-counter-number {
    max-width: 100%;
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1.12;
    white-space: nowrap;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
  }
  .radicer-home-content .hero-counter-label {
    width: 100%;
    max-width: none;
    font-size: .9rem;
    line-height: 1.4;
  }
  .radicer-home-content .profiles-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Keep community logo cards compact and size the image inside Gutenberg wrappers. */
.radicer-home-content .marquee-group { display: flex; align-items: center; flex: 0 0 auto; gap: 40px; padding-right: 40px; }
.radicer-home-content .marquee-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 220px;
  align-items: center;
  justify-content: center;
  width: 220px;
  max-width: 220px;
  min-width: 220px;
  height: 80px;
  padding: 14px 24px;
}
.radicer-home-content .marquee-card > .wp-block-group__inner-container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
}
.radicer-home-content .marquee-card .wp-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.radicer-home-content .marquee-card .wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 52px;
  max-height: 100%;
  object-fit: contain;
}
.radicer-home-content .marquee-card-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  border-radius: inherit;
  color: transparent;
  text-decoration: none;
}
.radicer-home-content .marquee-card-overlay:focus-visible { outline: 3px solid #16a34a; outline-offset: 3px; }

@media (max-width: 768px) {
  .radicer-home-content .marquee-group { gap: 24px; padding-right: 24px; }
  .radicer-home-content .marquee-card {
    flex-basis: 180px;
    width: 180px;
    max-width: 180px;
    min-width: 180px;
    height: 70px;
    padding: 10px 18px;
  }
  .radicer-home-content .marquee-card .wp-block-image img { height: 44px; }
}

/* News cards from the editable homepage blocks: keep the image edge-to-edge and
   let the grid collapse cleanly instead of retaining three narrow columns. */
@media (max-width: 1024px) {
  .radicer-home-content .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .radicer-home-content .news-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .radicer-home-content .news-card { min-width: 0; padding: 0; }
  .radicer-home-content .news-img-wrap { height: auto; aspect-ratio: 16 / 9; }
  .radicer-home-content .news-body { min-width: 0; padding: 20px; }
  .radicer-home-content .news-title,
  .radicer-home-content .news-excerpt { overflow-wrap: anywhere; }
}

/* News archive and article detail */
.news-archive-header { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.news-archive-header .section-badge { margin-bottom: 14px; }
.news-archive-header .section-title { margin-bottom: 12px; }
.news-archive-header .section-subtitle { margin: 0; color: var(--text-muted); }
.news-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 28px; }
.news-archive-grid .news-card { min-width: 0; height: 100%; }
.news-card-image-link { display: block; color: inherit; }
.news-archive-grid .news-img-wrap { height: auto; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e2e8f0, #f0fdf4); }
.news-archive-grid .news-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-img-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #15803d; font-size: 1.5rem; font-weight: 800; }
.news-archive-grid .news-body { min-width: 0; padding: 22px 24px 24px; }
.news-archive-grid .news-meta { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.news-archive-grid .news-category { font-size: .72rem; letter-spacing: .035em; }
.news-meta-separator { color: #94a3b8; }
.news-archive-grid .news-title { margin-bottom: 10px; font-size: 1.08rem; line-height: 1.42; overflow-wrap: anywhere; }
.news-archive-grid .news-title a:hover { color: var(--color-primary); }
.news-archive-grid .news-excerpt { display: -webkit-box; overflow: hidden; margin-bottom: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-archive-grid .news-link { margin-top: auto; }
.news-empty-state { padding: 30px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; text-align: center; color: var(--text-muted); }
.news-pagination { margin-top: 42px; }
.news-pagination .nav-links,
.news-pagination .page-numbers { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.news-pagination .page-numbers { margin: 0; padding: 0; }
.news-pagination a,
.news-pagination span.page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid #dbe3ec; border-radius: 10px; background: #fff; color: var(--color-navy); }
.news-pagination .current { border-color: var(--color-primary) !important; background: var(--color-primary) !important; color: #fff !important; }
.article-container { max-width: 980px; }
.article-single { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.article-header { padding: clamp(24px, 5vw, 52px) clamp(22px, 6vw, 64px) 26px; }
.article-breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; color: var(--text-muted); font-size: .88rem; }
.article-breadcrumbs a:hover { color: var(--color-primary); }
.article-meta { margin: 0 0 14px; }
.article-title { max-width: 820px; margin: 0; color: var(--color-navy); font-size: clamp(1.9rem, 4.6vw, 3.15rem); line-height: 1.16; letter-spacing: normal; overflow-wrap: anywhere; }
.article-share { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.article-share-label { margin-right: 4px; color: var(--text-muted); font-size: .88rem; font-weight: 700; }
.article-share a,
.article-copy-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid #dbe3ec; border-radius: 999px; background: #fff; color: var(--color-navy); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.article-share a:hover,
.article-copy-link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.article-share-feedback { min-width: 72px; color: var(--color-primary); font-size: .8rem; }
.article-gallery { margin: 0 clamp(16px, 3vw, 30px); }
.article-gallery-stage { position: relative; overflow: hidden; border-radius: 16px; background: #e2e8f0; }
.article-gallery-slide { margin: 0; aspect-ratio: 16 / 9; }
.article-gallery-slide[hidden] { display: none !important; }
.article-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; }
.article-gallery-arrow { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #dbe3ec; border-radius: 50%; background: #fff; color: var(--color-navy); font-size: 1.1rem; cursor: pointer; }
.article-gallery-arrow:hover { border-color: var(--color-primary); color: var(--color-primary); }
.article-gallery-dots { display: flex; align-items: center; gap: 8px; }
.article-gallery-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #cbd5e1; cursor: pointer; }
.article-gallery-dots button[aria-current="true"] { width: 24px; background: var(--color-primary); }
.article-gallery-count { color: var(--text-muted); font-size: .8rem; }
.article-content { max-width: 790px; margin: 0 auto; padding: 26px clamp(22px, 6vw, 64px) 38px; color: #334155; font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.article-content > * + * { margin-top: 1.15em; }
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--color-navy); line-height: 1.3; }
.article-content img,
.article-content figure { max-width: 100%; height: auto; border-radius: 12px; }
.article-content iframe,
.article-content video { max-width: 100%; }
.article-content ul,
.article-content ol { padding-left: 1.5em; }
.article-content a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-footer { padding: 0 clamp(22px, 6vw, 64px) 38px; }

@media (max-width: 900px) {
  .news-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
  .news-archive-header { margin-bottom: 28px; }
  .news-archive-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .news-archive-grid .news-body { padding: 19px 18px 20px; }
  .news-archive-grid .news-title { font-size: 1.05rem; }
  .article-single { border-radius: 16px; }
  .article-header { padding: 24px 20px 20px; }
  .article-breadcrumbs { margin-bottom: 18px; }
  .article-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .article-share { gap: 8px; }
  .article-share-label { width: 100%; }
  .article-share a,
  .article-copy-link { min-height: 40px; padding: 8px 11px; }
  .article-gallery { margin: 0 12px; }
  .article-gallery-stage { border-radius: 12px; }
  .article-gallery-slide { aspect-ratio: 4 / 3; }
  .article-gallery-controls { gap: 10px; }
  .article-content { padding: 22px 20px 30px; font-size: .98rem; line-height: 1.75; }
  .article-footer { padding: 0 20px 26px; }
}

/* Donations page: use the RadiCER green palette and improve reading width. */
body.page-id-13 #primary { padding-top: 64px; padding-bottom: 0; }
body.page-id-13 #primary > .container { width: 100%; max-width: none; margin: 0; padding: 0; }
body.page-id-13 #primary article.content-box { width: 100%; max-width: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.page-id-13 #primary article.content-box > .section-title { width: min(100%, 1240px); margin: 0 auto; padding: 0 24px 30px; color: var(--color-navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; text-align: center; }
body.page-id-13 .entry-content { width: 100%; max-width: none; }
body.page-id-13 .entry-content > .wp-block-group.alignfull { width: 100%; max-width: none; margin-right: 0 !important; margin-left: 0 !important; padding-top: clamp(48px, 6vw, 78px) !important; padding-bottom: clamp(48px, 6vw, 78px) !important; scroll-margin-top: 100px; }
body.page-id-13 .entry-content > .wp-block-group > .wp-block-group__inner-container { width: min(900px, calc(100% - 48px)); max-width: 900px; margin-right: auto !important; margin-left: auto !important; }
body.page-id-13 #chi-siamo { background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%) !important; }
body.page-id-13 #Bonifico-bancario { background-color: #f8fafc !important; }
body.page-id-13 #5permille { background-color: #fff !important; }
body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > p,
body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > h3,
body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > .wp-block-buttons,
body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > p,
body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > h2,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > p,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h2,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h3,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h4,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > ul { width: 100%; max-width: 100%; margin-right: auto !important; margin-left: auto !important; }
body.page-id-13 .entry-content .wp-block-group__inner-container > p { margin-top: 0 !important; margin-bottom: 18px !important; color: #334155; font-size: 1.02rem; line-height: 1.8; }
body.page-id-13 .entry-content .wp-block-group__inner-container > h2,
body.page-id-13 .entry-content .wp-block-group__inner-container > h3,
body.page-id-13 .entry-content .wp-block-group__inner-container > h4 { color: var(--color-navy); line-height: 1.3; overflow-wrap: anywhere; }
body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > p:first-child { max-width: 800px; font-size: 1.08rem; }
body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > h3 { max-width: 800px; margin-top: 28px !important; margin-bottom: 20px !important; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
body.page-id-13 .entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px !important; }
body.page-id-13 .entry-content .wp-block-button { margin: 0; }
body.page-id-13 .entry-content .wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--color-primary); border-radius: 999px; background: var(--color-primary); color: #fff; font-weight: 700; line-height: 1.35; text-align: center; transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); }
body.page-id-13 .entry-content .wp-block-button__link:hover { transform: translateY(-2px); background: var(--color-primary-dark); box-shadow: 0 8px 20px rgba(21, 128, 61, .2); color: #fff; }
body.page-id-13 .entry-content .wp-block-button__link:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > p:first-child,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > p:first-child { display: inline-flex; width: max-content; max-width: 100%; align-items: center; margin: 0 0 12px !important; padding: 6px 11px; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: var(--color-primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; line-height: 1.4; }
body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > h2,
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.25rem); }
body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > p:last-child { margin-top: 18px !important; padding: 24px; border: 1px solid #dcfce7; border-left: 4px solid var(--color-primary); border-radius: 14px; background: #fff; }
body.page-id-13 .entry-content #Bonifico-bancario strong,
body.page-id-13 .entry-content #5permille strong { color: var(--color-primary-dark); }
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h3 { margin-top: 38px !important; margin-bottom: 14px !important; padding-top: 24px; border-top: 1px solid #e2e8f0; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h4 { margin-top: 22px !important; margin-bottom: 10px !important; font-size: 1.12rem; }
body.page-id-13 .entry-content #5permille .wp-block-list { padding-left: 1.35rem; color: #334155; }
body.page-id-13 .entry-content #5permille .wp-block-list li { margin: 0 0 12px; padding-left: 4px; line-height: 1.75; }
body.page-id-13 .entry-content #5permille .wp-block-list li::marker { color: var(--color-primary); }
body.page-id-13 .entry-content a:not(.wp-block-button__link) { color: var(--color-primary-dark); text-decoration-color: #86efac; text-underline-offset: 3px; }
body.page-id-13 .entry-content a:not(.wp-block-button__link):hover { color: #14532d; }
body.page-id-13 .entry-content > .wp-block-separator { width: min(900px, calc(100% - 48px)); margin: 0 auto !important; border-color: #dcfce7; }

@media (max-width: 640px) {
  body.page-id-13 #primary { padding-top: 42px; }
  body.page-id-13 #primary article.content-box > .section-title { padding: 0 20px 22px; font-size: clamp(1.85rem, 8vw, 2.3rem); }
  body.page-id-13 .entry-content > .wp-block-group.alignfull { padding-top: 42px !important; padding-bottom: 42px !important; }
  body.page-id-13 .entry-content > .wp-block-group > .wp-block-group__inner-container { width: calc(100% - 40px); }
  body.page-id-13 .entry-content .wp-block-group__inner-container > p { margin-bottom: 16px !important; font-size: 1rem; line-height: 1.75; }
  body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > p:first-child { font-size: 1rem; }
  body.page-id-13 .entry-content #chi-siamo .wp-block-group__inner-container > h3 { margin-top: 24px !important; margin-bottom: 18px !important; font-size: 1.3rem; line-height: 1.4; }
  body.page-id-13 .entry-content .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 11px; margin-top: 20px !important; }
  body.page-id-13 .entry-content .wp-block-button,
  body.page-id-13 .entry-content .wp-block-button__link { width: 100%; }
  body.page-id-13 .entry-content .wp-block-button__link { min-height: 50px; padding: 12px 18px; }
  body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > p:first-child,
  body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > p:first-child { font-size: .68rem; }
  body.page-id-13 .entry-content #Bonifico-bancario .wp-block-group__inner-container > p:last-child { padding: 18px; border-radius: 12px; }
  body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h3 { margin-top: 28px !important; margin-bottom: 12px !important; padding-top: 20px; font-size: 1.22rem; }
  body.page-id-13 .entry-content #5permille .wp-block-group__inner-container > h4 { font-size: 1.05rem; }
  body.page-id-13 .entry-content #5permille .wp-block-list { padding-left: 1.2rem; }
  body.page-id-13 .entry-content > .wp-block-separator { width: calc(100% - 40px); }
}

/* Conventions page: give its editable WordPress sections a clearer hierarchy,
   comfortable reading measure and the same green identity as the rest of the site. */
body.page-id-15 #primary { padding-top: 56px; padding-bottom: 0; }
body.page-id-15 #primary > .container { width: 100%; max-width: none; margin: 0; padding: 0; }
body.page-id-15 #primary article.content-box { width: 100%; max-width: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.page-id-15 #primary article.content-box > .section-title { width: min(100%, 1120px); margin: 0 auto; padding: 0 28px 30px; color: var(--color-navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; text-align: center; }
body.page-id-15 .entry-content { width: 100%; max-width: none; color: #334155; }
body.page-id-15 .entry-content > .wp-block-group.alignfull,
body.page-id-15 .entry-content > .wp-block-cover.alignfull { width: 100%; max-width: none; margin-right: 0 !important; margin-left: 0 !important; padding-top: clamp(48px, 6vw, 76px) !important; padding-bottom: clamp(48px, 6vw, 76px) !important; scroll-margin-top: 100px; }
body.page-id-15 .entry-content > .wp-block-group > .wp-block-group__inner-container { width: min(1040px, calc(100% - 56px)); max-width: 1040px; margin-right: auto !important; margin-left: auto !important; }
body.page-id-15 .entry-content > .wp-block-group.alignfull:nth-of-type(odd) { background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%) !important; }
body.page-id-15 .entry-content > .wp-block-group.alignfull:nth-of-type(even) { background: #fff !important; }
body.page-id-15 .entry-content .wp-block-group__inner-container > h2,
body.page-id-15 .entry-content .wp-block-group__inner-container > h3,
body.page-id-15 .entry-content .wp-block-group__inner-container > h4 { color: var(--color-navy) !important; line-height: 1.3; overflow-wrap: anywhere; }
body.page-id-15 .entry-content .wp-block-group__inner-container > h2 { margin: 0 0 18px !important; font-size: clamp(1.7rem, 3vw, 2.3rem); }
body.page-id-15 .entry-content .wp-block-group__inner-container > h3 { margin: 28px 0 14px !important; font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
body.page-id-15 .entry-content .wp-block-group__inner-container > p,
body.page-id-15 .entry-content .wp-block-column > p { margin-top: 0 !important; margin-bottom: 16px !important; color: #475569 !important; font-size: 1.02rem; line-height: 1.8; }
body.page-id-15 .entry-content .wp-block-group__inner-container > p { max-width: 900px; }
body.page-id-15 .entry-content mark { padding: 0 .08em; background: transparent !important; color: var(--color-primary) !important; }
body.page-id-15 .entry-content strong { color: var(--color-primary-dark); }
body.page-id-15 .entry-content a:not(.wp-block-button__link) { color: var(--color-primary-dark); text-decoration-color: #86efac; text-underline-offset: 3px; }
body.page-id-15 .entry-content a:not(.wp-block-button__link):hover { color: #14532d; }
body.page-id-15 .entry-content .wp-block-table { width: min(100%, 900px); margin: 26px 0 !important; padding: 22px 26px; overflow-x: auto; border: 1px solid #bbf7d0; border-left: 4px solid var(--color-primary); border-radius: 16px; background: #f0fdf4 !important; color: #14532d; box-shadow: var(--shadow-sm); }
body.page-id-15 .entry-content .wp-block-table table { min-width: 520px; border: 0; border-collapse: collapse; }
body.page-id-15 .entry-content .wp-block-table td,
body.page-id-15 .entry-content .wp-block-table th { padding: 12px 14px; border-color: #dcfce7; color: #334155; }
body.page-id-15 .entry-content .wp-block-columns:has(> .wp-block-column:nth-child(2)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); align-items: stretch; gap: 20px; margin: 28px 0 !important; }
body.page-id-15 .entry-content .wp-block-columns:has(> .wp-block-column:nth-child(2)) > .wp-block-column { min-width: 0; margin: 0 !important; padding: 24px; border: 1px solid #dcfce7 !important; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .055); }
body.page-id-15 .entry-content .wp-block-columns:has(> .wp-block-column:nth-child(2)) > .wp-block-column > :last-child { margin-bottom: 0 !important; }
body.page-id-15 .entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px !important; }
body.page-id-15 .entry-content .wp-block-button { margin: 0; }
body.page-id-15 .entry-content .wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--color-primary); border-radius: 999px; background: var(--color-primary); color: #fff; font-weight: 700; line-height: 1.35; text-align: center; transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); }
body.page-id-15 .entry-content .wp-block-button__link:hover { transform: translateY(-2px); background: var(--color-primary-dark); box-shadow: 0 8px 20px rgba(21, 128, 61, .2); color: #fff; }
body.page-id-15 .entry-content .wp-block-button__link:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
body.page-id-15 .entry-content .wp-block-cover { min-height: 320px; border-radius: 0; }
body.page-id-15 .entry-content .wp-block-cover__inner-container { width: min(900px, calc(100% - 56px)); margin: 0 auto; }
body.page-id-15 .entry-content .wp-block-cover .wp-block-button__link { background: #16a34a; }
body.page-id-15 .entry-content input:not([type="checkbox"]):not([type="radio"]),
body.page-id-15 .entry-content select,
body.page-id-15 .entry-content textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--color-navy); }
body.page-id-15 .entry-content input:focus,
body.page-id-15 .entry-content select:focus,
body.page-id-15 .entry-content textarea:focus { border-color: var(--color-primary); outline: 3px solid rgba(34, 197, 94, .16); }

@media (max-width: 640px) {
  body.page-id-15 #primary { padding-top: 38px; }
  body.page-id-15 #primary article.content-box > .section-title { padding: 0 20px 22px; font-size: clamp(1.85rem, 8vw, 2.3rem); }
  body.page-id-15 .entry-content > .wp-block-group.alignfull,
  body.page-id-15 .entry-content > .wp-block-cover.alignfull { padding-top: 42px !important; padding-bottom: 42px !important; }
  body.page-id-15 .entry-content > .wp-block-group > .wp-block-group__inner-container { width: calc(100% - 40px); }
  body.page-id-15 .entry-content .wp-block-group__inner-container > p,
  body.page-id-15 .entry-content .wp-block-column > p { margin-bottom: 14px !important; font-size: .98rem; line-height: 1.75; }
  body.page-id-15 .entry-content .wp-block-columns:has(> .wp-block-column:nth-child(2)) { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 20px 0 !important; }
  body.page-id-15 .entry-content .wp-block-columns:has(> .wp-block-column:nth-child(2)) > .wp-block-column { padding: 20px; }
  body.page-id-15 .entry-content .wp-block-table { margin: 20px 0 !important; padding: 16px; border-radius: 12px; }
  body.page-id-15 .entry-content .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 11px; }
  body.page-id-15 .entry-content .wp-block-button,
  body.page-id-15 .entry-content .wp-block-button__link { width: 100%; }
  body.page-id-15 .entry-content .wp-block-button__link { min-height: 50px; padding: 12px 18px; }
  body.page-id-15 .entry-content .wp-block-cover__inner-container { width: calc(100% - 40px); }
}

/* Partner carousel: add a readable community name and a lifted arrow while
   keeping the original card lift, logo zoom and continuous marquee animation. */
.radicer-home-content .marquee-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: 132px;
  padding: 12px 18px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .045);
}
.radicer-home-content .marquee-card > .wp-block-group__inner-container {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 0;
}
.radicer-home-content .marquee-card .wp-block-image { flex: 1 1 auto; height: auto; min-height: 0; }
.radicer-home-content .marquee-card .wp-block-image img { height: 58px; max-height: 58px; }
.radicer-home-content .marquee-card-info {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 25px;
  color: #334155;
  pointer-events: none;
}
.radicer-home-content .marquee-card-name { display: block; min-width: 0; font-size: .78rem; font-weight: 700; line-height: 1.25; text-align: left; }
.radicer-home-content .marquee-card-arrow { flex: 0 0 auto; color: var(--color-primary); font-size: 1.05rem; font-weight: 700; line-height: 1; transition: transform var(--transition-fast), color var(--transition-fast); }
.radicer-home-content .marquee-card:hover .marquee-card-arrow,
.radicer-home-content .marquee-card:focus-within .marquee-card-arrow { color: var(--color-primary-dark); transform: translateY(-5px); }

@media (max-width: 768px) {
  .radicer-home-content .marquee-card { height: 124px; padding: 10px 15px 11px; }
  .radicer-home-content .marquee-card .wp-block-image img { height: 48px; max-height: 48px; }
  .radicer-home-content .marquee-card-name { font-size: .74rem; }
}

/* Trova la tua CER */
.cer-finder-page { padding-top: 81px; }
.cer-home-intro { background: var(--color-primary-soft); text-align: center; }
.cer-home-intro .container { max-width: 850px; }
.cer-home-intro p { line-height: 1.75; margin: 16px auto; }
.cer-home-intro .btn { margin-top: 18px; }
.cer-finder-hero { background: linear-gradient(135deg, #0f172a, #166534); color: #fff; }
.cer-finder-hero .section-title, .cer-finder-hero .section-subtitle { color: #fff; }
.cer-finder-hero .section-subtitle { max-width: 880px; margin: 0 auto; }
.cer-finder-directory { background: #f8fafc; }
.cer-finder-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 38px; }
.cer-control { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.cer-control select, .cer-control input, .cer-coverage-form input, .cer-info-form input, .cer-info-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; box-sizing: border-box; }
.cer-finder-steps { display: grid; gap: 32px; max-width: 950px; margin: auto; }
.cer-finder-step { background: #fff; padding: clamp(22px,4vw,44px); border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 12px 32px rgba(15,23,42,.06); }
.cer-finder-step h2 { font-size: clamp(1.35rem,2.4vw,1.85rem); margin: 12px 0; }
.cer-finder-step p { line-height: 1.7; }
.cer-step-number { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #dcfce7; color: #166534; font-weight: 800; }
.cer-finder-map { overflow: hidden; border-radius: 14px; margin-top: 25px; border: 1px solid #dbe4e9; }
.cer-finder-map iframe { display: block; width: 100%; height: min(65vh,520px); border: 0; }
.cer-coverage-form label { display: block; font-weight: 700; margin-bottom: 10px; }
.cer-coverage-input { display: flex; gap: 12px; }
.cer-coverage-input input { flex: 1; }
.cer-coverage-result { margin-top: 24px; padding: 24px; border-radius: 14px; background: #f0fdf4; border: 1px solid #86efac; }
.cer-coverage-result[hidden] { display: none; }
.cer-coverage-result h3 { margin: 0 0 10px; }
.cer-coverage-result .btn { margin-top: 12px; }
.cer-coverage-empty { background: #fffbeb; border-color: #fcd34d; }
.cer-info-form { display: grid; gap: 16px; }
.cer-info-form label { display: grid; gap: 7px; font-weight: 600; }
.cer-info-form textarea { resize: vertical; }
.cer-honeypot { position: absolute; left: -9999px; }
.cer-finder-contact .contact-info > p a { color: #4ade80; }
@media (max-width: 700px) { .cer-finder-controls { grid-template-columns: 1fr; } .cer-coverage-input { flex-direction: column; } .cer-finder-map iframe { height: 420px; } }

/* Modulo informazioni nella pagina CER */
.cer-finder-contact .contact-grid { align-items: start; gap: clamp(28px,5vw,64px); }
.cer-finder-contact .contact-info h3 { color: #fff; font-size: 1.5rem; margin: 32px 0 8px; }
.cer-finder-contact .contact-info p { color: #cbd5e1; line-height: 1.7; }
.cer-finder-contact .modern-form-card { padding: clamp(22px,3vw,38px); }
.cer-info-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cer-info-form label { min-width: 0; color: #f8fafc; font-size: .9rem; }
.cer-info-form input:not([type=checkbox]), .cer-info-form select, .cer-info-form textarea { width: 100%; min-width: 0; padding: 12px 14px; min-height: 48px; border-radius: 8px; border: 1px solid #64748b; background: #243244; color: #fff; font: inherit; box-sizing: border-box; }
.cer-info-form input::placeholder, .cer-info-form textarea::placeholder { color: #cbd5e1; }
.cer-info-form input:focus-visible, .cer-info-form textarea:focus-visible, .cer-info-form select:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
.cer-info-form .cer-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; line-height: 1.5; }
.cer-info-form .cer-privacy input { flex: 0 0 auto; margin: 3px 0 0; }
.cer-info-form .cer-privacy a { color: #86efac; }
.cer-info-form .btn { width: 100%; }
.cer-form-feedback { color: #fff; }
.cer-plugin-notice { padding: 18px; background: #fffbeb; border-radius: 10px; }
@media(max-width: 700px) { .cer-info-form-row { grid-template-columns: 1fr; } }

/* Consent control: override the generic full-width input style. */
.cer-finder-contact .cer-info-form .cer-privacy { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; width: 100%; }
.cer-finder-contact .cer-info-form .cer-privacy input[type="checkbox"] { appearance: auto; display: block; flex: 0 0 18px; width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; padding: 0; margin: 2px 0 0; accent-color: #16a34a; border: 0; box-shadow: none; }
.cer-finder-contact .cer-info-form .cer-privacy span { display: block; flex: 1 1 auto; min-width: 0; overflow-wrap: normal; }
.cer-finder-contact .contact-info > .btn { margin-top: 18px; }

.cer-finder-contact[hidden] { display: none !important; }


.marquee-more { display:flex; justify-content:center; padding: 0 18px 32px; }
.marquee-more .btn { text-decoration:none; }
.cer-finder-intro { max-width:900px; margin:0 auto 32px; text-align:center; }
.cer-finder-intro .section-subtitle { color: var(--color-navy-muted); }

/* The slider and its action share the same section and background. */
.logos-marquee-section { border-bottom: 0; padding-bottom: 32px; }
.logos-marquee-section .marquee-more { padding: 26px 18px 0; background: inherit; }
.cer-finder-step-intro { width: 100%; max-width: none; margin: 0 0 28px; color: #475569; }
.cer-finder-step > p { text-align: justify; text-align-last: left; }
@media (max-width: 700px) { .cer-finder-step > p { text-align: left; } }
.cer-profile-logo { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; margin-top:22px; padding:22px; min-height:132px; border:1px solid #e2e8f0; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.04); text-align:center; }
.cer-profile-logo img { display:block; max-width:220px; max-height:90px; width:auto; height:auto; object-fit:contain; }
.cer-profile-logo span { font-weight:700; color:#166534; font-size:.85rem; }

/* Community logos come only from active CSV records with a specific logo. */
.marquee-viewport[data-source="csv"] .marquee-card { position:relative; display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; height:124px; width:220px; min-width:220px; padding:12px 15px; box-sizing:border-box; }
.marquee-viewport[data-source="csv"] .marquee-logo-img { display:block; width:auto; max-width:100%; height:62px; max-height:62px; margin:auto; object-fit:contain; }
.marquee-viewport[data-source="csv"] .marquee-card-info { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; color:#334155; }
.marquee-viewport[data-source="csv"] .marquee-card-name { font-size:.76rem; font-weight:700; line-height:1.25; }
.marquee-viewport[data-source="csv"] .marquee-card-arrow { color:#15803d; font-weight:700; }
.marquee-viewport[data-source="csv"] .marquee-card-overlay { position:absolute; z-index:4; inset:0; border-radius:inherit; }
.marquee-viewport[data-source="csv"] .marquee-card-overlay:focus-visible { outline:3px solid #16a34a; outline-offset:3px; }
@media(max-width:700px) { .marquee-viewport[data-source="csv"] .marquee-card { width:180px; min-width:180px; height:116px; } }

/* Keep CER content inside its card on narrow screens. */
.cer-finder-steps, .cer-finder-step, .cer-finder-contact .modern-form-card { min-width: 0; }
.cer-finder-step p, .cer-profile-logo span { overflow-wrap: anywhere; }

/* Bundled template styles: replaces two blocking CSS requests. */

    .cer-hero-section {
      background: linear-gradient(135deg, #0b1322 0%, #1e293b 100%);
      color: #ffffff;
      padding: 140px 0 60px;
      position: relative;
      overflow: hidden;
    }
    .cer-hero-section::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
      pointer-events: none;
    }
    .stats-summary-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-top: 36px;
    }
    .stat-summary-card {
      background: rgba(255, 255, 255, 0.07);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      padding: 16px;
      text-align: center;
    }
    .stat-summary-card .val {
      font-size: 1.8rem;
      font-weight: 800;
      color: #4ade80;
    }
    .stat-summary-card .lbl {
      font-size: 0.8rem;
      color: #cbd5e1;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-top: 4px;
    }
    @media (max-width: 900px) {
      .stats-summary-strip {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 500px) {
      .stats-summary-strip {
        grid-template-columns: 1fr;
      }
    }
  

    .single-cer-hero {
      background: linear-gradient(135deg, #0b1322 0%, #1e293b 100%);
      color: #ffffff;
      padding: 130px 0 60px;
      position: relative;
    }
    .single-breadcrumbs {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.88rem;
      color: #94a3b8;
      margin-bottom: 24px;
    }
    .single-breadcrumbs a {
      color: #cbd5e1;
      text-decoration: none;
    }
    .single-breadcrumbs a:hover {
      color: #4ade80;
    }
    .cer-meta-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
    }
    .cer-title-main {
      font-size: clamp(2.2rem, 4vw, 3.2rem);
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 24px;
    }
    .single-metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-top: 40px;
    }
    .single-metric-card {
      background: rgba(255, 255, 255, 0.06);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 24px 20px;
      text-align: center;
      transition: all 0.3s ease;
    }
    .single-metric-card:hover {
      transform: translateY(-3px);
      border-color: rgba(74, 222, 128, 0.4);
      background: rgba(255, 255, 255, 0.1);
    }
    .single-metric-card .icon-box {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px;
    }
    .single-metric-card .val {
      font-size: 2.2rem;
      font-weight: 800;
      color: #ffffff;
      line-height: 1.1;
      margin-bottom: 6px;
    }
    .single-metric-card .val.highlight-green {
      color: #4ade80;
    }
    .single-metric-card .lbl {
      font-size: 0.85rem;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .detail-body-section {
      padding: 70px 0;
      background: #f8fafc;
    }
    .detail-layout-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 40px;
    }
    .content-box {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      padding: 36px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
      margin-bottom: 30px;
    }
    .content-box h3 {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--color-navy);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .comuni-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
    }
    .comune-tag {
      background: #f1f5f9;
      color: #1e293b;
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 500;
      border: 1px solid #e2e8f0;
      transition: all 0.2s ease;
    }
    .comune-tag:hover {
      background: #e2e8f0;
      border-color: #cbd5e1;
    }
    .sidebar-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      padding: 32px 24px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.04);
      position: sticky;
      top: 100px;
    }
    .cer-nav-pager {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 40px;
    }
    @media (max-width: 1024px) {
      .single-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .detail-layout-grid {
        grid-template-columns: 1fr;
      }
      .sidebar-card {
        position: static;
      }
    }
    @media (max-width: 600px) {
      .single-metrics-grid {
        grid-template-columns: 1fr;
      }
    }
  


.cer-card[hidden] { display:none !important; }




/* Inline styles preserved from the original RadiCER layout for the editable Gutenberg page. */
.radicer-home-content .radicer-inline-1c968cbe { font-size: 1.15rem; color: var(--color-navy-muted); line-height: 1.8; margin-bottom: 24px; }
.radicer-home-content .radicer-inline-29b7980a { margin-bottom: 16px; }
.radicer-home-content .radicer-inline-339bf8a7 { font-size: 1.15rem; line-height: 1.7; color: var(--color-navy-muted); margin-top: 14px; }
.radicer-home-content .radicer-inline-41e16be1 { font-size: 1.45rem; font-weight: 700; color: var(--color-navy); display: inline-flex; align-items: center; gap: 10px; }
.radicer-home-content .radicer-inline-54f465a7 { background: rgba(74, 222, 128, 0.15); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.radicer-home-content .radicer-inline-653871db { font-size: 0.95rem; font-weight: 500; color: #16a34a; }
.radicer-home-content .radicer-inline-84bef6ae { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.radicer-home-content .radicer-inline-87973425 { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.radicer-home-content .radicer-inline-9df8475a { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; }
.radicer-home-content .radicer-inline-c127b9da { max-width: 860px; }
.radicer-home-content .radicer-inline-d99af5a8 { background: #ffffff; }
.radicer-home-content .radicer-inline-d9eea44e { margin-top: 28px; }
.radicer-home-content .radicer-inline-df045b59 { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.radicer-home-content .radicer-inline-e246698a { max-width: 840px; margin: 0 auto 48px; }
.radicer-home-content .radicer-inline-fa70adcd { display: flex; flex-wrap: wrap; gap: 10px; }
