/* Matese Ranch — bozza vetrina */
:root {
  --bg: #1a1612;
  --bg-soft: #241f1a;
  --bg-card: #2c261f;
  --border: #3d342a;
  --text: #f2ebe3;
  --muted: #b8a99a;
  --accent: #c4a35a;
  --accent-hover: #d4b76a;
  --cta: #25d366;
  --cta-hover: #1ebe57;
  --danger-soft: #8b6914;
  --radius: 10px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* clip, non hidden: hidden calcola overflow-y:auto e rende body lo scrollport.
     Lo sticky della testata resta allora intrappolato nel body: su telefono, tornando
     su, la barra copre il breadcrumb (o non rientra). clip taglia solo l'asse x e
     lascia lo scroll al viewport, senza fissare l'altezza della pagina. */
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 100%;
}

/* Header */
.site-header {
  background: rgba(26, 22, 18, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.logo:hover { text-decoration: none; opacity: 0.92; }
.logo img {
  height: 48px;
  width: auto;
  max-height: 52px;
  max-width: min(280px, 55vw);
  display: block;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav { display: block; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
}
.lang-switch button, .lang-switch a {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.45rem 0.65rem;
  min-height: 36px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.lang-switch .active {
  background: var(--accent);
  color: var(--bg);
}
.lang-switch .stub { opacity: 0.74; } /* v43: contrasto 4.9:1 (era 0.7 = 4.48:1) */
.en-stub-badge {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--danger-soft);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-wa {
  background: var(--cta);
  color: #0a1f12;
}
.btn-wa:hover { background: var(--cta-hover); color: #0a1f12; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background:
    linear-gradient(160deg, rgba(26,22,18,0.3) 0%, rgba(26,22,18,0.85) 70%),
    radial-gradient(ellipse at 70% 30%, #3d3228 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: none;
  width: 100%;
  white-space: nowrap;
  margin-bottom: 0.65rem;
  margin-inline: auto;
}
.hero-video {
  margin-top: 1.75rem;
  margin-inline: auto;
  max-width: 960px;
  width: 100%;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42ch;
  margin-inline: auto;
}
.hero .btn-row {
  justify-content: center;
  width: 100%;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 50ch;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card a.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.card a.card-link:hover { text-decoration: none; color: inherit; }

.photo-ph {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #1e1a16 0%, #2a231c 50%, #151210 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.photo-ph .ph-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  padding: 0 1rem;
  letter-spacing: 0.04em;
  word-break: break-word;
  max-width: 100%;
}
.photo-ph .ph-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a5c4e;
}
.photo-ph.tall { aspect-ratio: 3/4; }
.photo-ph.wide { aspect-ratio: 16/9; }
.photo-ph.hero-ph {
  aspect-ratio: 21/9;
  min-height: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-body h3 {
  font-size: 1.05rem;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag-price {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.tag-sale {
  background: rgba(196, 163, 90, 0.15);
  color: var(--accent);
  border-color: transparent;
}

/* Path cards */
.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}
.path-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.path-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

/* Why / points */
.points { list-style: none; display: grid; gap: 1rem; }
.points li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent);
}
.points li strong { display: block; margin-bottom: 0.35rem; font-family: var(--font-display); }

/* Filters */
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 720px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
    padding: 0.85rem;
  }
}
@media (min-width: 1000px) {
  .filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 0;
}
.filters select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font-size: 16px; /* evita zoom iOS al focus */
  min-height: 40px;
  width: 100%;
  max-width: 100%;
}
.filters select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters label.filter-search {
  grid-column: 1 / -1;
}
.filters input[type="search"] {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font-size: 16px; /* evita zoom iOS al focus */
  min-height: 44px;
  height: 44px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.filters input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters input[type="search"]::placeholder { color: var(--muted); opacity: 0.85; }
.filter-count { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.hidden { display: none !important; }

/* Detail / scheda — evita overflow orizzontale */
.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.detail-layout > * {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 800px) {
  .detail-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
/* v76 (26/10/2026, Pasquale): su desktop la parte alta della scheda (foto + dettagli) non si allarga a tutto lo schermo:
   stessa larghezza massima centrata del resto del sito (.container = var(--max)), come breadcrumb, titolo e footer.
   Sotto 1000px invariato. */
@media (min-width: 1000px) {
  .container.detail-layout { width: min(100% - 2rem, var(--max)); max-width: var(--max); margin-inline: auto; }
}
.gallery {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.detail-info {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
.dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.1rem;
  margin: 0.65rem 0 0.85rem;
  max-width: 100%;
}
.dl-row {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  min-width: 0;
}
.dl-row dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dl-row dd {
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  line-height: 1.3;
}
.dl-price {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.dl-sub {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
@media (min-width: 800px) {
  .dl {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-width: 28rem;
  }
  .dl-row {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
  }
  .dl-row dt {
    flex: 0 0 7.25rem;
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
  }
}
.price-band {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.5rem 0 1rem;
}
.footnote {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem;
  overflow-wrap: anywhere;
}
.footnote code {
  font-size: 0.8em;
  word-break: break-all;
}
.note-verify {
  font-size: 0.8rem;
  color: #c9a66b;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Stallone / staff */
.staff-list { display: grid; gap: 1rem; }
.staff-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  min-width: 0;
}
.staff-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.7rem;
}

/* Contact */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.contact-block h3 { font-family: var(--font-display); margin-bottom: 0.75rem; }
.contact-block p, .contact-block li { color: var(--muted); margin-bottom: 0.4rem; }
.contact-block ul { list-style: none; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2rem 0 1rem;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-logo:hover { text-decoration: none; opacity: 0.9; }
.footer-logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-bottom: 1.5rem;
}
.footer-grid h4, .footer-grid h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.footer-grid a, .footer-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.bozza-banner {
  text-align: center;
  font-size: 0.75rem;
  color: #8e7e6e; /* v43: contrasto 4.8:1 (era #7a6b5c = 3.6:1) */
  padding: 0.6rem;
  background: #151210;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* Misc */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
.breadcrumb a { color: var(--muted); }
/* Scheda puledro, solo telefono.
   La testata è sticky e la breadcrumb era fixed: su iOS, tornando su, i due sistemi
   di posizionamento non restano allineati e la barra (più alta di --header-h: padding
   + hamburger) copre "Home · Puledri · nome". Qui sono entrambe fixed, stessa origine,
   e a menu chiuso la testata è alta esattamente --header-h così la breadcrumb parte
   sotto il bordo, non sotto il contenuto. padding-top su main tiene foto e nome sotto
   le due barre (anche se il percorso va su 2 righe). Niente altezza sul body/main,
   niente overflow che tagli la pagina. Desktop invariato (la media query non scatta). */
@media (max-width: 768px) {
  body:has(.foal-tree) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  body:has(.foal-tree) .site-header:not(:has(.site-nav.is-open)) {
    height: var(--header-h);
    overflow: hidden;
  }
  body:has(.foal-tree) .site-header:not(:has(.site-nav.is-open)) .header-inner {
    min-height: 0;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
  body:has(.foal-tree) .site-header:has(.site-nav.is-open) {
    max-height: 100dvh;
    overflow-y: auto;
    background: #1a1612;
  }
  main:has(.foal-tree) {
    /* barra reale = --header-h (64px, forzata sopra) + fino a 2 righe di breadcrumb.
       v75: niente +4px, quel buco lasciava vedere la foto tra barra e percorso. */
    padding-top: calc(var(--header-h) + 3.6rem);
  }
  main:has(.foal-tree) > .page-header {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 90;
    width: auto;
    max-width: none;
    margin: 0;
    background: var(--bg);
    padding: 0 1rem 0.5rem;
  }
  main:has(.foal-tree) > .page-header .breadcrumb {
    /* parte subito sotto la barra (altezza reale --header-h), non più in basso */
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.45rem;
    line-height: 1.35;
  }
}
.page-header { padding: 2rem 0 0.5rem; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.page-header p { color: var(--muted); max-width: 55ch; }

.history-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.history-block h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.history-block p { color: var(--muted); margin-bottom: 0.75rem; max-width: 65ch; }

.partner {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Mobile —— */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    background: rgba(26, 22, 18, 0.98);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0 0.85rem;
  }
  .site-nav.is-open { display: block; }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav li {
    border-bottom: 1px solid var(--border);
  }
  .nav li:last-child { border-bottom: none; padding-top: 0.5rem; }
  .nav a {
    font-size: 1rem;
    padding: 0.85rem 0.25rem;
    min-height: 48px;
    border-bottom: none;
    width: 100%;
  }
  .nav a:hover, .nav a.active {
    border-bottom: none;
    color: var(--accent);
  }

  .logo img { height: 40px; max-width: min(220px, 50vw); }

  .hero { padding: 2.25rem 0 2rem; }
  .hero h1 {
    white-space: normal;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }
  .hero p.lead { font-size: 1rem; }
  .photo-ph.hero-ph {
    aspect-ratio: 16/9;
    min-height: 140px;
  }

  .section { padding: 2.25rem 0; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .staff-item { flex-wrap: wrap; }

  .detail-layout { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, var(--max)); }

  .logo img { height: 36px; max-width: min(200px, 48vw); }
  .footer-logo img { height: 40px; }

  .hero { padding: 1.75rem 0 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .price-band { font-size: 1.25rem; }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .path-card { padding: 1.15rem; }
  .contact-block { padding: 1.15rem; }

  .card-body { padding: 0.9rem 0.95rem 1rem; }
}


.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #15110e;
  border-bottom: 1px solid var(--border);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #15110e;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  position: relative;
  z-index: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}
/* Galleria scheda (v16): zone cliccabili trasparenti ai lati (22% x altezza piena) con solo chevron sottile */
.gallery-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 22%;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  outline: none;
}
.gallery-nav-prev { left: 0; justify-content: flex-start; }
.gallery-nav-next { right: 0; justify-content: flex-end; }
.gallery-chevron {
  display: block;
  width: 30px;
  height: 30px;
  opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.gallery-nav:hover .gallery-chevron { opacity: 1; }
.gallery-nav-prev:hover .gallery-chevron { transform: translateX(-2px); }
.gallery-nav-next:hover .gallery-chevron { transform: translateX(2px); }
.gallery-nav:focus-visible .gallery-chevron { opacity: 1; filter: drop-shadow(0 0 3px var(--accent)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75)); }
@media (min-width: 769px) {
  .gallery-chevron { width: 36px; height: 36px; }
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #15110e;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--accent);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Badge mesi / oltre 18 */
.tag-mesi {
  color: var(--text);
  border-color: var(--border);
  font-variant-numeric: tabular-nums;
}
.tag-oltre18 {
  font-size: 0.65rem;
  color: var(--muted);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.04);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Scheda: genealogia, carattere + video */
.genealogia-block {
  margin: 1rem 0 1.25rem;
  min-width: 0;
}
.pedigree-tree {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}
.pedigree-side {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.pedigree-grandparents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 0;
}
.pedigree-parent-wrap,
.pedigree-subject-wrap {
  min-width: 0;
}
.pedigree-parent-group {
  min-width: 0;
}
.pedigree-show-record {
  margin-top: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pedigree-show-record p {
  margin: 0.15rem 0 0.2rem;
}
.pedigree-show-record a {
  font-size: 0.68rem;
}
.pedigree-record-lte {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 0.78rem;
}
/* v30: stallone esterno — foto grande sotto il nome del padre + alias registrazione */
.pedigree-sire-photo {
  margin: 0.45rem 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.pedigree-sire-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 35%;
}
.pedigree-record-prog { margin-top: 0.1rem; }
.pedigree-record-alias {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-style: italic;
}
.pedigree-record-titles {
  margin: 0.3rem 0 0.35rem;
  padding-left: 1rem;
}
.pedigree-record-titles li {
  margin-bottom: 0.15rem;
}
.pedigree-record-label {
  display: block;
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pedigree-record-empty {
  font-size: 0.9rem;
}
.pedigree-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 4.25rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pedigree-node strong {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 600;
}
.pedigree-role {
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pedigree-parent {
  border-color: var(--accent);
}
.pedigree-parent strong { font-size: 0.9rem; }
/* Scheda: miniature padre/madre (v14) — foto intera, niente ritaglio */
.pedigree-parent.has-thumb {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.7rem;
}
.pedigree-parent-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 6.5rem;
}
.pedigree-parent:not(.has-thumb) .pedigree-parent-text { flex: 0 1 auto; }
.pedigree-thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  max-width: 100%;
}
.pedigree-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 72px;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
a.pedigree-parent-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
a.pedigree-parent-link:hover,
a.pedigree-parent-link:focus-visible {
  background: var(--bg-soft);
  border-color: var(--accent-hover);
}
a.pedigree-parent-link:hover strong,
a.pedigree-parent-link:focus-visible strong {
  color: var(--accent-hover);
}
.pedigree-subject-wrap { order: 2; }
.pedigree-subject {
  min-height: 4.75rem;
  background: var(--bg-soft);
  border-color: var(--accent);
}
.pedigree-subject strong { font-size: 0.95rem; }
.pedigree-paternal { order: 1; }
.pedigree-maternal { order: 3; }

@media (min-width: 769px) {
  .pedigree-tree {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 1.1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
  }
  .pedigree-paternal { grid-column: 1; grid-row: 1; }
  .pedigree-subject-wrap { grid-column: 2; grid-row: 1; }
  .pedigree-maternal { grid-column: 3; grid-row: 1; }
  .pedigree-subject-wrap,
  .pedigree-paternal,
  .pedigree-maternal { order: initial; }
}

/* Scheda puledro: pedigree a ventaglio (6 antenati, senza soggetto). Mobile-first: griglia 2 colonne
   con parentesi (stessa logica .mare-tree delle fattrici), leggibile anche sotto i 769 px. */
.foal-tree {
  --ft-cg: 0.85rem;
  --ft-rg: 0.4rem;
  --ft-line: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(0, auto));
  gap: var(--ft-rg) var(--ft-cg);
  width: 100%;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.25;
}
.ft-cell {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.ft-box {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  overflow-wrap: anywhere;
}
.ft-parent {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  border-color: var(--accent);
  background: var(--bg-card);
  padding: 0.45rem 0.5rem;
}
.ft-label {
  display: block;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.06rem;
}
.ft-name {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text);
}
.ft-ss .ft-name, .ft-sd .ft-name, .ft-ds .ft-name, .ft-dd .ft-name {
  font-weight: 500;
}
a.ft-name-link {
  color: inherit;
  text-decoration: none;
}
a.ft-name-link:hover,
a.ft-name-link:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}
.ft-thumb {
  display: block;
  margin: 0 0 0.25rem;
  line-height: 0;
}
.ft-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 54px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.ft-alias {
  display: block;
  font-size: 0.62rem;
  font-style: italic;
  color: var(--muted);
}
.ft-stat {
  display: block;
  margin-top: 0.12rem;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}
.ft-titles {
  margin: 0.2rem 0 0;
  padding-left: 0.95rem;
  color: var(--muted);
  font-size: 0.66rem;
}
.ft-titles li { margin-bottom: 0.1rem; }
.ft-sire { grid-column: 1; grid-row: 1 / 3; }
.ft-dam { grid-column: 1; grid-row: 3 / 5; }
.ft-ss { grid-column: 2; grid-row: 1; }
.ft-sd { grid-column: 2; grid-row: 2; }
.ft-ds { grid-column: 2; grid-row: 3; }
.ft-dd { grid-column: 2; grid-row: 4; }
/* Stanghetta orizzontale da Sire/Dam verso i nonni */
.ft-sire::after, .ft-dam::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--ft-cg) / -2);
  width: calc(var(--ft-cg) / 2);
  border-top: var(--ft-line);
  pointer-events: none;
}
/* Parentesi sui nonni: tratto verticale + stanghetta verso la cella */
.ft-ss::before, .ft-ds::before,
.ft-sd::before, .ft-dd::before {
  content: "";
  position: absolute;
  left: calc(var(--ft-cg) / -2);
  width: calc(var(--ft-cg) / 2);
  border-left: var(--ft-line);
  pointer-events: none;
}
.ft-ss::before, .ft-ds::before {
  top: 50%;
  bottom: calc(var(--ft-rg) / -2);
  border-top: var(--ft-line);
  border-top-left-radius: 4px;
}
.ft-sd::before, .ft-dd::before {
  top: calc(var(--ft-rg) / -2);
  bottom: 50%;
  border-bottom: var(--ft-line);
  border-bottom-left-radius: 4px;
}
@media (min-width: 520px) {
  .foal-tree {
    --ft-cg: 1.15rem;
    --ft-rg: 0.45rem;
    font-size: 0.76rem;
  }
  .ft-name { font-size: 0.84rem; }
  .ft-stat { font-size: 0.74rem; }
  .ft-titles { font-size: 0.7rem; }
  .ft-thumb img { max-width: 88px; max-height: 66px; }
}
@media (min-width: 769px) {
  .foal-tree {
    --ft-cg: 1.4rem;
    --ft-rg: 0.5rem;
  }
}

/* Scheda: carattere + video */
.detail-sub {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}
.carattere-block,
.video-block {
  margin: 1rem 0 1.25rem;
}
.carattere-text {
  line-height: 1.45;
  color: var(--text);
  white-space: pre-line;
}
.carattere-text.placeholder {
  color: var(--muted);
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #15110e;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}


/* Stalloni: show records e progenie */
.stallone-note {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.show-block, .progenie-block { margin: 1.25rem 0; min-width: 0; }
.show-lte {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.show-lte span, .show-label {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.show-lte strong { font-size: 1.2rem; }
.show-note, .show-source, .progenie-note { color: var(--muted); font-size: 0.78rem; margin: 0.45rem 0; overflow-wrap: anywhere; }
.show-qdata, .sire-record {
  margin-top: 0.9rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  min-width: 0;
}
.show-stats { display: grid; gap: 0.35rem; margin: 0.45rem 0; }
.show-stats > div { display: grid; grid-template-columns: minmax(4rem, 6rem) minmax(0, 1fr); gap: 0.5rem; font-size: 0.82rem; }
.show-stats dt { color: var(--muted); }
.show-stats dd { margin: 0; overflow-wrap: anywhere; }
.show-subtitle { font-family: var(--font-display); font-size: 0.95rem; margin: 1rem 0 0.45rem; }
.show-titles { padding-left: 1.15rem; margin: 0; color: var(--text); font-size: 0.84rem; }
.show-titles li { margin-bottom: 0.3rem; overflow-wrap: anywhere; }
.progenie-total { font-size: 0.95rem; margin-bottom: 0.8rem; }
.progenie-group { margin: 0.85rem 0; }
.progenie-group h3 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.35rem; }
.progenie-list, .earner-list { list-style: none; padding: 0; margin: 0; }
.progenie-list li, .earner-list li { border-bottom: 1px solid var(--border); padding: 0.45rem 0; min-width: 0; }
.progenie-list a { display: flex; flex-direction: column; gap: 0.1rem; }
.progenie-list strong, .earner-list strong { font-size: 0.86rem; }
.progenie-list span, .earner-list span { color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.sire-lead { margin: 0.35rem 0; }
.sire-record > p:not(.show-label):not(.show-source) { color: var(--muted); font-size: 0.8rem; margin: 0.25rem 0; }
.discipline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 0.75rem; margin: 0.7rem 0 0.9rem; }
.discipline-list div { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; border-bottom: 1px dotted var(--border); padding: 0.2rem 0; }
.discipline-list span { color: var(--muted); }
.discipline-list strong { font-weight: 600; }
.earner-list { counter-reset: earners; }
.earner-list li { display: grid; grid-template-columns: minmax(0, 1fr); }
.card-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
@media (max-width: 480px) {
  .discipline-list { grid-template-columns: 1fr; }
  .show-lte { align-items: flex-start; flex-direction: column; }
}

/* Fattrici: vista sintetica (lista unica) */
.fattrici-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mare-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.mare-block:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.35);
}
.mare-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  align-items: start;
}
.mare-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.mare-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  align-items: start;
}
.mare-stats .mare-show,
.mare-stats .mare-figli-stat {
  min-width: 0;
}
.mare-stats .mare-figli-stat {
  text-align: right;
}
/* v31: solo LTE + Progeny Earnings (riquadro "Figli in vendita" rimosso) */
.mare-stats:has(.mare-show-prog) {
  grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr));
}
.catalog-empty {
  grid-column: 1 / -1;
  padding: 1rem 0;
  text-align: center;
}
.mare-thumb-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  border-radius: 8px;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.mare-thumb-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mare-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-soft);
  display: block;
}
.mare-thumb-btn:hover .mare-thumb {
  border-color: var(--accent);
}
.mare-thumb-ph {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.25rem;
}
body.lightbox-open { overflow: hidden; }
.mare-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mare-lightbox.is-open { display: flex; }
.mare-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}
.mare-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 960px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.mare-lightbox-img {
  max-width: 96vw;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #111;
}
.mare-lightbox-cap {
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}
.mare-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.mare-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(44, 38, 31, 0.92);
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.mare-lightbox-prev { left: 0.25rem; }
.mare-lightbox-next { right: 0.25rem; }
.mare-head-text { min-width: 0; flex: 1; }
.mare-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}
.mare-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.2rem 0 0;
}
.mare-col-label {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.mare-show,
.mare-figli-stat {
  font-size: 0.84rem;
  min-width: 0;
}
.mare-show strong,
.mare-figli-stat strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}
.mare-show-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.mare-show-titles {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}
.mare-show-titles li { margin-bottom: 0.2rem; }
.mare-pedigree {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}
.mare-ped-line { min-width: 0; }
.mare-ped-label {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.mare-ped-sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
  overflow-wrap: anywhere;
}
.mare-progeny {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}
.mare-progeny-group { margin: 0.45rem 0 0; }
.mare-progeny-group:first-child { margin-top: 0; }
.mare-progeny-group h3, .mare-progeny-group h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-weight: 600;
}
.mare-progeny-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mare-progeny-group li {
  padding: 0.25rem 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.mare-progeny-group li:last-child { border-bottom: 0; }
.mare-progeny-group a {
  display: inline;
}
.mare-progeny-group span:not(.mare-kid-thumb):not(.mare-kid-text) {
  color: var(--muted);
  font-size: 0.75rem;
}
/* v31: righe figli in vendita con miniatura (larga meta' della foto fattrice = 1/4 della card) */
.mare-progeny-group li:has(.mare-kid) {
  padding: 0.4rem 0;
}
.mare-progeny-group a.mare-kid,
.mare-progeny-group .mare-kid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.mare-kid-thumb {
  flex: 0 0 calc((100% - 1.1rem) / 4);
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.mare-kid-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mare-kid-thumb.is-empty {
  background: linear-gradient(135deg, var(--bg-soft), var(--border));
}
.mare-kid-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mare-progeny-group .mare-kid-name {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}
.mare-progeny-group .mare-kid-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.mare-progeny-group a.mare-kid:hover .mare-kid-name,
.mare-progeny-group a.mare-kid:focus-visible .mare-kid-name {
  text-decoration: underline;
}
.mare-progeny-group a.mare-kid:hover .mare-kid-thumb {
  border-color: var(--accent);
}
@media (max-width: 520px) {
  .mare-progeny-group .mare-kid-name { font-size: 0.85rem; }
}
/* v47: solo desktop (>= 769px, breakpoint del sito): figli in vendita su due colonne; gap come .mare-top
   (1.1rem), cosi' la miniatura resta larga come prima (50% della colonna = 1/4 della card) */
@media (min-width: 769px) {
  .mare-progeny-group ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.1rem;
  }
  .mare-progeny-group .mare-kid-thumb { flex-basis: 50%; }
  /* niente riga punteggiata sotto l'ultima riga della griglia (anche con numero pari di figli) */
  .mare-progeny-group li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
/* v48/v49: albero genealogico a ventaglio (Sire, Dam | 4 nonni; v49 tolta la fattrice) nella colonna accanto alla foto, SOLO desktop.
   Righe di uguale altezza (1fr) -> i centri di Sire/Dam cadono al 25%/75%: le parentesi sono pseudo-elementi delle celle
   (stanghetta orizzontale + tratto verticale fino a meta' del row-gap), unite fra cella alta e cella bassa di ogni coppia. */
.mare-tree { display: none; }
@media (min-width: 769px) {
  .mare-pedigree { display: none; }
  .mare-tree {
    --mt-cg: 1.4rem;
    --mt-rg: 0.35rem;
    --mt-line: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: var(--mt-rg) var(--mt-cg);
    font-size: 0.74rem;
    line-height: 1.25;
  }
  .mt-cell {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .mt-box {
    width: 100%;
    min-width: 0;
    padding: 0.28rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-soft);
    overflow-wrap: anywhere;
  }
  .mt-label {
    display: block;
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.08rem;
  }
  .mt-name { display: block; font-weight: 600; }
  .mt-ss .mt-name, .mt-sd .mt-name, .mt-ds .mt-name, .mt-dd .mt-name { font-weight: 500; color: var(--text); }
  .mt-sire { grid-column: 1; grid-row: 1 / 3; }
  .mt-dam { grid-column: 1; grid-row: 3 / 5; }
  .mt-ss { grid-column: 2; grid-row: 1; }
  .mt-sd { grid-column: 2; grid-row: 2; }
  .mt-ds { grid-column: 2; grid-row: 3; }
  .mt-dd { grid-column: 2; grid-row: 4; }
  /* stanghetta verso destra da Sire e Dam */
  .mt-sire::after, .mt-dam::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--mt-cg) / -2);
    width: calc(var(--mt-cg) / 2);
    border-top: var(--mt-line);
  }
  /* parentesi: cella alta della coppia (stanghetta + verticale in giu'), cella bassa (verticale dall'alto + stanghetta) */
  .mt-ss::before, .mt-ds::before,
  .mt-sd::before, .mt-dd::before {
    content: "";
    position: absolute;
    left: calc(var(--mt-cg) / -2);
    width: calc(var(--mt-cg) / 2);
    border-left: var(--mt-line);
  }
  .mt-ss::before, .mt-ds::before {
    top: 50%;
    bottom: calc(var(--mt-rg) / -2);
    border-top: var(--mt-line);
    border-top-left-radius: 4px;
  }
  .mt-sd::before, .mt-dd::before {
    top: calc(var(--mt-rg) / -2);
    bottom: 50%;
    border-bottom: var(--mt-line);
    border-bottom-left-radius: 4px;
  }
}
@media (max-width: 520px) {
  .mare-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .mare-block { padding: 0.8rem; }
  .mare-name { font-size: 0.98rem; }
  .mare-pedigree { grid-template-columns: 1fr; }
}


/* Home: carosello puledri in evidenza */
.foal-carousel {
  position: relative;
}
.foal-carousel-stage {
  position: relative;
  /* margini laterali: qui stanno le zone cliccabili delle frecce (stile galleria scheda), fuori dalle card */
  padding-inline: 2rem;
}
.foal-carousel-viewport {
  overflow: hidden;
}
.foal-carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.7s ease;
  will-change: transform;
}
.foal-carousel-track > .card {
  flex: 0 0 100%;
}
/* Frecce: riusano .gallery-nav/.gallery-chevron; zona a tutta altezza larga quanto il margine */
.foal-carousel .foal-carousel-nav {
  width: 2rem;
  padding: 0;
  justify-content: center;
  color: var(--text);
}
.foal-carousel .foal-carousel-nav .gallery-chevron { width: 28px; height: 28px; }
.foal-carousel .foal-carousel-nav:hover .gallery-chevron,
.foal-carousel .foal-carousel-nav:focus-visible .gallery-chevron { color: var(--accent); }
/* v44: contatore "N / totale" sotto il carosello (al posto dei pallini) */
/* v46: barra sottile di avanzamento (decorativa) sopra il contatore; altezza fissa (niente CLS) */
.foal-progress {
  position: relative;
  width: min(240px, 60%);
  height: 16px;
  margin: 0.85rem auto 0;
  pointer-events: none;
}
.foal-progress-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.foal-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.75;
  transform: scaleX(0);
  transform-origin: left center;
}
.foal-progress.is-running .foal-progress-fill { animation: foal-fill var(--foal-dur, 4s) linear forwards; }
.foal-progress.is-paused .foal-progress-fill { animation-play-state: paused; }
@keyframes foal-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  /* solo la linea, statica */
  .foal-progress .foal-progress-fill { display: none; }
}
.foal-carousel-counter {
  margin-top: 0.3rem;
  text-align: center;
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .foal-carousel-track > .card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
  }
  .foal-carousel-stage { padding-inline: 3rem; }
  .foal-carousel .foal-carousel-nav { width: 3rem; }
  .foal-carousel .foal-carousel-nav .gallery-chevron { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .foal-carousel-track { transition: none; }
}


/* —— Foto di contesto: ranch, territorio, azienda agricola, attività (v11) —— */
.section-sub-wide { max-width: 68ch; }

/* Home: grande immagine di paesaggio sotto l'hero */
.landscape-band {
  position: relative;
  margin: 0;
  background: #15110e;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.landscape-band img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 78vh;
  object-fit: cover;
  object-position: 58% 55%;
}
.landscape-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 0 1.25rem;
  background: linear-gradient(to top, rgba(26, 22, 18, 0.88) 0%, rgba(26, 22, 18, 0.45) 55%, rgba(26, 22, 18, 0) 100%);
}
.band-kicker {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.band-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  max-width: 42ch;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Gallerie foto */
.photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
.photo-fig {
  margin: 0;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.photo-fig figcaption {
  padding: 0.5rem 0.75rem 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.photo-grid-3 .photo-fig img { aspect-ratio: 4 / 3; }
.photo-grid-3 .photo-fig:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .photo-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .photo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .photo-grid-3 .photo-fig:first-child { grid-column: auto; }
  .photo-grid-2 { gap: 1rem; }
}
@media (max-width: 560px) {
  .photo-grid-2 { grid-template-columns: 1fr; }
}

/* Visita: sottotitolo dentro un blocco */
.block-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.contact-block .photo-grid { margin-top: 1rem; }
.contact-block .photo-fig figcaption { margin-bottom: 0; }

/* Metodo: azienda agricola */
.farm-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Visita: cosa facciamo */
.activity-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.activity-media { margin: 0; position: relative; }
.activity-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.photo-credit {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.4rem 1.1rem 0;
  letter-spacing: 0.02em;
}
.activity-body { padding: 0.85rem 1.1rem 1.2rem; min-width: 0; }
.activity-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.activity-body p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 768px) {
  .landscape-band img { aspect-ratio: 4 / 3; object-position: 60% 55%; }
  .landscape-band figcaption { padding: 2.5rem 0 0.9rem; }
}

/* v34 — card puledri: cover 3:2 (formato delle foto orizzontali, nessun taglio);
   cover verticale (puledro senza foto orizzontali) mostrata intera su sfondo neutro */
.card-media.foal-media,
.photo-ph.foal-media {
  aspect-ratio: 3 / 2;
}
.card-media.foal-media.is-contain {
  background: linear-gradient(145deg, #1e1a16 0%, #2a231c 50%, #151210 100%);
}
.card-media.foal-media.is-contain img {
  object-fit: contain;
  object-position: center;
}
/* Scheda: tutte le miniature visibili e intere (anche le verticali) */
.gallery-thumb img { object-position: center; }

/* Card puledro: riga pedigree "PADRE x MADRE (NONNO MATERNO)" (v15), max 2 righe con ellissi */
.card-pedigree {
  margin: -0.15rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Visita: mappa "Come raggiungerci" (v17) */
.map-block { margin-top: 1.25rem; }
.map-embed {
  position: relative;
  width: 100%;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-block .btn-row { margin-top: 0.9rem; }
.map-note { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 769px) { .map-embed { height: 420px; } }

/* —— Hero fotografica home (v19) —— */
.photo-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.photo-hero-slides { position: absolute; inset: 0; }
.photo-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.photo-hero-slide.is-active { opacity: 1; }
.photo-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.2) 65%, rgba(0,0,0,0.55) 100%),
    rgba(20, 16, 12, 0.22);
}
/* v25: logo piccolo nella fascia libera in alto (sotto l'header trasparente), sopra le teste dei cavalli */
.photo-hero-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-h) + 12px) 1.5rem 0;
  pointer-events: none;
}
.photo-hero-logo img {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}
@media (min-width: 600px) {
  .photo-hero-logo img { width: 176px; }
}
@media (min-width: 1100px) {
  .photo-hero-logo img { width: 200px; }
}
@media (min-width: 1600px) and (min-height: 1000px) {
  .photo-hero-logo img { width: 280px; }
}
.photo-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.photo-hero-scroll span {
  width: 14px;
  height: 14px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: heroScroll 2.2s ease-in-out infinite;
}
.photo-hero-scroll:hover { opacity: 1; text-decoration: none; }
@keyframes heroScroll {
  0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: 0.6; }
  50% { transform: translateY(4px) rotate(45deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-hero-slide { transition: none; }
  .photo-hero-scroll span { animation: none; }
}

/* v75: header fisso sopra la hero (solo home), gradiente che finisce trasparente.
   Niente fondo pieno #1a1612 su header, header-inner o site-nav, né dopo lo scroll,
   né fascia sulla safe-area: sull'hero non ci va una barra nera. */
body.has-photo-hero .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  border-bottom-color: transparent;
  background-origin: border-box;
  background-repeat: no-repeat;
  backdrop-filter: none;
  transition: background 0.3s, border-color 0.3s;
}
body.has-photo-hero .site-header .logo { transition: opacity 0.3s; }
body.has-photo-hero:not(.hero-passed):not(.nav-open) .site-header .logo { opacity: 0; pointer-events: none; }
body.has-photo-hero .site-header .nav a { color: rgba(255,255,255,0.88); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
body.has-photo-hero .site-header .nav a.active { color: var(--accent); }
body.has-photo-hero .site-header .nav-toggle { border-color: rgba(255,255,255,0.45); }
body.has-photo-hero .site-header .nav-toggle span { background: #fff; }
body.has-photo-hero.hero-passed .site-header,
body.has-photo-hero.nav-open .site-header {
  background: rgba(26, 22, 18, 0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(8px);
}
body.has-photo-hero.hero-passed .site-header .nav a,
body.has-photo-hero.nav-open .site-header .nav a { text-shadow: none; }
body.has-photo-hero .hero#intro { scroll-margin-top: var(--header-h); }

/* v22: figli in vendita nella scheda stallone */
[hidden] { display: none !important; }
.stallone-figli { padding-top: 0; }

/* v39: footer legale (P.IVA, Privacy), pagina privacy, contenuti esterni caricati al clic */
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--text); }
.legal { max-width: 72ch; }
.legal h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: 1rem; margin: 1.3rem 0 0.4rem; color: var(--text); }
.legal p, .legal li { color: var(--muted); line-height: 1.65; margin-bottom: 0.6rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 0.9rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .legal-meta { font-size: 0.9rem; }
.embed-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-soft);
}
.embed-consent .embed-consent-title { color: var(--text); font-weight: 600; font-size: 1rem; }
.embed-consent p { color: var(--muted); font-size: 0.85rem; max-width: 44ch; margin: 0; }
.embed-consent .btn { width: auto; }

/* v40: social nel footer, banner cookie */
.footer-social { display: flex; gap: 0.9rem; margin-top: 0.7rem; }
.footer-grid .footer-social a { display: inline-flex; margin: 0; color: var(--muted); }
.footer-grid .footer-social a:hover { color: var(--text); }
.contact-social { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.contact-social a { display: inline-flex; align-items: center; gap: 0.45rem; }
.cookie-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1000;
  max-width: 560px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-bar p { margin: 0 0 0.6rem; }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions .btn { flex: 1 1 0; width: auto; min-height: 0; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.cookie-x {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-x:hover { color: var(--text); }

/* v41: link nascosto del "©" nel footer (area riservata statistiche): identico al testo.
   v73: lo stesso © è anche nel footer mobile (.footer-col), prima del nome azienda. */
.footer-bottom a.stealth-link,
.footer-bottom a.stealth-link:hover,
.footer-bottom a.stealth-link:focus:not(:focus-visible),
.footer-col a.stealth-link,
.footer-col a.stealth-link:hover,
.footer-col a.stealth-link:focus,
.footer-col a.stealth-link:active { color: inherit; text-decoration: none; cursor: auto; }

/* v42: pulsante Condividi nella scheda puledro */
.btn-share { gap: 0.45rem; font-family: inherit; }
.btn-share svg { flex: none; }

/* v43: <picture> delle foto WebP responsive senza box proprio (layout identico al solo <img>) */
picture { display: contents; }
/* v43: titoli solo per lettori di schermo (ordine dei titoli), invisibili */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
/* v43: link dentro un testo riconoscibili anche senza colore (sottolineati) */
.cookie-bar p a,
.embed-consent p a,
.activity-body p a { text-decoration: underline; text-underline-offset: 2px; }

/* v50: stato vendita dei puledri (assets/js/stato.js): badge piccolo, colori pieni con testo a contrasto AA
   (Disponibile 6.2:1, Prenotato 8.7:1, Venduto 7.2:1). Sulle card e' sovrapposto alla foto (assoluto: nessun CLS). */
.sv-badge {
  display: inline-block;
  min-width: 5.6rem;
  text-align: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}
.sv-d { background: #1f6f43; color: #fff; }
.sv-p { background: #e0a93a; color: #1f1400; }
.sv-v { background: #5c5650; color: #fff; }
.card-media.foal-media, .photo-ph.foal-media { position: relative; }
.sv-badge.sv-over {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-kicker .sv-badge { font-size: 0.78rem; padding: 0.22rem 0.65rem; }
/* righe "Figli in vendita" (Fattrici): sotto anno/registro/sesso; batte la regola generica degli span del gruppo */
.mare-progeny-group .mare-kid-text span.sv-badge {
  align-self: flex-start;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  line-height: 1.3;
}
.mare-progeny-group .mare-kid-text span.sv-badge.sv-d { color: #fff; }
.mare-progeny-group .mare-kid-text span.sv-badge.sv-p { color: #1f1400; }
.mare-progeny-group .mare-kid-text span.sv-badge.sv-v { color: #fff; }
.btn[hidden] { display: none; }
/* v51: vetrina home — carosello nascosto (spazio gia' riservato) finche' non arriva l'ordine live (max ~0,8 s);
   segno "In evidenza" in alto a destra sulla foto, sobrio e coerente con i badge stato (contrasto > 9:1) */
.foal-carousel.is-wait .foal-carousel-track,
.foal-carousel.is-wait .foal-carousel-counter { visibility: hidden; }
.sv-badge.sv-star {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  min-width: 0;
  background: #1c1713;
  color: #f1d38a;
  border: 1px solid rgba(241, 211, 138, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.sv-badge.sv-star::before { content: "★ " / ""; }

/* v69: lista visitatore (Salva / Nella lista). Non è la stella "In evidenza" del backoffice
   (quella resta .sv-badge.sv-star, assoluta sulla foto). Segnalibro in flusso, sotto il titolo
   in scheda e sotto la card in catalogo: non è fixed, quindi non finisce sotto testata o breadcrumb. */
.btn-salva {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0.4rem 0.9rem;
  min-height: 40px;
  width: auto;
  max-width: 100%;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.btn-salva::before {
  content: "";
  width: 0.55rem;
  height: 0.72rem;
  border: 1.5px solid currentColor;
  border-radius: 1px 1px 3px 3px;
  background:
    linear-gradient(currentColor, currentColor) center 62% / 1.5px 42% no-repeat;
  flex: none;
}
.btn-salva.is-on {
  background: var(--accent);
  color: #1a1612;
}
.btn-salva:hover { filter: brightness(1.08); }
.card-salva {
  padding: 0 1.1rem 1rem;
}
.card-salva .btn-salva {
  margin: 0;
  width: 100%;
}
.detail-info > .btn-salva { scroll-margin-top: calc(var(--header-h) + 4.6rem); }
@media (max-width: 768px) {
  .btn-row > .btn-salva { width: 100%; }
}

.lista-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #1a1612;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.nav a.active .lista-count {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.lista-shared {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.lista-hint { color: var(--muted); margin-top: 0.85rem; max-width: 46ch; }
/* Venduto nella lista: la card resta grigia. Il badge e le regole WhatsApp non cambiano
   (niente pulsante in card; in scheda lo nasconde scheda.js). */
#lista-grid .card:has(.sv-badge.sv-v) {
  filter: grayscale(1);
}
#lista-grid .card:has(.sv-badge.sv-v) .btn-wa { display: none !important; }

/* v72: footer telefono (sotto i 768px), una colonna centrata.
   v73: il © prima del nome azienda è il link stealth a /statistiche/ (come il desktop).
   Il blocco .footer-col è nell'HTML di ogni pagina ma nascosto da 768px in su,
   dove resta .footer-grid (logo, indirizzo, navigazione, WhatsApp, copyright).
   P.IVA è testo semplice (niente link). Icone social mobile 25px (20 × 1.25). */
.footer-col { display: none; }

@media (max-width: 767px) {
  .site-footer .footer-grid,
  .site-footer .footer-bottom { display: none; }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.28rem;
    padding: 0.15rem 0 0.4rem;
  }
  .footer-col h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
    margin: 1.05rem 0 0.15rem;
  }
  .footer-col p,
  .footer-col a {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    text-decoration: none;
  }
  /* P.IVA e gli altri paragrafi non sono link: niente sottolineatura, cursore normale. */
  .footer-col p {
    cursor: default;
    text-decoration: none;
  }
  .footer-col a[href="https://www.mateseranch.it"] {
    text-decoration: none;
  }
  .footer-col a:hover,
  .footer-col a:focus,
  .footer-col a:active {
    color: var(--text);
    text-decoration: none;
  }
  .footer-col-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.15rem;
  }
  .footer-col-social a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--muted);
    text-decoration: none;
  }
  .footer-col-social svg {
    width: 25px;
    height: 25px;
  }
  .footer-col-social a:hover,
  .footer-col-social a:focus { color: var(--text); text-decoration: none; }
  .footer-col-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}


/* hero-lago: non upscalare oltre i pixel nativi */
/* Sul telefono (viewport <= 1203) resta a tutta larghezza. Sul computer largo il riquadro non supera 1203x1200. Le altre slide non cambiano. */
.photo-hero-slide.hero-lago {
  width: min(100%, 1203px);
  height: min(100%, 1200px);
  max-width: 1203px;
  max-height: 1200px;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* === gen:ultime-gare === */
/* Ultime gare — home preview + pagina dedicata */
.results-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.results thead th {
  text-align: left;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #2a241d;
  white-space: nowrap;
}
table.results td {
  padding: 0.58rem 0.75rem;
  border-bottom: 1px solid rgba(61, 52, 42, 0.55);
  vertical-align: middle;
}
table.results tbody tr:last-child td { border-bottom: none; }
table.results .date {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
table.results .horse { font-weight: 600; white-space: nowrap; }
table.results .show .show-cat { display: block; }
table.results .show .show-name {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
table.results .score {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
table.results td.parents,
table.results td.cat-m,
table.results td.show-m { display: none; }
.more-wrap {
  margin-top: 1rem;
  text-align: center;
}
.more-wrap .btn-more {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
}

/* Filtri pagina: layout desktop + toggle telefono (scoped .gare-filters) */
.gare-filters {
  display: grid;
  grid-template-columns: 1.3fr repeat(6, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: end;
}
.gare-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-width: 0;
}
.gare-filters input[type="search"],
.gare-filters select {
  font: inherit;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  width: 100%;
  min-height: 40px;
}
.gare-filters input[type="search"] {
  font-size: 16px;
  min-height: 44px;
  height: 44px;
}
.gare-filters input[type="search"]:focus,
.gare-filters select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.gare-filters .filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.gare-filters .filter-meta {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin: 0;
}
.gare-filters .filters-reset {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  min-height: 40px;
}
.gare-filters .filters-reset:hover {
  background: var(--bg-soft);
}
.gare-filters .filters-toggle { display: none; }
.gare-filters .filters-panel { display: contents; }
.results-wrap.page-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 767px) {
  table.results thead { display: none; }
  table.results,
  table.results tbody { display: block; width: 100%; }
  table.results tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "horse result" "padre result" "madre show";
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    align-items: start;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--border);
  }
  table.results tbody tr:last-child { border-bottom: none; }
  table.results td {
    border: none;
    padding: 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  table.results td.date,
  table.results td.parents,
  table.results td.show,
  table.results td.score { display: none; }
  table.results td.cat-m,
  table.results td.show-m { display: block; }
  table.results td.horse {
    grid-area: horse;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.95rem;
    white-space: normal;
  }
  table.results td.padre {
    grid-area: padre;
    color: var(--muted);
    font-size: 0.76rem;
  }
  table.results td.madre {
    grid-area: madre;
    color: var(--muted);
    font-size: 0.76rem;
  }
  table.results td.padre::before { content: "Sire: "; }
  table.results td.madre::before { content: "Dam: "; }
  table.results td.cat-m {
    grid-area: result;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
  }
  table.results td.cat-m a { font-weight: 500; }
  table.results td.show-m {
    grid-area: show;
    color: var(--muted);
    font-size: 0.74rem;
  }
  /* home: 4 righe su telefono */
  table.results.home-list tbody tr:nth-child(n+5) { display: none !important; }

  .gare-filters {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
  }
  .gare-filters > .filter-search {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
  }
  .gare-filters .filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  .gare-filters .filters-toggle[aria-expanded="true"] {
    background: var(--bg-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
  }
  .gare-filters .filters-panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .gare-filters .filters-panel.is-open { display: grid; }
  .gare-filters .filter-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .gare-filters .filters-reset {
    width: 100%;
    min-height: 44px;
  }
  .gare-filters .filter-meta { grid-column: auto; }
}
/* gara-foto + ordinamento colonne (2026-10) */
.gara-foto{margin:0 0 1.5rem}.gara-foto img{width:100%;max-width:900px;height:auto;border-radius:8px;display:block}.gara-foto figcaption{font-size:.85rem;color:var(--muted);margin-top:.4rem}
table.results thead th .sort-btn{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:.3rem;font:inherit;color:inherit}
table.results thead th .sort-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
table.results thead th .sort-arrow{font-size:.75em;opacity:.35}
table.results thead th.is-sorted .sort-arrow{opacity:1;color:var(--accent)}
.sort-mobile{display:none}
@media (max-width:768px){
  .sort-mobile{display:flex;align-items:center;gap:.6rem;margin:0 0 .8rem}
  .sort-mobile label{font-size:.9rem;color:var(--muted);white-space:nowrap}
  .sort-mobile select{flex:1;min-width:0;max-width:100%;min-height:44px;padding:.4rem .6rem;border-radius:6px;background:var(--bg-soft);color:var(--text);border:1px solid var(--border,#444);font:inherit}
}
/* === /gen:ultime-gare === */

/* v56 — filtri pagina Fattrici: Cerca, Razza, Linea di sangue, Ordina, chip "Con figli in vendita"; su telefono pannello apribile */
.fattrici-filters .filters-toggle { display: none; }
.fattrici-filters .filters-panel { display: contents; }
.fattrici-filters .filter-chip-wrap { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.fattrici-filters .filter-chip-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.fattrici-filters .filter-chip {
  min-height: 40px; padding: 0.4rem 0.75rem; border-radius: 999px; font: inherit; font-size: 0.85rem;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border); cursor: pointer; text-align: center;
}
.fattrici-filters .filter-chip[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.fattrici-filters .filter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (min-width: 1000px) {
  .fattrici-filters { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .fattrici-filters { grid-template-columns: 1fr; }
  .fattrici-filters .filters-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
    padding: 0.55rem 0.85rem; font: inherit; font-size: 0.9rem; font-weight: 600;
    color: var(--bg); background: var(--accent); border: none; border-radius: 6px; cursor: pointer;
  }
  .fattrici-filters .filters-toggle[aria-expanded="true"] { background: var(--bg-soft); color: var(--accent); border: 1px solid var(--accent); }
  .fattrici-filters .filters-panel { display: none; grid-template-columns: 1fr 1fr; gap: 0.55rem 0.65rem; }
  .fattrici-filters .filters-panel.is-open { display: grid; }
  .fattrici-filters .filter-chip-wrap { grid-column: 1 / -1; }
  .fattrici-filters .filter-chip { min-height: 44px; }
}

/* v78 (26/10/2026, Pasquale): layout scheda puledro.
   Colonna sinistra (.detail-media): foto grande, miniature, video. Colonna destra (.detail-info): dati, genealogia, pulsanti.
   Riquadro della foto grande a proporzione fissa 3:2: ogni foto (anche verticale) sta intera dentro il riquadro
   (object-fit: contain), mai piu' grande, nessun ritaglio/rotazione/specchiatura. Su telefono e tablet (< 800px)
   una sola colonna nell'ordine: foto, miniature, video, dati, genealogia, pulsanti. */
.detail-media {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
  max-width: 100%;
}
.detail-media .gallery-main {
  aspect-ratio: 3 / 2;
  min-height: 0;
}
.detail-media .gallery-main > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.detail-media .gallery-main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.detail-media .video-block { margin: 0.5rem 0 0; }
.detail-media .video-block .detail-sub { margin-top: 0.25rem; }

/* v79 (26/10/2026, Pasquale): card catalogo.
   Riga compatta anno/registro/mantello/sesso, genitori Sire/Dam affiancati, stato (Disponibile/Prenotato/Venduto)
   accanto a «Salva» con la stessa misura; tolta l'icona segnalibro di «Salva» solo nelle card. */
.card-meta { display: flex; flex-wrap: wrap; column-gap: 1.1rem; row-gap: 0.15rem; margin-bottom: 0.55rem; }
.card-meta > span { white-space: nowrap; }
.card-meta .cm-colore { text-transform: capitalize; }
.card-parents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem 0.75rem; margin: 0 0 0.65rem; }
.card-parent { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.card-parent .cp-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.card-parent .cp-name { font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; }
.card-salva { display: flex; gap: 0.5rem; align-items: stretch; }
.card-salva > .sv-badge.sv-card,
.card-salva > .btn-salva { flex: 1 1 0; min-width: 0; width: auto; }
.card-salva > .sv-badge.sv-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.card-salva .btn-salva::before { content: none; display: none; }

/* v80 (26/10/2026, Pasquale): card catalogo, sire della dam tra parentesi sotto il nome della Dam
   (i nomi di Sire e Dam non hanno piu' parentesi). */
.card-parent .cp-damsire { font-size: 0.68rem; color: var(--muted); opacity: 0.85; overflow-wrap: anywhere; }

/* 26/10/2026 (Pasquale): fattrici, LTE e PE su una sola riga ("LTE $18,247 · PE $139") */
.mare-stats:has(.mare-show-line) { grid-template-columns: minmax(0, 1fr); }
.mare-show-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; }
.mare-show-item { white-space: nowrap; }
.mare-show-line .mare-col-label { display: inline; margin: 0 0.3rem 0 0; }
.mare-show-sep { color: var(--muted); }

/* 26/10/2026 (Pasquale): fattrici, pulsante Condividi (stile "Salva") in fondo alla scheda + righe "Figli in gara" */
.mare-share-row { margin-top: 0.65rem; }  /* senza separatore (Pasquale, 26/10/2026) */
.mare-share-row .btn-condividi { margin: 0; }
.btn-condividi::before { content: none; }
.mare-progeny-group + .mare-gare { margin-top: 0.75rem; }
@media (max-width: 768px) { .mare-share-row .btn-condividi { width: 100%; } }

/* 26/10/2026 (Pasquale): fattrici, show record richiudibile (<details>), chiuso all'inizio, freccia verso il basso che ruota da aperto */
.mare-show-summary { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; list-style: none; margin-bottom: 0; }
.mare-show-summary::-webkit-details-marker { display: none; }
.mare-show-summary::marker { content: ""; }
.mare-show-summary::after {
  content: ""; width: 0.42rem; height: 0.42rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.mare-show-detail[open] > .mare-show-summary::after { transform: rotate(225deg); margin-top: 0.2rem; }
.mare-show-detail[open] > .mare-show-summary { margin-bottom: 0.2rem; }
.mare-show-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .mare-show-summary::after { transition: none; } }

/* 26/10/2026: LTE · PE sempre su una riga anche nella colonna stretta accanto alla foto (390 px) */
.mare-show-line { flex-wrap: nowrap; gap: 0 0.4rem; }
@media (max-width: 520px) {
  .mare-show-line strong { font-size: 0.86rem; }
  .mare-show-line .mare-col-label { font-size: 0.62rem; margin-right: 0.2rem; }
  .mare-show-line { gap: 0 0.3rem; }
}

/* 26/10/2026 (Pasquale): separatore tra "Figli in vendita" e "Figli in gara", identico a quello sopra "Figli in vendita" (.mare-progeny) */
.mare-progeny-group + .mare-gare { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--border); }

/* 26/10/2026 (Pasquale): LTE e PE su due righe (LTE sopra, PE sotto), etichetta e cifra sempre sulla stessa riga */
.mare-stats .mare-show.mare-show-line { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0.15rem; }
.mare-stats .mare-show-line .mare-show-item { white-space: nowrap; }
.mare-stats .mare-show-line strong { font-size: 1rem; }
.mare-stats .mare-show-line .mare-col-label { font-size: 0.68rem; margin: 0 0.35rem 0 0; }

/* 26/10/2026 (Pasquale): LTE/PE di Sire e Dam accanto al nome */
.mare-par-stats { font-weight: 500; color: var(--muted); font-size: 0.92em; white-space: nowrap; }

/* 26/10/2026 (Pasquale): cifre stalloni lunghe nel riquadro Sire/Dam: possono andare a capo dentro il riquadro */
.mt-box .mare-par-stats { white-space: normal; overflow-wrap: anywhere; }
