/* Thrinakie 2026 — sezioni della home e blocchi riutilizzabili. */

.t-section-head {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.t-section-head--light .t-kicker {
  color: var(--t-rose);
}

/* sezioni a riga */
.t-intro,
.t-divisions,
.t-markets,
.t-featured,
.t-services-teaser,
.t-services-full,
.t-trust,
.t-story,
.t-method,
.t-timeline-sec,
.t-contact-sec {
  padding-block: clamp(64px, 9vw, 128px);
}

/* ------------------------------------------------------------ marquee */
.t-marquee {
  overflow: hidden;
  padding: 18px 0;
  color: #fff;
  background: linear-gradient(180deg, #7a0a14, var(--t-wine));
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.t-marquee-row {
  display: flex;
  width: max-content;
  animation: t-marquee 42s linear infinite;
}

.t-marquee:hover .t-marquee-row {
  animation-play-state: paused;
}

.t-marquee-row span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: italic 400 clamp(1.3rem, 1rem + 1.6vw, 2.2rem) / 1.2 var(--t-serif);
  white-space: nowrap;
}

.t-marquee-row span::after {
  content: "✦";
  font-style: normal;
  font-size: 0.6em;
  color: var(--t-rose);
}

@keyframes t-marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ intro + numeri */
.t-intro {
  background: var(--t-bone);
}

.t-intro-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.t-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.t-stat {
  padding: 24px 20px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--t-line);
  box-shadow: 0 14px 40px rgba(110, 12, 12, 0.07);
}

.t-stat strong {
  display: block;
  font: 400 clamp(2.6rem, 2rem + 3vw, 4.4rem) / 1 var(--t-serif);
  color: var(--t-wine);
  font-variant-numeric: tabular-nums;
}

.t-stat strong em {
  font-style: normal;
  font-size: 0.5em;
  color: var(--t-taupe);
}

.t-stat span {
  display: block;
  margin-top: 10px;
  font: 400 0.9rem/1.45 var(--t-sans);
  color: var(--t-muted);
}

@media (min-width: 960px) {
  .t-intro-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .t-stat {
    padding: 30px 26px 26px;
  }
}

/* ------------------------------------------------------------ divisioni */
.t-divisions {
  background: var(--t-sand);
  position: relative;
}

.t-div-grid {
  display: grid;
  gap: 18px;
}

.t-div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 36px;
  border-radius: 24px;
  background: var(--t-bone);
  border: 1px solid var(--t-line);
  overflow: hidden;
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, border-color 0.5s;
}

.t-div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 90% at 100% 0%, #8d1220, #4a0a10);
  opacity: 0;
  transition: opacity 0.5s;
}

.t-div > * {
  position: relative;
  z-index: 1;
}

.t-div-tag {
  font: 600 0.7rem var(--t-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-taupe-d);
  transition: color 0.5s;
}

.t-div-ico {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--t-wine);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.5s, transform 0.6s var(--t-ease);
}

.t-div h3 {
  margin: 4px 0 0;
  font: 400 clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem) / 1.05 var(--t-serif);
  color: var(--t-wine);
  transition: color 0.5s;
}

.t-div p {
  margin: 0;
  font: 400 1rem/1.7 var(--t-sans);
  color: var(--t-muted);
  transition: color 0.5s;
}

.t-div-line {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  width: 100%;
  background: var(--t-wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--t-ease) 0.3s;
}

.t-div.is-in .t-div-line {
  transform: scaleX(1);
}

@media (hover: hover) {
  .t-div:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(74, 10, 16, 0.35);
  }

  .t-div:hover::before {
    opacity: 1;
  }

  .t-div:hover h3,
  .t-div:hover p,
  .t-div:hover .t-div-tag {
    color: #fff;
  }

  .t-div:hover .t-div-ico {
    stroke: var(--t-rose);
    transform: scale(1.1) rotate(-4deg);
  }
}

@media (min-width: 880px) {
  .t-div-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ mercati */
.t-markets {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(160, 20, 40, 0.45), transparent 60%),
    linear-gradient(180deg, #3a070b, #200306);
}

.t-market-grid {
  display: grid;
  gap: 14px;
}

.t-market {
  padding: 28px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--t-ease), background-color 0.4s, border-color 0.4s;
}

.t-market:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(233, 201, 196, 0.5);
}

.t-market-ico {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--t-rose);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-market h3 {
  margin: 16px 0 8px;
  font: 400 1.5rem/1.15 var(--t-serif);
}

.t-market p {
  margin: 0;
  font: 400 0.97rem/1.65 var(--t-sans);
  color: rgba(255, 255, 255, 0.74);
}

@media (min-width: 640px) {
  .t-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .t-market-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ in vetrina */
.t-featured {
  background: var(--t-bone);
  overflow: hidden;
}

.t-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.t-featured-head .t-section-head {
  margin-bottom: 28px;
}

.t-rail-nav {
  display: none;
  gap: 10px;
  margin-bottom: 36px;
}

.t-round {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--t-line);
  border-radius: 50%;
  background: #fff;
  color: var(--t-wine);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--t-ease);
}

.t-round:hover {
  background: var(--t-wine);
  color: #fff;
  transform: scale(1.06);
}

.t-rail {
  display: flex;
  gap: 18px;
  padding: 8px max(20px, calc((100vw - 1240px) / 2)) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.t-rail::-webkit-scrollbar {
  display: none;
}

.t-rail.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
}

.t-listing {
  flex: 0 0 min(80vw, 340px);
  display: block;
  scroll-snap-align: start;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--t-line);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(110, 12, 12, 0.08);
  transition: box-shadow 0.5s, border-color 0.4s;
}

.t-listing:hover {
  box-shadow: 0 30px 60px rgba(110, 12, 12, 0.18);
  border-color: rgba(110, 12, 12, 0.3);
}

.t-listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--t-sand);
  overflow: hidden;
}

.t-listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--t-ease);
  -webkit-user-drag: none;
}

.t-listing:hover .t-listing-media img {
  transform: scale(1.07);
}

.t-listing-noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--t-taupe);
}

.t-listing-noimg .t-ico {
  width: 44px;
  height: 44px;
}

.t-listing-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(43, 4, 8, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 600 0.68rem var(--t-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.t-listing-body {
  display: grid;
  gap: 6px;
  padding: 18px 20px 22px;
}

.t-listing-price {
  font: 400 1.55rem/1.1 var(--t-serif);
  color: var(--t-wine);
}

.t-listing-body h3 {
  margin: 0;
  font: 600 1rem/1.35 var(--t-sans);
  color: var(--t-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-listing-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 0.88rem var(--t-sans);
  color: var(--t-muted);
}

.t-listing-city .t-ico {
  width: 16px;
  height: 16px;
}

@media (min-width: 900px) {
  .t-rail-nav {
    display: flex;
  }
}
