/* =========================================
MONIC YOGA - Moduli Avanzati TT
Palette calda pastello | Layout luxury | Spaziatura ampia
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-cream: #FAF8F5;
  --bg-warm: #F4EFE8;
  --text-dark: #2E2A26;
  --text-muted: #5A554E;
  --primary: #C4A484;
  --secondary: #D9C5B2;
  --accent: #8B7355;
  --card-bg: #FFFFFF;
  --shadow-soft: 0 14px 42px -10px rgba(139, 115, 85, 0.18);
  --shadow-hover: 0 26px 58px -14px rgba(139, 115, 85, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-muted);
  background: var(--bg-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(94%, 1320px);
  margin: 0 auto;
  padding: 0 2rem;
}

/* TYPOGRAPHY */
h1, h2, h3, .footer-logo { font-family: 'Cormorant Garamond', serif; color: var(--text-dark); }
.highlight { color: var(--accent); font-weight: 500; }

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.92) saturate(0.95);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,42,38,0.12) 0%, rgba(46,42,38,0.58) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 1.5rem; }
.hero-title {
  font-size: clamp(3.4rem, 7.2vw, 6.2rem);
  line-height: 1.05;
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color:white;
}
.hero-subtitle {
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  color: #F8E8D0;
  margin-bottom: 1.2rem;
}
.hero-tagline {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  opacity: 0.95;
}

/* MINIMAL HERO (Pagine Legali) */
.minimal-hero { min-height: 42vh; }
.minimal-hero .hero-tagline { font-size: 1.15rem; opacity: 0.88; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(196, 164, 132, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(196, 164, 132, 0.45);
}
.btn-card {
  background: var(--accent);
  color: #FFFFFF;
  width: 100%;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  margin-top: auto;
  font-size: 0.95rem;
}
.btn-card:hover { background: #755E46; transform: translateY(-2px); }

/* SECTIONS SPACING */
.moduli-section { padding: 7.5rem 0 6.5rem; }
.info-section { padding: 7rem 0; }
.legal-section { padding: 5rem 0 7rem; background: #fff; }
.footer {
  background: var(--text-dark);
  color: #D6D0C7;
  padding: 5rem 0 3rem;
  margin-top: auto;
  width: 100%;
}

.section-title {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  text-align: center;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 4.5rem;
  color: var(--text-muted);
}

/* MODULI WRAPPER (BOX SFUMATO) */
.moduli-wrapper {
  background: linear-gradient(155deg, #F9F6F1 0%, #F0E9DF 100%);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3rem;
  box-shadow: inset 0 0 0 1px rgba(196,164,132,0.15), 0 18px 50px -12px rgba(139,115,85,0.12);
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.4rem;
}

.modulo-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(196,164,132,0.18);
}
.modulo-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.modulo-card.featured { border: 2px solid var(--primary); }

.card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-content { padding: 2.2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.55rem; margin-bottom: 0.6rem; line-height: 1.25; }
.card-price { font-size: 2rem; font-weight: 600; color: var(--accent); margin-bottom: 1.1rem; }
.card-desc { flex-grow: 1; margin-bottom: 1.6rem; font-size: 1rem; line-height: 1.65; }

.card-features {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.card-features li::before { content: "• "; color: var(--primary); font-weight: 700; margin-right: 0.3rem; }

.card-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.92);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card-badge.featured-badge { background: var(--accent); color: #FFFFFF; }

/* BIO */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.5rem;
  align-items: center;
}
.bio-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 28px 65px -18px rgba(139,115,85,0.22);
  border: 6px solid #FFFFFF;
}
.bio-text h3 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1.2rem;
  color: var(--accent);
}
.bio-text p { margin-bottom: 1.4rem; }
.bio-text p strong { color: var(--text-dark); }

/* FORMAZIONE LIST */
.formation-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.formation-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}
.formation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.formation-list .year {
 
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* INFO & FOOTER */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.info-item {
  text-align: center;
  padding: 1.8rem 1.5rem;
  background: #F9F6F1;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  border: 1px solid rgba(196,164,132,0.12);
}

.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2.5rem; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: #FFFFFF !important;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.25s ease;
}
.footer-logo:hover { opacity: 0.85; color: #FFFFFF !important; }
.footer-logo .highlight { color: var(--accent) !important; }

.footer-center a {
  color: #FFFFFF !important;
  margin: 0 1.3rem;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-center a:hover { color: var(--primary) !important; }
.footer-right p { font-size: 0.9rem; opacity: 0.8; color: #FFFFFF; margin: 0; }
.footer p { margin: 0; }

/* LEGAL PAGES */
.legal-container { max-width: 920px; margin: 0 auto; }
.legal-intro { font-size: 0.98rem; color: var(--text-muted); margin-bottom: 3.5rem; border-left: 3px solid var(--primary); padding-left: 1.5rem; }
.legal-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  color: var(--text-dark);
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.legal-list { list-style: none; margin: 0.8rem 0 1.8rem; padding: 0; }
.legal-list li { margin-bottom: 0.65rem; position: relative; padding-left: 1.2rem; font-size: 0.96rem; line-height: 1.65; }
.legal-list li::before { content: "–"; position: absolute; left: 0; color: var(--primary); font-weight: 500; }
.legal-container a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); transition: border-color 0.25s; }
.legal-container a:hover { border-bottom-style: solid; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .moduli-wrapper { padding: 3.5rem 2rem; }
}
@media (max-width: 768px) {
  .hero { min-height: 78vh; }
  .section-title { font-size: 2.4rem; }
  .grid-wrapper { gap: 1.8rem; }
  .card-image { height: 210px; }
  .footer-content { flex-direction: column; text-align: center; }
  .legal-section { padding: 3.5rem 0 5rem; }
  .legal-heading { font-size: 1.45rem; }
}
/* Elimina spazio bianco sotto il footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer {
  margin-top: auto;
}

.footer p {
  margin: 0;
}

/* Link nel footer-right (Ciro's) - colore bianco */
.footer-right a {
  color: #FFFFFF !important;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-right a:hover {
  color: var(--accent) !important;
}