.intro-list{ word-break: break-all; }
.lead-img img{ height: unset; width: 200px; object-fit: cover; }

/* ========================================================================
   Design tokens override — CISL Scuola Emilia Romagna
   Allinea il rendering ai token in resources/utils/_variables.scss.
   ======================================================================== */

/* Tipografia base */
body { font-size: 15px; line-height: 1.65; }

/* Gerarchia titoli */
h1, .h1 { font-size: 36px; line-height: 1.25; }
h2, .h2 { font-size: 30px; line-height: 1.25; }
h3, .h3 { font-size: 24px; line-height: 1.3; }
h4, .h4 { font-size: 18px; line-height: 1.35; }
h5, .h5 { font-size: 16px; line-height: 1.4; }
h6, .h6 { font-size: 14px; line-height: 1.4; }

@media (max-width: 575.98px) {
  h1, .h1 { font-size: 28px; }
  h2, .h2 { font-size: 24px; }
  h3, .h3 { font-size: 20px; }
}

/* Sezione standard — ritmo verticale coerente.
   .site-section è la classe canonica per nuove sezioni.
   Le 5 classi-sezione esistenti del template originale vengono normalizzate
   allo stesso ritmo, senza dover modificare ogni blade. */
.site-section,
section.section,
section.benefit-section,
section.benefits-section,
section.about-section-two,
section.contact-sec {
  padding-top: 80px;
  padding-bottom: 80px;
}
.site-section--sm { padding-top: 48px; padding-bottom: 48px; }

@media (max-width: 767.98px) {
  .site-section,
  section.section,
  section.benefit-section,
  section.benefits-section,
  section.about-section-two,
  section.contact-sec { padding-top: 56px; padding-bottom: 56px; }
  .site-section--sm { padding-top: 32px; padding-bottom: 32px; }
}

/* Header homepage — testi bianchi quando trasparente sopra l'hero,
   tornano neri quando JS aggiunge .fixed dopo lo scroll (vedi script.js). */
@media (min-width: 992px) {
  .home-3 header.header-three:not(.fixed) .header-nav .main-menu-wrapper .main-nav > li > a {
    color: #fff;
  }
  .home-3 header.header-three:not(.fixed) .header-nav .main-menu-wrapper .main-nav > li > a:hover,
  .home-3 header.header-three:not(.fixed) .header-nav .main-menu-wrapper .main-nav > li.active > a {
    color: #fff;
    opacity: 0.85;
  }
}
.home-3 header.header-three:not(.fixed) .navbar-header #mobile_btn .bar-icon span {
  background: #fff;
}

/* Pagina convenzioni — card riepilogo */
.convenzione-card {
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.convenzione-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
  color: inherit;
}
.convenzione-card .convenzione-icon {
  width: 64px;
  height: 64px;
  font-size: 28px;
}
.convenzione-card h3 {
  font-size: 22px;
  font-weight: 700;
}

/* Pagina contatti — fascia presenza territoriale full-width */
.territori-band {
  background: #f5f7fa;
  padding: 64px 0;
  margin-bottom: 48px;
}
@media (max-width: 767.98px) {
  .territori-band { padding: 40px 0; margin-bottom: 32px; }
}
.territori-list a {
  color: var(--bs-gray-800, #343a40);
  text-decoration: none;
  font-size: 16px;
}
.territori-list a:hover {
  color: var(--bs-primary, #0A744F);
}
.territori-list i {
  color: var(--bs-secondary, #FF4667);
}
.cartina-emilia-romagna img {
  max-height: 480px;
  width: auto;
  display: inline-block;
}
@media (max-width: 991.98px) {
  .cartina-emilia-romagna img { max-height: 360px; }
}

/* Pagina contatti — riferimenti accanto al form */
.contact-refs__icon {
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.contact-refs h6 {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-gray-700, #495057);
}
.contact-refs address,
.contact-refs a {
  font-size: 15px;
  word-break: break-word;
}

/* Iscriviti CISL — visual del tesseramento accanto al claim */
.tesseramento-image {
  text-align: center;
}
.tesseramento-image img {
  max-height: 420px;
  width: auto;
  display: inline-block;
}
@media (max-width: 991.98px) {
  .tesseramento-image img { max-height: 320px; }
}

/* Hero homepage — overlay e altezza */
.banner-section-three {
  min-height: 80vh;
  background-position: center;
  background-size: cover;
}
.banner-section-three .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.banner-section-three .hero-content { position: relative; z-index: 2; }
.banner-section-three .hero-title { font-size: 44px; font-weight: 700; line-height: 1.15; }
@media (max-width: 767.98px) {
  .banner-section-three .hero-title { font-size: 32px; }
}

/* Pattern utility — pattern ripetuti estratti dagli inline style */
.icon-circle-64 { width: 64px; height: 64px; }
.avatar-64 { width: 64px; height: 64px; object-fit: cover; }
.staff-photo-portrait { aspect-ratio: 3 / 4; object-fit: cover; }
.territorio-logo { max-height: 60px; }
.territorio-logo--lg { max-height: 80px; }
.filter-scroll { max-height: 300px; overflow-y: auto; }

.pdf-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #dc3545 0%, #e55d6a 100%);
}

/* Course detail — avatar relatore, calendario lezioni, prezzo, badge sconto */
.course-detail-avatar { width: 56px; height: 56px; object-fit: cover; }
.course-detail-avatar-initials,
.course-detail-avatar-placeholder { width: 56px; height: 56px; }
.course-detail-avatar-initials { background: linear-gradient(135deg, #0A744F 0%, #76c28c 100%); }
.course-detail-avatar-placeholder { background: #e9ecef; }

.lesson-date-day { color: var(--bs-primary, #0A744F); }

.course-price-display { font-size: 2rem; font-weight: 700; }

.course-discount-badge {
  background-color: #e6f4ea;
  color: #1a7a3c;
  border: 1px solid #b7dfbf;
}

/* Course card — gerarchia titolo vs prezzo */
.course-item .title,
.course-item-three .title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.course-item .title a,
.course-item-three .title a { color: inherit; }
.course-price-badge { font-size: 22px; font-weight: 700; line-height: 1.2; }

/* Accordion checkbox filtro corsi */
.accordion-body .custom_check {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.accordion-body .custom_check .checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  margin-right: 8px;
  border-radius: 3px;
}
.accordion-body .custom_check.active .checkmark {
  background: var(--bs-primary, #0A744F);
  border-color: var(--bs-primary, #0A744F);
}
.accordion-body .custom_check.active .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Settori - contenuto stile magazine */
.settore-content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.settore-content p { margin-bottom: 1.25rem; }
.settore-content p.lead { margin-bottom: 1.5rem; }

/* Territorio */
.territorio-intro p { margin-bottom: 1rem; }
.territorio-segreteria { padding: 1rem; }
.territorio-sede { background-color: #f8f9fa; }
.territorio-sede h5 { font-size: 1.1rem; }

/* CISL gradient background utility */
.has-cisl-gradient { position: relative; overflow: hidden; }
.has-cisl-gradient > .container,
.has-cisl-gradient > .row { position: relative; z-index: 1; }
.cisl-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(118, 194, 140, 0.35) 0%, rgba(118, 194, 140, 0) 35%),
        radial-gradient(circle at 100% 100%, rgba(10, 116, 79, 0.25) 0%, rgba(10, 116, 79, 0) 40%),
        linear-gradient(180deg, #F4FAF6 0%, #E5F1EC 100%);
}

/* Padding base per .latest-blog ovunque (non solo dentro .home-3) */
.latest-blog { padding: 80px 0; }
@media (max-width: 991.98px) {
    .latest-blog { padding: 50px 0; }
}

/* Sidebar dettaglio corso.
   Il tema originale usa margin-top: -252px (style.css) per far risalire la card
   sopra un banner alto. Il nostro .inner-banner ha solo 40px di padding, quindi
   quel valore spingeva l'immagine di copertina oltre la riga del menu. */
.course-sidebar-sec { margin-top: 0; }
