/* ========================================
 HICMAN CAPITAL PARTNER - FINANCE STYLES
 File CSS completo aggiornato
 ======================================== */

/* === VARIABILI COLORI === */
:root {
  /* Palette Principale */
  --finance-primary: #282942;
  --finance-secondary: #d5daf5;
  --finance-text: #2e2e2e;
  --finance-bg: #f5f6fb;
  
  /* Colori Aggiuntivi */
  --finance-white: #ffffff;
  --finance-accent: #4a4d7c;
  --finance-light: #e8eaf6;
  --finance-border: #d0d4e4;
  --finance-dark-text: #1a1a2e;
  --finance-link-hover: #5a5d8c;
  
  /* Gradienti */
  --gradient-hero: linear-gradient(135deg, #282942 0%, #1a1a2e 50%, #282942 100%);
  --gradient-subtle: linear-gradient(180deg, #f5f6fb 0%, #ffffff 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(40, 41, 66, 0.03) 0%, rgba(213, 218, 245, 0.08) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cormorant Garamond';
  --font-sub: 'ArgentumNovus';
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(40, 41, 66, 0.06);
  --shadow-md: 0 4px 16px rgba(40, 41, 66, 0.08);
  --shadow-lg: 0 8px 32px rgba(40, 41, 66, 0.12);
  --shadow-xl: 0 16px 48px rgba(40, 41, 66, 0.16);
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
  font-family: "ArgentumNovus";
  src: url("/fonts/ArgentumNovus-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: var(--font-primary);
  color: var(--finance-text);
  background-color: var(--finance-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--finance-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
  color: var(--finance-text);
}

/* ========================================
 HERO SECTION CON SFERE E LOGO GRANDE
 ======================================== */

/* Hero Section Base */
.hero-section-finance {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

/* === SFERE ANIMATE - Stile Login === */
.hero-section-finance .sphere {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(213, 218, 245, 0.08);
  pointer-events: none;
  animation: float 20s infinite ease-in-out;
}

.hero-section-finance .sphere-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-section-finance .sphere-2 {
  width: 400px;
  height: 400px;
  bottom: -120px;
  right: -120px;
  animation-delay: 3s;
}

/* Animazione float sfere */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Overlay Hero */
.hero-overlay-finance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(40, 41, 66, 0.2) 50%,
    rgba(40, 41, 66, 0.4) 100%
  );
  z-index: 1;
}

/* === HERO CONTENT === */
.hero-content-finance {
  position: relative;
  z-index: 2;
  color: var(--finance-white);
  padding: 2rem;
  text-align: center;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === LOGO GRANDE HERO === */
.hero-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Logo circolare con H SVG */
.hero-logo-circle {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-circle::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(213, 218, 245, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-logo-circle:hover::before {
  opacity: 1;
}

.hero-logo-circle:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Logo SVG stilizzato */
.hero-logo-svg {
  width: 140px;
  height: auto;
  color: #ffffff;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  transition: all 0.4s ease;
}

.hero-logo-circle:hover .hero-logo-svg {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.4));
}

/* Testo del brand sotto il logo */
.hero-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Contenitore interno per allineare i testi fra loro */
.hero-brand-text-inner {
  display: block;
  text-align: left;
}

/* Titolo - DIMENSIONI FISSE SU TUTTE LE RISOLUZIONI */
.hero-brand-name {
  font-family: var(--font-heading);
  font-size: 5.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.11em;
  margin: 0;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* Sottotitolo - DIMENSIONI FISSE SU TUTTE LE RISOLUZIONI */
.hero-brand-subtitle {
  font-size: 1.80rem;
  font-family: var(--font-sub);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.27em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.95;
}

/* Hero Title (vecchio stile - da usare in altre pagine) */
.hero-title-finance {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

/* Sottotitolo Hero */
.hero-subtitle-finance {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* === BUTTONS === */
.hero-buttons-finance {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-finance-primary {
  background-color: var(--finance-white);
  color: var(--finance-primary) !important;
  border: 2px solid var(--finance-white);
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-finance-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--finance-white);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-finance-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-finance-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-finance-secondary {
  background-color: transparent;
  color: var(--finance-white) !important;
  border: 2px solid var(--finance-white);
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-block;
}


.btn-finance-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator-finance {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator-finance i {
  font-size: 2rem;
  color: #ffffff;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
 SECTION TITLES
 ======================================== */
.section-title-finance {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--finance-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1.5rem;
  text-align: center;
}

.section-title-finance::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--finance-primary);
  border-radius: 2px;
}

/* ========================================
 INTRO SECTION
 ======================================== */
.intro-section {
  background: linear-gradient(180deg, var(--finance-white) 0%, var(--finance-bg) 100%);
  padding: 80px 0;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--finance-text);
  text-align: center;
}

/* ========================================
 SERVICE CARDS - STILE ORIGINALE
 ======================================== */
.services-highlights-section {
  background-color: var(--finance-bg);
  padding: 80px 0;
}

.service-card {
  background: var(--finance-white);
  border-radius: 20px;
  padding: 3rem 2rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--finance-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--finance-primary), var(--finance-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(180deg, var(--finance-white) 0%, rgba(213, 218, 245, 0.05) 100%);
}

.service-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--finance-secondary), var(--finance-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: var(--transition-base);
}

.service-icon i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--finance-primary), var(--finance-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
  background: linear-gradient(135deg, var(--finance-primary), var(--finance-accent));
}

.service-card:hover .service-icon i {
  background: var(--finance-white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--finance-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.service-card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--finance-text);
  margin-bottom: 1.5rem;
  text-align: center;
  flex: 1;
}

.service-details {
  background: var(--gradient-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--finance-border);
}

.service-detail-item {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--finance-text);
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.service-detail-item:last-child {
  margin-bottom: 0;
}

.service-detail-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--finance-accent);
}

.service-detail-item strong {
  color: var(--finance-primary);
  font-weight: 600;
}

/* Bottone Service Card - FIX HOVER */
.btn-finance-outline {
  background-color: transparent;
  color: var(--finance-primary) !important;
  border: 2px solid var(--finance-primary);
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-finance-outline:hover {
  background-color: var(--finance-primary);
  color: var(--finance-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 41, 66, 0.3);
}

.btn-finance-outline i {
  transition: transform 0.3s ease;
}

.btn-finance-outline:hover i {
  transform: translateX(5px);
}

/* ========================================
 ANIMATIONS
 ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
 RESPONSIVE - HERO LOGO
 MANTIENE LE DIMENSIONI DEL TESTO FISSO
 ======================================== */
@media (max-width: 992px) {
  .hero-logo-circle {
    width: 160px;
    height: 160px;
  }
  
  .hero-logo-svg {
    width: 110px;
  }
  
  /* Il testo HICMAN mantiene la stessa dimensione */
  .hero-brand-name {
    font-size: 5.4rem;
  }
  
  /* Il testo CAPITAL PARTNER mantiene la stessa dimensione */
  .hero-brand-subtitle {
    font-size: 1.80rem;
  }
}

@media (max-width: 768px) {
  .hero-logo-wrapper {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .hero-logo-circle {
    width: 140px;
    height: 140px;
  }
  
  .hero-logo-svg {
    width: 95px;
  }
  
  /* Il testo HICMAN mantiene la stessa dimensione */
  .hero-brand-name {
    font-size: 5.4rem;
    letter-spacing: 0.1em;
  }
  
  /* Il testo CAPITAL PARTNER mantiene la stessa dimensione */
  .hero-brand-subtitle {
    font-size: 1.88rem;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 576px) {
  .hero-logo-circle {
    width: 120px;
    height: 120px;
  }
  
  .hero-logo-svg {
    width: 80px;
  }
  
  /* Il testo HICMAN mantiene la stessa dimensione */
  .hero-brand-name {
    font-size: 5.4rem;
  }
  
  /* Il testo CAPITAL PARTNER mantiene la stessa dimensione */
  .hero-brand-subtitle {
    font-size: 1.88rem;
  }
}

/* ========================================
 RESPONSIVE - GENERAL
 ======================================== */
@media (max-width: 991px) {
  .hero-section-finance {
    min-height: 80vh;
  }
  
  .hero-title-finance {
    font-size: 2.5rem;
  }
  
  .hero-subtitle-finance {
    font-size: 1.1rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  .btn-finance-secondary {
    width: 100%;
    max-width: 323px;
  }
  
}

@media (max-width: 768px) {
  .hero-section-finance {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-section-finance .sphere-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
  }
  
  .hero-section-finance .sphere-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -80px;
  }
  
  .hero-title-finance {
    font-size: 2rem;
  }
  
  .hero-buttons-finance {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-finance-primary,
  .btn-finance-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* ========================================
 RESPONSIVE - SMALL DEVICES
 ======================================== */
@media (max-width: 576px) {
  .hero-section-finance {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-logo-wrapper {
    gap: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .hero-logo-circle {
    width: 120px;
    height: 120px;
  }
  
  .hero-logo-svg {
    width: 80px;
  }
  
  .hero-brand-name {
    font-size: 4rem;
  }
  
  .hero-brand-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-section-finance .sphere-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -80px;
  }
  
  .hero-section-finance .sphere-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -80px;
  }
  
  .hero-buttons-finance {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  /* Stili uguali per entrambi i bottoni */
  .hero-buttons-finance .btn-finance-primary,
  .hero-buttons-finance .btn-finance-secondary {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px !important;
    font-size: 0.95rem;
    display: block;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  .service-card-title {
    font-size: 1.3rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
  }
  
  .service-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section-finance {
    padding-top: 50px;
  }
  
  .hero-logo-wrapper {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-logo-circle {
    width: 100px;
    height: 100px;
  }
  
  .hero-logo-svg {
    width: 70px;
  }
  
  .hero-brand-name {
    font-size: 3.2rem;
    letter-spacing: 0.08em;
  }
  
  .hero-brand-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }
  
  .hero-section-finance .sphere-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -60px;
  }
  
  .hero-section-finance .sphere-2 {
    width: 150px;
    height: 150px;
    bottom: -60px;
    right: -60px;
  }
  
  .hero-buttons-finance {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  /* Stili uguali per entrambi i bottoni */
  .hero-buttons-finance .btn-finance-primary,
  .hero-buttons-finance .btn-finance-secondary {
    width: 100%;
    max-width: 260px;
    padding: 12px 20px !important;
    font-size: 0.9rem;
    display: block;
  }
  
  .service-card {
    padding: 1.25rem 0.75rem;
  }
  
  .service-card-title {
    font-size: 1.1rem;
  }
  
  .service-detail-item {
    font-size: 0.85rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
}




/* ========================================
 ACCESSIBILITY
 ======================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-section-finance .sphere-1,
  .hero-section-finance .sphere-2 {
    animation: none;
  }
  
  .scroll-indicator-finance {
    animation: none;
  }
  
  .hero-content-finance,
  .hero-title-finance,
  .hero-subtitle-finance,
  .hero-buttons-finance {
    animation: none;
  }
  
  .hero-logo-circle,
  .hero-logo-svg {
    transition: none;
  }
  
  .hero-logo-circle:hover {
    transform: none;
  }
  
  .hero-logo-circle:hover .hero-logo-svg {
    transform: none;
  }
}
