/* Layout dedicato agli smartphone. */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 100svh; padding-left: 18px; padding-right: 18px; }
  .hero-content { max-width: 100%; }
  .hero h1 { max-width: 100%; font-size: clamp(43px,12.5vw,56px); overflow-wrap: anywhere; }
  .hero-copy { font-size: 18px; }

  /* Servizi e percorsi: una colonna, una scheda aperta alla volta. */
  .services { padding: 68px 18px 78px; }
  .services .section-head { display: block; margin-bottom: 34px; }
  .services .section-head h2 { max-width: 100%; margin-bottom: 22px; font-size: clamp(42px,13vw,62px); line-height: 1; }
  .services .section-head > p:last-child { max-width: 34rem; margin: 0; font-size: 16px; line-height: 1.55; }
  .services-explorer { display: block; }
  .services-visual { display: none; }
  .services-explorer .service-list { border-top: 0; }

  .services .service-list article.service-item,
  .services .service-list article.service-item.active {
    display: block !important;
    grid-template-columns: none !important;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.58);
  }
  .services .service-list article.service-item.active { background: var(--sky); box-shadow: 0 12px 30px rgba(8,43,50,.08); }
  .services .service-list article.service-item:hover { padding-left: 0; }
  .services .service-list article.service-item > button,
  .services .service-list article.service-item.active > button {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) 30px;
    gap: 10px;
    width: 100%;
    padding: 19px 16px;
    align-items: start;
  }
  .services .service-list article.service-item > button > span:first-child { padding-top: 5px; }
  .services .service-list .service-title { display: block; min-width: 0; }
  .services .service-list .service-title small { display: block; margin-bottom: 7px; font-size: 8px; line-height: 1.35; }
  .services .service-list .service-title strong,
  .services .service-list article.service-item.active .service-title strong {
    display: block;
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(21px,6.5vw,28px);
    line-height: 1.08;
  }
  .services .service-list article.service-item > button i { flex: none; }
  .services .service-list article.service-item > .service-detail,
  .services .service-list article.service-item.active > .service-detail {
    display: block !important;
    grid-template-columns: none !important;
    max-height: 0;
    padding: 0 16px 0 54px;
    opacity: 0;
    overflow: hidden;
  }
  .services .service-list article.service-item.active > .service-detail { max-height: 700px; padding: 0 16px 22px 54px; opacity: 1; }
  .services .service-list article.service-item .service-detail p { display: block; width: 100%; max-width: none; overflow: visible; font-size: 15px; line-height: 1.55; }
  .services .service-list article.service-item .service-detail > a,
  .services .service-list article.service-item .service-links { display: flex; flex-wrap: wrap; gap: 14px; width: auto; margin-top: 18px !important; white-space: normal; }
  .services .service-list article.service-item .service-detail > a,
  .services .service-list article.service-item .service-links a { padding-bottom: 2px; overflow: visible; }

  .team-grid { grid-template-columns: 1fr; }
  .person-card,
  .person-card:not(:nth-child(3n+1)),
  .person-card:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

@media (max-width: 390px) {
  .services { padding-inline: 14px; }
  .services .service-list article.service-item > button,
  .services .service-list article.service-item.active > button { padding-inline: 13px; }
  .services .service-list article.service-item > .service-detail,
  .services .service-list article.service-item.active > .service-detail { padding-left: 51px; padding-right: 13px; }
}
