/* VARIABILI COLORI E TIPOGRAFIA */
:root {
  --bg-navy: #0B1739;
  --accent-red: #C93B48;
  --accent-gold: #D5BE70;
  --text-white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Barlow Condensed', Arial, sans-serif;
}

/* RESET DI BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-navy);
  color: var(--text-white);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* HEADER LOGHI */
.site-header {
  padding: 24px 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logos-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.6);
}

/* SEZIONE PRINCIPALE (HERO) */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.hero-title-container {
  max-width: 580px;
  width: 90%;
  margin: 10px auto 16px;
  text-align: center;
}

.hero-title-art {
  width: 100%;
  height: auto;
  display: block;
}

/* PULSANTE CTA (STILE DESKTOP) */
.cta-wrapper {
  margin-bottom: 10px;
  z-index: 2;
}

.btn-programma {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--accent-red);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-programma:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background-color: #e0ca7d;
}

/* ILLUSTRAZIONE PAESAGGIO */
.hero-illustration-container {
  width: 100%;
  max-width: 1500px;
  margin-top: -15px; /* Avvicina leggermente Babbo Natale al pulsante */
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* FOOTER (STILE DESKTOP) */
.site-footer {
  background-color: var(--accent-red);
  color: var(--text-white);
  width: 100%;
  margin-top: auto;
}

.footer-desktop {
  max-width: 1800px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-desktop a {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-desktop a:hover {
  opacity: 0.85;
}

.footer-desktop .sep {
  margin: 0 6px;
  opacity: 0.8;
}

.footer-mobile {
  display: none;
}

/* =========================================
   ADATTAMENTO MOBILE (PAGINA 2 DEL PDF)
   ========================================= */
@media (max-width: 768px) {
  .site-header {
    padding: 28px 16px 12px;
  }

  .logo-img {
    height: 46px;
  }

  .hero-title-container {
    width: 94%;
    margin-bottom: 0;
  }

  /* L'illustrazione va sopra la fascia del pulsante */
  .hero-illustration-container {
    order: 2;
    margin-top: 10px;
  }

  /* La CTA diventa una fascia piena color oro senape sotto l'illustrazione */
  .cta-wrapper {
    order: 3;
    width: 100%;
    background-color: var(--accent-gold);
    padding: 22px 20px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
  }

  .btn-programma {
    width: 100%;
    max-width: 360px;
    text-align: center;
    background-color: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 1.25rem;
    padding: 14px 20px;
  }

  .btn-programma:hover {
    background-color: var(--accent-red);
    color: var(--accent-gold);
    transform: none;
    box-shadow: none;
  }

  /* Nasconde il footer desktop e attiva quello mobile */
  .footer-desktop {
    display: none;
  }

  .footer-mobile {
    display: block;
    padding: 22px 24px 36px;
  }

  .mobile-copyright {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 24px;
    opacity: 0.95;
  }

  .mobile-contacts-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 16px;
  }

  .mobile-contacts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
    font-size: 1.15rem;
  }

  .mobile-contacts-list li {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-contacts-list svg {
    width: 18px;
    height: 18px;
    fill: var(--text-white);
    flex-shrink: 0;
  }

  .mobile-contacts-list a {
    color: var(--text-white);
    text-decoration: none;
    word-break: break-word;
  }

  .mobile-legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1.15rem;
  }

  .mobile-legal-links a {
    color: var(--text-white);
    text-decoration: underline;
  }
}

/* =========================================
   PAGINA PROGRAMMA
   ========================================= */

/* Font del volantino: caricare i file in /fonts (se mancano si usano i fallback) */
/* Persephone (file in /fonts); Prata e Montserrat da Google Fonts */
@font-face {
  font-family: 'Persephone';
  src: url('/fonts/Persephone.woff2') format('woff2'), url('/fonts/Persephone.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.pagina-programma {
  --prog-green: #3C9E6C;
  --font-titoli: 'Persephone', 'Prata', Georgia, serif;
  --font-caps: 'Persephone', 'Prata', Georgia, serif;
  --font-testo: 'Prata', Georgia, serif;
  --font-note: 'Montserrat', Arial, sans-serif;
}

.programma {
  flex: 1;
  width: 92%;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 56px;
  text-align: center;
  font-family: var(--font-testo);
  font-size: 1.2rem;
  line-height: 1.8;
}

.prog-logo {
  display: block;
  max-width: 460px;
  margin: 6px auto 22px;
}

.prog-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.prog-periodo {
  font-family: var(--font-caps);
  text-transform: uppercase;
  color: var(--accent-gold);
  font-size: 1.75rem;
  line-height: 1.15;
}

.prog-titolo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 34px;
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prog-titolo::before,
.prog-titolo::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red));
}

.prog-titolo::after {
  background: linear-gradient(90deg, var(--accent-red), transparent);
}

.prog-loc + .prog-loc {
  margin-top: 64px;
}

.prog-loc-nome {
  font-family: var(--font-titoli);
  font-weight: 400;
  color: var(--accent-red);
  font-size: 2.4rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.prog-loc-luogo {
  font-family: 'Prata', Georgia, serif;
  color: var(--prog-green);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.prog-fisse {
  margin-top: 28px;
}

.prog-fisse-label {
  font-family: var(--font-caps);
  text-transform: uppercase;
  color: var(--accent-gold);
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.prog-fissa-titolo,
.prog-giorno-titolo {
  font-family: var(--font-caps);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.55rem;
  line-height: 1.15;
}

.prog-fisse .prog-voce + .prog-voce {
  margin-top: 20px;
}

.prog-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 30px;
  font-family: var(--font-caps);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.prog-sep::before,
.prog-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.45);
}

.prog-giorno {
  margin-top: 30px;
}

.prog-fisse + .prog-giorno,
.prog-loc-luogo + .prog-giorno,
.prog-loc > .prog-note + .prog-giorno {
  margin-top: 34px;
}

.prog-ora {
  font-family: var(--font-caps);
  text-transform: uppercase;
  color: var(--accent-gold);
  font-size: 1.05rem;
  margin-top: 4px;
}

.prog-voce-titolo {
  font-size: 1.25rem;
}

.prog-sotto {
  font-size: 1.15rem;
}

.prog-note {
  font-family: var(--font-note);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 2px;
  opacity: 0.95;
}

.prog-vuoto {
  font-size: 1.2rem;
  opacity: 0.85;
}

.prog-pdf {
  margin-top: 56px;
}

.prog-pdf a {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  border: 2px solid var(--accent-gold);
  border-radius: 50px;
  padding: 11px 26px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.prog-pdf a:hover {
  background-color: var(--accent-gold);
  color: var(--accent-red);
}

@media (max-width: 768px) {
  .programma {
    font-size: 1.1rem;
  }

  .prog-logo {
    max-width: 320px;
  }

  .prog-periodo {
    font-size: 1.35rem;
  }

  .prog-loc-nome {
    font-size: 1.9rem;
  }

  .prog-loc-luogo {
    font-size: 1.05rem;
  }

  .prog-fissa-titolo,
  .prog-giorno-titolo {
    font-size: 1.3rem;
  }

  .prog-loc + .prog-loc {
    margin-top: 52px;
  }
}
