/* FriuliVillas — stessa veste grafica del gruppo (triestevillas.com / triesteimmobiliare.com).
   Poppins, pillola di vetro fissa in alto, hero video a tutto schermo, footer a tre colonne.
   Ogni brand del gruppo tiene lo stesso scheletro e cambia solo l'accento cromatico:
   TSV blu-petrolio + sabbia, TSI azzurro, FriuliVillas verde bosco + sabbia/ottone. */

:root {
  --ink:          #0b1512;
  --ink-2:        #14231d;
  --brand:        #2a5f43;
  --brand-dark:   #16352a;
  --brand-light:  #6d9a80;
  --sand:         #cfb795;
  --sand-hi:      #e8d5af;
  --brass:        #be9a63;
  --paper:        #f4f1ea;
  --ease-lux:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================ header a pillola */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 16px 0 24px;
  border-radius: 9999px;
  background: rgba(8, 22, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.pill__brand { display: flex; align-items: center; flex: none; }
.pill__brand img { height: 24px; width: auto; transition: transform 300ms var(--ease-lux); }
.pill__brand:hover img { transform: scale(1.04); }

/* Una voce sola, e punta a una sezione che esiste davvero (#gruppo). Le altre voci
   di TSV torneranno quando torneranno le pagine. */
.pill__nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.pill__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: color 250ms var(--ease-lux);
}
.pill__nav a:hover { color: #fff; }

/* sottolineatura che cresce da sinistra, come su triestevillas.com */
.nav-underline { position: relative; }
.nav-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  border-radius: 9999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease-lux);
}
.nav-underline:hover::after { transform: scaleX(1); }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(207, 183, 149, 0.28);
  background: rgba(207, 183, 149, 0.08);
  color: var(--sand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.soon::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 9999px;
  background: var(--sand);
}

.pill__end { display: flex; align-items: center; gap: 4px; flex: none; }

.locale { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; }
.locale a, .locale span {
  padding: 6px 8px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 250ms var(--ease-lux), background-color 250ms var(--ease-lux);
}
.locale a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.locale [aria-current="true"] { color: #fff; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background-color 250ms var(--ease-lux);
}
.burger:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* pannello mobile */
.sheet {
  display: none;
  max-width: 896px;
  margin: 10px auto 0;
  padding: 18px 24px 22px;
  border-radius: 24px;
  background: rgba(8, 22, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.sheet[data-open] { display: block; }
.sheet ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.sheet li { font-size: 15px; font-weight: 500; }
.sheet li a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.sheet li a:hover { color: #fff; }
.sheet__contacts { display: grid; gap: 8px; font-size: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.sheet__contacts a { color: var(--sand-hi); text-decoration: none; }

@media (min-width: 900px) {
  .pill__nav { display: flex; }
  .burger { display: none; }
  .sheet { display: none !important; }
}

/* ============================================================ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 108px 24px 76px;
  overflow: hidden;
  text-align: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Il video è una ripresa aerea molto luminosa (prato, piscina): senza velo il
   testo bianco sopra non regge. Doppio strato: verticale per il testo, radiale
   per staccare il centro. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(82% 62% at 50% 46%, rgba(6, 16, 12, 0.72) 0%, rgba(6, 16, 12, 0) 100%),
    linear-gradient(180deg, rgba(6, 16, 12, 0.74) 0%, rgba(6, 16, 12, 0.4) 32%, rgba(6, 16, 12, 0.6) 72%, var(--ink) 100%);
}

.hero__inner { position: relative; z-index: 2; max-width: 62rem; }

.hero__badge { margin: 0 0 26px; display: flex; justify-content: center; }

.hero__mark {
  width: min(360px, 72vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.45));
}

/* Il titolo segue la scala di triestevillas.com (Poppins 700, tracking -0.03em) ma con
   un tetto piu' basso: il titolo tedesco ("Ausgewählte Villen und Immobilien in
   Friaul-Julisch Venetien") a 104px andava su 4 righe e spingeva i bottoni sotto la
   piega gia' a 1440x900. */
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.1rem, 0.5rem + 5.2vw, 5.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.hero__lede {
  margin: 22px auto 0;
  max-width: 44rem;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: transform 250ms var(--ease-lux), background-color 250ms var(--ease-lux),
              border-color 250ms var(--ease-lux), color 250ms var(--ease-lux);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: #fff; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__cue { animation: bob 2.6s var(--ease-lux) infinite; }
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ============================================================ sezione Gruppo

   Blocco chiaro fra hero e footer: dà al sito il ritmo scuro→chiaro→scuro di
   triestevillas.com, e sul chiaro il testo lungo si legge davvero. */

.group {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(64px, 8vw, 116px) 24px;
  scroll-margin-top: 88px;   /* l'header è fixed: senza questo l'ancora finisce sotto */
}

.group__wrap { max-width: 60rem; margin: 0 auto; }

.group__eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.group__lede {
  margin: 0;
  font-size: clamp(1.2rem, 0.95rem + 1.05vw, 1.75rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* I quattro brand: nome a sinistra, cosa fanno a destra. Su mobile si impilano. */
.brands { margin: clamp(38px, 5vw, 58px) 0; }

.brand {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 18px 0;
  border-top: 1px solid rgba(11, 21, 18, 0.12);
}
.brand:last-child { border-bottom: 1px solid rgba(11, 21, 18, 0.12); }

.brand__name { margin: 0; font-weight: 600; font-size: 16px; }
.brand__what { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(11, 21, 18, 0.66); }

@media (min-width: 720px) {
  .brand { grid-template-columns: 15rem 1fr; gap: 24px; align-items: baseline; }
}

.group__close p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.62;
  color: rgba(11, 21, 18, 0.78);
  text-wrap: pretty;
}
.group__close strong { font-weight: 600; color: var(--ink); }

/* la sequenza dell'ownership: è il cuore del messaggio, non una lista qualsiasi */
.seq { color: var(--brand); font-weight: 500; }

.group__kicker {
  margin: clamp(32px, 4vw, 48px) 0 0;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.group__sub {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--brass);
}

/* ============================================================ footer */

.footer { background: var(--brand-dark); color: #fff; }

.footer__band { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__band .wrap { padding: 40px 16px; }
.footer__band h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.footer__band p { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.footer__band .btn { margin-top: 20px; }

.wrap { max-width: 1152px; margin: 0 auto; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 16px;
  font-size: 14px;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }

.footer__mark { height: 28px; width: auto; }

.footer__legal { margin-top: 16px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }
.footer__legal p { margin: 0; }
.footer__legal .strong { color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.footer__legal a { color: inherit; text-decoration: none; transition: color 250ms var(--ease-lux); }
.footer__legal a:hover { color: rgba(255, 255, 255, 0.9); }

.footer h2.col-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__sitemap a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 250ms var(--ease-lux);
}
.footer__sitemap a:hover { color: #fff; }

.footer__contacts { display: grid; gap: 8px; color: rgba(255, 255, 255, 0.7); }
.footer__contacts a { text-decoration: none; transition: color 250ms var(--ease-lux); }
.footer__contacts a:hover { color: #fff; }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer__bar a { color: rgba(255, 255, 255, 0.4); text-decoration: none; transition: color 250ms var(--ease-lux); }
.footer__bar a:hover { color: rgba(255, 255, 255, 0.75); }

/* ============================================================ schermi piccoli */

@media (max-width: 640px) {
  .hero { padding: 96px 20px 64px; }
  .hero__mark { width: min(280px, 74vw); }
  .hero__lede { font-size: 16px; line-height: 26px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================ movimento ridotto */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* niente video in autoplay: resta il poster, che è il primo fotogramma */
  .hero__video { display: none; }
  .hero { background: url("/assets/images/hero-poster.jpg") center / cover no-repeat; }
}
