/* ═══════════════════════════════════════════════
   AVVENTOHOME PAGE STYLES
   ════════════════════════════════════════════════ */

.page-avventohome .header {
  background: var(--dark);
  padding: 10px 0;
}

/* Page Header */
.avventohome-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 60%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.avventohome-header .page-title {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.avventohome-header .page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.page-header-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════
   PHOTO GALLERY — 3 Grid
   ════════════════════════════════════════════════ */
.gallery-section {
  background: var(--white);
  padding: 80px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-50);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* First image spans 2 rows on the left */
.gallery-item-tall {
  grid-row: 1 / 3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════
   HISTORY / TIMELINE
   ════════════════════════════════════════════════ */
.history-section {
  background: var(--off-white);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

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

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 0;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dot on the timeline */
.timeline-marker::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-glow);
  display: block;
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
  position: absolute;
  left: 40px;
  top: -3px;
}

.timeline-content {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  margin-top: 32px;
}

.timeline-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   WHAT'S GOING ON — HAPPENINGS
   ════════════════════════════════════════════════ */
.happenings-section {
  background: var(--white);
}

.happenings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.happening-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.happening-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.happening-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--gray-50);
}

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

.happening-card:hover .happening-img img {
  transform: scale(1.06);
}

.happening-info {
  padding: 28px 24px;
}

.happening-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.happening-info p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item-tall {
    grid-row: auto;
  }

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

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -30px;
  }

  .timeline-year {
    left: 30px;
    font-size: 0.75rem;
  }

  .timeline-content {
    padding: 24px 20px;
  }
}
