/* =========================================================
   SHAMÁ STUDIO MASSAGGI — CORREZIONI GRAFICHE FINALI
   Caricato dopo gli altri CSS per garantire le sovrascritture.
========================================================= */

/* CTA WhatsApp pagina Trattamenti */
.treatments-help a.treatments-help__button {
    width: auto !important;
    height: auto !important;
    min-width: 205px;
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px !important;
    color: #fff !important;
    background: #356347 !important;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(53, 99, 71, .14);
}

.treatments-help a.treatments-help__button svg {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px;
    fill: currentColor;
}

.treatments-help a.treatments-help__button span {
    display: inline-block !important;
}

.treatments-help a.treatments-help__button:hover {
    transform: translateY(-2px);
    background: #214832 !important;
}

/* FAQ Massaggi a domicilio: stesso stile delle altre pagine */
.domicilio-faq .domicilio-faq-cards {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px;
    border: 0 !important;
}

.domicilio-faq .domicilio-faq-cards .faq-item {
    display: block !important;
    overflow: hidden;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid #dce4da !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 34px rgba(43,67,48,.05);
}

.domicilio-faq .domicilio-faq-cards .faq-question {
    width: 100%;
    min-height: 78px;
    padding: 18px 22px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0 !important;
    background: transparent !important;
    text-align: left;
    cursor: pointer;
}

.domicilio-faq .domicilio-faq-cards .faq-question > span:first-child {
    color: #183b29;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.domicilio-faq .domicilio-faq-cards .faq-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #356347;
    background: #f2f6f0;
    font-size: 22px;
    line-height: 1;
    transition: transform .35s ease, background-color .25s ease, color .25s ease;
}

.domicilio-faq .domicilio-faq-cards .faq-item.active .faq-icon {
    color: #fff;
    background: #356347;
    transform: rotate(45deg);
}

.domicilio-faq .domicilio-faq-cards .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    border: 0 !important;
    transition: max-height .42s ease, opacity .3s ease, visibility .3s ease;
}

.domicilio-faq .domicilio-faq-cards .faq-item.active .faq-answer {
    opacity: 1;
    visibility: visible;
}

.domicilio-faq .domicilio-faq-cards .faq-answer-inner {
    padding: 0 54px 22px 22px;
}

.domicilio-faq .domicilio-faq-cards .faq-answer p {
    margin: 0;
    color: #5f6b63;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .domicilio-faq .domicilio-faq-cards {
        grid-template-columns: 1fr !important;
    }

    .treatments-help a.treatments-help__button {
        width: 100% !important;
        min-width: 0;
    }
}

/* =========================================================
   SHAMA — TABLET SCROLL / HEADER / FOOTER HARD FIX 2026-08-08
   Loaded last on every public page.
   ========================================================= */
@media (min-width: 651px) and (max-width: 1024px) {
  html,
  body {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }

  /* Do not freeze the document on tablet: the menu is a fixed overlay. */
  body.navigation-open {
    position: static !important;
    height: auto !important;
    overflow-y: auto !important;
    touch-action: auto !important;
  }

  .site-header,
  .site-header.is-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .navigation-toggle {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10030 !important;
  }

  .navigation-toggle span {
    display: block !important;
    width: 19px !important;
    height: 2px !important;
    min-height: 2px !important;
    background: #304d3d !important;
    opacity: 1;
  }

  main,
  .final-cta,
  .site-footer {
    position: relative !important;
    float: none !important;
    clear: both !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    transform: none !important;
    background: #194b38 !important;
  }

  .footer-container,
  .footer-top,
  .footer-bottom {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
