/* ============================================================
   FASTUS HOME — VALUTA LA TUA CASA
   ============================================================ */

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

:root {
  --gold:       #1F18C0;
  --gold-light: #3d35d6;
  --dark:       #0b1f3a;
  --dark-2:     #0f2a4f;
  --dark-3:     #163460;
  --text:       #2c2c2c;
  --text-muted: #6b7280;
  --bg:         #faf9f7;
  --bg-alt:     #f3f1ec;
  --white:      #ffffff;
  --border:     #e5e0d8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h: 72px;
  --section-gap: 96px;
  --container-w: 1200px;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
textarea { resize: vertical; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--gold); }

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 48px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn--gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn--dark:hover { background: var(--dark-2); }

.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--lg  { padding: 17px 40px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(17,20,24,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo { display: flex; align-items: center; margin-right: auto; }

.nav__logo-img {
  height: 110px;
  width: auto;
}

.nav__links { display: flex; gap: 32px; }

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold); }

.nav__cta { margin-left: 8px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--dark);
  padding: 12px 24px 20px;
}
.nav__mobile a {
  color: rgba(255,255,255,0.8);
  padding: 12px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile .btn { margin-top: 16px; }

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

.hero__bg { position: absolute; inset: 0; }

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

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,12,16,0.78) 0%, rgba(10,12,16,0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
  padding-top: var(--nav-h);
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}
.hero__title em { font-style: italic; color: var(--white); }

.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.badge {
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__scroll span {
  display: block;
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: #1F18C0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro { background: var(--white); }

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.intro__body {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.intro__body + .btn { margin-top: 16px; }

.intro__visual { position: relative; }

.intro__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}

.intro__card {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--gold);
  color: var(--white);
  padding: 20px 28px;
  border-radius: 2px;
}
.intro__card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.intro__card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

/* ============================================================
   COME FUNZIONA — STEPS
   ============================================================ */
.steps { background: #1F18C0; }

.steps .section-eyebrow,
.steps .section-sub { color: rgba(255,255,255,0.45); }
.steps .section-title { color: var(--white); }
.steps .section-title em { color: var(--white); }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 36px 32px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}
.step:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.step__num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 12px;
}
.step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
}

/* ============================================================
   VALUTA FORM
   ============================================================ */
.valuta { background: var(--bg-alt); }

.valuta__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.valuta__title { color: var(--dark) !important; }
.valuta__title em { color: var(--gold) !important; }

.valuta__body {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.valuta__perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.valuta__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}
.valuta__perk span { color: var(--gold); font-weight: 700; }

.valuta__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.valuta__trust-logo {
  width: 100px;
  height: auto;
}

.valuta__trust p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- FORM --- */
.valuta__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.form__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.form__divider::before,
.form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form__divider span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--dark);
  white-space: nowrap;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0a898; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }

.form-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -6px;
}

.form-success {
  display: none;
  background: rgba(31,24,192,0.08);
  border: 1px solid rgba(31,24,192,0.4);
  border-radius: 3px;
  padding: 16px;
  font-size: 0.9rem;
  color: #1F18C0;
  text-align: center;
  font-weight: 500;
}

/* ============================================================
   TESTIMONIANZE
   ============================================================ */
.testimonials { background: var(--white); }

.testi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testi {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.testi:hover { border-color: var(--gold); transform: translateY(-4px); }

.testi__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testi__text::before { content: '"'; }
.testi__text::after  { content: '"'; }

.testi__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testi__author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--dark);
}
.testi__author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060f1e;
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__logo-img {
  height: auto;
  width: 180px;
  display: block;
  margin: 0;
}

.footer__tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links h5,
.footer__contact h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.footer__links a,
.footer__contact a,
.footer__contact p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  line-height: 1.6;
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--gold); }

.footer__bottom {
  padding: 20px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}
.footer__bottom a { color: rgba(255,255,255,0.35); }
.footer__bottom a:hover { color: var(--gold); }
.footer__disclaimer { font-size: 0.65rem !important; opacity: 0.6; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile.open { display: flex; }

  .intro__grid  { grid-template-columns: 1fr; }
  .intro__visual { order: -1; }
  .intro__card  { left: 0; }

  .steps__grid  { grid-template-columns: 1fr; }

  .valuta__grid { grid-template-columns: 1fr; }

  .testi__grid  { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .hero__title { font-size: 3rem; }

  .stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }

  .form-row { grid-template-columns: 1fr; }

  .valuta__form { padding: 24px 20px; }

  .footer__inner { grid-template-columns: 1fr; }
}
