/* Thrinakie 2026 — pagine interne, animazioni di ingresso, pagine condivise e riduzione del movimento. */

/* ------------------------------------------------------------ specificita' (il portale impone colori con !important) */
/* Le pagine su misura escono dal contenitore standard e dalla briciola di pane. */
html:not(#_):not(#_) body[data-t-page] main.page {
  padding: 0 !important;
  margin: 0 !important;
  background: var(--t-bone) !important;
}

html:not(#_):not(#_) body[data-t-page] main.page > .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-t-page] .agency-minisite-breadcrumb {
  display: none;
}

/* Testi chiari sulle sezioni scure e colori dei titoli/enfasi. */
html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-display, .t-h2--light, .t-cta h2, .t-market h3, .t-slide-body strong, .t-footer-name, .t-office h2, .t-ccard--wine strong, .t-menu-nav a) {
  color: #fff !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-display em, .t-footer-name em, .t-feature-label em) {
  color: var(--t-rose) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-h2, .t-div h3, .t-tl-item h3, .t-steps h3, .t-panel-title, .t-stat strong, .t-listing-price) {
  color: var(--t-wine) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-lead, .t-market p, .t-cta-note, .t-menu-foot, .t-menu-foot p, .t-office address, .t-footer p) {
  color: rgba(255, 255, 255, 0.82) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-copy, .t-div p, .t-stat span, .t-tl-item p, .t-steps p, .t-listing-city) {
  color: var(--t-muted) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-kicker, .t-slide-price, .t-footer h3, .t-menu-nav a span) {
  color: var(--t-rose) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-kicker.t-kicker--dark, .t-div .t-div-tag, .t-ccard .t-ccard-label) {
  color: var(--t-wine) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-ccard--wine .t-ccard-label {
  color: var(--t-rose) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-listing-body h3, .t-ccard strong) {
  color: var(--t-ink) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-ccard--wine strong,
html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-ccard--wine {
  color: #fff !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-btn--light) {
  color: var(--t-wine) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-btn--ghost, .t-btn--wine, .t-nav a, .t-call, .t-brand, .t-brand-text b) {
  color: #fff !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-brand-text i {
  color: var(--t-rose) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-btn span, .t-call span, .t-pill span, .t-cta-note strong) {
  color: inherit !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-slide-city, .t-footer-bottom, .t-footer-bottom span, .t-office-vat) {
  color: rgba(255, 255, 255, 0.6) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-feature-label {
  color: rgba(255, 255, 255, 0.38) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-seg span {
  color: var(--t-taupe-d) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-seg input:checked + span {
  color: #fff !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-field > span {
  color: var(--t-taupe-d) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-listing-badge,
html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-tl-n {
  color: #fff !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-steps li span {
  color: transparent !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] :is(.t-chips li, .t-checks li) {
  color: var(--t-wine) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-checks li {
  color: var(--t-ink) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-chips .t-chip--link a {
  color: #fff !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] footer.t-footer {
  background: #1a0205 !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] footer.t-footer :is(a, p, span, li) {
  color: inherit !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] footer.t-footer .t-footer-bottom,
html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] footer.t-footer .t-footer-bottom span {
  color: rgba(246, 243, 234, 0.55) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] footer.t-footer .t-pill {
  color: var(--t-rose) !important;
}

html:not(#_):not(#_) body[data-ms-layout="thrinakie2026"] .t-link {
  color: var(--t-wine) !important;
}

/* ------------------------------------------------------------ hero delle pagine interne */
.t-hero--page {
  min-height: clamp(380px, 60svh, 600px);
  padding: calc(var(--t-header-h) + 40px) 0 clamp(70px, 9vw, 120px);
}

.t-hero--page .t-hero-inner {
  position: relative;
  z-index: 1;
}

.t-ghost {
  position: absolute;
  right: 3vw;
  bottom: -0.18em;
  z-index: 0;
  font: 400 clamp(5rem, 24vw, 19rem) / 1 var(--t-serif);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 201, 196, 0.22);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.t-curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(36px, 6vw, 90px);
  fill: var(--t-bone);
}

/* ------------------------------------------------------------ chi siamo */
.t-story {
  background: var(--t-bone);
}

.t-story-grid {
  display: grid;
  gap: 32px;
}

.t-story-text .t-copy:first-child {
  font: 400 clamp(1.15rem, 1rem + 0.7vw, 1.45rem) / 1.65 var(--t-serif);
  color: var(--t-ink);
}

@media (min-width: 960px) {
  .t-story-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
  }

  .t-story-lead {
    position: sticky;
    top: calc(var(--t-header-h) + 24px);
  }
}

.t-method {
  background: #fff;
}

.t-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.t-steps li {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 22px;
  background: var(--t-bone);
  border: 1px solid var(--t-line);
  overflow: hidden;
}

.t-steps li span {
  display: block;
  font: 400 3.4rem/1 var(--t-serif);
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 12, 12, 0.5);
}

.t-steps h3 {
  margin: 12px 0 8px;
  font: 400 1.35rem/1.2 var(--t-serif);
  color: var(--t-wine);
}

.t-steps p {
  margin: 0;
  font: 400 0.96rem/1.65 var(--t-sans);
  color: var(--t-muted);
}

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

@media (min-width: 1100px) {
  .t-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ vendi con noi */
.t-timeline-sec {
  background: var(--t-bone);
}

.t-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0 0 44px;
  padding: 0 0 0 4px;
  list-style: none;
}

.t-tl-line {
  position: absolute;
  left: 31px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--t-wine), var(--t-taupe));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  z-index: 0;
}

.t-tl-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 20px 18px 0;
}

.t-tl-n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--t-wine);
  color: #fff;
  font: 400 1.5rem/1 var(--t-serif);
  box-shadow: 0 0 0 6px var(--t-bone), 0 12px 26px rgba(110, 12, 12, 0.3);
}

.t-tl-item h3 {
  margin: 6px 0 6px;
  font: 400 clamp(1.3rem, 1.1rem + 1vw, 1.8rem) / 1.2 var(--t-serif);
  color: var(--t-wine);
}

.t-tl-item p {
  margin: 0;
  max-width: 58ch;
  font: 400 1rem/1.7 var(--t-sans);
  color: var(--t-muted);
}

@media (min-width: 900px) {
  .t-timeline {
    max-width: 820px;
    margin-inline: auto;
  }
}

/* ------------------------------------------------------------ contatti */
.t-contact-sec {
  background: var(--t-bone);
}

.t-contact-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.t-contact-cards {
  display: grid;
  gap: 14px;
  align-content: start;
}

.t-ccard {
  display: grid;
  gap: 6px;
  padding: 26px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--t-line);
  color: var(--t-ink);
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(110, 12, 12, 0.07);
  transition: box-shadow 0.4s, border-color 0.4s;
}

.t-ccard--wine {
  background: linear-gradient(135deg, #8d1220, #5a0a12);
  border-color: transparent;
  color: #fff;
}

.t-ccard--static {
  background: var(--t-sand);
  box-shadow: none;
}

.t-ccard-ico {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--t-wine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-ccard--wine .t-ccard-ico {
  stroke: var(--t-rose);
}

.t-ccard-label {
  font: 600 0.7rem var(--t-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-taupe-d);
}

.t-ccard--wine .t-ccard-label {
  color: var(--t-rose);
}

.t-ccard strong {
  font: 400 clamp(1.3rem, 1.1rem + 1vw, 1.7rem) / 1.2 var(--t-serif);
  overflow-wrap: anywhere;
}

a.t-ccard:hover {
  box-shadow: 0 28px 60px rgba(110, 12, 12, 0.18);
  border-color: rgba(110, 12, 12, 0.35);
}

.t-office {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(176, 24, 44, 0.55), transparent 60%),
    linear-gradient(180deg, #3f080c, #1f0306);
  box-shadow: 0 30px 70px rgba(43, 4, 8, 0.35);
}

.t-office address {
  display: flex;
  gap: 14px;
  margin: 8px 0 0;
  font: 400 1.15rem/1.6 var(--t-sans);
  font-style: normal;
}

.t-office address .t-ico {
  margin-top: 4px;
  color: var(--t-rose);
}

.t-office-vat {
  margin: 28px 0 0;
  font: 400 0.85rem var(--t-sans);
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
  .t-contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .t-contact-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
  }
}

/* ------------------------------------------------------------ animazioni di ingresso (solo con JS) */
.t-js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--t-ease), transform 1s var(--t-ease);
  transition-delay: var(--d, 0ms);
}

.t-js [data-reveal="zoom"] {
  transform: scale(0.94) translateY(20px);
}

.t-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.t-js [data-tilt].is-in {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity 0.9s var(--t-ease), transform 0.35s ease-out, box-shadow 0.5s, background-color 0.5s, color 0.5s, border-color 0.5s;
}

[data-split] .t-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.t-js [data-split] .t-w > span {
  display: inline-block;
  transform: translateY(112%);
  opacity: 0;
  transition: transform 1s var(--t-ease), opacity 0.6s;
  transition-delay: calc(var(--w, 0) * 65ms + var(--d, 0ms));
}

.t-js [data-split].is-in .t-w > span {
  transform: none;
  opacity: 1;
}

[data-magnetic] {
  will-change: transform;
}

/* ------------------------------------------------------------ elenco e scheda immobile con intestazione Thrinakie */
body[data-ms-layout="thrinakie2026"]:not([data-t-page]) .t-header {
  background: var(--t-deep);
}

body[data-ms-layout="thrinakie2026"]:not([data-t-page]) main {
  background: var(--t-bone);
}

body[data-ms-layout="thrinakie2026"] .btn-primary,
body[data-ms-layout="thrinakie2026"] .btn.btn-primary {
  background: var(--t-wine);
  border-color: var(--t-wine);
}

/* ------------------------------------------------------------ movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  body[data-ms-layout="thrinakie2026"] *,
  body[data-ms-layout="thrinakie2026"] *::before,
  body[data-ms-layout="thrinakie2026"] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .t-js [data-reveal],
  .t-js [data-split] .t-w > span {
    opacity: 1 !important;
    transform: none !important;
  }

  .t-leg path {
    stroke-dashoffset: 0;
  }

  .t-marquee-row {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

@media print {
  .t-header,
  .t-menu,
  .t-marquee,
  .t-hero-bg,
  .t-emblem {
    display: none !important;
  }

  .t-hero {
    background: none;
    color: #000;
  }
}
