/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/*
 * ALTIN Visual QA — mobile hero title guard
 * Keeps long commercial H1s inside the viewport on small screens.
 * Scoped only to pages where Visual QA detected clipping.
 */
@media (max-width: 767px) {
  body.page-id-5 .fusion-title h1,
  body.page-id-89 .fusion-title h1,
  body.page-id-92 .fusion-title h1,
  body.page-id-164 .fusion-title h1,
  body.page-id-166 .fusion-title h1,
  body.page-id-169 .fusion-title h1,
  body.page-id-176 .fusion-title h1 {
    max-width: 100% !important;
    font-size: clamp(38px, 10.8vw, 44px) !important;
    line-height: 1.03 !important;
    letter-spacing: -1.2px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}


/*
 * ALTIN Visual QA — Home mobile section-heading guard
 * Prevents long H2s from exceeding their title boxes on small screens.
 */
@media (max-width: 767px) {
  body.page-id-5 .fusion-title h2 {
    max-width: 100% !important;
    font-size: clamp(32px, 9vw, 38px) !important;
    line-height: 1.07 !important;
    letter-spacing: -0.8px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

/*
 * ALTIN Visual QA — Cosa facciamo mobile section-heading guard
 * Keeps long operating-model H2s readable without splitting long Italian words.
 */
@media (max-width: 767px) {
  body.page-id-176 .fusion-title h2 {
    max-width: 100% !important;
    font-size: clamp(30px, 8.7vw, 34px) !important;
    line-height: 1.07 !important;
    letter-spacing: -0.6px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

/*
 * ALTIN Visual QA — Qualità mobile heading guard
 * Keeps the quality-page section titles inside narrow mobile columns.
 */
@media (max-width: 767px) {
  body.page-id-92 .fusion-title h2 {
    max-width: 100% !important;
    min-width: 0;
    font-size: clamp(30px, 8.7vw, 34px) !important;
    line-height: 1.07 !important;
    letter-spacing: -0.6px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

/*
 * ALTIN Visual QA — Contatti mobile section-heading guard
 * Keeps long conversion-page H2s inside the viewport on small screens.
 */
@media (max-width: 767px) {
  body.page-id-93 .fusion-title h2 {
    max-width: 100% !important;
    font-size: clamp(30px, 8.7vw, 34px) !important;
    line-height: 1.07 !important;
    letter-spacing: -0.6px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}


/*
 * ALTIN BetterDocs glossary v1.0
 * Keeps the technical glossary aligned with the main ALTIN site and improves
 * readability of long industrial documentation on desktop and mobile.
 */
.single-docs .batterdocs-anchor {
  display: none !important;
}

.single-docs .betterdocs-article-reactions,
.single-docs .betterdocs-article-reactions-box,
.single-docs .betterdocs-social-share {
  display: none !important;
}

.single-docs .betterdocs-entry-title {
  color: #15232D !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
}

.single-docs .betterdocs-content-inner-area,
.single-docs .betterdocs-entry-content,
.single-docs .betterdocs-content {
  min-width: 0;
}

.single-docs .betterdocs-content {
  color: #24343E;
  font-size: 17px;
  line-height: 1.72;
}

.single-docs .betterdocs-content h2,
.single-docs .betterdocs-content h3,
.single-docs .betterdocs-content h4 {
  color: #15232D;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.single-docs .betterdocs-content a {
  color: #24739B;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.single-docs .betterdocs-content table {
  width: 100%;
  border-collapse: collapse;
}

.single-docs .betterdocs-content th,
.single-docs .betterdocs-content td {
  vertical-align: top;
}

.post-type-archive-docs .betterdocs-last-update {
  display: none !important;
}

.post-type-archive-docs .betterdocs-category-title,
.post-type-archive-docs .betterdocs-category-title a {
  color: #15232D !important;
}

@media (max-width: 767px) {
  .page-id-79 h1.fusion-title-heading,
  .page-id-79 h2.fusion-title-heading,
  .page-id-92 h1.fusion-title-heading,
  .page-id-92 h2.fusion-title-heading {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .single-docs .betterdocs-entry-title {
    font-size: clamp(30px, 8.6vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.6px !important;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .single-docs .betterdocs-content {
    font-size: 16px;
    line-height: 1.68;
  }

  .single-docs .betterdocs-content h2 {
    font-size: clamp(25px, 7vw, 30px) !important;
    line-height: 1.12 !important;
  }

  .single-docs .betterdocs-content h3 {
    font-size: clamp(20px, 5.8vw, 24px) !important;
    line-height: 1.16 !important;
  }

  .single-docs .betterdocs-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
