/* ==========================================================================
   SYNOVIAFLEX (SYF) - PAGES STYLESHEET
   Page-specific layouts for Index, Story, Formula, Checkout, Articles, Thanks
   ========================================================================== */

/* ==========================================================================
   HOMEPAGE / SCIENTIFIC MANIFESTO (INDEX.HTML)
   ========================================================================== */
.hero-manifesto {
  padding: 60px 0 80px;
  background: radial-gradient(circle at top right, #f0fdfa 0%, #ffffff 70%);
}

.hero-manifesto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.doctor-badge-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.doctor-badge-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.doctor-badge-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.manifesto-headline {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.manifesto-headline span.highlight {
  color: var(--primary);
  position: relative;
}

.manifesto-lead-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.manifesto-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.manifesto-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bullet-icon-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-visual-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hero-visual-card img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.hero-floating-quote {
  position: absolute;
  bottom: -24px;
  left: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  font-size: 0.85rem;
  line-height: 1.4;
  border-left: 4px solid var(--primary-light);
}

.hero-floating-quote p {
  font-style: italic;
  margin-bottom: 4px;
}

.hero-floating-quote cite {
  font-size: 0.75rem;
  color: #5eead4;
  font-style: normal;
  font-weight: 700;
}

/* Infographic Anatomy Section */
.anatomy-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-top: 36px;
}

/* Fast Navigation Gateway Blocks */
.nav-gateways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gateway-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gateway-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.gateway-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.gateway-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gateway-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.gateway-arrow-link {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   STORIA PAGE (STORIA.HTML)
   ========================================================================== */
.story-header {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  text-align: center;
}

.story-lead-quote {
  max-width: 840px;
  margin: 0 auto 36px;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin: 48px 0;
}

.story-text-col {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.story-text-col p {
  margin-bottom: 20px;
}

.story-text-col h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

/* Lab Photo Caption Card */
.lab-photo-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}

.lab-photo-card img {
  border-radius: var(--radius-sm);
  width: 100%;
}

.lab-photo-caption {
  padding: 14px 4px 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
  margin-top: 12px;
}

.lab-photo-caption strong {
  color: var(--text-primary);
}

/* Recovery Journal (Diario Clinico) */
.recovery-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
  position: relative;
}

.recovery-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 27px;
  width: 3px;
  background: #ccfbf1;
}

.timeline-step {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-step-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
  z-index: 2;
}

.timeline-step-badge span {
  font-size: 1.15rem;
  line-height: 1;
}

.timeline-step-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.timeline-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FORMULA PAGE (FORMULA.HTML)
   ========================================================================== */
.ingredient-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 40px 0;
}

.ingredient-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.ingredient-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ingredient-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.ingredient-dose {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary);
}

.ingredient-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ingredient-bio-action {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.ingredient-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Posology Box */
.posology-card {
  background: linear-gradient(135deg, #0f2b3c 0%, #042f2e 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin: 48px 0;
}

.posology-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #5eead4;
}

.posology-text p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.posology-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.posology-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.posology-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   CHECKOUT PAGE (CARRELLO.HTML)
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin: 40px 0;
}

.checkout-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.checkout-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* Payment Method Selector */
.payment-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.payment-opt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-opt-card.selected {
  border-color: var(--primary);
  background: var(--bg-tertiary);
}

.payment-radio {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.payment-info {
  flex: 1;
}

.payment-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.payment-badge-free {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--success);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

.payment-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trust Badges Bar */
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   ORDER SUCCESS / THANK YOU PAGE (GRAZIE.HTML)
   ========================================================================== */
.thankyou-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 40px auto;
}

.thankyou-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.thankyou-check-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 16px;
  border: 3px solid #a7f3d0;
}

.thankyou-order-id {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 6px;
}

.thankyou-order-id span {
  color: var(--primary);
}

.delivery-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
  text-align: center;
}

.timeline-bar-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 12px;
}

.timeline-bar-step.done {
  background: var(--bg-tertiary);
  border-color: var(--primary-light);
}

.timeline-step-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.timeline-step-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.timeline-step-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Personal Letter by Dr.ssa Francesca Lombardi */
.doctor-letter-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 36px;
}

.doctor-letter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.doctor-letter-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.doctor-letter-author {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.doctor-letter-role {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.doctor-letter-content {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.doctor-letter-content h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 18px 0 6px;
}

/* ==========================================================================
   SCIENTIFIC ARTICLE PAGE (ARTICOLI)
   ========================================================================== */
.article-header {
  padding: 60px 0 30px;
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.article-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-callout {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.article-references {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-references ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-manifesto-grid,
  .story-two-col,
  .posology-card,
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nav-gateways-grid,
  .ingredient-matrix-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .manifesto-headline {
    font-size: 2rem;
  }
  .article-title {
    font-size: 1.8rem;
  }
  .thankyou-card {
    padding: 24px;
  }
  .delivery-timeline {
    grid-template-columns: 1fr;
  }
}
