/* ═══════════════════════════════════════════════════════════════
   RA GROUP — Style
   "Tecnologia per l'uomo. Tempo per la vita."
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #08080d;
  --bg-light:  #0e0e16;
  --surface:   #13131d;
  --gold:      #c9a84c;
  --gold-dim:  #a08838;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --cream:     #f0ede6;
  --muted:     #7a7668;
  --text:      #d4d0c8;
  --white:     #faf8f2;
  --radius:    12px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--cream); }

img { max-width: 100%; height: auto; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.15;
}

/* ── Film Grain Overlay ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── Floating Orbs ─────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: orbFadeIn 2s var(--ease) forwards;
}
.orb--gold {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,.12), transparent 70%);
  top: -150px; right: -100px;
  animation-delay: .3s;
}
.orb--indigo {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.08), transparent 70%);
  bottom: 10%; left: -80px;
  animation-delay: .6s;
}
@keyframes orbFadeIn { to { opacity: 1; } }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .5s var(--ease);
}
.nav.scrolled {
  padding: .8rem 3rem;
  background: rgba(8,8,13,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.nav__logo { height: 44px; transition: height .5s var(--ease); }
.nav.scrolled .nav__logo { height: 34px; }

.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__links a {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: all .3s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1.2rem;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 100px;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .8s var(--ease) .4s forwards;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 7.5rem);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: revealUp 1s var(--ease) .6s forwards;
}
.hero__title .gold {
  background: linear-gradient(135deg, var(--gold) 0%, #e8d5a3 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 1s var(--ease) .9s forwards;
}

.hero__tagline {
  margin-top: 3rem;
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0;
  animation: revealUp 1s var(--ease) 1.2s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: revealUp .8s var(--ease) 1.5s forwards;
}
.hero__scroll span {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── Section Commons ───────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: 8rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.85;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.15), transparent);
}

/* ── Statement Section ─────────────────────────────────────── */
.statement {
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
}
.statement__text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
}
.statement__text em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), #e8d5a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Pillars ───────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.pillar {
  background: linear-gradient(165deg, rgba(201,168,76,.04) 0%, transparent 50%);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all .5s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .5s;
}
.pillar:hover {
  border-color: rgba(201,168,76,.2);
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(201,168,76,.07) 0%, transparent 50%);
}
.pillar:hover::before { opacity: 1; }

.pillar__icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
}
.pillar__num {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.pillar__title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.pillar__desc {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Partners ──────────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.partner-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,.06);
  border-radius: var(--radius);
  padding: 3rem;
  transition: all .5s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.partner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201,168,76,.03), transparent);
  opacity: 0;
  transition: opacity .5s;
}
.partner-card:hover {
  border-color: rgba(201,168,76,.15);
  transform: translateY(-3px);
}
.partner-card:hover::after { opacity: 1; }

.partner-card__badge {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.partner-card__name {
  font-size: 1.8rem;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}
.partner-card__tagline {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.partner-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.partner-card__tag {
  font-size: .72rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 100px;
  color: var(--gold-dim);
  letter-spacing: .05em;
}

.partner-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: gap .3s var(--ease);
}
.partner-card__link:hover { gap: .8rem; color: var(--cream); }
.partner-card__link svg { width: 16px; height: 16px; }

/* ── Numbers ───────────────────────────────────────────────── */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  text-align: center;
}
.number__value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  background: linear-gradient(135deg, var(--gold), #e8d5a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.number__label {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .05em;
}

/* ── Founders ──────────────────────────────────────────────── */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}
.founder {
  padding: 2.5rem;
  border: 1px solid rgba(201,168,76,.06);
  border-radius: var(--radius);
  background: var(--surface);
}
.founder__role {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.founder__name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.founder__desc {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.75;
}
.founder__quote {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-dim);
  font-style: italic;
  color: var(--text);
  font-size: .95rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(201,168,76,.06);
  text-align: center;
}
.footer__logo { height: 32px; margin-bottom: 1.5rem; opacity: .6; }
.footer__tagline {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: 2rem;
}
.footer__copy {
  font-size: .72rem;
  color: rgba(122,118,104,.5);
  letter-spacing: .05em;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Partner Page ──────────────────────────────────────────── */
.partner-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}
.partner-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color .3s;
}
.partner-hero__back:hover { color: var(--gold); }
.partner-hero__accent {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.partner-hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}
.partner-hero__sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
}

.partner-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.partner-service {
  padding: 2rem;
  border: 1px solid rgba(201,168,76,.06);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s;
}
.partner-service:hover { border-color: rgba(201,168,76,.15); }
.partner-service__title {
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.partner-service__desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

.partner-cta {
  text-align: center;
  padding: 6rem 2rem;
}
.partner-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.partner-cta__text {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .4s var(--ease);
  background: transparent;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: .6rem 1.5rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,8,13,.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
  }
  .nav__links.open a {
    font-size: 1.1rem;
    color: var(--cream);
  }

  .partners-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 5rem 0; }
  .statement { padding: 6rem 2rem; }
  .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.5rem; }
  .numbers { grid-template-columns: 1fr; }
}
