/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #cc0000;
  --red-dark: #a30000;
  --red-light: #e8000010;
  --gold: #b8972b;
  --gold-light: #f5e9c8;
  --white: #ffffff;
  --off-white: #f9f7f4;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-dark:hover { background: var(--red); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: var(--off-white); }

.btn.full { width: 100%; text-align: center; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border-bottom: 3px solid var(--red);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: var(--red-light);
}
.nav-links a.active {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--red);
  font-size: 1.4rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  color: var(--red);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav-mobile a:hover { background: var(--red-light); }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 540px;
  background: url('assets/ristorante-federico2.jpg') center center / cover no-repeat;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.72) 40%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 300px;
  color: var(--white);
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}
.hero-meta span {
  font-size: 0.95rem;
  opacity: 0.92;
  font-weight: 400;
}

.hero-buttons {
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-buttons-top {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-btn-volunteer {
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

.info .hero-btn-volunteer {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
}

.event-ended-badge {
  margin-top: 1.5rem;
}
.event-ended-badge span {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* HERO CARD */
.hero-card {
  flex: 0 1 420px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--red);
  margin-bottom: 1.25rem;
  text-align: center;
}
.card-section {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.card-section:last-of-type { border-bottom: none; }
.card-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.card-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.card-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
.card-note a {
  color: var(--red);
  text-decoration: underline;
}


/* =============================================
   COUNTDOWN
   ============================================= */
.countdown-section {
  background: var(--red);
  padding: 1.5rem 1rem;
}
.countdown-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.countdown-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.cd-unit span {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}
.cd-unit small {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.2rem;
}
.cd-sep {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.6;
  padding-top: 0.05rem;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-tag.center { display: block; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}
.section-sub.center { text-align: center; }

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 5rem 0;
  background: var(--off-white);
}
.about-grid {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.about-text { flex: 1 1 320px; }
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-stats {
  flex: 1 1 280px;
  border-left: 2px solid var(--red);
  padding-left: 2rem;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  min-width: 80px;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about-stats { border-left: none; border-top: 2px solid var(--red); padding-left: 0; padding-top: 1rem; }
}

/* =============================================
   PROGRAMMA
   ============================================= */
.programma {
  padding: 5rem 0;
  background: var(--white);
}

.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(60px + 1.25rem + 7px); /* time-width + gap + (dot-radius - line-half-width) */
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}
.timeline-time {
  width: 60px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  padding-top: 0.15rem;
  text-align: right;
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
  flex-shrink: 0;
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}
.timeline-content {
  flex: 1;
  padding: 0.1rem 0 0.75rem 1.25rem;
  border-left: 2px solid var(--border);
}
.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .timeline-time { width: 45px; font-size: 0.78rem; }
}

/* =============================================
   INFO (EVENTO SU INVITO)
   ============================================= */
.info {
  padding: 5rem 0;
  background: var(--off-white);
}

.invite-statement {
  max-width: 640px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.invite-statement em {
  font-style: italic;
  color: var(--text);
  font-weight: 600;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.event-detail {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
}
.event-detail:last-child { border-right: none; }
.detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.detail-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}
.detail-value a {
  color: var(--text);
}

@media (max-width: 700px) {
  .event-detail {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
  }
  .event-detail:nth-child(odd) { border-right: 1px solid var(--border); }
  .event-detail:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 420px) {
  .event-detail { flex: 1 1 100%; border-right: none !important; }
  .event-detail:last-child { border-bottom: none; }
}

/* =============================================
   LOCATION
   ============================================= */
.location {
  padding: 5rem 0;
  background: var(--white);
}

.location-grid {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.location-info {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
}
.location-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.location-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.location-map {
  flex: 1 1 400px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--border);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--red);
  padding: 2rem 1rem;
  color: var(--white);
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  font-size: 1.3rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 1; }
.footer-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
}
.footer-links a {
  color: var(--gold-light);
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.8; }
.footer-links span { opacity: 0.5; }
.footer-copy {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-card { flex: 1 1 100%; }
  .about-grid { flex-direction: column; }
  .location-grid { flex-direction: column; gap: 1rem; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; }
  .hero-content { padding: 2rem 1rem; gap: 2rem; }
  .hero-text h1 { font-size: 2.2rem; }
  .timeline::before { display: none; }
  .tickets-grid { flex-direction: column; align-items: center; }
  .ticket-card { max-width: 100%; }
}
