/* ============================================
   CIVICO23 — Vintage / Retro 70s-80s Theme
   ============================================ */

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

:root {
  --bg: #fdf6ec;
  --bg-warm: #f5e6d0;
  --ink: #3c2415;
  --ink-light: #6b5344;
  --burnt: #c45d3e;
  --mustard: #d4953a;
  --olive: #5b8a5e;
  --denim: #6b7fb5;
  --plum: #9b5e8a;
  --cream: #fff8f0;
  --font-display: 'Righteous', cursive;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--burnt); text-decoration: none; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(60, 36, 21, 0.12);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--burnt);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  background: var(--burnt);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 40px;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.jpg') center center / cover no-repeat;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(196,93,62,0.6) 0%, rgba(212,105,58,0.5) 30%, rgba(212,149,58,0.5) 70%, rgba(201,168,74,0.4) 100%);
}

.hero-sunburst {
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(255,255,255,0.04) 0deg 10deg,
      transparent 10deg 20deg
    );
  animation: sunburst-rotate 60s linear infinite;
}

@keyframes sunburst-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  margin-bottom: 24px;
}

.hero-badge-inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}

.hero-badge-top {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}

.hero-23 {
  color: var(--mustard);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  letter-spacing: 0.05em;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-arrow {
  animation: bounce 2s infinite;
}

.hero-arrow a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.hero-arrow a:hover { color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.retro-divider {
  text-align: center;
  margin: 16px 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.retro-divider::before,
.retro-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--burnt), transparent);
}

.retro-divider span {
  color: var(--burnt);
  font-size: 1.2rem;
}

/* --- Chi Siamo --- */
.chi-siamo-content {
  max-width: 700px;
  margin: 0 auto;
}

.chi-siamo-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px 40px;
  position: relative;
  box-shadow: 6px 6px 0 var(--mustard);
}

.chi-siamo-text {
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: center;
  color: var(--ink);
}

/* --- Band Photo --- */
.band-photo {
  max-width: 700px;
  margin: 0 auto 36px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--burnt);
  position: relative;
}

.band-photo-bw {
  display: block;
  width: 100%;
  height: auto;
}

.band-photo-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.4s ease, clip-path 0.4s ease;
}

.band-photo.highlight-levorato .band-photo-color {
  opacity: 1;
  clip-path: inset(0 33% 0 55%);
}

.band-photo.highlight-marchesi .band-photo-color {
  opacity: 1;
  clip-path: inset(0 45% 0 35%);
}

.band-photo.highlight-pomarolli .band-photo-color {
  opacity: 1;
  clip-path: inset(0 0 0 85%);
}

.band-photo.highlight-sato .band-photo-color {
  opacity: 1;
  clip-path: inset(0 66% 0 18%);
}

.band-photo.highlight-colotti .band-photo-color {
  opacity: 1;
  clip-path: inset(0 15% 0 66%);
}

.band-photo.highlight-caterina-colotti .band-photo-color {
  opacity: 1;
  clip-path: inset(0 81% 0 0);
}

.band-note-member {
  cursor: default;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* --- Band Grid --- */
.band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.band-card {
  text-align: center;
  padding: 16px 8px 14px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.band-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(60, 36, 21, 0.15);
}

.band-card-vinyl {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  transition: transform 0.6s;
}

.band-card:hover .band-card-vinyl {
  transform: rotate(360deg);
}

.band-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--ink);
}

.band-card-role {
  font-size: 0.75rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.band-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 28px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Timeline --- */
.timeline {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--burnt);
  border-radius: 3px;
}

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

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mustard);
  border: 3px solid var(--burnt);
}

.timeline-item:nth-child(2) .timeline-dot { background: var(--olive); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--denim); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--plum); }

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--burnt);
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.timeline-content p {
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-content em {
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
}

/* --- Album --- */
.album-showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.album-vinyl-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.album-vinyl-bg {
  position: absolute;
  top: 0;
  left: 30px;
  width: 260px;
  height: 260px;
  animation: vinyl-spin 8s linear infinite paused;
}

.album-vinyl-wrapper:hover .album-vinyl-bg {
  animation-play-state: running;
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.album-sleeve {
  position: relative;
  z-index: 2;
  width: 260px;
  filter: drop-shadow(6px 6px 0 rgba(60, 36, 21, 0.25));
}

.album-art {
  width: 100%;
  border-radius: 6px;
  border: 3px solid var(--ink);
}

.album-description {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--ink-light);
}

.album-tracks h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.album-tracks ol {
  list-style: none;
}

.album-tracks li {
  padding: 10px 0;
  border-bottom: 2px solid rgba(60, 36, 21, 0.08);
  font-size: 0.95rem;
}

.track-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--burnt);
  color: var(--cream);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.track-note {
  color: var(--ink-light);
  font-size: 0.85rem;
}

.streaming-links {
  margin-top: 28px;
}

.streaming-links h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.album-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 28px;
}

.streaming-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.btn-stream {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  transition: all 0.2s;
}

.btn-stream:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-spotify:hover { background: #1DB954; color: #fff; border-color: #1DB954; }
.btn-apple:hover { background: #fc3c44; color: #fff; border-color: #fc3c44; }
.btn-soundcloud:hover { background: #ff5500; color: #fff; border-color: #ff5500; }
.btn-youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }

/* --- Eventi --- */
.eventi-list {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.evento-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.evento-card:hover {
  transform: translateX(4px);
  box-shadow: -4px 4px 0 var(--burnt);
}

.evento-card:nth-child(3n+2) { border-left: 6px solid var(--olive); }
.evento-card:nth-child(3n+3) { border-left: 6px solid var(--denim); }
.evento-card:nth-child(3n+4) { border-left: 6px solid var(--mustard); }

.eventi-year-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--burnt);
  margin: 12px 0 0;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--burnt);
}

.eventi-year-heading:first-child {
  margin-top: 0;
}

.evento-date {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--burnt);
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
}

.evento-details h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.evento-details p {
  color: var(--ink-light);
  font-size: 0.9rem;
}

.evento-card-cta {
  border: 3px dashed var(--burnt);
  background: #fff8f0;
}

.btn-evento-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cream);
  background: var(--burnt);
  border-radius: 24px;
  transition: background 0.2s;
}

.btn-evento-cta:hover {
  background: var(--ink);
}

/* --- Contatti --- */
.contatti-content {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.contatti-text {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--ink-light);
}

.contatti-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  transition: all 0.2s;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-instagram:hover { background: #E1306C; color: #fff; border-color: #E1306C; }
.btn-email:hover { background: var(--burnt); color: var(--cream); border-color: var(--burnt); }

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg);
}

.footer-logo span { color: var(--mustard); }

.footer-copy {
  font-size: 0.85rem;
  color: rgba(253, 246, 236, 0.6);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social a {
  color: rgba(253, 246, 236, 0.6);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--mustard);
  transform: scale(1.15);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 4px;
    border-bottom: 3px solid var(--ink);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open { transform: translateY(0); }

  .hero { min-height: 90vh; padding-top: 64px; }

  .hero-badge-inner {
    width: 170px;
    height: 170px;
  }

  .hero-title { font-size: 2.4rem; }

  .section { padding: 60px 0; }

  .band-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .album-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .album-vinyl-wrapper {
    margin: 0 auto;
    width: 240px;
    height: 240px;
  }

  .album-sleeve { width: 220px; }
  .album-vinyl-bg { width: 220px; height: 220px; }

  .evento-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 20px;
  }

  .chi-siamo-card {
    padding: 24px 20px;
    box-shadow: 4px 4px 0 var(--mustard);
  }

  .timeline { padding-left: 40px; }
  .timeline-dot { left: -32px; width: 14px; height: 14px; }

  .streaming-buttons { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .btn-stream { width: 100%; justify-content: center; }

  .contatti-links { flex-direction: column; align-items: center; }
  .btn-contact { width: 100%; max-width: 280px; justify-content: center; }
}
