/* ================================================
   THE FARM — mobile-first
   ================================================ */


/* 1. HERO
   ------------------------------------------------ */
.tf-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: #1a1005;
  color: var(--cream);
}

.tf-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.tf-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 30%, rgba(0,0,0,0.10) 58%, transparent 80%),
    linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, transparent 28%);
}

.tf-hero-content {
  position: absolute;
  bottom: 252px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 32px;
}

.tf-label {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(0,0,0,0.95);
  margin-bottom: 16px;
}

.tf-hero-content h1 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3.8rem, 18vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--cream);
  text-shadow: 0 2px 36px rgba(0,0,0,0.85);
}

.tf-hero-sub {
  margin: 16px 0 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.9rem, 3.5vw, 1.18rem);
  color: var(--cream);
  line-height: 1.45;
  text-shadow: 0 1px 18px rgba(0,0,0,0.75);
}

/* ── HERO BOTTOM (animale + scroll) ─────────────── */

.tf-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tf-hero-rule {
  width: min(480px, 100%);
  height: 1px;
  background: rgba(243, 239, 232, 0.20);
  margin-bottom: 18px;
}

.tf-hero-guide {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 15px;
  width: min(480px, 100%);
  color: var(--cream);
}

.tf-hero-guide img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.3));
}

.tf-hero-guide p {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 3.8vw, 1.42rem);
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

.tf-hero-guide span {
  font-style: italic;
  color: var(--cream);
}

.tf-hero-guide strong {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.80rem;
  letter-spacing: 0.16em;
  color: rgba(243,239,232,0.95);
  font-weight: 400;
  border-bottom: 1px solid rgba(243,239,232,0.55);
  padding-bottom: 2px;
}

.tf-hero-guide > em {
  font-style: normal;
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
}

.tf-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(243,239,232,0.45);
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.tf-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(243,239,232,0.35);
  animation: tfScrollPulse 1.8s ease-in-out infinite;
}

@keyframes tfScrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.35; }
  50%       { transform: scaleY(0.5); opacity: 0.75; }
}

/* 3. MANIFESTO
   ------------------------------------------------ */
.tf-manifesto {
  position: relative;
  z-index: 2;
  padding: 72px 0 64px;
  background: transparent;
  color: var(--cream);
}

.tf-manifesto-inner {
  max-width: 620px;
  text-align: center;
  margin-inline: auto;
}

.tf-manifesto-inner h2 {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.tf-manifesto-inner p {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1rem, 3.8vw, 1.32rem);
  line-height: 1.58;
  color: rgba(243, 239, 232, 0.82);
}

/* 3b. FATTORIA — storia e sostenibilità
   ------------------------------------------------ */
.tf-estate {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
  background: transparent;
  color: var(--cream);
  border-top: 1px solid rgba(243, 239, 232, 0.14);
}

.tf-estate-inner {
  max-width: min(100% - 48px, 960px);
  margin-inline: auto;
  background: rgba(15, 10, 5, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(243, 239, 232, 0.13);
  border-radius: var(--radius-lg);
  padding: 40px 28px 36px;
}

.tf-estate-title {
  margin: 0 0 24px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--cream);
  text-align: center;
}

.tf-estate-lead {
  margin: 0 auto 40px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  line-height: 1.52;
  color: rgba(243, 239, 232, 0.88);
  max-width: 680px;
  text-align: center;
}

.tf-estate-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.tf-estate-text p {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 3vw, 1rem);
  line-height: 1.76;
  color: rgba(243, 239, 232, 0.90);
}

.tf-estate-text p:last-child { margin-bottom: 0; }

.tf-estate-energy {
  padding: 24px 20px 20px;
  border: 1px solid rgba(243, 239, 232, 0.18);
  border-radius: var(--radius-md);
  background: rgba(243, 239, 232, 0.06);
}

.tf-estate-energy-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.65);
  margin-bottom: 16px;
}

.tf-estate-energy p {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 2.8vw, 0.96rem);
  line-height: 1.68;
  color: rgba(243, 239, 232, 0.88);
}

.tf-estate-energy p:last-child { margin-bottom: 0; }

/* 4. CAROUSEL
   ------------------------------------------------ */
.tf-themes {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  background: transparent;
  border-top: 1px solid rgba(243, 239, 232, 0.14);
}

.tf-themes-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.85);
  margin-bottom: 28px;
  padding-top: 72px;
  text-align: center;
}

.tf-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  padding-left: 24px;
  padding-right: 24px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tf-track::-webkit-scrollbar { display: none; }

.tf-card {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 88vw;
  min-width: 260px;
  height: 520px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  will-change: transform, opacity;
  color: var(--cream);
}

.tf-card-bg {
  position: absolute;
  inset: 0;
}

.tf-card-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-card-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 8, 4, 0.97) 0%,
    rgba(12, 8, 4, 0.52) 38%,
    rgba(12, 8, 4, 0.14) 68%,
    rgba(12, 8, 4, 0.03) 100%
  );
}

.tf-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 22px 24px;
}

.tf-card-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.36);
  margin-bottom: 8px;
}

.tf-card-body h3 {
  margin: 0 0 11px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.tf-card-body ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.tf-card-body li {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(0.84rem, 3vw, 0.95rem);
  color: rgba(243, 239, 232, 0.68);
  line-height: 1.38;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.tf-card-body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(243, 239, 232, 0.32);
}

.tf-card-desc {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(0.80rem, 2.8vw, 0.90rem);
  line-height: 1.40;
  color: rgba(243, 239, 232, 0.52);
}

.tf-card-cta {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.60);
  display: inline-block;
}

/* DOTS — stesso pattern di nt-dots
   ------------------------------------------------ */
.tf-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  height: 6px;
}

.tf-dot {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--cream);
  opacity: 0.22;
  width: 5px;
  transition: width 0.35s ease, opacity 0.35s ease;
}

.tf-dot.is-active {
  width: 20px;
  opacity: 0.50;
}

/* 5. CITAZIONE
   ------------------------------------------------ */
.tf-quote {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  background: transparent;
  color: var(--cream);
}

.tf-quote .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tf-quote blockquote {
  margin: 0;
  padding: 0;
  max-width: 600px;
}

.tf-quote blockquote p {
  margin: 0 0 20px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  line-height: 1.3;
  color: var(--cream);
}

.tf-quote cite {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.78);
  font-style: normal;
}

/* 6. CTA
   ------------------------------------------------ */
.tf-cta {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  background: transparent;
  color: var(--cream);
}

.tf-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tf-cta p {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 2rem);
  color: rgba(243, 239, 232, 0.80);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.3;
}

.tf-cta-btn {
  display: inline-block;
  padding: 16px 44px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 239, 232, 0.70);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: border-color 0.24s, background 0.24s;
}

.tf-cta-btn:hover {
  border-color: rgba(243, 239, 232, 1);
  background: rgba(243, 239, 232, 0.06);
}

/* ================================================
   FARM GALLERY OVERLAY (fg-)
   ================================================ */
.fg-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #0e0b08;
  opacity: 0;
  pointer-events: none;
}

.fg-overlay[aria-hidden="false"] { pointer-events: all; }

.fg-bg { position: absolute; inset: 0; }

.fg-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 239, 232, 0.08);
  border: 1px solid rgba(243, 239, 232, 0.16);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s;
}

.fg-close:hover { background: rgba(243, 239, 232, 0.15); }
.fg-close svg { width: 16px; height: 16px; }

.fg-header {
  position: relative;
  z-index: 2;
  padding: 64px 28px 20px;
  flex-shrink: 0;
}

.fg-eyebrow {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.60rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.38);
}

.fg-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.8rem, 7vw, 3rem);
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1.0;
}

.fg-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  margin: 16px 0 0;
}

.fg-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.fg-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fg-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px 32px;
  flex-shrink: 0;
}

.fg-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(243, 239, 232, 0.06);
  border: 1px solid rgba(243, 239, 232, 0.12);
  border-radius: 50%;
  color: rgba(243, 239, 232, 0.55);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.fg-nav-btn:hover { background: rgba(243, 239, 232, 0.12); color: var(--cream); }
.fg-nav-btn svg { width: 15px; height: 15px; }

.fg-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.fg-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--cream);
  opacity: 0.20;
  transition: width 0.32s ease, opacity 0.32s ease;
  flex-shrink: 0;
}

.fg-dot.is-active { width: 20px; opacity: 0.52; }

/* ================================================
   MOBILE — visibilità testi
   ================================================ */

@media (max-width: 767px) {
  .tf-hero-content h1 { font-size: clamp(3rem, 14vw, 6rem); font-weight: 500; }
  .tf-hero-sub        { font-size: clamp(1.1rem, 4.2vw, 1.5rem); font-weight: 400; }
  .tf-hero-guide p    { font-weight: 400; }
  .tf-label           { font-size: 1.05rem; letter-spacing: 0.28em; }

  .tf-manifesto-inner p { font-size: clamp(1.1rem, 4.2vw, 1.4rem); font-weight: 400; }

  .tf-estate-title    { font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 400; }
  .tf-estate-lead     { font-size: clamp(1.1rem, 4.2vw, 1.4rem); font-weight: 400; }
  .tf-estate-text p   { font-size: clamp(1rem, 3.5vw, 1.1rem); font-weight: 400; line-height: 1.65; }
  .tf-estate-energy p { font-size: clamp(0.95rem, 3.2vw, 1.05rem); font-weight: 400; }
  .tf-estate-energy-label { font-size: 0.76rem; letter-spacing: 0.30em; }
  .tf-themes-label    { font-size: 0.80rem; letter-spacing: 0.28em; }

  .tf-card-body h3    { font-size: clamp(1.7rem, 6.5vw, 2.4rem); font-weight: 400; }
  .tf-card-body li    { font-size: clamp(1.05rem, 4vw, 1.3rem); font-weight: 400; }
  .tf-card-desc       { font-size: clamp(0.95rem, 3.5vw, 1.1rem); font-weight: 400; }
  .tf-card-num        { font-size: 0.78rem; letter-spacing: 0.30em; }
  .tf-card-cta        { font-size: 0.82rem; }

  .tf-quote blockquote p { font-size: clamp(1.5rem, 6vw, 2.4rem); font-weight: 400; }

  .tf-cta p           { font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 400; }
  .tf-cta-btn         { font-size: 0.88rem; }
}

/* ================================================
   DESKTOP 768px+
   ================================================ */
@media (min-width: 768px) {

  .tf-hero-content { bottom: 272px; padding: 0 56px; }
  .tf-hero-bottom  { padding: 0 56px 56px; }

  .tf-estate-inner { padding: 56px 52px 48px; }

  /* Estate — 2 colonne: testo + box energia */
  .tf-estate-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .tf-estate-text { flex: 1 1 56%; }
  .tf-estate-energy { flex: 1 1 38%; }

  /* Carousel → griglia 2 colonne (come lr-track) */
  .tf-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0 16px;
    max-width: min(100% - 32px, 1120px);
    margin-inline: auto;
  }

  .tf-card {
    flex: none;
    width: auto;
    min-width: 0;
    height: 560px;
    scroll-snap-align: none;
  }

  .tf-dots { display: none; }

  .tf-card-body { padding: 0 28px 28px; }

  .fg-header { padding: 72px 56px 20px; }
  .fg-stage  { margin: 0 56px; }
}

@media (min-width: 1100px) {
  .tf-hero-content { bottom: 282px; }
  .tf-card { height: 620px; }
  .tf-card-body h3 { font-size: 2.2rem; }
}


/* ═══════════════════════════════════════════════════
   THE FARM — testo sotto con lo stesso font del lead
   (2026-10-13)
═══════════════════════════════════════════════════ */

.tf-estate-text p {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.52;
  color: rgba(243, 239, 232, 0.88);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .tf-estate-text p { font-size: clamp(1.1rem, 4.2vw, 1.4rem); }
}


/* niente righe sottili tra le sezioni (2026-10-13) */
.tf-estate,
.tf-themes { border-top: 0; }


/* ═══════════════════════════════════════════════════
   CARD — testi piu grandi (2026-10-13, poi ridotti un po')
═══════════════════════════════════════════════════ */

.tf-card-body h3 { font-size: clamp(2rem, 7.8vw, 2.5rem); }
.tf-card-desc    { font-size: clamp(1.05rem, 4vw, 1.18rem); line-height: 1.4; }
.tf-card-body li { font-size: clamp(1.12rem, 4.3vw, 1.3rem); padding-left: 0.9em; }
.tf-card-cta     { font-size: 0.82rem; }

@media (min-width: 768px) {
  .tf-card-body h3 { font-size: 2.6rem; }
  .tf-card-desc    { font-size: 1.2rem; }
  .tf-card-body li { font-size: 1.32rem; }
  .tf-card-cta     { font-size: 0.86rem; }
}

@media (min-width: 1100px) {
  .tf-card-body h3 { font-size: 2.85rem; }
}

/* pallini al posto dei trattini */
.tf-card-body li::before {
  content: "";
  top: calc(0.69em - 2.5px); /* centro della prima riga (line-height 1.38) */
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(243, 239, 232, 0.6);
}

/* la card non e' piu cliccabile: solo "Discover more" apre la gallery */
.tf-card { cursor: default; }
.tf-card-cta { cursor: pointer; }


/* ═══════════════════════════════════════════════════
   2026-10-16: tolto l'effetto vetro della card "The Farm"
   (c'era solo su questa pagina); testi bianchi leggibili
   sulla foto, come nelle altre pagine
═══════════════════════════════════════════════════ */
.tf-estate-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.tf-estate-title,
.tf-estate-lead,
.tf-estate-text p,
.tf-manifesto-inner h2,
.tf-manifesto-inner p {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 22px rgba(0, 0, 0, 0.7);
}
.tf-themes-label { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.7); }
