/* =============================================
   RESTRUCTURA 2026 — Theme CSS
   Font: Montserrat
   Palette ufficiale (Word del cliente): #1B9BD9 #F59100 #285073 #F4F5F6
   ============================================= */

/* --- Variables -------------------------------- */
:root {
  /* Primario: blu scuro della palette. E' il colore del testo forte, dei
     bottoni pieni e delle sezioni scure. L'azzurro del logo NON puo' fare
     questo lavoro: su bianco sta a 2,9:1 di contrasto, sotto il minimo. */
  --cs-blue:      #285073;
  --cs-blue-dark: #1b3a54;
  /* Azzurro del logo: accenti e link su fondo CHIARO. */
  --cs-azure:     #1b9bd9;
  /* Arancio del logo: CTA e evidenze su fondo chiaro. */
  --cs-orange:    #f59100;
  /* Accento su fondo SCURO (kicker, breadcrumb, link nelle sezioni blu):
     e' l'arancio schiarito, perche' #f59100 su #285073 resta a 3,5:1. */
  --cs-accent:    #ffb04d;
  /* Testo sui fondi AZZURRO e ARANCIO: sono colori chiari, il bianco sopra non si
     legge (3,1:1 e 2,35:1) e nemmeno il blu della palette (2,7:1 sull'azzurro).
     Questo è il blu portato quasi a nero: 4,7:1 sull'azzurro, 6,3:1 sull'arancio. */
  --cs-ink:       #13293d;
  --cs-grey-light:#f4f5f6;
  --cs-white:      #ffffff;
  --cs-black:      #000000;
  --cs-text:       #1a1a1a;
  --cs-text-muted: #666666;
  /* Filetti di separazione dentro le card. ⚠️ Era #e8ecef: contro il bianco sono 15
     livelli di differenza, cioe' una riga al limite del visibile — ed e' proprio la
     riga quasi invisibile quella che si nota "a volte si e a volte no", perche' basta
     un mezzo pixel di antialiasing per farla sparire o raddoppiare. Un filetto un po'
     piu' deciso si rende allo stesso modo ovunque. */
  --cs-filetto:    #dde3e8;
  --cnvs-themecolor: #285073;
  --cnvs-themecolor-rgb: 40, 80, 115;
}

/* --- Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Override Canvas: rimuove margin-bottom globale su elementi di blocco */
p, pre, ul, ol, dl, dd, blockquote, address, table, fieldset, form { margin-bottom: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--cs-text);
  background: var(--cs-white);
  margin: 0;
}

em, i { font-family: 'Montserrat', sans-serif !important; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a { color: var(--cs-blue); text-decoration: none; }
a:hover { color: var(--cs-blue-dark); }

/* --- Buttons ---------------------------------- */
.cs-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  line-height: 1;
}
.cs-btn-primary {
  background: var(--cs-blue);
  color: var(--cs-white);
  border-color: var(--cs-blue);
}
.cs-btn-primary:hover {
  background: var(--cs-blue-dark);
  border-color: var(--cs-blue-dark);
  color: var(--cs-white);
}
.cs-btn-outline {
  background: transparent;
  color: var(--cs-white);
  border-color: var(--cs-white);
}
.cs-btn-outline:hover {
  background: var(--cs-white);
  color: var(--cs-blue);
}

/* ================================================
   HEADER / NAV — stile Kappa (pill bianca 3+logo+3)
   ================================================ */

/* Il wrapper Canvas è resettato — usiamo solo .cs-nav-inner */
#header.cs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: transparent !important;
  box-shadow: none !important;
}
#header.cs-header #header-wrap {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}

/* Topbar sottile sopra la pill */
.cs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 40px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cs-topbar-lang { display: flex; align-items: center; gap: 6px; }
.cs-topbar-lang span { color: rgba(255,255,255,0.5); }
.cs-topbar-lang a {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cs-topbar-lang a.active { color: #fff; }

/* Nav inner: colonna — topbar sopra, pill sotto centrata */
.cs-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

/* Wrapper pill per centrare orizzontalmente */
.cs-nav-wrap {
  display: flex;
  justify-content: center;
  padding: 0 24px 12px;
}

/* La PILL — grid 1fr auto 1fr: voci sx | logo | voci dx */
.cs-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(244, 245, 246, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 60px;
  height: 68px;
  padding: 0 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  width: 100%;
  max-width: 1280px;
  position: relative;
}

.cs-nav-left,
.cs-nav-right {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-nav-right { justify-content: flex-end; }

/* Hamburger dentro la pill: nascosto su desktop, appare su mobile */
.cs-nav .primary-menu-trigger { display: none; }

/* Il menu Canvas nativo nascosto su desktop */
.cs-primary-nav { display: none !important; }

/* Logo centrale — box bianco, sporge verticalmente dalla pill.
   ⚠️ Le misure seguono la forma del marchio: quello di Restructura e' un
   lockup ORIZZONTALE (486x83, rapporto 6:1). Le misure ereditate da Casalia,
   il cui marchio era quasi quadrato, davano al logo 439px di larghezza dentro
   un box da 236px utili: sbordava sopra la voce di menu "Programma".
   Se il marchio cambia forma, qui si cambiano altezza dell'immagine e
   larghezza del box — sono gli unici due numeri che contano. */
#logo.cs-nav-logo,
.cs-nav-logo {
  flex: 0 0 auto !important;
  margin: -8px auto !important;
  margin-right: auto !important;
  max-height: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cs-white);
  border-radius: 16px;
  width: 320px;
  height: 84px;
  padding: 0 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  position: relative;
  z-index: 9999;
}
#logo img.cs-logo-img,
.cs-logo-img {
  height: 42px !important;     /* → 246px di larghezza, dentro i 272px utili */
  width: auto !important;
  max-width: none !important;
  display: block;
  filter: none;
}

/* Nav items dentro la pill */
.cs-nav-item {
  position: relative;
  list-style: none;
  flex: 1;
}
.cs-nav-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 68px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: color 0.2s;
  white-space: nowrap;
}
.cs-nav-item > a:hover,
.cs-nav-item:hover > a { color: var(--cs-blue); }

/* Dropdown sotto la pill */
.cs-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: rgba(244, 245, 246, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--cs-blue);
  border-radius: 0 0 16px 16px;
  list-style: none;
  margin: 0;
  padding: 20px 0 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 9100;
}
.cs-dropdown-right { left: auto; right: 0; }
.cs-nav-item:hover .cs-dropdown { display: block; }
.cs-dropdown li a {
  display: block;
  padding: 11px 22px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.03em;
  transition: color 0.15s, background 0.15s;
}
.cs-dropdown li a:hover {
  color: var(--cs-blue);
  background: rgba(40, 80, 115,0.06);
}
.cs-dropdown-cta {
  font-weight: 700 !important;
  color: var(--cs-blue) !important;
}

/* ================================================
   MENU MOBILE — Canvas nativo (.primary-menu-trigger + .primary-menu)
   Desktop: tutto nascosto. Mobile: hamburger + accordion sottovoci.
   ================================================ */

/* L'hamburger Canvas è nascosto di default su desktop */
.primary-menu-trigger { display: none; }

/* Il menu Canvas .cs-primary-nav è nascosto su desktop */
.cs-primary-nav { display: none !important; }

/* Colore hamburger: adattato alla pill beige */
.cnvs-hamburger-inner,
.cnvs-hamburger-inner::before,
.cnvs-hamburger-inner::after { background-color: var(--cs-blue) !important; }

/* Stile pannello mobile Canvas: sfondo marrone Restructura */
@media (max-width: 991px) {
  /* Pannello slide Canvas */
  #header .primary-menu > .menu-container {
    background: var(--cs-blue-dark);
    border-top: 2px solid var(--cs-accent);
  }
  #header .primary-menu .menu-item > .menu-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 15px;
  }
  #header .primary-menu .menu-item > .menu-link:hover {
    color: var(--cs-accent) !important;
  }
  #header .primary-menu .sub-menu-container {
    background: rgba(0,0,0,0.2);
  }
  #header .primary-menu .sub-menu-container .menu-link {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.85rem;
    padding-left: 2rem;
  }
}

/* ================================================
   HERO — Video a tutta larghezza (NON fullscreen vh)
   Il body inizia subito dopo, con card bianca arrotondata
   ================================================ */

/* L'hero non ha position:fixed — scorre normalmente */
.cs-hero {
  position: relative;
  width: 100%;
  /* altezza = viewport - topbar (24px) - pill (76px) circa */
  height: calc(100vh - 100px);
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Nessun padding-top: il header fluttua sopra */
}

/* Video background */
.cs-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
/* Per video mp4 nativo */
video.cs-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  pointer-events: none;
}

/* Overlay — più leggero in cima (menu visibile), più scuro al centro */
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* Contenuto hero — centrato verticalmente */
.cs-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  /* spingiamo il testo un po' più in basso per non sovrapporsi al menu */
  margin-top: 60px;
}
/* ⚠️ Questa dichiarazione NON è quella che decide: i due include dell'hero
   (inc_hero_video.php e inc_hero_slider.php) ridichiarano la stessa classe in
   uno <style> dentro la pagina, che arriva dopo e vince. Resta qui come valore
   per eventuali hero che non passino da quegli include — allineata a 960px,
   così i tre punti dicono la stessa cosa. */
.cs-hero-content { max-width: 960px; }

/* Sezione content con angoli arrotondati in alto — stile Kappa */
#content {
  position: relative;
  z-index: 2;
  border-radius: 32px 32px 0 0;
  background: var(--cs-white);
  margin-top: -32px; /* si sovrappone leggermente al video */
  overflow: hidden;
}

/* Hero testi — stessi stili della landing ma #fff */
.cs-hero-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-white);
  margin-bottom: -6px;
}
.cs-hero-location {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-white);
  margin-bottom: 24px;
}
.cs-hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3vw, 4.2rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.05;
  color: var(--cs-white);
  margin-bottom: 36px;
}
.cs-hero-tagline em { font-style: normal; }
.cs-hero-tagline strong { font-weight: 900; color: var(--cs-accent); }
.cs-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll arrow — sopra il bordo arrotondato del content */
.cs-scroll-down {
  position: absolute;
  bottom: 48px; /* sopra il margin-top negativo del #content */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--cs-white);
  font-size: 2.2rem;
  opacity: 0.8;
  animation: cs-bounce 2s infinite;
}
.cs-scroll-down:hover { opacity: 1; color: var(--cs-accent); }
@keyframes cs-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   SEZIONI BODY
   ================================================ */
.cs-section { padding: 80px 0; }
.cs-section-white { background: var(--cs-white); }
.cs-section-dark  { background: var(--cs-blue-dark); color: var(--cs-white); }
.cs-section-beige { background: var(--cs-grey-light); }

.cs-label-small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-blue);
  margin-bottom: 12px;
  display: block;
}
/* Titolo di sezione: blu scuro sui fondi chiari, bianco su quelli scuri.
   Il colore e' dichiarato qui per entrambi i casi invece di essere lasciato a
   `inherit`: cosi' una regola scritta piu' avanti nel file non puo' cambiarlo
   di soppiatto solo su meta' del sito. */
.cs-section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cs-blue-dark);
  margin-bottom: 20px;
}
.cs-section-dark .cs-section-title,
.cs-block--dark .cs-section-title { color: var(--cs-white); }
.cs-section-sub {
  font-size: 1rem;
  color: var(--cs-text-muted);
  max-width: 600px;
}
.cs-section-header { }
.cs-text-lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--cs-text);
  margin-bottom: 16px;
}
.cs-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--cs-text-muted);
  margin-bottom: 12px;
}
/* Il colore segue lo sfondo della sezione: marrone di default (bianco/beige),
   beige chiaro dentro le sezioni scure. A runtime --cs-accent è #f4f5f6 (quasi
   bianco): usarlo come default lo rendeva invisibile su cs-section-white/beige. */
.cs-link-more {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-blue, #285073);
}
.cs-link-more:hover { color: var(--cs-accent, #ffb04d); }

.cs-section-dark .cs-link-more { color: var(--cs-accent, #f4f5f6); }
.cs-section-dark .cs-link-more:hover { color: var(--cs-white, #fff); }

/* ================================================
   BODY 1 — Media frame stile SIGEP
   ================================================ */
.cs-media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.cs-media-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.cs-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 32px 24px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--cs-white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-media-link {
  color: var(--cs-white);
  font-weight: 700;
  white-space: nowrap;
}
.cs-media-link:hover { color: var(--cs-accent); }

/* ================================================
   BODY 2 — Event cards
   ================================================ */
/* Card bianca con i testi scuri (richiesta del cliente, 16-09-2026: era `#111`,
   cioè quasi nera, ereditata dal mockup di partenza).
   ⚠️ Queste card stanno dentro una sezione che può essere chiara **o** scura: il
   bordo serve perché su fondo bianco, senza, la card sparirebbe nel fondo. */
.cs-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cs-white);
  border: 1px solid #e4e9ed;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cs-event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(40, 80, 115, 0.18);
}
.cs-event-card-img {
  flex: 0 0 auto;
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.cs-event-tag {
  display: inline-block;
  background: var(--cs-blue);
  color: var(--cs-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.cs-event-card-body {
  padding: 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.cs-event-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-blue-dark);
  margin-bottom: 8px;
}
.cs-event-card-body p {
  font-size: 0.82rem;
  color: #5a6672;
  margin-bottom: 12px;
}
/* Giornata del tema sopra il titolo ("12 novembre").
   ⚠️ Passando la card a fondo bianco l'arancio NON va bene per questo testo:
   `--cs-accent` è l'arancio schiarito per i fondi scuri (su bianco quasi non si
   legge) e persino `--cs-orange` pieno su bianco sta a **2,35:1**, sotto il minimo
   per un testo di 0,72rem. Si usa il blu, che è già il colore dei kicker su fondo
   chiaro in tutto il sito (`.cs-block__label`, `.cs-correlati-title`): 8,6:1. */
.cs-event-card-body p.cs-event-card-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-blue);
  margin-bottom: 6px;
}
.cs-event-link {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-blue);
  margin-top: auto;         /* ancorato in fondo alla card */
  align-self: flex-start;
}
.cs-event-link:hover { color: var(--cs-blue-dark); }

/* Owl non stira gli item: li rendo flex così tutte le card di una vista
   prendono l'altezza della più alta. Owl scrive la width inline sull'.owl-item
   e il flex non la tocca, quindi lo scorrimento resta invariato. */
.cs-events-carousel .owl-stage,
.cs-sectors-carousel .owl-stage { display: flex; }
.cs-events-carousel .owl-item,
.cs-sectors-carousel .owl-item { display: flex; }
.cs-events-carousel .owl-item > *,
.cs-sectors-carousel .owl-item > * { width: 100%; }
/* nel carousel aree la card ha un <a> in mezzo: deve stirarsi anche lui */
.cs-sectors-carousel .cs-sector-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Owl nav personalizzato per eventi */
.cs-events-carousel.owl-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cs-blue) !important;
  color: var(--cs-white) !important;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.cs-events-carousel.owl-carousel .owl-nav .owl-prev { left: -22px; }
.cs-events-carousel.owl-carousel .owl-nav .owl-next { right: -22px; }

/* ================================================
   BODY 3a — Sector cards (identiche a event card, body marrone)
   ================================================ */
.cs-sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1199px) { .cs-sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .cs-sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .cs-sectors-grid { grid-template-columns: 1fr; } }

.cs-sector-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 6px 0 14px;
  line-height: 1.5;
}
/* foto quadrata nelle card griglia — padding-top trick universale */
.cs-sectors-grid .cs-sector-card-img {
  height: 0;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
}
/* Card di pari altezza: la .row Bootstrap e la .cs-sectors-grid stirano già la
   cella, così la card la riempie tutta e il body assorbe lo spazio che avanza.
   Si equalizzano a qualsiasi larghezza, senza min-height da ritarare a mano. */
.cs-sector-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cs-blue);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.cs-sector-card-img { flex: 0 0 auto; }
.cs-sector-card:hover { transform: translateY(-6px); text-decoration: none; }
.cs-sectors-carousel .owl-item {
  margin-bottom: 24px;
}
.cs-sector-card-img {
  height: 260px;
  background-size: cover;
  background-position: center;
}
.cs-sector-card-body {
  padding: 20px;
  min-height: 120px;        /* floor: nel carousel non c'è la cella che stira */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.cs-sector-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-white);
  margin: 0 0 8px;
}
.cs-sector-link {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-accent);
  margin-top: auto;         /* resta ancorato in fondo, comunque sia lungo il testo */
  align-self: flex-start;
}
.cs-sector-link:hover { color: var(--cs-white); }
/* Arrivando da "Scopri di più" in home (#area-<id>) la card non deve finire sotto l'header fisso */
.cs-area-anchor { scroll-margin-top: 140px; }

/* ================================================
   BODY 3b — Counters
   ================================================ */
.cs-counter-wrap { padding: 24px 16px; }
.cs-counter-icon {
  font-size: 2.5rem;
  color: var(--cs-blue);
  display: block;
  margin-bottom: 8px;
}
/* Segnaposto: tiene lo spazio dell'icona nei contatori che non ce l'hanno,
   così la riga resta in asse anche a icone miste (vedi block_numeri.php) */
.cs-counter-icon--vuota { visibility: hidden; }
.cs-counter-icon--vuota::before { content: "\00a0"; }
.cs-counter-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--cs-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-counter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  margin: 0;
}

/* ================================================
   PARTNER BAR — carousel loghi sopra footer
   ================================================ */
.cs-partners-bar {
  background: #fff;
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.cs-partners-bar__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cs-text);
  margin: 0 0 32px;
  padding: 0;
}
/* marquee CSS puro — nessun JS, scroll infinito fluido */
.cs-marquee-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
}
.cs-marquee {
  display: flex;
  width: max-content;
  animation: cs-marquee-scroll 32s linear infinite;
}
.cs-marquee:hover { animation-play-state: paused; }
.cs-marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cs-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  height: 72px;
}
.cs-marquee-item img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: block;
}
.cs-marquee-item img:hover { opacity: 1; }

@keyframes cs-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   FOOTER — stile Lingotto Fiere
   ================================================ */

.cs-footer-new {
  background: #eee;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
  padding: 60px 0 0;
}

.cs-footer-new__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 48px;
}

/* COL 1: Logo + social */
.cs-footer-new__logo-link {
  display: block;
  margin-bottom: 24px;
}
.cs-footer-new__logo-link svg {
  display: block;
  height: auto;
}
.cs-footer-new__brand-intro {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 8px;
}
.cs-footer-new__social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cs-footer-new__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #1a1a1a;
  color: #1a1a1a;
  transition: opacity .2s;
}
.cs-footer-new__social a:hover { opacity: .5; }
.cs-footer-new__social svg {
  width: 18px;
  height: 18px;
  fill: #1a1a1a;
}

/* COL 2: Menu */
.cs-footer-new__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.cs-footer-new__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cs-footer-new__menu li { margin-bottom: 8px; }
.cs-footer-new__menu a {
  font-size: 0.9rem;
  color: var(--cs-blue);
  font-weight: 500;
  transition: opacity .2s;
}
.cs-footer-new__menu a:hover { opacity: .7; }

/* COL 3: Newsletter */
.cs-footer-new__nl-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 16px;
}
.cs-footer-new__nl-form {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.cs-footer-new__nl-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  color: #1a1a1a;
  outline: none;
  margin-bottom: 10px;
  display: block;
}
.cs-footer-new__nl-input:focus { border-color: var(--cs-blue); }
.cs-footer-new__nl-btn {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 10px;
}
.cs-footer-new__nl-btn:hover { background: var(--cs-blue); }
/* Esito iscrizione newsletter (newsletter-send.php torna con ?nl=…) */
.cs-footer-new__nl-esito {
  font-size: 0.78rem; font-weight: 700;
  padding: 8px 12px; border-radius: 8px; margin: 0 0 10px;
}
/* ⚠️ I colori erano tarati su un footer SCURO (arancio chiaro e rosa su fondo
   nero): sul grigio chiaro di questo footer non si leggevano. */
.cs-footer-new__nl-esito.is-ok  { background: rgba(245,145,0,.15); color: var(--cs-blue-dark); }
.cs-footer-new__nl-esito.is-err { background: rgba(220,53,69,.12); color: #a52834; }

/* Casella di consenso (DPO Lingotto, 15-09-2026): prima del bottone */
.cs-footer-new__nl-consenso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #1a1a1a;
  margin: 2px 0 4px;
  cursor: pointer;
}
.cs-footer-new__nl-consenso input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--cs-blue); }

.cs-footer-new__nl-note {
  font-size: 0.72rem;
  color: #888;
  margin: 0 0 12px 22px;   /* allineata al testo della casella, non al quadratino */
}
.cs-footer-new__nl-form .cs-footer-new__nl-note a {
  color: #555;
  /* ⚠️ !important obbligato: style+.css di Canvas ha `a:not(.btn-link) { text-decoration: none !important }`,
     che vince su qualunque selettore più specifico. Nel PDF del cliente è un link sottolineato. */
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Bottom bar */
.cs-footer-new__bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 18px 0;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.6;
}
.cs-footer-new__bottom a { color: #555; text-decoration: none; }
.cs-footer-new__bottom a:hover { color: var(--cs-blue); }

/* Bottom bar: dati societari a sx, credits a dx. Su mobile il credits va a capo e si centra. */
.cs-footer-new__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
}
.cs-footer-new__legal { flex: 1 1 auto; }
.cs-footer-new__credits { flex: 0 0 auto; margin-left: auto; }
.cs-footer-new__credits a { opacity: 0.75; transition: opacity 0.2s ease; }
.cs-footer-new__credits a:hover { opacity: 1; }

@media (max-width: 767px) {
  .cs-footer-new__bottom-inner { justify-content: center; text-align: center; }
  .cs-footer-new__credits { margin-left: 0; }
}

@media (max-width: 900px) {
  .cs-footer-new__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .cs-footer-new__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ================================================
   GOTO TOP
   ================================================ */
#gotoTop {
  background: var(--cs-blue);
  color: var(--cs-white);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  bottom: 24px;
  right: 24px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  /* Nascondi voci desktop nel grid */
  .cs-nav-left,
  .cs-nav-right { display: none; }

  /* Pill mobile: flex logo sx + hamburger dx */
  .cs-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 68px;
    background: #fff;
  }

  /* Mostra hamburger Canvas dentro la pill */
  .cs-nav .primary-menu-trigger {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 12px;
  }

  /* Logo mobile: fisso a sinistra, non cresce */
  #logo.cs-nav-logo {
    margin: 0;
    width: 160px;
    max-width: 160px;
    height: 68px;
    padding: 0 16px;
    border-radius: 60px 0 0 60px;
    box-shadow: none;
    background: var(--cs-white);
    flex: 0 0 160px;
  }
  /* Anche qui l'altezza segue il rapporto 6:1 del marchio: a 50px il logo
     sarebbe largo 293px dentro un box da 128px utili. */
  #logo img.cs-logo-img,
  .cs-logo-img { height: 22px !important; width: auto !important; max-width: 128px !important; }

  /* Hamburger: sfondo tondo per visibilità sulla pill chiara */
  .cnvs-hamburger {
    width: 40px;
    height: 40px;
    background: var(--cs-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
  }
  .cnvs-hamburger-inner,
  .cnvs-hamburger-inner::before,
  .cnvs-hamburger-inner::after { background-color: #fff !important; }

  .cs-hero-inner { margin-top: 20px; }
  .cs-media-img { height: 300px; }
  #content { border-radius: 24px 24px 0 0; }

  /* Menu Canvas mobile: visibile (Canvas functions.js lo gestisce) */
  .cs-primary-nav { display: block !important; }

  /* Pannello menu: staccato 15px dalla pill, bordi arrotondati */
  #header .primary-menu {
    position: absolute !important;
    top: calc(100% + 15px) !important;
    left: 20px;
    right: 20px;
    z-index: 8999;
    border-radius: 25px !important;
    overflow: hidden;
  }
  #header .primary-menu > .menu-container {
    border-radius: 25px !important;
    overflow: hidden;
    padding: 8px 0 16px;
  }
  #header .primary-menu .menu-item > .menu-link > div {
    padding: 4px 0;
  }

  /* Search box in fondo al menu mobile — dentro .menu-container come li */
  .cs-mobile-search {
    padding: 16px 20px 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
  }
  .cs-mobile-search .input-group-text {
    background: var(--cs-grey-light);
    border: none;
    color: var(--cs-blue);
    border-radius: 25px 0 0 25px;
    padding: 0 14px;
    font-size: 1rem;
  }
  .cs-mobile-search .form-control {
    background: var(--cs-grey-light);
    border: none;
    color: var(--cs-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
  }
  .cs-mobile-search .form-control::placeholder { color: var(--cs-text-muted); }
  .cs-mobile-search .form-control:focus {
    background: #fff;
    box-shadow: none;
    color: var(--cs-text);
  }
  .cs-mobile-search .btn {
    background: var(--cs-blue);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 767px) {
  .cs-section { padding: 56px 0; }
  .cs-hero-title { font-size: 3.2rem; }
  .cs-topbar { font-size: 0.65rem; padding: 5px 16px; }
  .cs-section-title { font-size: 1.6rem; }
  .cs-event-card-img { height: 200px; }
  .cs-hero { height: calc(100vh - 90px); }
  #content { border-radius: 20px 20px 0 0; margin-top: -20px; }
}

/* ============================================================
   BLOCCHI ONE-PAGE FIERA (cs-block)
   ============================================================ */
.cs-block { padding: 80px 0; }
.cs-block--white { background: #fff; }
/* ⚠️ "beige" è il nome che il CMS dà alla sezione a fondo TENUE (set4=beige),
   non a una sezione colorata: il valore giusto è il grigio chiaro della
   palette. Con --cs-accent (l'arancio del marchio) intere sezioni di testo
   diventavano arancioni. Il nome della classe resta perché è nei dati. */
.cs-block--beige { background: var(--cs-grey-light); }
.cs-block--dark  { background: var(--cs-blue-dark); }

.cs-block__label {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--cs-blue); margin-bottom: 12px;
}
.cs-block--dark .cs-block__label { color: var(--cs-accent); opacity: 0.85; }

.cs-block__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900;
  line-height: 1.15; margin-bottom: 0; color: var(--cs-blue-dark);
}
.cs-block--dark .cs-block__title { color: #fff; }

/* Border-left decorativo sul titolo */
.cs-block--white .cs-block__title-wrap,
.cs-block--beige .cs-block__title-wrap {
  padding-left: 20px;
  border-left: 4px solid var(--cs-blue);
}
.cs-block--dark .cs-block__title-wrap {
  padding-left: 20px;
  border-left: 4px solid rgba(255,255,255,0.3);
}

.cs-block__text { font-size: 0.97rem; line-height: 1.85; color: #555; margin-top: 24px; }
.cs-block__text p { margin-bottom: 1rem; }
.cs-block__text p:last-child { margin-bottom: 0; }
/* Elenchi rientrati nella colonna del testo: il reset del template azzera il padding e i
   pallini finivano fuori, a sinistra del testo (stesso difetto segnalato dal cliente
   nell'accredito scuole, 15-09-2026). */
.cs-block__text ul, .cs-block__text ol { padding-left: 1.5em; margin: .4em 0 1rem; }
.cs-block__text li { padding-left: .2em; margin-bottom: .25em; }
.cs-block__text strong { color: var(--cs-blue-dark); font-weight: 700; }
.cs-block--dark .cs-block__text { color: rgba(255,255,255,0.75); }
.cs-block--dark .cs-block__text strong { color: #fff; }

.cs-block__btn {
  display: inline-block; margin-top: 28px;
  padding: 12px 36px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; text-decoration: none; transition: all 0.2s;
}
.cs-block--white .cs-block__btn,
.cs-block--beige .cs-block__btn { background: var(--cs-blue); color: #fff; }
.cs-block--white .cs-block__btn:hover,
.cs-block--beige .cs-block__btn:hover { background: var(--cs-blue-dark); color: #fff; }
.cs-block--dark .cs-block__btn {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.cs-block--dark .cs-block__btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ============================================================
   Sfondi AZZURRO e ARANCIO (richiesta del cliente, 16-09-2026)
   ============================================================
   Sono i due colori del marchio: --cs-azure #1b9bd9 e --cs-orange #f59100.

   ⚠️⚠️ NON si comportano come il fondo scuro, anche se "colorati" fa pensare di sì.
      In termini di luminanza sono colori CHIARI, e il testo bianco sopra non si
      legge: bianco su azzurro sta a **3,1:1**, su arancio a **2,35:1**, sotto il
      minimo di 4,5:1 per il testo corrente. Quindi qui il testo va SCURO.

   ⚠️ E non basta il testo scuro di default: il grigio #555 dei paragrafi su
      azzurro sta a 2,4:1 e su arancio a 3,2:1 — leggibili né l'uno né l'altro.
      Serve --cs-ink, che dà **4,7:1 sull'azzurro** e **6,3:1 sull'arancio**.
      Il blu della palette (#285073) sull'azzurro starebbe a 2,7:1: troppo vicini.

   ⚠️ Il bottone pieno resta scuro con testo bianco: su questi fondi un bottone
      bianco con testo colorato si confonderebbe con le card. */
.cs-block--azzurro, .cs-section-azzurro { background: var(--cs-azure); }
.cs-block--arancio, .cs-section-arancio { background: var(--cs-orange); }

.cs-block--azzurro, .cs-block--arancio,
.cs-section-azzurro, .cs-section-arancio { color: var(--cs-ink); }

.cs-block--azzurro .cs-block__label,
.cs-block--arancio .cs-block__label { color: var(--cs-ink); opacity: 0.9; }

.cs-block--azzurro .cs-block__title,
.cs-block--arancio .cs-block__title,
.cs-section-azzurro .cs-section-title,
.cs-section-arancio .cs-section-title { color: var(--cs-ink); }

.cs-block--azzurro .cs-block__title-wrap,
.cs-block--arancio .cs-block__title-wrap {
  padding-left: 20px;
  border-left: 4px solid rgba(19, 41, 61, 0.35);
}

.cs-block--azzurro .cs-block__text,
.cs-block--arancio .cs-block__text { color: var(--cs-ink); }
.cs-block--azzurro .cs-block__text strong,
.cs-block--arancio .cs-block__text strong { color: var(--cs-ink); }

.cs-block--azzurro .cs-block__btn,
.cs-block--arancio .cs-block__btn { background: var(--cs-ink); color: #fff; }
.cs-block--azzurro .cs-block__btn:hover,
.cs-block--arancio .cs-block__btn:hover { background: var(--cs-blue-dark); color: #fff; }

.cs-section-azzurro .cs-link-more,
.cs-section-arancio .cs-link-more { color: var(--cs-ink); }
.cs-section-azzurro .cs-link-more:hover,
.cs-section-arancio .cs-link-more:hover { color: #fff; }

.cs-block--azzurro hr, .cs-block--arancio hr { border-color: rgba(19, 41, 61, 0.25); }
.cs-block--azzurro .cs-allegati-title,
.cs-block--arancio .cs-allegati-title {
  color: var(--cs-ink); border-bottom-color: rgba(19, 41, 61, 0.35);
}
/* Il blocco promo con foto: il velo prende il colore della sezione (vedi più sotto
   il gemello per --dark), altrimenti su una foto il testo scuro sparisce. */
.cs-promo--img.cs-block--azzurro::before { background: rgba(27, 155, 217, 0.82); }
.cs-promo--img.cs-block--arancio::before { background: rgba(245, 145, 0, 0.82); }
.cs-block--azzurro .cs-promo__title,
.cs-block--arancio .cs-promo__title { color: var(--cs-ink); }
.cs-block--azzurro .cs-promo__text,
.cs-block--arancio .cs-promo__text { color: var(--cs-ink); }

/* ===== Blocco PROMO (block_promo.php) — CTA a tutta sezione =====
   Contenuto centrato e titolo più grande del blocco standard. Con una foto
   caricata sul blocco, l'immagine fa da sfondo e l'overlay prende il colore di
   set4: il testo resta leggibile e il colore scelto resta uno solo. */
.cs-promo { position: relative; padding: 96px 0; }
.cs-promo--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cs-promo--img::before {
  content: ""; position: absolute; inset: 0;
}
/* Overlay = lo stesso colore di .cs-block--*, velato (rgba dei --cs-*) */
.cs-promo--img.cs-block--white::before { background: rgba(255, 255, 255, 0.88); }
.cs-promo--img.cs-block--beige::before { background: rgba(244, 245, 246, 0.92); }  /* --cs-grey-light */
.cs-promo--img.cs-block--dark::before  { background: rgba(27, 58, 84, 0.82); }     /* --cs-blue-dark */
.cs-promo > .container { position: relative; z-index: 1; }

.cs-promo .cs-block__label { margin-bottom: 16px; }
.cs-promo__title {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900;
  line-height: 1.1; margin: 0; color: var(--cs-blue-dark);
}
.cs-block--dark .cs-promo__title { color: #fff; }
.cs-promo__text {
  font-size: 1.05rem; line-height: 1.75; color: #555;
  margin: 20px auto 0; max-width: 640px;
}
.cs-block--dark .cs-promo__text { color: rgba(255, 255, 255, 0.8); }
.cs-promo__btn { margin-top: 32px; padding: 14px 44px; font-size: 0.86rem; }
@media (max-width: 767.98px) { .cs-promo { padding: 64px 0; } }

/* Allegati su sfondo scuro */
.cs-block--dark .cs-allegati-title { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.cs-block--dark hr { border-color: rgba(255,255,255,0.2); }

.cs-block__single-img {
  width: 100%; border-radius: 16px; overflow: hidden; display: block;
}
.cs-block__single-img img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s;
}
.cs-block__single-img:hover img { transform: scale(1.03); }

.cs-block__slider .fslider,
.cs-block__slider .flexslider { border-radius: 16px; overflow: hidden; }
.cs-block__slider .slide img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* Gallery boxed (container) */
.cs-block__gallery-carousel .oc-item a,
.cs-block__gallery-fullwidth  .oc-item a {
  display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px;
}
.cs-block__gallery-carousel .oc-item img,
.cs-block__gallery-fullwidth  .oc-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s;
}
.cs-block__gallery-carousel .oc-item a:hover img,
.cs-block__gallery-fullwidth  .oc-item a:hover img { transform: scale(1.05); }

/* Gallery full-width: esce dal container, nessun padding laterale */
.cs-block--gallery-full { overflow: hidden; }
.cs-block__gallery-fullwidth { width: 100%; padding: 0; }
.cs-block__gallery-fullwidth .owl-carousel { border-radius: 0; }
.cs-block__gallery-fullwidth .oc-item a { border-radius: 0; }
.cs-block__gallery-fullwidth .oc-item img { height: 380px; aspect-ratio: unset; }
@media (max-width: 767px) {
  .cs-block__gallery-fullwidth .oc-item img { height: 220px; }
}

/* Page header interno */
.cs-page-header {
  position: relative; background: var(--cs-blue-dark);
  background-size: cover; background-position: center;
  padding: 140px 0 70px; overflow: hidden;
}
.cs-page-header::before {
  content: ''; position: absolute; inset: 0;
  /* ⚠️ Era rgba(74,54,32,.78), il marrone caldo di Casalia: sulle foto di
     cantiere di Restructura virava tutto al seppia. Il blu qui sotto e' lo
     stesso terzetto con le componenti invertite, ed e' vicino a --cs-blue-dark
     (#285073) restando piu' scuro, come serve a un velo sotto al testo bianco. */
  background: rgba(32, 54, 74, 0.78);
}
.cs-page-header__inner { position: relative; z-index: 1; }
.cs-page-header__label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cs-accent); margin-bottom: 12px;
}
.cs-page-header__title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 14px;
}
.cs-page-header__sub { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 560px; }
.cs-breadcrumb { margin-top: 28px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.cs-breadcrumb a { color: var(--cs-accent); text-decoration: none; }
.cs-breadcrumb a:hover { color: #fff; }
.cs-breadcrumb span { margin: 0 8px; }

@media (max-width: 991px) {
  .cs-block { padding: 56px 0; }
  .cs-block__media-first { order: 2; margin-top: 36px; }
  .cs-block__text-col  { order: 1; }
  .cs-block__slider .slide img { height: 260px; }
}

/* =============================================
   AREA TEMATICA — block_area_tematica.php
   ============================================= */

/* Sezione contenuto area */
.cs-area-content {
  padding: 60px 0 80px;
  background: var(--cs-grey-light);
}
.cs-area-intro {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cs-blue-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cs-area-body {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 20px;
}
.cs-area-body p { margin-bottom: 14px; }
.cs-btn-brown-outline {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 28px;
  border: 2px solid var(--cs-blue);
  color: var(--cs-blue);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.2s;
}
.cs-btn-brown-outline:hover {
  background: var(--cs-blue);
  color: #fff;
}

/* Stat box */
.cs-stat-card {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.cs-stat-dark  { background: var(--cs-blue-dark); color: #fff; }
.cs-stat-brown { background: var(--cs-blue);      color: #fff; }
.cs-stat-light { background: #f4f5f6; }
.cs-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cs-accent);
}
.cs-stat-light .cs-stat-num { color: var(--cs-blue-dark); }
.cs-stat-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  opacity: 0.8;
}
.cs-stat-light .cs-stat-lbl { color: #888; opacity: 1; }

/* Gallery carousel area */
.cs-area-gallery-carousel .oc-item a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}
.cs-area-gallery-carousel .oc-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.cs-area-gallery-carousel .oc-item a:hover img { transform: scale(1.06); }

/* Comunicato stampa (block_comunicato.php): testo a tutta larghezza e giustificato,
   foto a slider in fondo — correzioni del cliente del 15-09-2026.
   hyphens: con il giustificato, senza sillabazione le righe corte si riempiono di buchi. */
.cs-comunicato__sommario { margin-top: 18px; font-size: 1.05rem; font-weight: 600; line-height: 1.6; color: var(--cs-blue-dark); text-align: justify; }
.cs-comunicato__testo { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.cs-comunicato__foto { margin-top: 44px; }
.cs-comunicato__foto .cs-allegati-title { margin-bottom: 18px; }
@media (max-width: 575.98px) { .cs-comunicato__testo, .cs-comunicato__sommario { text-align: left; } }

/* Sezione eventi */
.cs-events-section {
  padding: 80px 0;
  background: #fff;
}
.cs-events-section .cs-section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cs-blue-dark);
  margin-bottom: 8px;
}
.cs-events-section .cs-section-sub {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 40px;
}

/* Sidebar filtri */
.cs-filter-sidebar {
  position: sticky;
  top: 100px;
}
.cs-filter-group { margin-bottom: 32px; }
.cs-filter-group__title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 12px;
}
.cs-filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  margin-bottom: 4px;
  border: none;
  background: #f4f5f6;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.cs-filter-btn:hover,
.cs-filter-btn.active {
  background: var(--cs-blue);
  color: #fff;
}
.cs-tag-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tag-btn {
  padding: 5px 12px;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #666;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cs-tag-btn:hover,
.cs-tag-btn.active {
  border-color: var(--cs-blue);
  background: var(--cs-blue);
  color: #fff;
}

/* Ricerca libera eventi (block_calendario_eventi) */
.cs-events-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
}
.cs-events-search__field {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}
.cs-events-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b9bab;
  font-size: 1.05rem;
  pointer-events: none;
}
.cs-events-search__input {
  width: 100%;
  padding: 12px 42px 12px 44px;
  border: 1.5px solid #e2dcd6;
  border-radius: 50px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cs-events-search__input::placeholder { color: #8b9bab; font-weight: 400; }
.cs-events-search__input:focus {
  outline: none;
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 3px rgba(40, 80, 115, 0.12);
}
/* la X nativa di type="search" si somma alla nostra */
.cs-events-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cs-events-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f4f5f6;
  color: #6b5b4c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cs-events-search__clear:hover { background: var(--cs-blue); color: #fff; }
.cs-events-search__count {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  white-space: nowrap;
}

/* Grid eventi */
.cs-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1199px) { .cs-events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:  599px) { .cs-events-grid { grid-template-columns: 1fr; } }

/* Card evento — di solo testo, su fondo grigio (16-09-2026).
   ⚠️ L'immagine è stata tolta di proposito: nessun evento ha una foto propria, quindi
   tutte le card ripiegavano sulla stessa immagine di Restructura e la griglia sembrava
   una fila di doppioni. Le regole `__img` restano qui sotto, spente: servono il giorno
   in cui il cliente consegna le foto dei singoli appuntamenti, e vanno riaccese
   insieme al markup nei blocchi calendario e area tematica. */
.cs-event-card-new {
  background: var(--cs-grey-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4e9ed;
  transition: transform 0.22s, box-shadow 0.22s, background-color 0.22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.cs-event-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(40, 80, 115,0.12);
  background: #fff;
  color: inherit;
}
.cs-event-card-new.is-hidden { display: none; }
.cs-event-card-new__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.cs-event-card-new__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.cs-event-card-new:hover .cs-event-card-new__img img { transform: scale(1.05); }
/* Senza immagine il corpo è tutta la card: un filo più d'aria in alto.
   La colonna flex serve al footer, che con `margin-top: auto` va in fondo: le card
   della stessa riga sono alte uguale (griglia), ma i testi no, e senza questo la riga
   "Restructura Stage / Dettagli" si ferma dove finisce la descrizione — con l'immagine
   in testa si notava poco, a card di solo testo salta all'occhio. */
.cs-event-card-new__body {
  padding: 22px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-event-card-new__footer { margin-top: auto; }
.cs-event-card-new__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cs-event-card-new__day {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cs-accent);
  background: var(--cs-blue-dark);
  padding: 3px 10px;
  border-radius: 4px;
}
.cs-event-card-new__time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
}
.cs-event-card-new__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-blue);
  background: #f4f5f6;
  padding: 3px 9px;
  border-radius: 4px;
}
.cs-event-card-new__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cs-blue-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}
.cs-event-card-new__desc {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.cs-event-card-new__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #aaa;
  border-top: 1px solid #e8ecef;
  padding-top: 12px;
}
.cs-event-card-new__place { display: flex; align-items: center; gap: 5px; }
.cs-event-card-new__link {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-blue);
  text-decoration: none;
}
.cs-event-card-new__link:hover { color: var(--cs-blue-dark); }
.cs-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #aaa;
  font-size: 0.95rem;
}

/* =============================================
   IT_SET3 — Scheda singolo evento
   ============================================= */

/* Sezione principale */
.cs-evento-section {
  background: #f4f5f6;
  padding: 64px 0 80px;
}

/* Badge tipo */
.cs-evento-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 4px 14px; border-radius: 50px;
  margin-bottom: 20px;
}

/* Testo principale */
.cs-evento-desc { font-size: 1rem; line-height: 1.75; color: #444; }
.cs-evento-desc p { margin-bottom: 1rem; }

/* Il programma dentro la scheda: "Keynote speaker", "Intervengono", "Tavola rotonda | …".
   ⚠️ Bootstrap azzera il margine SOPRA i titoli (h4 { margin-top: 0 }), quindi un
   titoletto che segue un elenco finisce appiccicato all'ultima voce e le sezioni si
   leggono come un blocco unico. Nell'HTML l'<h4> c'è ed è al posto giusto: il difetto
   si vede solo guardando la pagina renderizzata. (Riscontrato il 16-09-2026 caricando
   il programma del Restructura Stage.) */
.cs-evento-desc h4 {
  margin: 2rem 0 .7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cs-blue-dark);
}
.cs-evento-desc h4:first-child { margin-top: 0; }
.cs-evento-desc h4 small { font-weight: 500; color: #777; }
.cs-evento-desc ul, .cs-evento-desc ol { padding-left: 1.4em; margin: 0 0 1rem; }
.cs-evento-desc li { margin-bottom: .35em; }
/* La nota "* invitato/a a partecipare" in fondo: è una didascalia, non testo corrente. */
.cs-evento-desc p small { color: #777; }

/* Tag tematici */
.cs-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.cs-tag-pill {
  font-size: 0.75rem; font-weight: 600; padding: 5px 14px;
  border-radius: 50px; background: #fff; border: 1.5px solid var(--cs-blue);
  color: var(--cs-blue);
}

/* Speaker */
.cs-speaker-list { margin: 32px 0; }
.cs-speaker-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cs-blue); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--cs-blue);
}
.cs-speaker-card {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid #dde3e8;
}
.cs-speaker-card:last-child { border-bottom: none; }
.cs-speaker-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cs-blue); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff; text-transform: uppercase;
}
.cs-speaker-name { font-size: 0.95rem; font-weight: 700; color: #2c2c2c; }
.cs-speaker-role { font-size: 0.82rem; color: #777; margin-top: 2px; }

/* Gallery evento */
.cs-evento-gallery { margin: 32px 0; }
.cs-evento-gallery-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cs-blue); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--cs-blue);
}
.cs-evento-gallery-carousel .oc-item a {
  display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px;
}
.cs-evento-gallery-carousel .oc-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease; display: block;
}
.cs-evento-gallery-carousel .oc-item a:hover img { transform: scale(1.05); }

/* Allegati */
.cs-allegati { margin: 32px 0; }
.cs-allegati-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cs-blue); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--cs-blue);
}
.cs-allegato-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #fff; border-radius: 10px;
  margin-bottom: 10px; text-decoration: none; transition: box-shadow 0.2s; color: inherit;
}
.cs-allegato-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); color: inherit; }
.cs-allegato-icon { font-size: 1.5rem; color: var(--cs-blue); flex-shrink: 0; }
.cs-allegato-nome { font-size: 0.88rem; font-weight: 600; color: #2c2c2c; flex: 1; }
.cs-allegato-size {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .06em;
  color: #8a7a68; background: #f1ece6; border-radius: 6px;
  padding: 3px 8px; flex-shrink: 0;
}
/* Blocco allegati riusabile (file_gallery.php) */
.cs-allegati-list { margin: 0; }
.cs-allegato-item { border: 1px solid #ece6df; }
.cs-allegato-item:hover { box-shadow: 0 6px 20px rgba(40, 80, 115,0.12); transform: translateY(-1px); }
.cs-allegato-icon.is-pdf   { color: #d0472e; }
.cs-allegato-icon.is-word  { color: #2a5699; }
.cs-allegato-icon.is-excel { color: #1d6f42; }
.cs-allegato-icon.is-zip   { color: #b8860b; }
.cs-allegato-icon.is-image { color: #7048b6; }
.cs-allegato-cta {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cs-blue); color: #fff; font-size: 1.1rem;
  transition: background 0.2s;
}
.cs-allegato-item:hover .cs-allegato-cta { background: var(--cs-blue-dark); }
.cs-allegato-pdf-view {
  width: 100%; height: 600px; border: 0; border-radius: 12px;
  margin: 4px 0 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cs-allegato-pdf-zoom {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--cs-blue);
  margin: 0 0 14px 2px;
}

/* Sidebar */
.cs-evento-sidebar { position: sticky; top: 100px; }
.cs-sidebar-box {
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.cs-sidebar-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #e8ecef;
}
.cs-sidebar-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.cs-sidebar-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f4f5f6; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--cs-blue); flex-shrink: 0;
}
.cs-sidebar-label {
  font-size: 0.72rem; color: #999; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cs-sidebar-value { font-size: 0.9rem; font-weight: 700; color: #2c2c2c; margin-top: 2px; }

/* Barra posti */
.cs-posti-bar-wrap { margin-top: 16px; }
.cs-posti-bar-label { font-size: 0.8rem; color: #666; margin-bottom: 6px; }
.cs-posti-bar { height: 6px; background: #e9e2da; border-radius: 3px; overflow: hidden; }
.cs-posti-bar-fill { height: 100%; border-radius: 3px; background: var(--cs-blue); transition: width 0.5s ease; }
.cs-posti-num {
  margin-top: 6px; font-size: 0.78rem; color: #888;
  display: flex; justify-content: space-between;
}
.cs-posti-lib { font-weight: 700; color: var(--cs-blue); }

/* CTA prenotazione */
.cs-btn-prenota {
  display: block; width: 100%; text-align: center;
  margin-top: 20px; padding: 14px 20px;
  background: var(--cs-blue); color: #fff;
  font-weight: 700; font-size: 0.95rem; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s; font-family: 'Montserrat', sans-serif;
}
.cs-btn-prenota:hover { background: var(--cs-blue-dark); color: #fff; transform: translateY(-1px); }
.cs-btn-prenota:disabled,
.cs-btn-prenota.sold-out { background: #ccc; cursor: not-allowed; transform: none; }

/* Sezione correlati */
.cs-correlati-section { background: #fff; padding: 64px 0; }
.cs-correlati-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cs-blue); margin-bottom: 8px;
}
.cs-correlati-h2 { font-size: 1.6rem; font-weight: 900; color: #2c2c2c; margin-bottom: 36px; }

/* Card correlato orizzontale */
.cs-ev-card-h {
  display: flex; gap: 0; border-radius: 14px; overflow: hidden;
  background: #f4f5f6; text-decoration: none; transition: box-shadow 0.2s; height: 100%; color: inherit;
}
.cs-ev-card-h:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); color: inherit; }
.cs-ev-card-h-img { width: 120px; flex-shrink: 0; background-size: cover; background-position: center; }
/* ⚠️ `flex: 1` perché dal 16-09-2026 il corpo è l'unico figlio del flex (l'immagine è
   stata tolta, vedi la nota sulle card evento): senza, la card resterebbe larga quanto
   il testo e il fondo grigio si fermerebbe a metà colonna. */
.cs-ev-card-h-body { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.cs-ev-card-h-tipo {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cs-blue); margin-bottom: 6px;
}
.cs-ev-card-h-title { font-size: 0.95rem; font-weight: 700; color: #2c2c2c; line-height: 1.3; margin-bottom: 8px; }
.cs-ev-card-h-meta { font-size: 0.78rem; color: #888; display: flex; gap: 12px; flex-wrap: wrap; }

/* Modal prenotazione — z-index sopra l'header Canvas (9000) */
.cs-modal { z-index: 9500 !important; }
.modal-backdrop { z-index: 9400 !important; }
.cs-modal .modal-content { border-radius: 16px; border: none; overflow: hidden; }
.cs-modal-header {
  background: var(--cs-blue-dark); color: #fff;
  padding: 24px 28px 20px; border-bottom: none; border-radius: 16px 16px 0 0;
}
.cs-modal-header .btn-close { filter: invert(1) opacity(0.7); }
.cs-modal-title-ev { font-size: 0.78rem; font-weight: 600; opacity: 0.7; margin-bottom: 4px; }
.cs-modal-title-main { font-size: 1.15rem; font-weight: 900; }
.cs-modal-body { padding: 28px; }
.cs-form-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #555; margin-bottom: 6px; display: block;
}
.cs-form-input {
  border-radius: 10px; border: 1.5px solid #dde3e8; padding: 12px 16px;
  font-size: 0.9rem; width: 100%; transition: border-color 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.cs-form-input:focus { outline: none; border-color: var(--cs-blue); }
.cs-form-group { margin-bottom: 16px; }
.cs-modal-note { font-size: 0.78rem; color: #888; margin-top: 12px; }

@media (max-width: 991px) {
  .cs-evento-sidebar { position: static; }
}

/* Campi extra form prenotazione */
.cs-form-select { appearance: auto; background: #fff; }
.cs-form-flags { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 0; }
.cs-form-flags .form-check { margin-bottom: 0; }

/* ── ESPOSITORI SECTION (block_area_tematica) ───────────────────── */
.cs-espositori-section {
  padding: 80px 0;
  background: #fff;
}
.cs-section-head { margin-bottom: 40px; }
/* ⚠️ Queste due regole erano scritte come selettori GLOBALI (.cs-section-title,
   .cs-section-sub) pur appartenendo a questa sola sezione. Essendo piu' in
   basso nel file vincevano ovunque, e imponendo `color: var(--cs-blue-dark)`
   rendevano INVISIBILE il titolo di ogni sezione a fondo scuro — blu scuro su
   blu scuro. Ora sono legate al loro contenitore, come dice il commento sopra. */
.cs-espositori-section .cs-section-title {
  font-size: 2rem; font-weight: 900;
  margin-bottom: 8px;
}
.cs-espositori-section .cs-section-sub { color: #888; font-size: 0.9rem; margin: 0; }

.cs-esp-card {
  display: block; text-decoration: none;
  background: #fff; border: 1.5px solid #e8e0d8;
  border-radius: 16px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.cs-esp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(40, 80, 115,0.12);
  border-color: var(--cs-blue);
}
.cs-esp-card__img {
  aspect-ratio: 16/9; overflow: hidden; background: #f4f5f6;
}
.cs-esp-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.cs-esp-card:hover .cs-esp-card__img img { transform: scale(1.04); }
.cs-esp-card__body { padding: 20px 22px 22px; }
.cs-esp-card__name {
  font-size: 1.05rem; font-weight: 800; color: var(--cs-blue-dark);
  margin-bottom: 4px;
}
.cs-esp-card__brand {
  font-size: 0.78rem; font-weight: 600; color: var(--cs-blue);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.cs-esp-card__desc {
  font-size: 0.85rem; color: #666; line-height: 1.5;
  margin-bottom: 12px;
}
.cs-esp-card__stand {
  font-size: 0.78rem; color: #999; font-weight: 600;
}
.cs-esp-card__stand .uil { margin-right: 4px; }

/* ── CATALOGO ESPOSITORI & SINGOLO ESPOSITORE ──────────────── */

/* Page header espositore: cover foto dalla prima immagine */
.cs-page-header--expo .cs-page-header__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
}

/* Layout catalogo */
.cs-catalog-section { padding: 60px 0 80px; background: #f4f5f6; }

/* Testo introduttivo della pagina-area, sopra i filtri. Stessi valori tipografici
   di .cs-area-body. A tutta larghezza (16-09-2026, Marco): con max-width 820px
   restava un vuoto a destra che sbilanciava la sezione rispetto a filtri e card. */
.cs-catalog-intro {
  margin: 0 0 32px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
}
.cs-catalog-intro p { margin-bottom: 14px; }
.cs-catalog-intro p:last-child { margin-bottom: 0; }

/* Testo introduttivo sopra la griglia delle aree (block_list_aree). A tutta larghezza
   come .cs-catalog-intro (16-09-2026): con max-width 820px il vuoto a destra sembrava un errore. */
.cs-aree-intro {
  margin: 0 0 40px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
}
.cs-aree-intro p { margin-bottom: 14px; }
.cs-aree-intro p:last-child { margin-bottom: 0; }
.cs-catalog-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.cs-catalog-topbar-form {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cs-catalog-count { font-size: 0.82rem; font-weight: 600; color: #888; }
.cs-catalog-count strong { color: var(--cs-blue-dark); }
.cs-search-wrap { position: relative; min-width: 200px; }
.cs-search-input {
  width: 100%; padding: 10px 40px 10px 14px;
  border: 1.5px solid #dde3e8; border-radius: 50px;
  font-size: 0.85rem; font-family: 'Montserrat', sans-serif;
  background: #fff; color: #333; transition: border-color 0.2s;
}
.cs-search-input:focus { outline: none; border-color: var(--cs-blue); }
.cs-search-icon {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; outline: none; padding: 4px 6px;
  -webkit-appearance: none; appearance: none;
  color: #aaa; cursor: pointer; line-height: 1; font-size: 1rem;
}
.cs-search-icon:hover { color: var(--cs-blue); }
.cs-sort-select {
  padding: 7px 14px; border: 1.5px solid #dde3e8; border-radius: 50px;
  font-size: 0.8rem; font-family: 'Montserrat', sans-serif;
  color: #444; background: #fff; cursor: pointer;
}
.cs-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--cs-blue); color: #fff;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-decoration: none;
}
.cs-chip:hover { background: var(--cs-blue-dark); color: #fff; }

/* Grid card catalogo */
.cs-expo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1599px) { .cs-expo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1199px) { .cs-expo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .cs-expo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 499px)  { .cs-expo-grid { grid-template-columns: 1fr; } }

.cs-expo-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #e4e9ed; transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none; display: flex; flex-direction: column;
}
.cs-expo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(40, 80, 115,0.13);
  text-decoration: none;
}
.cs-expo-card__logo-wrap {
  height: 150px; background: #f9f7f5;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  border-bottom: 1px solid var(--cs-filetto); padding: 12px 20px;
}
.cs-expo-card__logo-wrap img {
  max-width: 90%; max-height: 120px; object-fit: contain;
  /* Prima era grayscale(60%) + opacity .8: aveva senso finché l'immagine era
     una foto d'ambiente, ma ora è il LOGO dell'espositore e sbiadirlo lo rende
     illeggibile. Si mostra com'è. */
  filter: none; opacity: 1;
  transition: transform 0.2s;
}
.cs-expo-card:hover .cs-expo-card__logo-wrap img { transform: scale(1.04); }
.cs-expo-card__logo-placeholder {
  font-size: 1rem; font-weight: 900; color: var(--cs-blue);
  letter-spacing: 0.04em; text-align: center; padding: 0 12px; line-height: 1.2;
}
.cs-expo-card__stand {
  position: absolute; top: 10px; right: 10px;
  background: var(--cs-blue-dark); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px;
}
.cs-expo-card__body {
  padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column;
}
.cs-expo-card__brand {
  font-size: 0.78rem; font-weight: 900; color: var(--cs-blue-dark);
  letter-spacing: 0.04em; margin-bottom: 2px;
}
.cs-expo-card__ragione {
  font-size: 0.74rem; color: #5a6b7a; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-expo-card__desc {
  font-size: 0.78rem; color: #4f463f; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px;
}
/* Indirizzo e tag IMPILATI, non affiancati. Su cinque colonne la riga si spartiva in
   due colonne strettissime: l'indirizzo si spezzava su sei righe ("Via Enrico /
   Dandolo 25/ / F, 10137 / torino,") e i tag restavano a mezz'aria di fianco, con
   l'occhio costretto a saltare fra due incolonnamenti diversi. Impilati, l'indirizzo
   ha tutta la larghezza della card e gliene bastano due. */
/* ⚠️ NIENTE `margin-top: auto` qui, ed e' una scelta pagata cara. Serviva ad allineare
   i tag in fondo, ma allinea il FONDO del footer, non il suo bordo superiore: con
   l'indirizzo su due righe o i tag su due file il footer e' piu' alto e il filetto sale.
   Misurato su una riga di card, lo spazio bianco sopra il filetto andava da 27 px a 8 px,
   e un filetto schiacciato contro il testo si legge piu' marcato pur essendo dello stesso
   colore — segnalato come "due card hanno i filetti piu' scuri". Senza margin-top:auto
   il filetto sta SEMPRE a 8+12 px dal testo che ha sopra: distanza costante su tutte le
   card, che e' la cosa che l'occhio confronta. Il prezzo e' che i tag non si allineano
   piu' in basso, ed e' il prezzo giusto: nessuno lo aveva chiesto. */
.cs-expo-card__footer {
  /* Aria FISSA sopra il filetto (16 + gli 8 del margine di .ragione = 24 px): e' la
     distanza generosa che avevano le card fortunate, ora garantita a tutte. */
  margin-top: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border-top: 1px solid var(--cs-filetto); padding-top: 12px;
}
.cs-expo-card__loc {
  font-size: 0.72rem; color: #5a6b7a; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 5px; min-width: 0;
}
/* Il segnaposto sta sulla PRIMA riga: con align-items:center finiva a meta' di un
   indirizzo su due righe, staccato dal testo che dovrebbe ancorare. */
.cs-expo-card__loc i { flex: none; margin-top: 0.18em; }
.cs-expo-card__mercs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-start; }
.cs-expo-card__merc-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--cs-blue);
  background: #f4f5f6; padding: 2px 7px; border-radius: 4px;
  /* Niente nowrap: le merceologie 2026 sono lunghe ("Finiture, interni ed esterni
     per l'edilizia") e su una riga uscivano dalla card. Vanno a capo dentro il tag. */
  line-height: 1.35; max-width: 100%;
}
.cs-empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; }
.cs-empty-state__icon { font-size: 3rem; color: #ddd; margin-bottom: 16px; }
.cs-empty-state h3 { font-size: 1.2rem; font-weight: 700; color: #888; margin-bottom: 8px; }
.cs-empty-state p { font-size: 0.88rem; color: #aaa; }
.cs-empty-state a {
  display: inline-block; margin-top: 16px; padding: 10px 28px;
  background: var(--cs-blue); color: #fff; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700; text-decoration: none;
}

/* Singolo espositore — scheda */
.cs-expo-section { background: #f4f5f6; padding: 64px 0 80px; }
.cs-expo-logo-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07); margin-bottom: 20px;
}
.cs-expo-logo-area {
  padding: 40px 32px; display: flex; align-items: center;
  justify-content: center; min-height: 160px;
  border-bottom: 1px solid #e8ecef;
}
.cs-expo-logo-area img { max-width: 70%; max-height: 100px; object-fit: contain; }
.cs-expo-logo-placeholder {
  font-size: 1.8rem; font-weight: 900; color: var(--cs-blue);
  letter-spacing: 0.06em; text-align: center; line-height: 1.2;
}
.cs-stand-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--cs-blue-dark); border-radius: 12px;
  padding: 16px 20px; color: #fff;
}
.cs-stand-badge__icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.cs-stand-badge__label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.7;
}
.cs-stand-badge__value { font-size: 1.1rem; font-weight: 900; }
.cs-sidebar-box {
  background: #fff; border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.cs-sidebar-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #e8ecef;
}
.cs-sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }
.cs-sidebar-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f4f5f6; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; color: var(--cs-blue); flex-shrink: 0;
}
.cs-sidebar-label { font-size: 0.7rem; color: #aaa; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cs-sidebar-value { font-size: 0.88rem; font-weight: 600; color: #2c2c2c; margin-top: 2px; }
.cs-sidebar-value a { color: var(--cs-blue); text-decoration: none; }
.cs-sidebar-value a:hover { color: var(--cs-blue-dark); }
.cs-btn-contact {
  display: block; width: 100%; text-align: center;
  padding: 13px 20px; background: var(--cs-blue); color: #fff;
  font-weight: 700; font-size: 0.9rem; border-radius: 50px;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
  margin-top: 16px;
}
.cs-btn-contact:hover { background: var(--cs-blue-dark); color: #fff; transform: translateY(-1px); }
.cs-btn-outline-contact {
  display: block; width: 100%; text-align: center;
  padding: 11px 20px; background: transparent; color: var(--cs-blue);
  font-weight: 700; font-size: 0.9rem; border-radius: 50px;
  border: 2px solid var(--cs-blue); text-decoration: none;
  transition: all 0.2s; margin-top: 10px;
}
.cs-btn-outline-contact:hover { background: var(--cs-blue); color: #fff; }
.cs-expo-section-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cs-blue);
  padding-bottom: 8px; margin-bottom: 16px;
  border-bottom: 2px solid var(--cs-blue);
}
.cs-expo-desc { font-size: 0.95rem; line-height: 1.8; color: #444; }
.cs-expo-desc p { margin-bottom: 1rem; }
.cs-expo-desc strong { color: var(--cs-blue-dark); }
.cs-novita-box {
  background: #fff; border-left: 4px solid var(--cs-blue);
  border-radius: 0 12px 12px 0; padding: 16px 20px;
  margin: 24px 0; display: flex; align-items: flex-start; gap: 12px;
}
.cs-novita-box__label {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cs-blue); white-space: nowrap;
}
.cs-novita-box__text { font-size: 0.88rem; font-weight: 600; color: #2c2c2c; }
.cs-merc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; }
.cs-merc-tag-pill {
  padding: 6px 16px; border-radius: 50px;
  border: 1.5px solid var(--cs-blue);
  font-size: 0.76rem; font-weight: 700; color: var(--cs-blue);
  text-decoration: none; transition: all 0.15s;
}
.cs-merc-tag-pill:hover { background: var(--cs-blue); color: #fff; }
.cs-expo-gallery { margin: 32px 0; }
.cs-expo-gallery-carousel .oc-item a {
  display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px;
}
.cs-expo-gallery-carousel .oc-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block;
}
.cs-expo-gallery-carousel .oc-item a:hover img { transform: scale(1.05); }
.cs-cert-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-cert-badge {
  padding: 5px 12px; background: #e8ecef; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--cs-blue-dark); letter-spacing: 0.04em;
}

/* Correlati */
.cs-correlati-section { background: #fff; padding: 64px 0; }
.cs-correlati-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cs-blue); margin-bottom: 8px;
}
.cs-correlati-h2 { font-size: 1.6rem; font-weight: 900; color: #2c2c2c; margin-bottom: 36px; }
.cs-exp-card-h {
  display: flex; gap: 0; border-radius: 14px; overflow: hidden;
  background: #f4f5f6; text-decoration: none; transition: box-shadow 0.2s; height: 100%;
}
.cs-exp-card-h:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.cs-exp-card-h__logo {
  width: 110px; flex-shrink: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; border-right: 1px solid #e4e9ed;
}
.cs-exp-card-h__logo-ph {
  font-size: 0.72rem; font-weight: 900; color: var(--cs-blue);
  text-align: center; letter-spacing: 0.04em; line-height: 1.3;
}
.cs-exp-card-h__body {
  padding: 16px 18px; display: flex; flex-direction: column; justify-content: center;
}
.cs-exp-card-h__brand {
  font-size: 0.82rem; font-weight: 900; color: var(--cs-blue-dark);
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.cs-exp-card-h__desc {
  font-size: 0.78rem; color: #888; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;
}
.cs-exp-card-h__meta { font-size: 0.72rem; color: #aaa; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 767px) {
  .cs-catalog-topbar { flex-direction: column; align-items: stretch; }
  .cs-catalog-topbar-form { flex-direction: column; }
  .cs-search-wrap, .cs-sort-select { width: 100%; }
  .cs-expo-sidebar { position: static !important; margin-top: 40px; }
}

/* ── BLOCK LIST AREE ───────────────────────────────────────── */
.cs-areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 48px 0 64px;
}
@media (max-width: 1399px) { .cs-areas-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1099px) { .cs-areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .cs-areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .cs-areas-grid { grid-template-columns: 1fr; } }

.cs-area-count {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; opacity: 0.7; margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}

/* Header area dentro catalogo filtrato */
.cs-catalog-area-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid #dde3e8; flex-wrap: wrap; gap: 10px;
}
.cs-catalog-area-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--cs-blue);
  display: flex; align-items: center; gap: 8px;
}
.cs-catalog-back {
  font-size: 0.8rem; font-weight: 700; color: var(--cs-blue);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color 0.15s;
}
.cs-catalog-back:hover { color: var(--cs-blue-dark); }
/* Bottone "Vai al catalogo espositori completo" in fondo alle pagine-area */
.cs-catalog-more { text-align: center; margin: 48px 0 8px; }

/* ── Card Marchi (set2 figli di set1) ─────────────────── */
.cs-marchio-card {
  background: #fff; border: 1px solid #e4e9ed; border-radius: 12px;
  overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cs-marchio-card:hover { box-shadow: 0 6px 24px rgba(40, 80, 115,.12); transform: translateY(-2px); }
.cs-marchio-card__logo {
  background: #f8fafb; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
}
.cs-marchio-card__logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.cs-marchio-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cs-marchio-card__name { font-weight: 700; font-size: 0.95rem; color: var(--cs-blue-dark); }
.cs-marchio-card__desc { font-size: 0.82rem; color: #6b6460; line-height: 1.4; }
.cs-marchio-card__link {
  margin-top: auto; padding-top: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--cs-blue);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.cs-marchio-card__link:hover { color: var(--cs-blue-dark); }

/* =============================================
   BLOCK FORM ESPOSITORE (cfe-)
   ============================================= */

/* --- Sezioni ------------------------------- */
.cfe-section { padding: 72px 0; }
.cfe-section--white { background: #fff; }
.cfe-section--beige,
.cfe-section--team  { background: var(--cs-grey-light); border-top: 1px solid #dde3e8; } /* --team = alias retrocompat */
.cfe-section--dark  { background: var(--cs-blue-dark); }
.cfe-section--dark .cfe-kicker  { color: var(--cs-accent, #ffb04d); }
.cfe-section--dark .cfe-heading { color: #fff; }
.cfe-section--dark .cfe-sub     { color: rgba(255,255,255,.72); }
/* ⚠️ Terza famiglia di classi per la STESSA scelta di sfondo: i blocchi usano
   `cs-block--`, `cs-section-` oppure — solo il team — `cfe-section--`. Chi aggiunge
   una variante deve coprirle tutte e tre, o quel blocco resta senza fondo (la classe
   c'è, la regola no: sezione trasparente, nessun errore). Azzurro e arancio vogliono
   testo scuro: vedi la nota estesa nella sezione dei blocchi one-page. */
.cfe-section--azzurro { background: var(--cs-azure); }
.cfe-section--arancio { background: var(--cs-orange); }
.cfe-section--azzurro .cfe-kicker,  .cfe-section--arancio .cfe-kicker  { color: var(--cs-ink); opacity: .9; }
.cfe-section--azzurro .cfe-heading, .cfe-section--arancio .cfe-heading { color: var(--cs-ink); }
.cfe-section--azzurro .cfe-sub,     .cfe-section--arancio .cfe-sub     { color: var(--cs-ink); }

/* --- Successo ------------------------------ */
.cfe-success {
  text-align: center;
  padding: 80px 20px;
  max-width: 560px;
  margin: 0 auto;
}
.cfe-success__icon {
  font-size: 4rem;
  color: var(--cs-blue);
  line-height: 1;
  margin-bottom: 24px;
}
.cfe-success__title { font-size: 2rem; font-weight: 800; color: var(--cs-blue-dark); margin-bottom: 12px; }
.cfe-success__sub   { font-size: 1rem; color: var(--cs-text-muted); }

/* --- Alert errore -------------------------- */
.cfe-alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cfe-alert--error { background: #fef2f2; color: #c0392b; border: 1px solid #fecaca; }

/* --- Form wrap ----------------------------- */
.cfe-form-wrap { max-width: 100%; }

/* --- Titolo gruppo ------------------------- */
.cfe-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cs-blue);
  border-bottom: 2px solid var(--cs-accent);
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
}
.cfe-group-title:first-child { margin-top: 0; }

/* --- Label --------------------------------- */
.cfe-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.cfe-req { color: #c0392b; margin-left: 2px; }

/* --- Input / select / textarea ------------- */
.cfe-input,
.cfe-select,
.cfe-textarea {
  width: 100%;
  border: 1.5px solid #d0c9c0;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #333;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.cfe-input:focus,
.cfe-select:focus,
.cfe-textarea:focus {
  outline: none;
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 3px rgba(40, 80, 115,0.08);
}
.cfe-input::placeholder { color: #bbb; }
.cfe-textarea { resize: vertical; min-height: 110px; }

/* Select custom arrow */
.cfe-select-wrap { position: relative; }
.cfe-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: #888;
  pointer-events: none;
}

/* --- Radio gruppo -------------------------- */
.cfe-radio-group {
  display: flex;
  gap: 20px;
  padding-top: 10px;
}
.cfe-radio-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
}
.cfe-radio-group input[type="radio"] {
  accent-color: var(--cs-blue);
  width: 16px; height: 16px;
}

/* --- Nota sotto la label ------------------- */
.cfe-hint {
  font-size: 0.76rem;
  color: #888;
  margin: -2px 0 10px;
}

/* --- Griglia checkbox a card (aree) -------- */
.cfe-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 991px) { .cfe-check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cfe-check-grid { grid-template-columns: 1fr; } }

.cfe-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e0dad3;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.cfe-check-card:hover { border-color: var(--cs-blue); }
.cfe-check-card input[type="checkbox"] {
  accent-color: var(--cs-blue);
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.cfe-check-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #333;
}
.cfe-check-card em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8b8079;
}
.cfe-check-card:has(input:checked) {
  border-color: var(--cs-blue);
  background: #faf7f4;
}

/* --- Checkbox in linea (come ci hai trovato) --- */
.cfe-check-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.cfe-check-inline label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
}
.cfe-check-inline input[type="checkbox"] {
  accent-color: var(--cs-blue);
  width: 16px; height: 16px;
}

/* --- Checkbox privacy ---------------------- */
.cfe-privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.6;
  cursor: pointer;
}
.cfe-privacy-row input[type="checkbox"] {
  accent-color: var(--cs-blue);
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.cfe-privacy-row a { color: var(--cs-blue); }

/* Informativa privacy come semplice link, sotto la domanda newsletter (DPO Lingotto, 15-09-2026) */
.cfe-privacy-link { font-size: 0.82rem; margin: 10px 0 0; }
.cfe-privacy-link a { color: var(--cs-blue); text-decoration: underline !important; text-underline-offset: 2px; }   /* !important: vedi il footer, Canvas lo toglie con !important */

/* --- Submit btn ---------------------------- */
/* ⚠️ Era `lowercase`: il cliente vuole i bottoni dei form tutti in MAIUSCOLO
   (correzioni del 15-09-2026). */
.cfe-submit-btn {
  display: inline-block;
  background: var(--cs-blue);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 52px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.cfe-submit-btn:hover {
  background: var(--cs-blue-dark);
  transform: translateY(-1px);
}

/* --- Sidebar ------------------------------- */
.cfe-sidebar {
  background: #f8fafb;
  border-radius: 14px;
  padding: 32px 28px;
  border-left: 4px solid var(--cs-accent);
  position: sticky;
  top: 100px;
}
.cfe-sidebar__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cs-blue);
  margin-bottom: 16px;
}
.cfe-sidebar__list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.cfe-sidebar__list li {
  font-size: 0.82rem;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #ecddd0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.cfe-sidebar__list li:last-child { border-bottom: none; }
.cfe-sidebar__list li i { color: var(--cs-blue); margin-top: 2px; flex-shrink: 0; }

.cfe-sidebar__contact {
  margin-top: 24px;
  padding: 20px;
  background: var(--cs-blue);
  border-radius: 10px;
  color: #fff;
}
.cfe-sidebar__contact p    { font-size: 0.78rem; margin: 0 0 10px; opacity: 0.85; }
.cfe-sidebar__contact strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.cfe-sidebar__contact a    { color: var(--cs-accent); font-size: 0.8rem; }

/* --- Team section heading ------------------ */
.cfe-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cs-blue);
  margin-bottom: 6px;
}
.cfe-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--cs-blue-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}
.cfe-sub {
  font-size: 0.9rem;
  color: #666;
  max-width: 540px;
}

/* --- Team grid ----------------------------- */
.cfe-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) { .cfe-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .cfe-team-grid { grid-template-columns: 1fr; } }

/* --- Team card ----------------------------- */
.cfe-team-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px 24px;
  text-align: center;
  transition: box-shadow .25s, transform .2s;
}
.cfe-team-card:hover {
  box-shadow: 0 8px 28px rgba(40, 80, 115,0.13);
  transform: translateY(-3px);
}
.cfe-team-card__photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(40, 80, 115,0.15);
  margin: 0 auto 18px;
  display: block;
}
.cfe-team-card__initials {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--cs-blue);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(40, 80, 115,0.15);
  letter-spacing: 0.05em;
}
.cfe-team-card__name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cs-blue-dark);
  margin-bottom: 4px;
}
.cfe-team-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-blue);
  margin-bottom: 16px;
}
.cfe-team-card__contacts {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid #dde3e8;
  padding-top: 14px;
}
.cfe-team-card__contacts li {
  font-size: 0.76rem;
  color: #666;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cfe-team-card__contacts i { color: var(--cs-blue); font-size: 0.85rem; }
.cfe-team-card__contacts a { color: #666; text-decoration: none; word-break: break-all; }
.cfe-team-card__contacts a:hover { color: var(--cs-blue); }

/* --- Social espositori e marchi (import da service) -----------------------
   Le stesse icone servono alla sidebar della scheda e alle card dei marchi:
   un'unica classe, con la variante --sm per lo spazio più stretto della card.
   Il markup lo produce cs_social_html() in blocks/block_set1.php.           */
.cs-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.cs-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  /* ⚠️ NON usare --cs-accent: custom.css lo ridefinisce a #f4f5f6 (quasi bianco)
     e vince su restructura.css, dove invece vale #ffb04d. Le icone risultavano
     bianche su bianco e sembravano disattivate. --cs-blue vale #285073 in
     entrambi i file, quindi è l'unico sicuro. */
  background: var(--cs-blue);
  border: 1px solid var(--cs-blue);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  transition: background .2s, color .2s, transform .2s;
}
.cs-social a:hover {
  background: #fff;
  color: var(--cs-blue);
  transform: translateY(-2px);
}
.cs-social--sm { gap: 6px; margin-top: 8px; }
.cs-social--sm a { width: 28px; height: 28px; font-size: .85rem; }

/* ================================================
   TEMI 2026 — box orizzontali (block_list_aree.php con figlie area-tematica)
   Correzioni del cliente del 15-09-2026: come il box dei progetti speciali.
   ================================================ */
.cs-temi { display: flex; flex-direction: column; gap: 64px; }
.cs-tema__img {
  display: block; aspect-ratio: 4 / 3; border-radius: 16px;
  background: var(--cs-grey-light) center / cover no-repeat;
  transition: transform .3s ease;
}
.cs-tema__img:hover { transform: translateY(-4px); }
.cs-tema__sub { margin-top: 16px; font-weight: 700; color: var(--cs-blue-dark); line-height: 1.55; }
.cs-tema__text { margin-top: 12px; }
@media (max-width: 991.98px) { .cs-temi { gap: 44px; } }

/* ================================================
   PERSONE — ritratti con il nome (block_persone.php), es. Comitato Scientifico
   ================================================ */
.cs-persona { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none; }
.cs-persona__foto {
  display: block; width: 100%; max-width: 240px; aspect-ratio: 1 / 1; border-radius: 50%;
  overflow: hidden; background: var(--cs-grey-light);
}
.cs-persona__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cs-persona__iniziali { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; font-weight: 800; color: var(--cs-blue); }
.cs-persona--link:hover .cs-persona__foto img { transform: scale(1.05); }
.cs-persona__nome { margin-top: 14px; font-weight: 800; font-size: 1rem; color: var(--cs-blue-dark); line-height: 1.3; }
.cs-persona__ruolo { margin-top: 4px; font-size: .78rem; color: #666; line-height: 1.4; }
.cs-persona--link .cs-persona__nome::after { content: ' \203A'; color: var(--cs-accent); }

/* Sottotitolo in evidenza dentro short_text (es. Call4Ideas): <span class="cs-block__lead"> */
.cs-block__lead { display: block; font-size: 1.2rem; font-weight: 800; color: var(--cs-blue-dark); opacity: 1; line-height: 1.45; margin-bottom: 6px; }

/* Pagina Aree espositive: titoli delle due sezioni (aree, progetti speciali) — 15-09-2026 */
.cs-aree-titolo { margin: 8px 0 28px; }
.cs-aree-titolo--speciali { margin-top: 72px; }
/* Ancore dei blocchi one-page (it_one_page.php): non devono finire sotto l'header fisso */
.cs-block-anchor { display: block; position: relative; top: -140px; visibility: hidden; }

/* Scheda espositore: merceologie con la loro icona (block_set1.php) — 15-09-2026 */
.cs-merc-icone { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 24px 0 36px; }
.cs-merc-icona {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 18px 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(40,80,115,.06);
  color: var(--cs-blue-dark); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
a.cs-merc-icona:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(40,80,115,.12); color: var(--cs-blue-dark); }
.cs-merc-icona img { width: 72px; height: 72px; object-fit: contain; }
.cs-merc-icona span { font-size: .8rem; font-weight: 700; line-height: 1.35; }
