/* ===== HERO ===== */
.tratt-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(72vh, 640px);
  color: #fff;
  overflow: hidden;
}
.tratt-hero__media { position: absolute; inset: 0; z-index: 0; }
.tratt-hero__media picture,
.tratt-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.tratt-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 58, 55, 0.9) 0%, rgba(24, 58, 55, 0.45) 45%, rgba(24, 58, 55, 0.15) 100%);
}
.tratt-hero__inner {
  position: relative; z-index: 1;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 720px;
}
.tratt-hero__inner h1 {
  color: #fff;
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);
  line-height: 1.05;
  margin: 0.3rem 0 var(--space-s);
}
.tratt-hero__lead {
  color: #f2e9dc;
  font-size: var(--step-1);
  max-width: 48ch;
  margin-bottom: var(--space-m);
}

/* ===== INTRO / MANIFESTO ===== */
.tratt-intro { background: var(--cream); text-align: center; }
.tratt-intro__inner { max-width: 60ch; margin-inline: auto; }
.tratt-intro .lotus-mark {
  display: block;
  font-size: 2.4rem;
  color: var(--lime);
  margin-bottom: var(--space-s);
}
.tratt-intro__text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--ink);
}

/* ===== CATEGORIE (righe alternate) ===== */
.tratt-cat { padding-block: clamp(3rem, 7vw, 6rem); }
.tratt-cat:nth-child(even) { background: var(--cream-2); }
.tratt-cat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.tratt-cat--reverse .tratt-cat__media { order: 2; }

.tratt-cat__media { margin: 0; }
.tratt-cat__media picture,
.tratt-cat__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.tratt-cat__body { position: relative; }
.tratt-cat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--lime-soft);
  opacity: 0.9;
  margin-bottom: 0.2rem;
}
.tratt-cat__title {
  font-size: var(--step-3);
  margin: 0.1rem 0 var(--space-s);
}
.tratt-cat__text {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-m);
}
.tratt-cat__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tratt-cat__tags li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-s);
}
.tratt-cat:nth-child(even) .tratt-cat__tags li { background: var(--white); }
.tratt-cat__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.tratt-cat__link svg { transition: transform 0.2s ease; }
.tratt-cat__link:hover svg { transform: translateX(4px); }

@media (max-width: 860px) {
  .tratt-cat__grid { grid-template-columns: 1fr; gap: var(--space-m); }
  .tratt-cat--reverse .tratt-cat__media { order: 0; }
  .tratt-cat__media img { aspect-ratio: 16 / 10; }
}

/* ===== OUTRO ===== */
.tratt-outro { text-align: center; }
.tratt-outro__inner { max-width: 640px; margin-inline: auto; }
.tratt-outro h2 { font-size: var(--step-3); }
.tratt-outro p { color: var(--ink-soft); margin: var(--space-s) auto var(--space-m); max-width: 46ch; }
.tratt-outro__actions {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
  flex-wrap: wrap;
}
