/* ================================================================
   main.css — Variabili, reset, tipografia, layout, hero, footer
   ================================================================ */

/* ── RESET & BOX MODEL ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* ── DESIGN TOKENS ── */
:root {
  --bg:          #0D1520;
  --surface:     #12202E;
  --surface2:    #192B3C;
  --text:        #EDE5D4;
  --text-mid:    #B8AFA0;
  --text-light:  #6A6260;
  --gold:        #D4A84B;
  --gold-dim:    #B8862A;
  --gold-faint:  rgba(212,168,75,.1);
  --navy:        #1A2740;
  --violet:      #2C1A40;
  --violet-mid:  #3D2558;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', sans-serif;
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
}

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

/* ── STELLE DI SFONDO ── */
.stars-fixed {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .04;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .04 } 50% { opacity: .07 } }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.from-bottom { transform: translateY(38px); }
.from-left   { transform: translateX(-38px); }
.from-right  { transform: translateX(38px); }
.from-scale  { transform: scale(.93); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── SECTION BASE ── */
section {
  padding: clamp(60px, 8vw, 100px) clamp(18px, 5vw, 60px);
  position: relative;
  z-index: 1;
}
.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 300; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-desc {
  font-size: 15px; color: var(--text-mid);
  max-width: 520px; line-height: 1.85; font-weight: 300;
}

/* ── BUTTONS GLOBALI ── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px;
  background: var(--gold); color: #1A2740;
  text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s, transform .2s;
  min-height: 52px; white-space: nowrap;
}
.btn-gold:hover { background: #E8BB55; transform: translateY(-2px); }

.btn-outline-ts {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(212,168,75,.28); color: var(--gold);
  text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  border-radius: 2px;
  transition: all .2s;
  min-height: 52px; white-space: nowrap;
}
.btn-outline-ts:hover { background: rgba(212,168,75,.08); border-color: var(--gold); }

.btn-gold-full {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px;
  background: var(--gold); color: #1A2740;
  border: none;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px;
  transition: background .2s;
  min-height: 52px;
}
.btn-gold-full:hover { background: #E8BB55; }

/* ── KEYFRAMES ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse  { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
@keyframes scrollAnim { 0%, 100% { opacity: .25; transform: scaleY(1); } 50% { opacity: .6; transform: scaleY(1.2); } }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  position: relative; overflow: hidden;
  padding: clamp(100px, 15vh, 130px) clamp(18px, 6vw, 80px) clamp(70px, 10vh, 90px);
}
.hero-glow-c {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 120vw); height: min(600px, 120vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,26,64,.88) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow-g {
  position: absolute; left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  width: min(380px, 90vw); height: 260px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212,168,75,.055) 0%, transparent 65%);
  pointer-events: none;
}
.hero-logo {
  width: clamp(90px, 14vw, 120px); height: clamp(90px, 14vw, 120px);
  margin: 0 auto 28px;
  animation: float 7s ease-in-out infinite;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(212,168,75,.6);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  animation: fadeUp .6s .1s ease both;
  position: relative; z-index: 2;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 20px; height: 1px;
  background: rgba(212,168,75,.38);
}
.hero-brand { margin-bottom: 20px; animation: fadeUp .7s .2s ease both; position: relative; z-index: 2; }
.hero-brand .la {
  font-family: var(--sans); font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(237,229,212,.3); display: block; margin-bottom: 4px;
}
.hero-brand .lb {
  font-family: var(--serif); font-size: clamp(50px, 9vw, 90px);
  font-weight: 300; font-style: italic; color: var(--gold);
  line-height: .95; display: block;
}
.hero-desc {
  font-size: clamp(14px, 1.8vw, 16px); color: var(--text-mid);
  max-width: min(520px, 85vw); margin: 0 auto 40px;
  line-height: 1.85; font-weight: 300;
  animation: fadeUp .7s .3s ease both; position: relative; z-index: 2;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  animation: fadeUp .7s .4s ease both; position: relative; z-index: 2;
}
.hero-scroll {
  position: absolute; bottom: clamp(20px, 4vh, 36px); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp .8s .8s ease both; z-index: 2;
}
.hero-scroll span { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: rgba(212,168,75,.3); }
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

/* ── FOOTER ── */
footer {
  background: #070E18;
  padding: clamp(36px, 5vw, 48px) clamp(18px, 5vw, 56px) clamp(18px, 3vw, 24px);
  border-top: 1px solid rgba(212,168,75,.06);
  position: relative; z-index: 1;
}
.ft-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap; gap: 20px;
}
.ft-brand { display: flex; align-items: center; gap: 13px; }
.ft-brand-text .l1 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(212,168,75,.32); }
.ft-brand-text .l2 { font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 300; color: var(--gold); }
.ft-links { display: flex; gap: clamp(14px, 3vw, 26px); flex-wrap: wrap; }
.ft-links a {
  font-size: 12px; color: rgba(237,229,212,.28); text-decoration: none;
  letter-spacing: .06em; transition: color .2s;
  min-height: 32px; display: inline-flex; align-items: center;
}
.ft-links a:hover { color: var(--gold); }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.04);
  padding-top: 18px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(237,229,212,.15);
  flex-wrap: wrap; gap: 8px;
}
.ft-bottom a { color: rgba(212,168,75,.3); text-decoration: none; transition: color .2s; }
.ft-bottom a:hover { color: var(--gold); }

/* ── SISSI BIO ── */
.sissi-bio { background: var(--bg); border-top: 1px solid rgba(212,168,75,.06); }
.bio-grid {
  display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(32px, 5vw, 56px); align-items: center;
}
.bio-avatar {
  width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(212,168,75,.2); flex-shrink: 0;
  background: linear-gradient(145deg, var(--surface2), var(--navy));
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; }
.bio-name { font-family: var(--serif); font-size: clamp(36px, 6vw, 58px); font-weight: 300; font-style: italic; color: var(--gold); margin-bottom: 14px; line-height: 1; }
.bio-quote {
  font-family: var(--serif); font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 300; font-style: italic; color: var(--text);
  line-height: 1.5; margin-bottom: 18px;
  padding-left: 18px; border-left: 2px solid rgba(212,168,75,.28);
}
.bio-text p { font-size: 15px; color: var(--text-mid); line-height: 1.85; font-weight: 300; }

/* ── BACK TO FV ── */
.back-fv {
  background: var(--surface); text-align: center;
  padding: clamp(48px, 6vw, 64px) clamp(18px, 5vw, 56px);
  border-top: 1px solid rgba(212,168,75,.07);
}
.back-fv p { font-size: 14px; color: var(--text-mid); margin-bottom: 18px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-mid); text-decoration: none;
  transition: color .2s; letter-spacing: .04em; min-height: 44px;
}
.btn-back:hover { color: var(--gold); }

/* ── TABLET ≤960px ── */
@media (max-width: 960px) {
  section { padding: 60px 22px; }
  .bio-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .bio-avatar { margin: 0 auto; }
  .bio-quote { text-align: left; }
  .ft-top { flex-direction: column; align-items: flex-start; }
  .ft-bottom { flex-direction: column; }
}

/* ── MOBILE ≤600px ── */
@media (max-width: 600px) {
  section { padding: 52px 16px; }
  .hero { padding: 88px 16px 72px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-gold, .btn-outline-ts { width: 100%; justify-content: center; }
  .ft-links { flex-direction: column; gap: 12px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-logo, .stars-fixed, .scroll-line, .free-dot {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
