/* ===== BASE ===== */
body {
  margin: 0;
  font-family: Lato, Arial, sans-serif;
  background: #fffaf5;
  color: #24323a;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Montserrat, Arial, sans-serif;
  margin: 0 0 12px;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
}
/* NAV su una sola riga e link sempre visibili */
header nav{
  white-space: nowrap;          /* impedisce il ritorno a capo dei link */
}
header nav a{
  display: inline-block;        /* evita collassi strani di inline puro */
  vertical-align: middle;
}

/* MENU HEADER (desktop default) */
header nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #24323a;
  font-weight: 600;
  font-size: 1.2em;
}

/* Migliora leggibilità su mobile (generale) */
@media (max-width: 992px) {
  header nav a {
    font-size: 1.1em;
    margin: 0 8px;
  }
}

/* ===== HERO ===== */
.hero { text-align: center; padding: 60px 20px; }
.hero img {
  max-width: 100%; height: auto; max-height: 350px;
  margin: 20px auto; display: block; border-radius: 12px;
}
.hero-buttons { margin-top: 15px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-buttons .btn { flex: 1 1 45%; max-width: 200px; min-width: 140px; padding: 12px 20px; border-radius: 30px; text-align: center; font-weight: bold; white-space: nowrap; text-decoration: none; }
.btn.primary { background: #2fa79b; color: #fff; }
.btn.alt     { background: #f2695c; color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 60px 20px; max-width: 1000px; margin: auto; }

/* ===== CARDS (CORSI) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; margin-top: 20px; }
.card {
  border-radius: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
}
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.card.mbsr     { background: linear-gradient(135deg, #00796b, #009688); }
.card.intro    { background: linear-gradient(135deg, #6a1b9a, #9c27b0); }
.card.sessioni { background: linear-gradient(135deg, #e91e63, #ad1457); }
.cards .card h3 { font-size: 1.3rem; margin: 15px 0 10px; }
.cards .card p  { flex-grow: 1; padding: 0 15px; font-size: 0.95rem; }
.cards .card a.btn { display: inline-block; margin: 15px auto 20px; padding: 10px 20px; border-radius: 25px; background: #fff; color: #333; font-weight: bold; text-decoration: none; transition: background 0.3s ease, color 0.3s ease; }
.cards .card a.btn:hover { background: #333; color: #fff; }

/* ===== ABOUT ===== */
.about-container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.about-container img { max-width: 220px; border-radius: 50%; }
.about-text { max-width: 500px; }

/* ===== FOOTER ===== */
footer { padding: 20px; text-align: center; color: #5b6b73; font-size: .9em; background: #fafafa; margin-top: 40px; }

/* ===== CONTACT BUTTONS ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-top: 20px; }
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; font-weight: bold; text-decoration: none; color: #fff; transition: .2s; }
.contact-btn:hover { opacity: .85; }
.contact-btn.email    { background: #0073e6; }
.contact-btn.phone    { background: #00b894; }
.contact-btn.whatsapp { background: #25D366; }
.contact-btn.instagram{ background: #E1306C; }
.contact-btn.telegram { background: #0088cc; }

/* ===== VIDEO CONTAINER ===== */
.video-container { max-width: 800px; margin: 20px auto; }

/* ===== NEWSLETTER ===== */
#newsletter { background: #f7f0e9; padding: 60px 20px; text-align: center; border-radius: 8px; margin: 60px auto; max-width: 500px; }
#newsletter h2 { margin-bottom: 12px; font-size: 1.4rem; }
#newsletter p  { margin-bottom: 24px; color: #555; }
#newsletter form { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
#newsletter input[type="email"] { padding: 12px; font-size: 1em; flex: 1 1 250px; max-width: 300px; border: 1px solid #ccc; border-radius: 4px; }
#newsletter button { padding: 12px 24px; font-size: 1em; background-color: #2c8f8c; color: white; border: none; border-radius: 4px; cursor: pointer; flex: 0 0 auto; }
#newsletter button:hover { background-color: #256f6c; }
#newsletter .nl-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 8px;
}

#newsletter input[type="text"]{
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (max-width: 480px){
  #newsletter .nl-grid{ grid-template-columns: 1fr; }
}

#newsletter .consenso{
  display:block;
  margin-top:12px;
  font-size:0.95em;
  color:#555;
  text-align:left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

#newsletter .consenso input{ margin-right:8px; }

#newsletter .consenso a{
  color:#2c8f8c;
  text-decoration: underline;
}

/* Instagram follow */
.follow-instagram { text-align: center; margin-top: 40px; }
.follow-instagram p { font-size: 1.2rem; font-weight: bold; margin-bottom: 14px; }
.instagram-btn { display: inline-block; padding: 10px 20px; background: #E1306C; color: white; border-radius: 25px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.instagram-btn:hover { background: #c2275a; }

/* ===== SEZIONE MEDITAZIONE ===== */
.meditazione-section { text-align: center; margin: 40px auto; max-width: 800px; padding: 0 20px; }
.meditazione-section h1, .meditazione-section p { text-align: center; margin: 0 auto 20px; max-width: 700px; line-height: 1.6; }
.meditazione-section video { display: block; margin: 20px auto; width: 100%; max-width: 600px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ===== RESPONSIVE (extra) ===== */
@media (max-width: 768px) {
  header nav a { font-size: 1.2rem !important; padding: 14px 10px !important; }
  .hero img { max-height: 220px; }
  .about-container { flex-direction: column; text-align: center; }
  .about-container img { max-width: 180px; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-btn { font-size: 0.9em; padding: 10px; }
  #newsletter { max-width: 90%; padding: 40px 15px; }
}

/* ===== SEZIONE CHI SONO ===== */
.about-text { font-size: 1.25rem; line-height: 1.6; }
.about-text p { font-size: 1.25rem; line-height: 1.6; }
.about-container .btn { font-size: 1.1rem; padding: 14px 28px; }
.cards .card h3 a { text-decoration: none; color: inherit; }
.cards .card h3 a:hover { text-decoration: underline; }


/* Certificazioni */
#certificazioni img { width: 100%; max-width: 800px; height: auto; margin: 20px auto; display: block; }
#certificazioni { text-align: center; }

/* ===================================================== */
/* ================== MENU MOBILE PULITO =============== */
/* ===================================================== */

/* Icona hamburger disegnata via CSS: GRANDE e a destra */
.menu-toggle{
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  width: 63px;           /* 42px → +50% */
  height: 51px;          /* 34px → +50% */
  cursor: pointer;
  z-index: 10003;        /* sopra a menu e backdrop */
}

/* tre barre spesse e ben visibili */
.menu-toggle::before{
  content: "";
  display: block;
  width: 100%;
  height: 6px;           /* 4px → +50% */
  background: #24323a;
  border-radius: 3px;
  box-shadow: 0 15px 0 #24323a, 0 30px 0 #24323a; /* 10px/20px → +50% */
}

/* Mobile & tablet */
@media (max-width: 992px){

  /* mostra l'hamburger su mobile */
  .menu-toggle{ display: block; }

  /* menu nascosto di default */
  #nav-links{
    display: none;               /* nascosto finché non è .active */
    position: fixed;
    top: 60px; left: 0;
    width: 100%;
    background: #fff;
    text-align: center;
    padding: 22px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10002;              /* sopra al backdrop ma sotto all’icona */
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  /* quando attivo, mostra il menu */
  #nav-links.active{ display: flex; }

  /* link grandi e comodi */
  #nav-links a{
    display: block;
    font-size: 1.2rem;
    padding: 10px 20px;
    margin: 0;
  }

  /* blocca lo scroll pagina quando menu aperto (gestito dallo script) */
  body.menu-open{ overflow: hidden; }
}

/* Backdrop cliccabile (click-fuori) — sta SOTTO al menu */
#menu-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 10001;               /* sotto al menu */
}
#menu-backdrop { display: none !important; }


/* ===== EVENTI (locandina) ===== */
.evento-wrapper{
  margin-top: 20px;
}

.evento-card{
  background:#fff;
  padding:24px;
  border-radius:16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow:hidden;
  max-width: 750px;   /* 👈 questa è la chiave */

}

.evento-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
/* Mobile: locandina piena */
@media (max-width: 768px){
  .evento-card{
    display:block;
  }
  .evento-img{
    width:100%;
  }
}
