/* Font personalizzati */
@font-face {
  font-family: 'TT Ramillas';
  src:
    url('./fonts/TT-Ramillas-Regular.woff2') format('woff2'),
    url('./fonts/TT-Ramillas-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'TT Ramillas';
  src:
    url('./fonts/TT-Ramillas-Italic.woff2') format('woff2'),
    url('./fonts/TT-Ramillas-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

/* Reset / base generale */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: 'TT Ramillas', 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Navbar generale */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

/* Parte sinistra */
.nav-left {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-left a {
  font-weight: 600;
  color: #0056b3;
  text-decoration: none;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  min-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.nav-left a:hover {
  background-color: #f0f0f0;
  border-color: #0056b3;
}

/* Parte centrale (logo) — posizione assoluta per centrarlo esattamente */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo img {
  height: 78px;
  width: auto;
}

/* Parte destra */
.nav-right {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.nav-right a {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  min-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.nav-hidden {
  display: none !important;
}

.nav-right a:hover {
  background-color: #f8f9fa;
  border-color: #00acc1;
}

/* Home page con sfondo gradient */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #af82f9, #ede1fc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-watermark {
  position: absolute;
  width: 80vw;
  max-width: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

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

.hero-container {
  max-width: 768px;
  text-align: center;
  color: #333;
}

.hero-container h1 {
  font-family: 'TT Ramillas', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #8b1b97;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.6);
  margin-bottom: 1rem;
}

.hero-container h2 {
  font-weight: 900;
  color: #18375d;
}

.hero-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #18375d;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap; /* se vuoi che vada a capo su mobile */
}

.hero-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  color: #af82f9;
  background-color: white;
  border: 2px solid #af82f9;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.hero-button:hover {
  background-color: #af82f9;
  color: white;
  transform: translateY(-2px);
}

/* HOME PAGE */
.page-hero {
  padding: 120px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, #af82f9, #ede1fc);
}

.page-hero h1 {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 2.5rem;
  color: #8b1b97;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.6);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: #18375d;
  font-size: 1.1rem;
}

/* SEZIONE PERCORSI */
.percorsi-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: linear-gradient(180deg, #ede1fc, #e8d5fb);
  padding: 60px 40px;
  min-height: calc(100vh - 70px);
  scroll-margin-top: 70px;
}

.percorsi-titolo-sezione {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 2rem;
  color: #8b1b97;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.3);
  text-align: center;
  margin: 0;
}

.percorsi-colonne {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 960px;
}

.percorso-card {
  flex: 1;
  text-align: center;
  background: rgba(76, 175, 80, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.4);
  border-radius: 12px;
  padding: 32px 28px;
  min-width: 0;
}

.percorso-card:first-child {
  border-right: 1px solid rgba(139, 27, 151, 0.15);
}

.percorso-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.8rem;
  color: #8b1b97;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.3);
  margin-bottom: 1rem;
}

.percorso-testo {
  font-size: 0.95rem;
  color: #18375d;
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto;
}

.percorsi-cta {
  text-align: center;
}

.percorsi-cta .hero-button {
  background-color: rgba(76, 175, 80, 0.15);
  color: #8b1b97;
  border-color: #8b1b97;
}

.percorsi-cta .hero-button:hover {
  background-color: rgba(76, 175, 80, 0.3);
  color: #8b1b97;
}

/* SEZIONE ALESSIA */

.alessia-section {
  background: linear-gradient(180deg, #e8d5fb, #af82f9);
  padding: 60px 40px 80px;
  align-self: stretch;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: -60px;
}

/* STATS BAR */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 60px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 20px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-item:last-child {
  border-right: none;
}

.stat-numero {
  display: block;
  font-family: 'TT Ramillas', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #2e7d32;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* BIO */
.alessia-sezione-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 2rem;
  color: #8b1b97;
  text-align: center;
  padding: 40px 0 0;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.4);
}

.alessia-bio {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 0;
}

.alessia-foto-wrapper {
  flex-shrink: 0;
}

.alessia-foto {
  width: 300px;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.alessia-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 2rem;
  color: #8b1b97;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.4);
  margin-bottom: 1rem;
}

.alessia-desc {
  font-size: 1rem;
  color: #8b1b97;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.alessia-firma {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* LOGHI AFFILIAZIONI */
.loghi-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 40px 40px 0;
  flex-wrap: wrap;
}

.logo-affiliazione {
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.logo-affiliazione:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* SEZIONE CORSI */
.corsi-section {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

/* CARD */
.corso-card {
  width: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: linear-gradient(160deg, #3d8b6e, #af82f9);
}

.card-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.card-body {
  padding: 20px;
  color: white;
}

.card-title {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: white;
}

.card-level {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-info {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.card-address {
  font-size: 0.85rem;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
}

/* LAYOUT STAGE ED EVENTI */
.eventi-layout {
  display: flex;
  gap: 32px;
  padding: 60px 40px;
  align-items: flex-start;
  background-color: #f9f9f9;
}

.eventi-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* CALENDARIO */
.calendario-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.calendario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-nav {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #8b1b97;
  padding: 0 10px;
  transition: transform 0.2s;
}

.cal-nav:hover {
  transform: scale(1.3);
}
.cal-mese {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #8b1b97;
}

.calendario-grid,
.calendario-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendario-grid {
  margin-bottom: 8px;
}

.cal-giorno-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  padding: 4px 0;
}

.cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  cursor: default;
}

.cal-day.vuoto {
  background: transparent;
}

.cal-day.oggi {
  background-color: transparent;
  border: 2px solid #af82f9;
  font-weight: 700;
  color: #8b1b97;
}

.cal-day.has-evento {
  background-color: #d4edda;
  font-weight: 700;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.cal-day.has-stage {
  background-color: #ede1fc;
  font-weight: 700;
  color: #8b1b97;
  border: 2px solid #af82f9;
}

/* CARDS EVENTI */
.eventi-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.evento-card {
  width: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: white;
}

.evento-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  padding: 16px 16px 8px;
  color: #18375d;
  margin: 0;
}

.evento-locandina {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.evento-badge {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.evento-badge-verde {
  background-color: #d4edda;
  color: #2e7d32;
}

.evento-badge-viola {
  background-color: #ede1fc;
  color: #8b1b97;
}

.evento-descrizione {
  padding: 0 16px 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* LEGENDA */
.eventi-legenda {
  width: 200px;
  flex-shrink: 0;
}

.legenda-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.legenda-card h3 {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #8b1b97;
  margin-bottom: 16px;
}

.legenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #333;
}

.legenda-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dot-verde {
  background-color: #4caf50;
}

.dot-viola {
  background-color: #af82f9;
}

.evento-viola {
  border-top: 4px solid #af82f9;
}

.evento-verde {
  border-top: 4px solid #4caf50;
}

/* CARD CLICCABILE */
.evento-card {
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* POPUP OVERLAY */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.popup-overlay.attivo {
  display: flex;
}

.popup-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.popup-locandina {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.popup-body {
  padding: 20px 24px 28px;
}

.popup-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #18375d;
  margin-bottom: 10px;
}

.popup-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.badge-verde {
  background-color: #d4edda;
  color: #2e7d32;
}

.badge-viola {
  background-color: #ede1fc;
  color: #8b1b97;
}

.popup-descrizione {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.popup-btn {
  display: none;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #af82f9, #8b1b97);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.popup-btn.popup-btn-visibile {
  display: inline-block;
}

.popup-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.nessun-evento {
  color: #888;
  font-style: italic;
  font-size: 1rem;
  padding: 20px 0;
}

.popup-descrizione hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

/* SEZIONE CONTATTI */
.contatti-section {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 60px 40px;
  background-color: #f9f9f9;
}

.contatto-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px;
  min-width: 280px;
  flex: 1;
  max-width: 400px;
  text-align: center;
}

.contatto-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #8b1b97;
  margin-bottom: 20px;
}

.contatto-item {
  margin-bottom: 16px;
}

.contatto-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow-wrap: break-word;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.contatto-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contatto-link.instagram:hover {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
  color: white;
  border-color: transparent;
}

.contatto-link.email:hover {
  background-color: #ede1fc;
  border-color: #af82f9;
  color: #8b1b97;
}

.contatto-link.telefono:hover {
  background-color: #d4edda;
  border-color: #4caf50;
  color: #2e7d32;
}

.contatto-icon {
  font-size: 1.2rem;
}

.contatto-icon-svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.envelope-icon-svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(45%) sepia(60%) saturate(500%) hue-rotate(270deg) brightness(85%);
}

.telephone-svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(70%) sepia(40%) saturate(400%) hue-rotate(260deg) brightness(110%);
}

/* BANNER FONDO PAGINA */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #1a0625, #2a0a3a);
  border-top: 1px solid rgba(175, 130, 249, 0.3);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.bottom-banner.visibile {
  transform: translateY(0);
}

.bottom-banner-testo {
  flex: 1;
  min-width: 0;
}

.bottom-banner-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #af82f9;
  margin-bottom: 2px;
}

.bottom-banner-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

.bottom-banner-azioni {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.bottom-banner-btn {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #af82f9;
  border: 2px solid #af82f9;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.bottom-banner-btn:hover {
  background-color: #af82f9;
  color: #1a0625;
  transform: translateY(-2px);
}

.bottom-banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.bottom-banner-close:hover {
  color: white;
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #af82f9, #8b1b97);
  color: white;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 27, 151, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 999;
}

.scroll-top.visibile {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 27, 151, 0.5);
}

/* SEZIONE OFFERTA DETTAGLIATA */
.offerta-section {
  background: linear-gradient(180deg, #ede1fc, #e8d5fb);
  padding: 80px 40px;
}

.offerta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.offerta-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 27, 151, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.offerta-card--wide {
  grid-column: 1 / -1;
}

.offerta-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #8b1b97;
  text-shadow: 0 0 8px rgba(139, 27, 151, 0.15);
  margin-bottom: 0.8rem;
}

.offerta-testo {
  font-size: 0.95rem;
  color: #18375d;
  line-height: 1.85;
  flex: 1;
  margin-bottom: 0;
}

.offerta-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  display: block;
}

.offerta-link {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8b1b97;
  background-color: transparent;
  border: 2px solid #af82f9;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  align-self: flex-start;
}

.offerta-link:hover {
  background-color: #af82f9;
  color: white;
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #2a0a3a, #1a0625);
  color: white;
  padding: 60px 40px 0;
}

.footer-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  flex: 2;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: #af82f9;
  margin-bottom: 8px;
}

.footer-link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #af82f9;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =====================
   PAGINA MATRIMONIO
   ===================== */

.matrimonio-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.matrimonio-hero h1 {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 2.8rem;
  color: #8b1b97;
  text-shadow: 0 0 16px rgba(139, 27, 151, 0.5);
  line-height: 1.25;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.matrimonio-testo-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.matrimonio-intro {
  background: linear-gradient(180deg, #ede1fc, #f5effe);
  padding: 80px 20px;
}

.matrimonio-lead {
  font-size: 1.15rem;
  color: #18375d;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.matrimonio-come {
  background: #f5effe;
  padding: 80px 20px;
}

.matrimonio-sezione-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 2rem;
  color: #8b1b97;
  text-shadow: 0 0 10px rgba(139, 27, 151, 0.3);
  text-align: center;
  margin: 0 0 0.4rem;
}

.matrimonio-sottotitolo {
  font-size: 1.05rem;
  color: #555;
  text-align: center;
  margin-bottom: 3rem;
}

.matrimonio-step {
  margin-bottom: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(139, 27, 151, 0.1);
}

.matrimonio-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.matrimonio-step-titolo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #8b1b97;
  margin-bottom: 0.6rem;
}

.matrimonio-step-avviso {
  background: rgba(175, 130, 249, 0.1);
  border-left: 3px solid #af82f9;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  border-bottom: none;
}

.matrimonio-step-avviso p {
  margin: 0;
  color: #18375d;
  font-size: 1rem;
}

/* VIDEO SECTION */
.matrimonio-video-section {
  background: linear-gradient(180deg, #f5effe, #ede1fc);
  padding: 80px 40px;
  text-align: center;
}

.matrimonio-video-section .matrimonio-sezione-titolo {
  margin-bottom: 48px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  background: #2a0a3a;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.video-card:hover,
.video-card.in-play {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(139, 27, 151, 0.35);
}

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

.video-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(26, 6, 37, 0.85) 0%, transparent 60%);
  transition: opacity 0.35s;
}

.video-card.in-play .video-card-overlay {
  opacity: 0.2;
}

.video-card-nome {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  color: white;
  margin: 0 0 4px;
}

.video-card-canzone {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
}

.video-card-play-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* PLACEHOLDER */
.video-placeholder {
  grid-column: 1 / -1;
  background: rgba(175, 130, 249, 0.1);
  border: 2px dashed rgba(175, 130, 249, 0.4);
  border-radius: 20px;
  padding: 64px 40px;
  max-width: 620px;
  margin: 0 auto;
}

.video-placeholder-testo {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #8b1b97;
  line-height: 1.8;
  margin: 0;
}

/* POPUP COPPIA VIDEO */
.popup-coppia-content {
  max-width: 420px;
  overflow: hidden;
}

.popup-coppia-video {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  display: block;
  background: #1a0625;
}

.popup-canzone {
  font-style: italic;
  font-size: 0.9rem;
  color: #8b1b97;
  margin-bottom: 12px;
}

/* CTA SEZIONE */
.matrimonio-cta-section {
  background: linear-gradient(180deg, #ede1fc, #af82f9);
  padding: 80px 20px;
}

.matrimonio-cta-wrapper {
  text-align: center;
}

.matrimonio-cta-testo {
  font-size: 1.1rem;
  color: #18375d;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.matrimonio-cta-btn {
  font-size: 1rem;
  padding: 1rem 2.8rem;
}

/* SEZIONE FILOSOFIA */
.filosofia-section {
  background: linear-gradient(180deg, #ede1fc, #e8d5fb);
  padding: 80px 20px;
}

.filosofia-container {
  max-width: 720px;
  margin: 0 auto;
}

.filosofia-testo {
  font-size: 1.15rem;
  color: #18375d;
  line-height: 1.9;
  margin-bottom: 1.6rem;
}

.filosofia-finale {
  font-family: 'TT Ramillas', sans-serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #8b1b97;
  text-shadow: 0 0 8px rgba(139, 27, 151, 0.2);
  margin-bottom: 2.4rem;
}

.filosofia-cta {
  text-align: center;
  margin-top: 0.8rem;
}

/* =====================
   HAMBURGER & MOBILE MENU
   ===================== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.aperto span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.aperto span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.aperto span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-top: 2px solid #af82f9;
  display: flex;
  flex-direction: column;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  pointer-events: none;
}

.nav-mobile-menu.aperto {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-link {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s, color 0.2s;
}

.nav-mobile-link:last-child {
  border-bottom: none;
}

.nav-mobile-link:hover,
.nav-mobile-link:active {
  background-color: #ede1fc;
  color: #8b1b97;
}

/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 900px) {
  .alessia-bio {
    gap: 40px;
    padding: 40px 24px 0;
  }

  .alessia-foto {
    width: 240px;
    height: 280px;
  }

  .eventi-layout {
    padding: 40px 20px;
  }

  .footer-content {
    gap: 32px;
  }
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 768px) {
  /* Matrimonio */
  .matrimonio-hero h1 {
    font-size: 1.8rem;
  }

  .matrimonio-intro,
  .matrimonio-come {
    padding: 48px 20px;
  }

  .matrimonio-video-section {
    padding: 48px 16px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .video-placeholder {
    padding: 40px 24px;
  }

  .matrimonio-cta-section {
    padding: 48px 20px;
  }
  /* Navbar */
  .navbar {
    height: 70px;
    flex-wrap: nowrap;
    padding: 0 16px;
    gap: 0;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    order: 0;
  }

  .nav-logo img {
    height: 54px;
  }

  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero-section {
    padding: 100px 20px 40px;
  }

  .hero-container h1 {
    font-size: 1.8rem;
  }

  .hero-container h2 {
    font-size: 1.1rem;
  }

  .hero-container p {
    font-size: 1rem;
  }

  /* Page hero (inner pages) */
  .page-hero {
    padding: 100px 20px 32px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* Filosofia */
  .filosofia-section {
    padding: 48px 20px;
  }

  .filosofia-testo {
    font-size: 1rem;
  }

  .filosofia-finale {
    font-size: 1.2rem;
  }

  /* Percorsi */
  .percorsi-section {
    padding: 32px 20px;
  }

  .percorsi-colonne {
    flex-direction: column;
    gap: 20px;
  }

  .percorso-card {
    min-width: 0;
  }

  /* Statistiche */
  .stats-bar {
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 0;
  }

  .stat-item {
    flex: 1 1 50%;
    padding: 20px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .stat-numero {
    font-size: 2.5rem;
  }

  /* Bio Alessia */
  .alessia-bio {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 20px 0;
  }

  .alessia-foto {
    width: 100%;
    max-width: 300px;
    height: 280px;
  }

  /* Corsi */
  .corsi-section {
    padding: 40px 16px;
  }

  .corso-card {
    width: 100%;
    max-width: 440px;
  }

  /* Stage ed eventi */
  .eventi-layout {
    flex-direction: column;
    padding: 32px 16px;
  }

  .eventi-legenda {
    width: 100%;
  }

  .legenda-card {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .legenda-card h3 {
    margin-bottom: 0;
  }

  .evento-card {
    width: 100%;
  }

  /* Offerta */
  .offerta-section {
    padding: 48px 20px;
  }

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

  /* Contatti */
  .contatti-section {
    padding: 40px 16px;
    flex-direction: column;
    align-items: center;
  }

  .contatto-card {
    max-width: 100%;
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: 48px 20px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  /* Banner fondo */
  .bottom-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 24px;
  }

  .bottom-banner-azioni {
    width: 100%;
    justify-content: flex-start;
  }

  .bottom-banner-close {
    position: absolute;
    top: 14px;
    right: 16px;
  }

  /* Popup */
  .popup-content {
    max-width: 100%;
    width: 95%;
    border-radius: 16px;
  }
}

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #1a0625;
  color: #fff;
  border: 1px solid rgba(175, 130, 249, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  padding: 18px 22px;
  max-width: 920px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 380px;
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 4px;
  color: #af82f9;
  font-size: 0.95rem;
}

.cookie-banner-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.cookie-banner-text a {
  color: #af82f9;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 110px;
}

.cookie-btn-accept {
  background: #af82f9;
  color: #1a0625;
}

.cookie-btn-accept:hover {
  background: #c5a3ff;
}

.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
  }
}

/* Placeholder per la mappa quando bloccata */
.maps-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #2a0a3a, #1a0625);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.maps-placeholder span {
  display: block;
  max-width: 280px;
}

.maps-placeholder a {
  color: #af82f9;
  text-decoration: underline;
  cursor: pointer;
}

/* =====================
   PAGINE LEGALI (privacy / cookie policy)
   ===================== */
.legal-page {
  max-width: 820px;
  margin: 110px auto 60px;
  padding: 0 24px;
  color: #2a0a3a;
}

.legal-page h1 {
  font-family: 'TT Ramillas', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #2a0a3a;
}

.legal-page .legal-updated {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: 'TT Ramillas', sans-serif;
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: #2a0a3a;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: #2a0a3a;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.legal-page ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 0.88rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid #d9d3e6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: #f3eefb;
  color: #2a0a3a;
}

/* Riga dati legali nel footer */
.footer-legal {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 16px 0;
  line-height: 1.6;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

