/* Loved by the King */
@font-face {
  font-family: 'Loved by the King';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/LovedbytheKing-Regular.ttf') format('truetype');
}

/* Atkinson Hyperlegible - Regular */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');
}

/* Atkinson Hyperlegible - Bold */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
}

/* Assegnazione stili */
body, p, li, span, .sp-pagebuilder .sppb-addon-text, .sp-pagebuilder p {
  font-family: 'Atkinson Hyperlegible', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.sp-pagebuilder .sppb-addon-title,
.sp-pagebuilder h1, 
.sp-pagebuilder h2, 
.sp-pagebuilder h3, 
.sp-pagebuilder h4 {
  font-family: 'Loved by the King', cursive !important;
  color: #9b0555 !important;
}
/* Eccezione: tutti i titoli all'interno di un blocco con classe .sezione-scura */
.sezione-scura h1, 
.sezione-scura h2, 
.sezione-scura h3, 
.sezione-scura h4, 
.sezione-scura h5, 
.sezione-scura h6,
.sezione-scura .sppb-addon-title {
  color: #ffffff !important;
}
/* Scala dimensionale accessibile per le intestazioni */
h1,
.sppb-title-heading {
  font-size: 3.25rem !important; /* ~52px: proporzionato alla natura calligrafica */
  line-height: 1.2 !important;
}

h2,
.sp-page-builder h2 {
  font-size: 2.5rem !important; /* ~40px */
  line-height: 1.3 !important;
}

h3,
.sp-page-builder h3 {
  font-size: 2rem !important; /* ~32px */
  line-height: 1.3 !important;
}

h4,
.sppb-feature-box-title,
.sppb-addon-feature .sppb-addon-title {
  font-size: 1.75rem !important; /* ~28px: rende i box informativi chiari e leggibili */
  line-height: 1.4 !important;
}
/* Sovrascrittura forzata del menu di navigazione */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent .sp-dropdown li a,
#offcanvas-toggler {
  font-family: 'Atkinson Hyperlegible', sans-serif !important;
font-size: 1.125rem !important;
  line-height: 1.5 !important;
}
/* Menu mobile offcanvas */
.offcanvas-menu .mod-menu a {
  font-size: 1.125rem !important; /* 18px: favorisce il tocco e l'usabilità su smartphone */
  line-height: 1.6 !important;
}