/* ===========================
   VENTIMIGLIA HOLDING — CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --blue: #0078ff;
  --blue-dark: #005fd1;
  --blue-light: #e8f1ff;
  --blue-mid: rgba(0, 120, 255, 0.08);
  --dark: #0d0f14;
  --mid: #1c1f2a;
  --text: #222;
  --muted: #666;
  --border: rgba(0,0,0,0.08);
  --white: #ffffff;
  --off-white: #fafafa;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── CUSTOM CURSOR ── */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--blue);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
  opacity: 0.6;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 48px; height: 48px; opacity: 1; }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: var(--ff-display);
  font-size: 3rem;
  color: var(--white);
  letter-spacing: 0.15em;
  animation: pulse 1.2s ease-in-out infinite;
}
.preloader-bar {
  width: 200px; height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
  animation: load 1.8s var(--ease-out) forwards;
}
@keyframes load { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── HEADER ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
#header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0 5%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo { height: 36px; }
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px 5%;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-out);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-link {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 10% 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,120,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,120,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,120,255,0.3), transparent 70%);
  top: -150px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,200,150,0.2), transparent 70%);
  bottom: 0; left: 5%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--blue);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease-out);
  cursor: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,120,255,0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,120,255,0.4);
}
.btn-ghost {
  border: 1.5px solid rgba(0,0,0,0.15);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.hero-stats {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}
.stat-symbol { font-family: var(--ff-display); font-size: 2rem; color: var(--blue); }
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
}
.scroll-indicator {
  position: absolute;
  bottom: 32px; right: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── SECTIONS ── */
.section { padding: 120px 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 8%; }
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--blue); }
.section-title.centered { text-align: center; }
.section-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 64px;
  text-align: center;
  font-weight: 300;
}
.body-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
}
.body-text strong { color: var(--text); font-weight: 500; }

/* ── ABOUT ── */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 16px;
}
.about-card-stack { position: relative; height: 400px; }
.about-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-back {
  width: 80%;
  height: 80%;
  bottom: 0; right: 0;
  background: var(--blue-mid);
  border: 1px solid rgba(0,120,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.card-icon { font-size: 2rem; color: var(--blue); opacity: 0.4; }
.card-back p { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); opacity: 0.6; }
.card-front {
  width: 85%;
  height: 85%;
  top: 0; left: 0;
  background: linear-gradient(135deg, #e8f1ff, #f0f5ff);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.card-front img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.card-overlay span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}
.floating-badge {
  position: absolute;
  bottom: 20px; right: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 2;
}
.badge-icon { color: var(--blue); font-size: 0.9rem; }
.about-visual { position: relative; }

/* ── MISSION ── */
.mission-section { background: var(--off-white); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value-item {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.3s;
  position: relative;
}
.value-item:hover { background: var(--blue-mid); }
.value-number {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  color: var(--blue);
  opacity: 0.2;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}
.value-item h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}
.value-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ── COMPANIES ── */
.companies-section { background: var(--dark); }
.companies-section .section-label { color: rgba(0,120,255,0.8); }
.companies-section .section-title { color: var(--white); }
.companies-section .section-intro { color: rgba(255,255,255,0.5); }
.companies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.company-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all 0.3s var(--ease-out);
}
.company-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
  border-color: rgba(0,120,255,0.3);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.company-logo-placeholder {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.company-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 4px 12px;
  border-radius: 100px;
  opacity: 0.7;
}
.company-name {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.company-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}
.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.company-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 4px 12px;
  border-radius: 100px;
}
.company-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.3s;
}
.company-link:hover { gap: 14px; }
.company-link span { transition: transform 0.3s; }
.company-link:hover span { transform: translateX(4px); }

.future-division {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
}
.future-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.future-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.future-inner h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.future-inner p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

/* ── CEO ── */
.ceo-section { background: var(--white); }
.ceo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.ceo-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--blue-light);
}
.ceo-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ceo-photo-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-light), #e8f1ff);
  z-index: -1;
}
.no-photo .ceo-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 4rem;
  color: rgba(0,120,255,0.2);
}
.ceo-photo-wrap { position: relative; }
.ceo-quote-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--blue-mid);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ceo-quote-box p {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 8px;
}
.ceo-quote-box cite {
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 0.05em;
}
.ceo-role {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
  margin-top: -16px;
}
.ceo-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.trait {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 400;
}
.trait-icon { color: var(--blue); font-size: 0.5rem; }

/* ── CONTACT ── */
.contact-section { background: var(--off-white); }
.contact-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 80px;
  border: 1px solid var(--border);
  max-width: 700px;
}
.contact-channels {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.whatsapp { background: #25D366; }
.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

/* ── FOOTER ── */
.footer { background: var(--dark); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 64px 8%;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  font-style: italic;
  font-family: var(--ff-display);
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 8%;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.03em;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right {
  transform: translateX(32px) !important;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) !important;
}
.reveal-delay { transition-delay: 0.15s !important; }
.reveal-delay-2 { transition-delay: 0.3s !important; }
.reveal-delay-3 { transition-delay: 0.45s !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-card-stack { height: 300px; }
  .ceo-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 6% 60px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat-divider { display: none; }
  .companies-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-inner { padding: 48px 32px; }
  .footer-links { gap: 32px; }
  .ceo-traits { grid-template-columns: 1fr; }
  .scroll-indicator { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  .btn, a, button { cursor: pointer; }
}