/* ═══════════════════════════════════════════════════
   style-index.css — Index Page Styles
   Itinerario Napoli · Compleanno Salvatore 2026
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --naples-blue: #1a5276;
  --naples-gold: #d4a843;
  --naples-terracotta: #c0392b;
  --naples-sea: #2e86c1;
  --naples-cream: #fdf6e3;
  --naples-dark: #1c1c1c;
  --timeline-line: #d4a843;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --card-hover: 0 8px 32px rgba(0,0,0,0.12);
}

body {
  font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f6f0;
  color: var(--naples-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   HEADER / HERO
   ═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--naples-blue) 0%, #2e4057 50%, var(--naples-sea) 100%);
  color: white;
  padding: 50px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('asset/maschio-angioino-hero.jpg') center/cover;
  opacity: 0.15;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.25);
  border: 1px solid var(--naples-gold);
  color: var(--naples-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

.hero-meta-item .icon { font-size: 18px; }

/* ═══════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════ */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   INFO BAR
   ═══════════════════════════════════════════════ */
.info-bar {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 24px 32px;
  margin: -30px auto 40px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 750px;
}

.info-item { text-align: center; padding: 8px; }
.info-item .info-icon { font-size: 28px; margin-bottom: 6px; }
.info-item .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  font-weight: 600;
}
.info-item .info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--naples-blue);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   GRUPPO
   ═══════════════════════════════════════════════ */
.group-bar {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 20px 28px;
  margin: 0 auto 40px;
  max-width: 750px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  font-weight: 600;
  flex-shrink: 0;
}

.group-members {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--naples-blue);
  background: #ebf5fb;
  padding: 6px 14px;
  border-radius: 20px;
}

.member.birthday {
  background: linear-gradient(135deg, #fef9e7, #fdebd0);
  border: 1px solid var(--naples-gold);
  color: #b7950b;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════ */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--naples-blue);
  margin: 48px 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--naples-gold);
  display: inline-block;
}

.section-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 32px;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(to bottom, var(--naples-gold), var(--naples-sea), var(--naples-gold));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  page-break-inside: avoid;
}

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

.timeline-dot {
  position: absolute;
  left: -48px;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dot-transport { background: var(--naples-sea); color: white; }
.dot-food { background: #e74c3c; color: white; }
.dot-sight { background: var(--naples-gold); color: white; }
.dot-walk { background: #27ae60; color: white; }
.dot-start { background: var(--naples-blue); color: white; }

.timeline-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.timeline-card:hover { box-shadow: var(--card-hover); }

.card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--naples-blue);
  white-space: nowrap;
  line-height: 1;
}

.card-time-alt {
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #e67e22;
  margin-top: 4px;
  letter-spacing: 0;
}

.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.tag-transport { background: #ebf5fb; color: var(--naples-sea); }
.tag-food { background: #fdedec; color: #e74c3c; }
.tag-sight { background: #fef9e7; color: #b7950b; }
.tag-walk { background: #eafaf1; color: #1e8449; }
.tag-start { background: #ebedef; color: var(--naples-blue); }

.card-body { padding: 12px 24px 20px; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--naples-dark);
  margin-bottom: 6px;
}

.card-route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.route-arrow { color: var(--naples-gold); font-weight: 700; }

.card-desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
}

.card-tip {
  background: #fef9e7;
  border-left: 3px solid var(--naples-gold);
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: #7d6608;
}

.card-tip strong { color: #b7950b; }

.card-link {
  display: block;
  text-align: right;
  padding: 4px 24px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--naples-sea);
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover { color: var(--naples-blue); }

/* ═══════════════════════════════════════════════
   CARD QUICK LINKS
   ═══════════════════════════════════════════════ */
.card-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 24px 6px;
  border-top: 1px solid #f0ede6;
}

.card-qlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f8f6f1;
  border: 1px solid #e8e4db;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--naples-sea);
  text-decoration: none;
  transition: all 0.2s;
}

.qlink-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-qlink:hover {
  background: var(--naples-sea);
  color: #fff;
  border-color: var(--naples-sea);
}

/* ═══════════════════════════════════════════════
   TODOS
   ═══════════════════════════════════════════════ */
.card-todos {
  padding: 10px 24px 14px;
  border-top: 1px solid #f0ede6;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
  color: #555;
  line-height: 1.4;
}

.todo-item.done { color: #888; text-decoration: line-through; text-decoration-color: #ccc; }

.todo-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-todo { background: #fef3e2; color: #e67e22; }
.badge-done { background: #eafaf1; color: #27ae60; }
.badge-doing { background: #ebf5fb; color: var(--naples-sea); }

/* ═══════════════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════════════ */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.checklist-category {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.checklist-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--naples-blue);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ede6;
}

/* ═══════════════════════════════════════════════
   METRO ROUTE (inline nelle card)
   ═══════════════════════════════════════════════ */
.metro-route {
  background: linear-gradient(135deg, #1a5276, #2e86c1);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 14px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
}

.metro-route .stop { opacity: 0.7; padding: 2px 0; }

.metro-route .stop.active {
  background: white;
  color: var(--naples-blue);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  opacity: 1;
  font-size: 12px;
}

.metro-route .arrow { opacity: 0.5; font-size: 10px; }

.metro-route-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  width: 100%;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   LINK UTILI
   ═══════════════════════════════════════════════ */
.links-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.link-card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-1px);
}

.link-icon { font-size: 28px; flex-shrink: 0; }

.link-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.link-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--naples-blue);
  margin-bottom: 2px;
}

.link-text p { font-size: 12px; color: #888; }

.link-arrow { margin-left: auto; color: #ccc; font-size: 18px; }

/* ═══════════════════════════════════════════════
   FOOTER / NOTES
   ═══════════════════════════════════════════════ */
.footer-section {
  margin: 48px 0 0;
  padding: 32px 0;
  border-top: 2px solid #e8e4da;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.tip-card {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.tip-card .tip-icon { font-size: 24px; margin-bottom: 8px; }

.tip-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--naples-blue);
  margin-bottom: 4px;
}

.tip-card p {
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   CLOSING FOOTER
   ═══════════════════════════════════════════════ */
.page-footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: #aaa;
  font-size: 12px;
}

.page-footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--naples-blue);
  margin-bottom: 4px;
}

.page-footer .footer-wave {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════
   LANGUAGE SWITCH
   ═══════════════════════════════════════════════ */
.lang-switch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  color: var(--naples-blue);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

.lang-switch:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════ */
@media print {
  body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero { padding: 30px 20px 25px; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .container { max-width: 100%; padding: 0 20px; }
  .info-bar { margin: -20px auto 24px; padding: 16px 20px; }
  .group-bar { margin-bottom: 24px; padding: 14px 20px; }
  .timeline-item { margin-bottom: 20px; }
  .card-header { padding: 14px 18px 0; }
  .card-body { padding: 8px 18px 14px; }
  .card-time { font-size: 22px; }
  .card-title { font-size: 17px; }
  .card-photo { height: 160px; }
  .timeline-card { box-shadow: 0 1px 4px rgba(0,0,0,0.1); border: 1px solid #eee; }
  .section-title { margin-top: 32px; font-size: 24px; }
  .metro-route { padding: 10px 14px; }
  .link-card { box-shadow: none; border: 1px solid #eee; }
  .tips-grid { gap: 12px; }
  .tip-card { padding: 14px 16px; box-shadow: none; border: 1px solid #eee; }
  .page-footer { padding: 20px 24px 30px; }
  .timeline-item { page-break-inside: avoid; }
  .footer-section { page-break-inside: avoid; }
  .lang-switch { display: none; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .info-bar { grid-template-columns: 1fr; gap: 12px; }
  .tips-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .metro-route { font-size: 11px; }
  .group-bar { flex-direction: column; align-items: flex-start; }
  .checklist-grid { grid-template-columns: 1fr; }
  .lang-switch { bottom: 16px; right: 16px; font-size: 12px; padding: 6px 14px; }
}
