/* ============================================================
   VARIABILI — modifica qui colori e font del tuo sito
   ============================================================ */
:root {
  --color-bg:       #0e0d0b;
  --color-surface:  #171613;
  --color-text:     #f0ebe3;
  --color-muted:    #8a8276;
  --color-accent:   #c9a96e;
  --font-display:   'Cormorant Garamond', serif;
  --font-body:      'DM Sans', sans-serif;
  --max-w:          1200px;
  --section-pad:    clamp(5rem, 10vw, 9rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3, blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3.5rem, 8vw, 8rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h3 { font-size: clamp(2rem, 3.5vw, 3rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-muted);
  max-width: 48ch;
}

.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ============================================================
   BOTTONE
   ============================================================ */
.btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--dark {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--dark:hover {
  background: transparent;
  color: var(--color-accent);
}

/* ============================================================
   ANIMAZIONE REVEAL (testo che appare scrollando)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__parallax {
  position: absolute;
  inset: -20%;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,13,11,0.3) 0%,
    rgba(14,13,11,0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero__title {
  color: #fff;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-surface);
}

.about__text {
  max-width: 700px;
}

.about__text h2 {
  margin-bottom: 1.5rem;
}

/* ============================================================
   FEATURE
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.feature__img-wrap {
  overflow: hidden;
  position: relative;
}

.feature__img-wrap img {
  position: absolute;
  inset: -15%;
  width: 100%;
  height: 130%;
  will-change: transform;
}

.feature__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 7rem);
}

.feature__text h3 { margin-bottom: 1rem; }

/* Alterna sfondo */
.feature--left { background: var(--color-bg); }
.feature--right { background: var(--color-surface); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.manifesto__bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
}

.manifesto__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,13,11,0.65);
}

.manifesto blockquote {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  text-align: center;
  padding: 0 clamp(1.5rem, 8vw, 10rem);
  font-style: italic;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: var(--section-pad) 0;
  text-align: center;
  background: var(--color-surface);
}

.cta h2 { margin-bottom: 1rem; }
.cta p { margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  border-top: 1px solid #222;
}

.footer a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature__img-wrap {
    height: 55vw;
    position: relative;
  }

  .feature--right .feature__text { order: -1; }

  .feature__text {
    padding: 3rem 1.5rem;
  }
}
