/* Thrinakie 2026 — menu a schermo intero, hero, annuncio in evidenza e barra di ricerca. */

/* ------------------------------------------------------------ menu a schermo intero */
.t-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--t-header-h) + 24px) 24px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(160, 20, 40, 0.5), transparent 60%),
    linear-gradient(180deg, #3f080c, #1d0205);
  clip-path: circle(0 at calc(100% - 44px) 44px);
  visibility: hidden;
  transition: clip-path 0.7s var(--t-ease), visibility 0s 0.7s;
}

.t-menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 44px);
  visibility: visible;
  transition: clip-path 0.8s var(--t-ease), visibility 0s;
}

.t-menu[hidden] {
  display: none;
}

.t-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  width: min(640px, 100%);
  margin-inline: auto;
}

.t-menu-nav {
  display: grid;
}

.t-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font: 400 clamp(1.9rem, 1.2rem + 4vw, 3rem) / 1.1 var(--t-serif);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.7s var(--t-ease);
}

.t-menu-nav a span {
  font: 600 0.72rem var(--t-sans);
  letter-spacing: 0.2em;
  color: var(--t-rose);
}

.t-menu.is-open .t-menu-nav a {
  opacity: 1;
  transform: none;
}

.t-menu.is-open .t-menu-nav a:nth-child(1) { transition-delay: 0.18s; }
.t-menu.is-open .t-menu-nav a:nth-child(2) { transition-delay: 0.23s; }
.t-menu.is-open .t-menu-nav a:nth-child(3) { transition-delay: 0.28s; }
.t-menu.is-open .t-menu-nav a:nth-child(4) { transition-delay: 0.33s; }
.t-menu.is-open .t-menu-nav a:nth-child(5) { transition-delay: 0.38s; }
.t-menu.is-open .t-menu-nav a:nth-child(6) { transition-delay: 0.43s; }

.t-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font: 400 0.95rem/1.6 var(--t-sans);
}

.t-menu-foot p {
  margin: 0;
}

body[data-ms-layout="thrinakie2026"].t-menu-open {
  overflow: hidden;
}

/* ------------------------------------------------------------ hero */
.t-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: clip;
  color: #fff;
  background: var(--t-deep);
}

.t-hero--home {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--t-header-h) + 28px) 0 0;
}

.t-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 90% at 88% 6%, #8d1220 0%, transparent 62%),
    radial-gradient(80% 90% at 0% 100%, #4a090e 0%, transparent 65%),
    linear-gradient(180deg, #34060a 0%, #1f0306 100%);
}

.t-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.t-glow--a {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  left: -10%;
  top: 8%;
  background: #7a1018;
  animation: t-float-a 18s ease-in-out infinite alternate;
}

.t-glow--b {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  right: -8%;
  bottom: -4%;
  background: #a6162a;
  opacity: 0.35;
  animation: t-float-b 22s ease-in-out infinite alternate;
}

.t-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

@keyframes t-float-a {
  to { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}

@keyframes t-float-b {
  to { transform: translate3d(-7vw, -8vh, 0) scale(1.2); }
}

.t-emblem {
  position: absolute;
  z-index: -1;
  right: -22vw;
  top: 50%;
  width: min(120vw, 780px);
  transform: translateY(-50%);
  color: rgba(233, 201, 196, 0.5);
  --t-leg: rgba(233, 201, 196, 0.5);
  --t-face: #34060a;
  opacity: 0.2;
  pointer-events: none;
}

.t-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.t-mark-text {
  font-family: var(--t-serif);
}

.t-spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: t-spin 120s linear infinite;
}

.t-leg path {
  stroke: var(--t-leg);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: t-draw 1.8s var(--t-ease) forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 0.3s);
}

@keyframes t-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes t-spin {
  to { transform: rotate(360deg); }
}

.t-hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-block: clamp(24px, 6vw, 56px) 28px;
}

.t-hero-copy {
  max-width: 760px;
}

.t-display em {
  font-style: italic;
  color: var(--t-rose);
}

.t-hero-search {
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.t-scroll-hint {
  display: none;
}

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

  .t-emblem {
    right: -10vw;
    opacity: 0.28;
  }

  .t-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 10px;
    display: block;
    width: 22px;
    height: 36px;
    margin-left: -11px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
  }

  .t-scroll-hint i {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: t-wheel 1.8s ease-in-out infinite;
  }
}

@keyframes t-wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* annuncio in evidenza (come il «Featured property» del sito storico) */
.t-feature {
  display: grid;
  gap: 14px;
}

.t-feature-label {
  margin: 0;
  font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem) / 1 var(--t-serif);
  color: rgba(255, 255, 255, 0.38);
}

.t-feature-label em {
  color: var(--t-bone);
}

.t-feature-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #1a0205;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.t-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--t-ease), visibility 0s 1s;
}

.t-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--t-ease), visibility 0s;
}

.t-slide-media,
.t-slide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-slide.is-active .t-slide-media img {
  animation: t-kenburns 9s ease-out forwards;
}

@keyframes t-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

.t-slide-body {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 56px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(20, 2, 5, 0.88));
}

.t-slide-price {
  font: 400 1.5rem/1.1 var(--t-serif);
  color: var(--t-rose);
}

.t-slide-body strong {
  font: 400 1.15rem/1.25 var(--t-serif);
}

.t-slide-city {
  font: 600 0.74rem var(--t-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.t-dots {
  display: flex;
  gap: 4px;
}

.t-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.t-dot::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color 0.3s;
}

.t-dot.is-active::before {
  background: var(--t-rose);
}

@media (min-width: 960px) {
  .t-feature {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 18px;
  }

  .t-feature-label {
    grid-row: 1 / span 2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 2.4rem;
    align-self: stretch;
    text-align: right;
  }

  .t-dots {
    grid-column: 2;
  }
}

/* Portatili e finestre basse: la hero con la barra di ricerca deve entrare in una schermata. */
@media (min-width: 960px) and (max-height: 840px) {
  .t-hero--home {
    padding-top: calc(var(--t-header-h) + 4px);
  }

  .t-hero-grid {
    padding-block: 8px 14px;
    gap: 40px;
  }

  .t-hero--home .t-display {
    font-size: clamp(2.3rem, min(4.9vw, 9vh), 4.8rem);
  }

  .t-hero--home .t-lead {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .t-hero--home .t-actions {
    margin-top: 20px;
  }

  .t-feature-stage {
    aspect-ratio: auto;
    height: min(44vh, 360px);
  }

  .t-hero-search {
    padding-bottom: 18px;
  }
}

/* ------------------------------------------------------------ barra di ricerca */
.t-search {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(246, 243, 234, 0.97);
  color: var(--t-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.t-seg {
  display: flex;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--t-sand);
}

.t-seg label {
  flex: 1 1 0;
  cursor: pointer;
}

.t-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.t-seg span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 0.9rem var(--t-sans);
  color: var(--t-taupe-d);
  transition: background-color 0.3s, color 0.3s;
}

.t-seg input:checked + span {
  background: var(--t-wine);
  color: #fff;
}

.t-seg input:focus-visible + span {
  outline: 2px solid var(--t-wine);
  outline-offset: 2px;
}

.t-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.t-field > span {
  font: 600 0.68rem var(--t-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-taupe-d);
}

.t-field input,
.t-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(110, 12, 12, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--t-ink);
  font: 400 1rem var(--t-sans);
  appearance: none;
  -webkit-appearance: none;
}

.t-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--t-wine) 50%), linear-gradient(135deg, var(--t-wine) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.t-search .t-btn {
  width: 100%;
}

@media (min-width: 900px) {
  .t-search {
    grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr) auto;
    align-items: end;
    padding: 14px 16px;
  }

  .t-search .t-btn {
    width: auto;
  }

  .t-seg {
    align-self: end;
  }
}
