/**
 * Vincenzo Falace - Showcase Website
 * File: assets/css/pages/home.css
 * Description: Styles specific to the Home Page (Hero, Problem, Solution, and 4-Phase Process).
 */

/* ==========================================
   1. HERO SECTION
   ========================================== */
.hero-section {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  overflow: hidden;
  position: relative;
}

.new-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-4xl);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-tech);
  background: rgba(228, 200, 165, 0.08);
  border: 1px solid rgba(228, 200, 165, 0.22);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent-tech);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: var(--fw-extrabold);
  line-height: 1.08;
  margin-bottom: var(--space-lg);
  letter-spacing: var(--ls-tight);
}

.hero-subtitle {
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  width: 100%;
}

/* ==========================================
   1.1 HERO PROFILE & RESULTS CARD
   ========================================== */
.hero-profile-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  width: 100%;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Per inquadrare meglio il viso se tagliato */
  border-radius: 50%;
  border: 5px solid #080A0D; /* Bordo interno per staccare dal gradiente */
}

.profile-image-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto var(--space-2xl) auto;
  border-radius: 50%;
  padding: 4px; /* Spessore dell'anello colorato */
  background: linear-gradient(135deg, rgba(228, 200, 165, 0.7), rgba(255, 255, 255, 0.25));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(228, 200, 165, 0.1);
}

.results-card {
  background: var(--surface-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 450px;
}

.results-header {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.results-big-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--fw-black);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.trend-icon {
  margin-top: 5px;
}

.results-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 auto;
}

.results-text strong {
  color: var(--accent-tech);
}

.hero-brands {
  margin-top: var(--space-4xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.hero-brands-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-tiny);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-muted);
}

.hero-brands-list {
  display: flex;
  gap: var(--space-3xl);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85; /* Leggermente attenuato per eleganza su sfondo scuro */
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.brand-item svg {
  display: block;
  width: auto;
  fill: currentColor;
}

.brand-item svg path {
  fill: currentColor;
}

.brand-item:hover {
  opacity: 1;
  transform: scale(1.08) translateY(-2px); /* Zoom in avanti all'hover */
}

/* Colori originali stabili per ciascun brand di default */
.brand-item.brand-sony {
  color: #ffffff; /* Sony è bianco su sfondo scuro */
}

.brand-item.brand-unieuro {
  color: #ffffff;
}
.brand-item.brand-unieuro svg .brand-text {
  fill: #ffffff;
}
.brand-item.brand-unieuro svg .brand-accent {
  fill: #F57B00; /* Cuore arancione Unieuro sempre attivo */
}

.brand-item.brand-ferrero {
  color: #D0A85C; /* Oro Ferrero sempre attivo */
}

.brand-item.brand-gsk {
  color: #F36C21; /* Arancione GSK sempre attivo */
}

/* Align and balance visual weights with custom heights */
.brand-item.brand-sony svg {
  height: 22px;
}
.brand-item.brand-unieuro svg {
  height: 24px;
}
.brand-item.brand-ferrero svg {
  height: 20px;
}
.brand-item.brand-gsk svg {
  height: 26px;
}

/* ==========================================
   2. PROBLEM SECTION (IL DIVARIO)
   ========================================== */
.problem-section {
  background-color: rgba(11, 15, 25, 0.4);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.bottleneck-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.bottleneck-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-normal);
}

.bottleneck-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.bottleneck-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
  color: var(--accent-sale);
  line-height: 1;
}

.bottleneck-content h3 {
  font-size: var(--font-size-h4);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

/* ==========================================
   3. SOLUTION / PILLARS SECTION
   ========================================== */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.promises-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.promise-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.promise-icon {
  color: var(--accent-tech);
  margin-top: 3px;
  flex-shrink: 0;
}

.promise-text strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.promise-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================
   4. THE 4-PHASE PROCESS
   ========================================== */
.process-section {
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.process-step {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); /* Aumentato lo stroke per più visibilità base */
  margin-bottom: var(--space-md);
  transition: -webkit-text-stroke var(--transition-normal), background var(--transition-normal);
}

.process-card:hover .process-step {
  -webkit-text-stroke: 1px var(--accent-tech);
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   5. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .new-hero-layout, .problem-grid, .solution-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }
  
  .hero-profile-container {
    order: -1;
    max-width: 450px;
    margin: var(--space-2xl) auto var(--space-xl) auto; /* Spazio respiro sopra e sotto */
  }
  
  .profile-image-wrapper {
    width: 220px;
    height: 220px;
    margin-bottom: var(--space-xl);
  }
  
  .results-card {
    max-width: 100%;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* Accendiamo le fasi di default su Mobile (poiché non c'è l'hover) */
  .process-step {
    -webkit-text-stroke: 1px var(--accent-tech);
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-brands {
    align-items: center;
    text-align: center;
    margin-top: var(--space-3xl);
  }

  .hero-brands-list {
    justify-content: center;
    gap: var(--space-xl);
  }
}

@media (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }

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

/* ==========================================
   5. PILLOLE DI METODO & VERITÀ SCOMODE (Learnn-Style)
   ========================================== */
.pillole-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(228, 200, 165, 0.05) 0%, transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(4rem, 6vw, 6.5rem) 0;
}

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

.pillole-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pillole-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pillole-tab-btn.active {
  background: #FFFFFF;
  color: #080A0D;
  border-color: #FFFFFF;
  font-weight: 700;
}

.pillola-stage {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.pillola-card-deck {
  position: relative;
}

.pillola-deck-item {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillola-deck-item.active {
  display: block;
  opacity: 1;
}

.pillola-card {
  background: #0E1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 44px 38px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.pillola-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-tech, #E4C8A5), transparent);
}

.pillola-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pillola-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-tech, #E4C8A5);
  background: rgba(228, 200, 165, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(228, 200, 165, 0.2);
}

.pillola-step-counter {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #6B778D;
  letter-spacing: 0.1em;
}

.pillola-slide-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillola-slide-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tech, #E4C8A5);
  margin-bottom: 12px;
  display: block;
}

.pillola-slide-quote {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.pillola-slide-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #A3ADC2;
  margin: 0;
}

.pillola-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pillola-dots {
  display: flex;
  gap: 8px;
}

.pillola-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
}

.pillola-dot.active {
  background: var(--accent-tech, #E4C8A5);
  width: 38px;
}

.pillola-nav-arrows {
  display: flex;
  gap: 10px;
}

.pillola-arrow-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pillola-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: scale(1.05);
}

.pillola-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .pillola-card {
    padding: 28px 22px;
    min-height: 380px;
  }
  .pillole-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .pillole-tab-btn {
    text-align: center;
  }
}
