/* style.css — tema editoriale, caldo ma pulito, per Jai Ma Studio Yoga */

/* Font auto-ospitati (nessuna richiesta a server esterni: niente Google Fonts) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2');
}

:root {
  /* Palette: Indigo, Grape Soda, Soft Blush, Tangerine Dream, Muted Olive */
  --color-bg: #f5e3e0;
  --color-bg-alt: #efd6d1;
  --color-text: #271a34;
  --color-text-soft: #6d5f6c;
  --color-primary: #ffa977;
  --color-primary-dark: #9a4a1f;
  --color-accent: #9d4a89;
  --color-accent-dark: #7a3568;
  --color-deep: #5F3682;
  --color-deep-soft: #8E6EA7;
  --color-olive: #a1c181;
  --color-olive-dark: #7f9c62;
  --color-btn-bg: #1c1526;
  --color-btn-bg-hover: #2c2138;
  --color-border: #e6cec7;
  --color-card: #ffffff;
  --shadow-sm: 0 2px 10px rgba(39, 26, 52, 0.07);
  --shadow: 0 14px 34px -12px rgba(39, 26, 52, 0.22);
  --radius: 12px;
  --radius-btn: 8px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-deep);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.4rem; }

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

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

/* Header */
.site-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--color-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--color-deep);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 1px;
  border-bottom: 1px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

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

/* Hero */
.hero {
  padding: 110px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}

.hero.hero-photo {
  background-image: linear-gradient(180deg, rgba(29, 12, 46, 0.62), rgba(29, 12, 46, 0.74)), var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 140px 0 100px;
}
.hero.hero-photo h1 { color: #fff; }
.hero.hero-photo p.subtitle { color: #f1e4ee; }
.hero.hero-photo .philosophy { color: #ffe3cf; }
.hero.hero-photo .philosophy::before { background: var(--color-primary); }
.hero.hero-photo .btn-outline { border-color: rgba(255,255,255,0.75); color: #fff; }
.hero.hero-photo .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

@media (max-width: 768px) {
  .hero.hero-photo {
    background-image: linear-gradient(180deg, rgba(29, 12, 46, 0.62), rgba(29, 12, 46, 0.74)), var(--hero-image-mobile, var(--hero-image));
    background-position: 78% center;
  }
}

.hero p.subtitle {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--color-text-soft);
  font-size: 1.12rem;
}

.hero .philosophy {
  margin-top: 46px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-accent-dark);
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  padding-top: 28px;
}
.hero .philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 2px;
  background: var(--color-primary);
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--color-bg-alt); }

.section-title { text-align: center; margin-bottom: 12px; }
.section-lead {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--color-text-soft); font-size: 0.7rem; flex: 1; white-space: pre-line; }
.card-body .card-link { margin-top: 14px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; }

.teacher-card { text-align: center; }
.teacher-card .card-media {
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin: 26px auto 0;
  width: 128px;
  height: 128px;
  font-size: 1.8rem;
  border: 1px solid var(--color-border);
}
.teacher-card .card-body { text-align: center; align-items: center; }
.teacher-card .card-body h3 { margin-bottom: 4px; }
.teacher-role {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

/* Buttons — ispirato a https://uiverse.io/shivam_7937/lucky-bobcat-47:
   bottone scuro con un alone sfumato (indigo -> grape soda -> tangerine)
   che si intensifica al passaggio del mouse. Riprodotto in CSS puro
   (pseudo-elemento ::before) così non serve markup aggiuntivo. */
.btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--color-btn-bg);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: calc(var(--radius-btn) + 3px);
  background: linear-gradient(90deg, var(--color-deep), var(--color-accent), var(--color-primary));
  filter: blur(13px);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.btn:hover {
  background: var(--color-btn-bg-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(28, 21, 38, 0.45);
}
.btn:hover::before { opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--color-deep);
  border: 1.5px solid var(--color-deep);
}
.btn-outline::before { display: none; }
.btn-outline:hover { background: rgba(71, 22, 114, 0.07); color: var(--color-deep); transform: translateY(-1px); box-shadow: none; }

.btn-secondary { background: var(--color-olive); color: var(--color-deep); }
.btn-secondary::before { display: none; }
.btn-secondary:hover { background: var(--color-olive-dark); color: var(--color-deep); box-shadow: none; }

.btn-small { padding: 9px 18px; font-size: 0.75rem; }

.btn-danger { background: #a4453a; }
.btn-danger::before { display: none; }
.btn-danger:hover { background: #7d3329; }

.cta-row { text-align: center; margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Activity detail */
.activity-hero { padding: 56px 0 24px; }
.activity-description { white-space: pre-line; max-width: 760px; margin: 0 auto; color: var(--color-text-soft); font-size: 1.03rem; }
.breadcrumb { font-size: 0.82rem; color: var(--color-text-soft); margin-bottom: 20px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--color-text-soft); text-decoration: underline; }

/* Teacher detail */
.teacher-hero { padding: 56px 0 20px; text-align: center; }
.teacher-hero .teacher-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-primary);
}
.teacher-hero .teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-bio { white-space: pre-line; max-width: 720px; margin: 0 auto; color: var(--color-text-soft); font-size: 1.03rem; text-align: left; }

/* Events */
.event-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.event-row:hover { box-shadow: var(--shadow); }
.event-date {
  flex-shrink: 0;
  width: 78px;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 6px;
  font-family: var(--font-heading);
}
.event-date .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); }
.event-poster { flex-shrink: 0; width: 64px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.event-poster img { width: 100%; height: 100%; object-fit: cover; }
.event-row h3 { margin-bottom: 6px; }
.event-row h3 a { color: var(--color-deep); }
.event-row h3 a:hover { color: var(--color-primary-dark); }
.event-row p { color: var(--color-text-soft); margin: 0; white-space: pre-line; }
.event-row .card-link { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; }
.event-past { opacity: 0.6; }

/* Schedule */
.location-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.location-tab {
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--color-border);
  background: var(--color-card);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--color-text);
}
.location-tab.active { border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-bg-alt); }
.location-panel { display: none; }
.location-panel.active { display: block; }

.schedule-grid-wrap {
  overflow-x: auto;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.schedule-grid {
  display: grid;
}
.schedule-col {
  border-right: 1px solid var(--color-border);
}
.schedule-col:last-child { border-right: none; }
.schedule-col-head {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  background: var(--color-deep);
  padding: 12px 8px;
  font-size: 0.95rem;
}
.schedule-col-body {
  display: flex;
  flex-direction: column;
}
.schedule-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.schedule-col-body .schedule-slot:last-child { border-bottom: none; }
.schedule-slot .slot-time {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}
.schedule-slot .slot-activity {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-deep);
  font-size: 0.95rem;
}
.schedule-slot .slot-teacher {
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-info-card p { margin: 10px 0; }
.contact-info-card .label { color: var(--color-text-soft); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; font-weight: 700; }
.map-placeholder { border-radius: var(--radius); background: var(--color-bg-alt); border: 1px dashed var(--color-border); display: none; align-items: center; justify-content: center; min-height: 260px; color: var(--color-text-soft); text-align: center; padding: 20px; }

/* Footer */
footer.site-footer {
  background: var(--color-deep);
  color: #e6d9ec;
  padding: 56px 0 28px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fbf1ec; font-family: var(--font-heading); font-size: 1.15rem; }
footer.site-footer a { color: #d9c3e3; }
footer.site-footer a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-logo {
    height: 52px;
width: auto; display: block; margin-bottom: 14px; filter: brightness(100);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-address-block { margin-bottom: 16px; }
.footer-address-block:last-child { margin-bottom: 0; }
.footer-address-block .footer-sede-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #bda0c9; margin-bottom: 4px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; color: #c3aecf; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #c3aecf; }

/* 404 */
.not-found { text-align: center; padding: 130px 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-deep);
  color: #f3ead9;
  z-index: 200;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 0.88rem; flex: 1; min-width: 240px; }
.cookie-banner-inner a { color: #f3ead9; text-decoration: underline; }
.cookie-banner-inner .btn { flex-shrink: 0; }

/* Responsive */
@media (max-width: 860px) {
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(43, 15, 68, 0.98); border-bottom: 1px solid rgba(255,255,255,0.08); }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 16px 24px; gap: 14px; }
  nav.main-nav a { color: #fff; }
  nav.main-nav a:hover,
  nav.main-nav a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
  .nav-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
}
