/* =============================================
   THE CYBARTENDER - HOMEPAGE CSS
   Architettura modulare professionale
   Design: Magazine premium editoriale
   ============================================= */

/* =============================================
   1. CONTAINERS & LAYOUT
   ============================================= */

.cyb-homepage {
  background-color: #ffffff;
}

.cyb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cyb-container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Spacing */
.cyb-section {
  padding: 90px 0;
}

.cyb-section-sm {
  padding: 60px 0;
}

/* =============================================
   2. ARTICLES SECTION - LAYOUT MAGAZINE
   ============================================= */

.cyb-articles {
  padding: 90px 0;
  background-color: #ffffff;
}

.cyb-articles-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Featured Row: Featured 60% + 2 Stacked 40% */
.cyb-featured-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* Featured Article - DIMENSIONI CORRETTE */
.cyb-featured {
  background: linear-gradient(135deg, #0f0d0b 0%, #1a1410 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 380px; /* RIDOTTO da 450px */
  display: flex;
  flex-direction: column;
}

.cyb-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 45px rgba(184, 66, 10, 0.2);
}

.cyb-featured-img {
  width: 100%;
  height: 210px; /* RIDOTTO da 250px */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cyb-featured:hover .cyb-featured-img {
  transform: scale(1.05);
}

.cyb-featured-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.cyb-featured-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c9963a;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.cyb-featured-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600; /* RIDOTTO da 700 */
  font-size: 1.9rem;
  line-height: 1.15; /* RIDOTTO da 1.25 */
  color: #ffffff;
  margin-bottom: 0.8rem;
  flex: 1;
}

.cyb-featured-title a {
  color: #ffffff;
  text-decoration: none;
}

.cyb-featured-title a:hover {
  color: #c9963a;
}

.cyb-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

/* 2 Stacked Articles */
.cyb-stacked {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cyb-stacked-card {
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 160px 1fr; /* RIDOTTO da 200px */
  gap: 0;
  height: 170px; /* RIDOTTO da 214px */
}

.cyb-stacked-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(184, 66, 10, 0.15);
}

.cyb-stacked-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cyb-stacked-card:hover .cyb-stacked-img {
  transform: scale(1.08);
}

.cyb-stacked-content {
  padding: 1.2rem; /* RIDOTTO da 1.5rem */
  display: flex;
  flex-direction: column;
}

.cyb-stacked-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b8420a;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.cyb-stacked-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600; /* RIDOTTO da 700 */
  font-size: 1.25rem;
  line-height: 1.15; /* RIDOTTO */
  margin-bottom: 0.6rem;
  flex: 1;
}

.cyb-stacked-title a {
  color: #1a1410;
  text-decoration: none;
}

.cyb-stacked-title a:hover {
  color: #b8420a;
}

.cyb-stacked-meta {
  color: #999;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  gap: 0.6rem;
}

/* Grid 2 Colonne (NON 3) */
.cyb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* CAMBIATO da 3 a 2 */
  gap: 2rem;
}

.cyb-card {
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(184, 66, 10, 0.15);
}

.cyb-card-img {
  width: 100%;
  height: 160px; /* RIDOTTO da 200px */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cyb-card:hover .cyb-card-img {
  transform: scale(1.08);
}

.cyb-card-content {
  padding: 1.2rem; /* RIDOTTO da 1.8rem */
}

.cyb-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b8420a;
  margin-bottom: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.cyb-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600; /* RIDOTTO da 700 */
  font-size: 1.3rem;
  line-height: 1.15; /* RIDOTTO */
  margin-bottom: 0.8rem;
}

.cyb-card-title a {
  color: #1a1410;
  text-decoration: none;
}

.cyb-card-title a:hover {
  color: #b8420a;
}

/* Excerpt BREVE (2 righe max) */
.cyb-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cyb-meta {
  color: #999;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  gap: 0.6rem;
}

.cyb-articles-footer {
  text-align: center;
  margin-top: 3rem;
}

/* =============================================
   3. MOST READ SECTION
   ============================================= */

.cyb-most-read {
  padding: 90px 0;
  background-color: #fafafa;
}

.cyb-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cyb-text-center {
  text-align: center;
}

.cyb-most-read-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cyb-most-read-card {
  background-color: #ffffff;
  padding: 1.8rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyb-most-read-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(184, 66, 10, 0.12);
}

.cyb-rank {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #c9963a;
  opacity: 0.3;
}

.cyb-most-read-content {
  flex: 1;
}

.cyb-most-read-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b8420a;
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: inline-block;
}

.cyb-most-read-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.cyb-most-read-title a {
  color: #1a1410;
  text-decoration: none;
}

.cyb-most-read-title a:hover {
  color: #b8420a;
}

.cyb-most-read-meta {
  color: #999;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  gap: 0.5rem;
}

.cyb-most-read-thumb {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
}

.cyb-most-read-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cyb-most-read-card:hover .cyb-most-read-img {
  transform: scale(1.1);
}

/* =============================================
   4. NEWSLETTER SECTION - SLIM 400px MAX
   ============================================= */

.cyb-newsletter {
  background: linear-gradient(135deg, #0f0d0b 0%, #1a1410 50%, #2a2420 100%);
  color: #ffffff;
  padding: 70px 0; /* RIDOTTO */
  position: relative;
}

.cyb-newsletter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(90deg, rgba(201, 150, 58, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(201, 150, 58, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}

.cyb-newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.cyb-label-light {
  color: #c9963a;
}

.cyb-newsletter-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.2rem; /* RIDOTTO da 2.8rem */
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cyb-newsletter-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cyb-newsletter-benefits {
  margin-bottom: 2rem;
}

.cyb-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.cyb-benefits-list li {
  padding-left: 1.8rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cyb-benefits-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #c9963a;
  font-weight: bold;
}

.cyb-newsletter-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.cyb-stat {
  text-align: center;
}

.cyb-stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #c9963a;
  display: block;
  margin-bottom: 0.4rem;
}

.cyb-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'JetBrains Mono', monospace;
}

.cyb-btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.85rem;
}

/* =============================================
   5. RESOURCES SECTION - LAYOUT ORIZZONTALE
   ============================================= */

.cyb-resources {
  padding: 90px 0;
  background-color: #ffffff;
}

.cyb-resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.cyb-resource-card {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyb-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cyb-resource-icon {
  font-size: 4rem;
  text-align: center;
}

.cyb-resource-content {
  flex: 1;
}

.cyb-resource-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #1a1410;
  margin-bottom: 0.8rem;
}

.cyb-resource-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cyb-resource-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  gap: 1.5rem;
}

.cyb-resource-features li {
  padding-left: 1.2rem;
  position: relative;
}

.cyb-resource-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #b8420a;
  font-weight: bold;
}

.cyb-resource-action {
  display: flex;
  align-items: center;
}

.cyb-btn-sm {
  padding: 0.7rem 1.5rem;
  font-size: 0.7rem;
}

.cyb-btn-outline {
  background-color: transparent;
  color: #b8420a;
  border: 2px solid #b8420a;
}

.cyb-btn-outline:hover {
  background-color: #b8420a;
  color: #ffffff;
}

/* =============================================
   6. AUTHOR SECTION
   ============================================= */

.cyb-author {
  padding: 90px 0;
  background-color: #fafafa;
}

.cyb-author-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.cyb-author-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.cyb-author-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2rem;
  color: #1a1410;
  margin-bottom: 1.5rem;
}

.cyb-author-manifesto {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 2rem;
  font-style: italic;
  border-left: 3px solid #b8420a;
  padding-left: 1.8rem;
  quotes: """ """;
}

.cyb-author-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.cyb-credential-item {
  font-size: 0.9rem;
  color: #666;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.cyb-credential-item strong {
  color: #1a1410;
  font-weight: 700;
}

.cyb-author-cta {
  margin-top: 2rem;
}

/* =============================================
   7. SOCIAL PROOF SECTION
   ============================================= */

.cyb-proof {
  padding: 60px 0;
  background-color: #fafafa;
  border-top: 1px solid #e5e5e5;
}

.cyb-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.cyb-proof-item h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #b8420a;
  margin-bottom: 0.5rem;
}

.cyb-proof-item p {
  color: #666;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'JetBrains Mono', monospace;
}

/* =============================================
   8. RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  /* Featured Row */
  .cyb-featured-row {
    grid-template-columns: 1fr;
  }
  
  .cyb-featured {
    height: auto;
  }
  
  .cyb-stacked {
    flex-direction: row;
    gap: 2rem;
  }
  
  /* Grid to 2 columns already */
  
  /* Most Read */
  .cyb-most-read-grid {
    grid-template-columns: 1fr;
  }
  
  /* Resources */
  .cyb-resource-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cyb-resource-features {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Author */
  .cyb-author-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .cyb-author-credentials {
    grid-template-columns: 1fr;
  }
  
  /* Proof */
  .cyb-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cyb-container,
  .cyb-container-wide {
    padding: 0 1.5rem;
  }
  
  /* Section spacing */
  .cyb-section {
    padding: 60px 0;
  }
  
  /* Stacked */
  .cyb-stacked {
    flex-direction: column;
  }
  
  .cyb-stacked-card {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .cyb-stacked-img {
    height: 180px;
  }
  
  /* Grid to 1 column */
  .cyb-grid {
    grid-template-columns: 1fr;
  }
  
  /* Newsletter */
  .cyb-newsletter-title {
    font-size: 1.8rem;
  }
  
  .cyb-benefits-list {
    grid-template-columns: 1fr;
  }
  
  .cyb-newsletter-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Proof */
  .cyb-proof-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
