/*
|--------------------------------------------------------------------------
| Fonts (self-hosted Albert Sans, variable woff2 from Google Fonts v4)
|--------------------------------------------------------------------------
*/

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/albert-sans/normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/albert-sans/normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Albert Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/albert-sans/italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Albert Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/albert-sans/italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
|--------------------------------------------------------------------------
| Generals
|--------------------------------------------------------------------------
*/

html {
  scroll-behavior: smooth;
}

:root {
  --font-family-base: var(--font-sans, "Albert Sans", sans-serif);
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text);
}

.block-scroll {
  overflow-y: hidden;
}

.breadcrumbs ol li:not(:last-child)::after {
  content: " / ";
  margin: 0 0.5em;
  color: inherit;
}

/*
|--------------------------------------------------------------------------
| Stili di default per l'editor visuale
|--------------------------------------------------------------------------
*/

/* Reset base per margini e padding */

/* Stile per i paragrafi */
.editor-styles-wrapper p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.subtitle-2.editor-styles-wrapper p {
  margin: 0;
  line-height: inherit; /* inherit 26px from .subtitle-2, not the 1.6 from .editor-styles-wrapper p */
}

/* SliderHP: player controls sizing (Figma) */
.common-scrollbar--sliderhp {
  --common-scrollbar-btn-size: 40px;
  --common-scrollbar-btn-icon-size: 24px;
}

/* SliderHP: CTA buttons must stack full-width on mobile (Tailwind build fallback) */
[data-sliderhp-ctas] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px !important;
  row-gap: 8px !important;
  column-gap: 8px !important;
  width: 100%;
}

[data-sliderhp-ctas] > a {
  width: 100%;
}

@media (min-width: 768px) {
  [data-sliderhp-ctas] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;

    /* Tablet/Desktop: 24px spacing between buttons (column space) */
    column-gap: 24px !important;
    row-gap: 24px !important;
    gap: 24px !important;
  }

  [data-sliderhp-ctas] > a {
    width: auto;
  }
}

.editor-styles-wrapper-small {
  font-size: 14px;
  line-height: 20px;
}

.editor-styles-wrapper-small p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* Titoli */
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.editor-styles-wrapper-small h1,
.editor-styles-wrapper-small h2,
.editor-styles-wrapper-small h3,
.editor-styles-wrapper-small h4,
.editor-styles-wrapper-small h5,
.editor-styles-wrapper-small h6 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

/* Liste non ordinate */
ul {
  list-style-type: disc;
  margin-left: 2em;
}

/* Liste ordinate */
ol {
  list-style-type: decimal;
  margin-left: 2em;
}

/* Link */
.editor-styles-wrapper a {
  color: #0073aa;
  text-decoration: none;
}

.editor-styles-wrapper-small a {
  color: #0073aa;
  text-decoration: none;
}

.editor-styles-wrapper a:hover {
  text-decoration: underline;
}

.editor-styles-wrapper-small a:hover {
  text-decoration: underline;
}

/* Immagini */
.editor-styles-wrapper img {
  max-width: 100%;
  height: auto;
}

.editor-styles-wrapper-small img {
  max-width: 100%;
  height: auto;
}

/* Blockquote */
.editor-styles-wrapper blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 0 0 1.5em;
  font-style: italic;
}

.editor-styles-wrapper-small blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 0 0 1.5em;
  font-style: italic;
}

/* Tabelle */
.editor-styles-wrapper table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}

.editor-styles-wrapper-small table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}

.editor-styles-wrapper th,
.editor-styles-wrapper td {
  border: 1px solid #ddd;
  padding: 0.5em;
}

.editor-styles-wrapper-small th,
.editor-styles-wrapper-small td {
  border: 1px solid #ddd;
  padding: 0.5em;
}

.editor-styles-wrapper th {
  background-color: #f5f5f5;
}

/*
|--------------------------------------------------------------------------
| ACF Flexible Preview (admin wrapper class)
|--------------------------------------------------------------------------
*/

.infocert-acf-preview {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.infocert-acf-preview__frame {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 420px;
  border: 0;
  background: #fff;
}

.editor-styles-wrapper-small th {
  background-color: #f5f5f5;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.page-numbers {
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-links {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  gap: 6px;
}
