/* ==========================================================================
   Centro Anna Rita Buonincontro — pagina IL NOSTRO TEAM
   --------------------------------------------------------------------------
   Ordine di caricamento: css/base.css → css/inner.css → css/team.css
   Riutilizza da base.css: token, header/menu, .page-hero, .booking, .maps,
   footer, back-to-top. Da inner.css: .cs-container, .cs-title, .cs-eyebrow.

   Struttura della pagina:
     .page-hero.tm-hero  → Hero (eyebrow + titolo + sottotitolo)
     .tm-nav             → Indice: link di scorrimento verso ogni gruppo
     .tm-group           → un gruppo di ruolo (es. "Direzione Sanitaria"):
                            titolo + griglia di .tm-card (foto in bianco e
                            nero, a colori all'hover, nome, ruolo)
     .booking, .maps     → identici alla Home

   Indice
   01. Hero (variante)
   02. Indice dei gruppi
   03. Gruppo e card del personale
   04. Responsive
   ========================================================================== */

/* 01. Hero --------------------------------------------------------------- */
.tm-hero { padding-bottom: 72px; }
.tm-hero .page-hero__text { margin-top: 22px; max-width: 760px; line-height: 36px; }

/* 02. Indice dei gruppi ---------------------------------------------------- */
.tm-nav { padding: 64px 0 0; }
.tm-nav__eyebrow { color: var(--teal); }
.tm-nav__list { margin-top: 16px; display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 10px; }
.tm-nav__list a {
  font-family: var(--ff-head); font-weight: 700; font-size: 16px; line-height: 1.3;
  color: var(--slate); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.tm-nav__list a:hover, .tm-nav__list a:focus-visible { color: var(--teal); text-decoration-color: currentColor; }

/* 03. Gruppo e card del personale ------------------------------------------ */
.tm-group { padding: 72px 0 0; }
.tm-group:last-of-type { padding-bottom: 96px; }
.tm-group__title {
  position: relative; display: inline-block; padding-bottom: 14px;
  font-family: var(--ff-head); font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--slate);
}
.tm-group__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--teal);
}
.tm-grid {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 20px;
}
.tm-card { text-align: center; }
.tm-card__img {
  aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  background: var(--img, none) center / cover no-repeat, var(--mist);
  filter: grayscale(100%); transition: filter .4s ease, transform .5s var(--ease);
}
.tm-card:hover .tm-card__img, .tm-card:focus-within .tm-card__img { filter: grayscale(0%); transform: translateY(-3px); }
.tm-card__name {
  margin-top: 14px; font-family: var(--ff-head); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--slate);
}
.tm-card__role { margin-top: 2px; font-weight: 400; font-size: 13px; line-height: 1.3; color: var(--gray-600); }

/* 04. Responsive --------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .tm-group { padding-top: 56px; }
  .tm-group:last-of-type { padding-bottom: 72px; }
  .tm-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 28px 16px; }
}

@media (max-width: 767.98px) {
  .tm-hero { padding-bottom: 64px; }
  .tm-hero .page-hero__text { margin-top: 20px; line-height: 28px; }
  .tm-nav { padding-top: 48px; }
  .tm-group { padding-top: 48px; }
  .tm-group:last-of-type { padding-bottom: 56px; }
  .tm-grid { margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 24px 14px; }
  .tm-card__name { font-size: 14px; }
  .tm-card__role { font-size: 12px; }
}
