/* ============================================
   BLOG PAGE STYLES
   ============================================ */

/* Guide Rapide Section */
.guide-rapide-section {
  background-color: #0b0b0b;
  padding: var(--spacing-5xl) 0;
  margin: calc(var(--spacing-6xl) + var(--spacing-lg)) 0 var(--spacing-4xl);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Stile per Desktop/Base (Fuori dalle @media queries) */
.guide-rapide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1400px;
  margin: var(--spacing-2xl) auto var(--spacing-2xl);
}

.guide-card {
  background-color: #f7f1e5;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: var(--spacing-2xl);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

.guide-card:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.guide-card-icon {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.guide-card:hover .guide-card-icon {
  color: #f4d03f;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
}

.guide-card-title {
  font-family: 'Times New Roman', Times, serif;
  color: var(--color-gold);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.guide-card-preview {
  color: #4a4a4a;
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.guide-card-explanation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(247, 241, 229, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 12px;
  padding: var(--spacing-2xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.guide-card:hover .guide-card-explanation {
  opacity: 1;
  visibility: visible;
}

.guide-card-explanation p {
  color: #1f1f1f;
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin: 0;
}

.guide-card-explanation strong {
  color: var(--color-gold);
  font-weight: 600;
}

/* Responsive Blog */
@media (max-width: 768px) {
  .guide-rapide-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) auto var(--spacing-xl);
  }
  
  .guide-card {
    min-height: 240px;
    padding: var(--spacing-lg);
  }
  
  .guide-card-title {
    font-size: var(--font-size-lg);
  }

  .guide-card-preview {
    font-size: var(--font-size-sm);
  }

  .guide-card-explanation p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
  }
}

/* Process Title Styles */
#process-title {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: calc(var(--spacing-3xl) * -1) !important;
}

/* Sfondo panna più chiaro per la sezione "Il Nostro Processo" */
section[aria-labelledby="process-title"] {
  background-color: #faf8f3 !important;
}

#process-title .process-title-line-1,
#process-title .process-title-line-2 {
  display: block;
  line-height: 1.2;
}

#process-title .process-title-line-1 {
  margin-top: var(--spacing-lg);
  margin-bottom: 0.2em;
  border-bottom: none !important;
}

@media (min-width: 769px) {
  #process-title {
    white-space: nowrap;
  }
  
  #process-title .process-title-line-1,
  #process-title .process-title-line-2 {
    display: inline;
  }
  
  #process-title .process-title-line-1::after {
    content: " ";
  }
}

@media (max-width: 768px) {
  #process-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    line-height: 1.3;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  #process-title .process-title-line-1,
  #process-title .process-title-line-2 {
    display: block;
  }
  
  /* Step più compatti su mobile */
  section[aria-labelledby="process-title"] ol li {
    margin-bottom: var(--spacing-lg) !important;
    gap: var(--spacing-md) !important;
  }
  
  section[aria-labelledby="process-title"] ol li > div:first-child {
    width: 50px !important;
    height: 50px !important;
    font-size: var(--font-size-xl) !important;
  }
  
  section[aria-labelledby="process-title"] ol li h3 {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-xs) !important;
  }
  
  section[aria-labelledby="process-title"] ol li p {
    font-size: var(--font-size-sm) !important;
    line-height: 1.5;
  }
}

