/* === GOOGLE FONTS & ICONE === */

/* === VARIABILI GLOBALI === */
:root {
  --brand-color: #003300;
  --brand-color-hover: #002200;
  --brand-secondary: #49063f;
  --brand-secondary-dark: #2f0327;
  --brand-accent: #CB87CC;
/* Lilla Pieno */
  --brand-accent-soft: #CB87CC3D;
/* Lilla Semi-Trasparente */
  --brand-alt: #E3E9D0;
/* Verde Chiaro */
  --bg-surface: #f9f9f9;
  --bg-surface-hover: #eef6ee;
  --radius-s: 6px;
  --radius-m: 8px;
  --shadow-hover: 0 4px 12px rgba(0, 51, 0, 0.2);
  --shadow-elevation: 0 4px 12px rgba(0, 0, 0, 0.15);
  --font-base: 'Noto Sans', sans-serif;
  --fs-body: 16px;
  --fs-h3: 18px;
  --lh-body: 1.6;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --white: #fff;
  --icon-size-s: 16px;
/* Small: bullet, micro-icone */
  --icon-size-m: 32px;
/* Medium: icone inline, card compatte */
  --icon-size-l: 48px;
/* Large: icone di rilievo */
  --maxw: 1200px;
/* Definizione per l'uso globale */
}

/* === ICONE GLOBALI (MAPPATURA DELLE DIMENSIONI E COLORE) === */
i {
  color: var(--brand-color) !important;
}

.icon-circle i {
  font-size: var(--icon-size-s) !important;
}

.card i,
.card-horizontal i,
.blocco-link i,
.approfondimento-card i,
.service-card i,
.percorso-icon i,
.percorso-item>i {
  font-size: var(--icon-size-m) !important;
}

.valore-item i,
.icon-wrapper i {
  font-size: var(--icon-size-l) !important;
}

/* Override specifico per mobile */
@media (max-width: 768px) {
  #percorso-ltc .percorso-item>i {
    font-size: var(--icon-size-l) !important;
  }
}

/* === TIPOGRAFIA BASE === */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--brand-secondary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-left: 20px solid #fff;
  border-right: 20px solid #fff;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body {
    border-left: 10px solid #fff;
    border-right: 10px solid #fff;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-base);
  line-height: 1.2;
}

/* Regola generale per i titoli - ora più specifica per i casi necessari */
h1,
h2,
h3,
h1.section-title,
h2.section-title,
.toc-list a,
.toc-list a.active,
.breadcrumb a,
.breadcrumb-bottom a {
  color: var(--brand-color) !important;
}

/* Titoli delle card (qualsiasi tipo) - forza il colore verde */
.card h3,
.service-card h3,
.valore-item h3 {
  color: var(--brand-color) !important;
}

/* Correzione per il colore dei titoli in sezioni con sfondo diverso */
.bg-brand h2,
.bg-brand h3,
.bg-brand-alt h2,
.bg-brand-alt h3 {
  color: var(--brand-color) !important;
}

.text-white,
.text-white p,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white a,
.text-white i {
  color: var(--white) !important;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

/* Regola per i titoli H3 delle card in generale */
.card h3,
.service-card h3,
.valore-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* Regole per i colori in sezioni con sfondi specifici */
/* Regola modificata per non sovrascrivere il colore dei titoli */
.bg-brand p,
.bg-brand-alt p,
.bg-brand li,
.bg-brand-alt li {
  color: var(--brand-secondary);
}

.brand-paragraph,
.service-card .brand-paragraph,
.valore-item p {
  font-family: var(--font-base);
  line-height: var(--lh-body);
  color: var(--brand-secondary);
  font-size: 1.1rem;
}

.brand-paragraph strong,
.brand-paragraph b {
  font-weight: 700;
  color: var(--brand-secondary);
}

.service-card .brand-paragraph {
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

h1.section-title,
.hero-title {
  color: var(--brand-color) !important;
}

/* === LINK GLOBALI (solo per i link nel testo e contesti testuali) === */
p a,
.brand-paragraph a,
.privacy-label a,
.collegamenti-utili a,
.maxw p a,
figcaption a,
.bg-brand figcaption a {
  color: var(--brand-color) !important;
  text-decoration: underline;
  text-decoration-color: var(--brand-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

p a:hover,
.brand-paragraph a:hover,
.privacy-label a:hover,
.collegamenti-utili a:hover,
.maxw p a:hover,
figcaption a:hover,
.bg-brand figcaption a:hover {
  color: var(--brand-color-hover) !important;
  text-decoration-color: var(--brand-color-hover);
}

/* === LINK SPECIFICI PER LE CARD === */
.card h3 a,
.service-card h3 a,
.blocco-link a {
  color: var(--brand-color) !important;
  text-decoration: underline;
}

.card h3 a:hover,
.service-card h3 a:hover,
.blocco-link a:hover {
  color: var(--brand-color-hover) !important;
  text-decoration: underline;
}

.card p a {
  color: var(--brand-color) !important;
  text-decoration: underline;
  text-decoration-color: var(--brand-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.card p a:hover {
  color: var(--brand-color-hover) !important;
  text-decoration-color: var(--brand-color-hover);
}

/* === IMMAGINI GLOBALI === */
.wp-post-image,
.wp-block-image img,
.section-block img,
.size-full img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  display: block;
}

@media (max-width: 768px) {
  .wp-block-image img,
  .section-block img {
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
  }
}

/* === UTILITY & LAYOUT === */
.maxw {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-3);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .maxw {
    padding-inline: 24px;
  }
}

.border-top-brand {
  border-top: 5px solid var(--brand-color);
}

.hover-effect {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
  background-color: var(--bg-surface-hover);
  box-shadow: var(--shadow-hover);
}

.section-padding {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.section-padding-small {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.lift-on-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lift-on-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-block {
  text-align: center;
  margin-top: var(--space-5);
}

/* Blocco citazione */
.citation-block {
  background-color: var(--brand-color);
  color: var(--white) !important;
  text-align: center;
  border: 6px solid var(--brand-accent);
  border-radius: var(--radius-m);
  padding: var(--space-6) var(--space-4);
}

.citation-block .brand-paragraph {
  color: var(--white) !important;
  font-size: 2em;
  line-height: 1.4;
  margin-top: 0;
  font-style: normal;
}

.citation-block .quote-mark {
  font-size: 1.2em;
  vertical-align: top;
}

.citation-block cite {
  display: block;
  margin-top: 0.5em;
  color: var(--white) !important;
  font-size: 0.9em;
  font-style: italic;
  opacity: 0.9;
}

.citation-block a {
  color: var(--white) !important;
  font-size: 0.85em;
  text-decoration: underline;
  text-decoration-color: var(--white);
  text-underline-offset: 2px;
}

.citation-block a:hover {
  text-decoration-color: var(--white);
  opacity: 0.85;
}

/* Utility per griglie */
.grid-align-start {
  align-items: start;
}

/* === SFONDI === */
.bg-brand {
  background-color: var(--brand-accent-soft);
}

.bg-brand-alt {
  background-color: var(--brand-alt);
}

.bg-brand-accent {
  background-color: var(--brand-accent);
}

.bg-white {
  background-color: var(--bg-surface);
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* === GRIGLIE === */
.grid-1,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-grid,
.valori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

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

/* === BOTTONI & FORM === */
.btn,
.btn-primary,
.wp-block-button__link,
.elementor-button {
  background-color: var(--brand-secondary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
}

.btn:hover,
.btn-primary:hover,
.wp-block-button__link:hover,
.elementor-button:hover {
  background-color: var(--brand-secondary-dark);
  color: var(--white) !important;
}

.bg-brand-alt .btn,
.bg-brand-alt .btn-primary,
.bg-brand-alt .wp-block-button__link {
  background-color: var(--brand-color);
}

.bg-brand-alt .btn:hover,
.bg-brand-alt .btn-primary:hover,
.bg-brand-alt .wp-block-button__link:hover {
  background-color: var(--brand-color-hover);
}

.input-brand,
.textarea-brand {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brand-accent-soft);
  border-radius: var(--radius-s);
  font: 400 16px/1.5 var(--font-base);
  background: var(--white);
}

.input-brand:focus,
.textarea-brand:focus {
  border-color: var(--brand-secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(73, 6, 63, 0.2);
}

.textarea-brand {
  min-height: 140px;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

/* === CARD GENERALI === */
.card {
  border-radius: var(--radius-m);
  padding: var(--space-3);
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--brand-color);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--brand-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.card p a {
  color: var(--brand-color) !important;
  text-decoration: underline;
  font-weight: 600;
}

.card p a:hover {
  color: var(--brand-color-hover) !important;
  text-decoration-color: var(--brand-color-hover);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-m);
  margin-bottom: var(--space-2);
}

/* Variazione per card più compatta */
.card-small {
  padding: var(--space-2);
}

/* Card Orizzontale */
.card-horizontal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-horizontal h3 {
  margin-top: 0;
}

/* Card con Icona Centrata (per Collegamenti Utili) */
.card-link-centered {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.card-link-centered h3 {
  margin-top: 0;
  margin-bottom: var(--space-1);
}

.card-link-centered i {
  flex-shrink: 0;
  font-size: var(--icon-size-m);
  margin: 0;
}

/* === CARD SPECIFICHE (senza duplicazione) === */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service-card figure {
  margin: 0;
  flex-shrink: 0;
  height: 200px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card figcaption {
  font-weight: 600;
  color: var(--brand-color);
  padding: var(--space-2) var(--space-3) 0;
  font-size: 1.05rem;
}

.service-card .card-body {
  flex-grow: 1;
  padding: 0 var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.approfondimento-card {
  background: #fff;
  border: 1px solid var(--brand-accent-soft);
  border-radius: var(--radius-m);
  padding: var(--space-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.approfondimento-card a {
  text-decoration: none;
  font-weight: bold;
  color: var(--brand-color);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.approfondimento-card a:hover {
  color: var(--brand-color-hover);
}

.approfondimento-card p {
  margin-top: 10px;
  line-height: var(--lh-body);
  color: var(--brand-secondary);
}

.approfondimento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === SEZIONI SPECIFICHE === */
.valore-item {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-m);
}

.valore-item h3 {
  color: var(--brand-color);
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
}

.valore-item p {
  color: var(--brand-secondary);
  font-size: 16px;
  line-height: 1.4;
}

.custom-columns {
  display: flex;
  flex-wrap: wrap;
  border-radius: 10px;
  overflow: hidden;
}

.custom-col {
  flex: 1 1 33.333%;
  background-color: var(--brand-color);
  padding: 20px;
  box-sizing: border-box;
}

.custom-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-col li {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: var(--white);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.icon-circle i {
  font-size: 14px;
}

.custom-col li p,
.custom-col li p strong {
  color: var(--white);
  font-size: 18px;
  margin: 0;
}

@media (max-width: 768px) {
  .custom-col {
    flex: 1 1 100%;
  }
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  font-family: var(--font-base);
  font-size: var(--fs-body);
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: var(--radius-m);
  box-sizing: border-box;
}

.icon-wrapper {
  background-color: #fff;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-wrapper:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grid-item h3 {
  color: var(--brand-color);
  font-size: 24px;
  margin-bottom: 10px;
}

.grid-item p {
  color: var(--brand-secondary);
  line-height: 1.4;
}

.blocco-wrapper {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .blocco-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blocco-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--bg-surface);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blocco-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blocco-link h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--brand-color);
}

/* === BLOCCO: TOC === */
.toc-section {
  padding: 0;
}

.toc-collapsible {
  font-family: var(--font-base);
  border: 2px solid var(--brand-accent);
  border-radius: 8px;
  margin: 0 auto 20px;
  max-width: 1200px;
  width: 100%;
  background: var(--bg-surface);
}

.toc-collapsible .toc-header {
  background: var(--brand-accent);
  color: var(--white);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  border-radius: 6px 6px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-collapsible .toc-header:hover {
  background: #b96ab9;
}

.toc-collapsible .toc-arrow {
  transition: transform 0.3s ease;
}

.toc-collapsible .toc-arrow.open {
  transform: rotate(180deg);
}

.toc-collapsible .toc-content {
  display: none;
  padding: 15px;
}

.toc-collapsible .toc-content.open {
  display: block;
}

.toc-collapsible .toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-collapsible .toc-list li {
  margin: 4px 0;
}

.toc-collapsible .toc-list a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.toc-collapsible .toc-list a:hover {
  color: var(--brand-color);
  text-decoration: underline;
}

.toc-collapsible .toc-list a.active {
  color: var(--brand-color);
  font-weight: 700;
}

#ez-toc-container {
  display: none !important;
}

/* Regola per rimuovere il padding del contenitore .maxw solo per il TOC */
.toc-section>.maxw {
  padding-inline: 0;
}

/* === SFONDI SEZIONI SPECIFICHE === */
#noi-in-numeri .maxw.bg-brand {
  background-color: var(--brand-accent);
  color: var(--white);
}

#noi-in-numeri h2,
#noi-in-numeri p,
#noi-in-numeri .counter-number {
  color: var(--white) !important;
}

#noi-in-numeri .h2-big {
  font-size: 2.8rem;
  font-weight: 800;
}

#noi-in-numeri .counter-number {
  font-size: 3.5rem;
  font-weight: 900;
}

#noi-in-numeri p strong,
#noi-in-numeri p b {
  color: var(--white);
}

.valori-section {
  background-color: var(--brand-accent-soft);
  padding: var(--space-6) var(--space-3);
  font-family: var(--font-base);
}

/* Altri override/fix Gutenberg/Elementor */
a:focus,
a:active,
button:focus,
button:active,
.wp-block-button__link:focus,
.wp-block-button__link:active,
.elementor-button:focus,
.elementor-button:active {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.bg-brand a,
.bg-green a {
  color: var(--brand-color);
  text-decoration-color: var(--brand-color);
}

.bg-brand a:hover,
.bg-green a:hover {
  color: var(--brand-color-hover);
  text-decoration-color: var(--brand-color-hover);
}

/* Responsive extra small */
@media (max-width: 360px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

li {
  margin-bottom: 0.5rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

blockquote {
  border-left: 4px solid var(--brand-accent);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--brand-secondary);
}

.wp-block-quote p {
  margin-bottom: 0;
}

.wp-block-table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--brand-accent-soft);
  padding: 8px 12px;
}

.wp-block-table th {
  background-color: var(--bg-surface);
  font-weight: 600;
  color: var(--brand-secondary-dark);
}

/* === BLOCCO PERCORSO LTC TIMELINE === */
#percorso-ltc {
  --line-y: 85px;
  position: relative;
  padding: 60px 0;
}

.percorso-timeline {
  position: relative;
  height: 260px;
}

/* Linea lilla */
.percorso-line {
  position: absolute;
  top: var(--line-y);
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--brand-accent, #CB87CC);
  z-index: 1;
}

/* Pallini */
.percorso-dot {
  position: absolute;
  top: var(--line-y);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: var(--brand-color, #006b00);
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 2;
}

/* Step */
.percorso-item {
  position: absolute;
  top: 0;
  width: 25%;
  text-align: center;
}

.percorso-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 35px auto;
  border-radius: 50%;
  background-color: var(--white, #fff);
  border: 3px solid var(--brand-color, #006b00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-color, #006b00);
  font-size: 24px;
  z-index: 3;
}

.percorso-icon i {
  color: var(--brand-color, #006b00);
}

.percorso-content {
  padding: 15px;
  background-color: var(--bg-surface, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.step-number {
  font-weight: 700;
  color: var(--brand-secondary, #49063f);
  margin-bottom: 8px;
}

.percorso-content h3 {
  color: var(--brand-color, #006b00);
  margin-bottom: 6px;
}

.percorso-content p {
  color: var(--brand-secondary, #49063f);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
  .percorso-timeline {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .percorso-line,
  .percorso-dot {
    display: none;
  }
  .percorso-item {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
  }
  .percorso-icon {
    margin-bottom: 10px;
  }
}

/* Padding coerente */
#percorso-ltc .maxw {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (max-width: 768px) {
  #percorso-ltc .maxw {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 1.05rem;
  margin: 0 0 1.2rem;
  color: var(--brand-secondary, #49063f);
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-bottom {
  font-size: 1.05rem;
  margin: 0 0 var(--space-3);
  color: var(--brand-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid #ccc;
  font-weight: 600;
}

.breadcrumb span {
  color: var(--brand-secondary);
  font-weight: 700;
}

/* === Icona freccia breadcrumb basso === */
.breadcrumb-bottom .breadcrumb-icon {
  font-size: calc(var(--icon-size-m) + 4px);
  margin-right: var(--space-1);
  vertical-align: middle;
  color: var(--brand-secondary) !important;
  font-weight: 900;
  transition: color 0.3s ease;
}

/* === Pulsante "Torna su" === */
.back-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  background-color: var(--brand-secondary);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--icon-size-m);
  box-shadow: var(--shadow-elevation);
  transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}

.back-to-top:hover {
  background-color: var(--brand-secondary-dark);
  transform: translateY(-3px);
}

.back-to-top i {
  font-size: var(--icon-size-m);
  color: var(--white) !important;
  font-weight: 900;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.card img,
.service-card img,
.approfondimento-card img {
  border-radius: var(--radius-m);
}

/* Padding interno sotto tutte le griglie di card */
.bg-brand .grid-2,
.bg-brand .grid-3,
.bg-brand .grid-4,
.bg-brand .services-grid,
.bg-brand .valori-grid,
.bg-brand .approfondimenti-grid,
.bg-brand .custom-grid,
.bg-brand .blocco-wrapper,
.bg-white .grid-2,
.bg-white .grid-3,
.bg-white .grid-4,
.bg-white .services-grid,
.bg-white .valori-grid,
.bg-white .approfondimenti-grid,
.bg-white .custom-grid,
.bg-white .blocco-wrapper,
.bg-light .grid-2,
.bg-light .grid-3,
.bg-light .grid-4,
.bg-light .services-grid,
.bg-light .valori-grid,
.bg-light .approfondimenti-grid,
.bg-light .custom-grid,
.bg-light .blocco-wrapper,
.bg-grey .grid-2,
.bg-grey .grid-3,
.bg-grey .grid-4,
.bg-grey .services-grid,
.bg-grey .valori-grid,
.bg-grey .approfondimenti-grid,
.bg-grey .custom-grid,
.bg-grey .blocco-wrapper,
.bg-secondary .grid-2,
.bg-secondary .grid-3,
.bg-secondary .grid-4,
.bg-secondary .services-grid,
.bg-secondary .valori-grid,
.bg-secondary .approfondimenti-grid,
.bg-secondary .custom-grid,
.bg-secondary .blocco-wrapper {
  padding-bottom: var(--space-6);
}

/* Larghezza massima uniforme per HERO e blocchi colorati */
.maxw.bg-brand,
.maxw.bg-white,
.maxw.bg-light,
.maxw.bg-grey,
.maxw.bg-secondary {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* Regola per aggiungere spazio sopra le griglie di card in modo uniforme */
.maxw .grid-2,
.maxw .grid-3,
.maxw .grid-4,
.maxw .services-grid,
.maxw .valori-grid,
.maxw .approfondimenti-grid,
.maxw .custom-grid {
  margin-top: var(--space-4);
}

/* Classe per rimuovere il margine superiore quando non serve */
.no-mt {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .service-card figure {
    height: auto !important;
  }
  .service-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* === HERO STANDARD – Schema unico e definitivo === */
.hero-standard {
  display: block;
  padding: var(--space-6) var(--space-3);
}

.hero-standard .maxw {
  margin: 0 auto;
  max-width: var(--maxw);
}

.hero-standard .hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--brand-color);
}

.hero-standard .brand-paragraph {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.hero-standard figure {
  max-width: 900px;
  margin: var(--space-5) auto;
  text-align: center;
}

.hero-standard figure img {
  display: block;
  margin-inline: auto;
  height: auto;
  max-width: 100%;
}

.hero-standard figure figcaption {
  font-size: 0.9rem;
  color: var(--brand-secondary);
  margin-top: var(--space-2);
}

/* Eccezione: link bianchi nel citation-block */
.citation-block .brand-paragraph a {
  color: var(--white) !important;
}

/* === ANIMAZIONI === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* === ACCESSIBILITÀ === */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}