/* Vairagya Yoga & Fitness — sito vetrina one page
   Palette (psicologia del colore):
   - Verde foresta: equilibrio, calma, natura, cura
   - Sabbia calda: accoglienza, terra, Sardegna
   - Zafferano: energia, ottimismo, tradizione dello yoga indiano (usato per le azioni)
   - Prugna e lavanda: introspezione, meditazione, spiritualità
*/

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrumentserif-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrumentserif-italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-var.woff") format("woff");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --forest: #0F3B3A;
  --forest-2: #174A47;
  --forest-line: #2A5E5A;
  --sand: #EFE4D2;
  --sand-2: #E5D6BF;
  --cream: #F6EEE1;
  --ink: #1D2B2A;
  --muted: #5A5F55;
  --amber: #7A4E1C;
  --saffron: #E9A23B;
  --saffron-2: #D98F25;
  --plum: #33264A;
  --plum-2: #43335E;
  --lavender: #CDBDEB;
  --lavender-soft: #D9CFEE;
  --sage: #9FB8A0;
  --rose: #D9897A;
  --sky: #8FB7C9;
  --on-dark-muted: #BFD0CB;
  --radius: 22px;
  --max: 1200px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--sand);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; line-height: 1.05; letter-spacing: -0.005em; }
h1 em, h2 em { color: var(--saffron); }

.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.on-dark .eyebrow, .hero .eyebrow { color: var(--saffron); }
.on-plum .eyebrow { color: var(--lavender); }

.h2 { font-size: clamp(40px, 5.2vw, 68px); }
.lead { color: var(--muted); max-width: 440px; font-size: 18px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }

.on-dark { background: var(--forest); color: var(--cream); }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-muted); }
.on-plum { background: var(--plum); color: var(--cream); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--saffron); color: var(--forest); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px; border-radius: 999px;
  font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: var(--forest); }
.btn-primary:hover { background: var(--saffron-2); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: #0A2B2A; }
.btn-line-light { border-color: rgba(246, 238, 225, 0.6); color: var(--cream); font-weight: 500; }
.btn-line-light:hover { border-color: var(--cream); }
.btn-line-dark { border-color: var(--forest); color: var(--forest); font-weight: 500; }
.btn-sm { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.btn svg { flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--forest); color: var(--cream); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; }
.brand-name span { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--cream); }
.nav a:not(.btn):hover { color: var(--saffron); }
.nav .btn { color: var(--forest); }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 999px; border: 1.5px solid rgba(246, 238, 225, 0.6); background: transparent; color: var(--cream); cursor: pointer;
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--forest); border-top: 1px solid var(--forest-line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .nav li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--forest-line); font-family: var(--serif); font-style: italic; font-size: 28px; }
  .nav li:last-child { margin-top: 20px; }
  .nav .btn { width: 100%; }
}

/* Hero */
.hero { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; border-radius: 0 0 48px 48px; }
.hero-glow {
  position: absolute; width: 720px; height: 720px; right: -220px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 162, 59, 0.22), rgba(233, 162, 59, 0) 65%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 104px); line-height: 0.98; }
.hero h1 .roman { font-style: normal; }
.hero-sub { font-size: 19px; color: var(--on-dark-muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--on-dark-muted); display: flex; align-items: center; gap: 10px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FD08C; box-shadow: 0 0 0 4px rgba(127, 208, 140, 0.2); }
.hero-media { flex: 1 1 400px; min-width: 0; position: relative; max-width: 520px; margin: 0 auto; }
.hero-arch {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 28px 28px; border: 1.5px solid rgba(246, 238, 225, 0.25); padding: 10px; background: var(--forest-2);
}
.hero-arch-wrap { position: relative; }
.badge-spin {
  position: absolute; left: -36px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--saffron); color: var(--forest); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.badge-spin svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-spin .badge-center { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .badge-spin { left: 4px; bottom: 12px; width: 120px; height: 120px; } .badge-spin .badge-center { font-size: 24px; } }

/* Marquee */
.marquee { background: var(--sand); padding: 26px 0; overflow: hidden; border-bottom: 1px solid var(--sand-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 44px); color: var(--forest);
  padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 18px; color: var(--saffron); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sedi */
.sedi-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.sede {
  flex: 1 1 400px; min-width: 0; border-radius: 28px; padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden;
}
.sede-quartu { background: var(--forest); color: var(--cream); }
.sede-uta { background: var(--plum); color: var(--cream); }
.sede::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 1.5px solid rgba(246, 238, 225, 0.15); box-shadow: 0 0 0 30px rgba(246, 238, 225, 0.04), 0 0 0 60px rgba(246, 238, 225, 0.03);
  pointer-events: none;
}
.sede-city { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--saffron); }
.sede-uta .sede-city { color: var(--lavender); }
.sede h3 { font-size: clamp(36px, 3.6vw, 48px); margin-top: 6px; }
.sede-address { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; font-style: normal; }
.sede-address svg { flex: none; margin-top: 4px; }
.sede-desc { font-size: 15px; color: var(--on-dark-muted); max-width: 460px; }
.sede-uta .sede-desc { color: var(--lavender-soft); }
.sede-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; position: relative; z-index: 1; }
.btn-cream { background: var(--cream); color: var(--forest); font-weight: 500; }
.sede-uta .btn-cream { color: var(--plum); }

/* Corsi */
.wide-photo { width: 100%; height: clamp(260px, 38vw, 500px); object-fit: cover; border-radius: 32px; margin-bottom: 32px; background: var(--sand-2); }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 340px; min-width: 0; background: var(--cream); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  border-top: 6px solid var(--c, var(--sage));
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 59, 58, 0.12); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--c, var(--sage));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--forest);
}
.tag { font-size: 13px; color: var(--muted); border: 1px solid var(--sand-2); padding: 5px 12px; border-radius: 999px; }
.card h3 { font-size: 36px; margin-top: 6px; }
.card p { font-size: 15px; color: var(--muted); }
.card .card-styles { color: var(--ink); font-weight: 500; font-size: 14px; }
.card-mood { font-size: 13px; color: var(--amber); font-weight: 600; letter-spacing: 0.04em; }
.c-yoga { --c: var(--sage); }
.c-pilates { --c: var(--saffron); }
.c-taichi { --c: var(--sky); }
.c-danza { --c: var(--rose); }
.c-fitness { --c: #E7B867; }
.c-bimbi { --c: var(--lavender); }

/* Finder */
.finder-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.finder-intro { flex: 1 1 360px; min-width: 0; }
.finder-intro h2 { font-size: clamp(40px, 4.6vw, 60px); }
.finder-intro p.muted { color: var(--lavender-soft); margin-top: 16px; max-width: 420px; }
.finder-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-top: 32px; }
.finder-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-size: 15px; cursor: pointer; min-height: 48px; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid rgba(205, 189, 235, 0.6); background: transparent; color: var(--cream);
  transition: background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--lavender); }
.chip[aria-pressed="true"] { background: var(--lavender); border-color: var(--lavender); color: var(--plum); font-weight: 600; }
.result { background: var(--cream); color: var(--ink); border-radius: 28px; padding: clamp(28px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.result-label { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #5B4A7A; }
.result-title { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; color: var(--plum); }
.result-text { font-size: 16px; color: var(--muted); }
.result .btn { align-self: flex-start; margin-top: 8px; }
.result.is-changing { animation: pop .4s ease; }
@keyframes pop { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Orari */
.tabs { display: flex; gap: 6px; background: var(--sand-2); padding: 6px; border-radius: 999px; }
.tab { font: inherit; font-size: 15px; cursor: pointer; min-height: 46px; padding: 10px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--forest); color: var(--cream); font-weight: 500; }
.days { display: flex; flex-wrap: wrap; gap: 16px; }
.day { flex: 1 1 200px; min-width: 0; background: var(--cream); border-radius: var(--radius); padding: 24px; }
.day h3 { font-size: 30px; color: var(--forest); }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--sand-2); display: flex; flex-direction: column; }
.day .slot-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.day .slot-name { font-size: 15px; font-weight: 600; }
.schedule-note { margin-top: 24px; font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }

/* Chi siamo */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; margin-bottom: 72px; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text .eyebrow { margin-bottom: 0; }
.about-text p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 520px; }
.about-quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.25; color: var(--cream) !important; border-left: 0; padding-top: 8px; }
.about-quote::before { content: "“"; color: var(--saffron); }
.about-quote::after { content: "”"; color: var(--saffron); }
.about-photo { flex: 1 1 460px; min-width: 0; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 200px 28px 28px 28px; }
.team-title { font-size: clamp(34px, 3.4vw, 44px); margin-bottom: 28px; }
.team-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.person {
  flex: 1 1 200px; min-width: 0; background: var(--forest-2); border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease;
}
.person:hover { transform: translateY(-4px); }
.person-photo { position: relative; overflow: hidden; border-bottom: 5px solid var(--c, var(--sage)); }
.person-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.person:hover .person-photo img { transform: scale(1.04); }
.person-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.person .person-role { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c, var(--saffron)); }
.person h3 { font-size: 34px; }
.person-disc { font-size: 14px; font-weight: 600; color: var(--cream) !important; }
.person p { font-size: 14px; color: var(--on-dark-muted); line-height: 1.55; }

/* Eventi */
.extra-card { flex: 1 1 320px; min-width: 0; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: var(--cream); }
.extra-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .6s ease; }
.extra-card:hover img { transform: scale(1.04); }
.extra-media { overflow: hidden; }
.extra-body { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.extra-body h3 { font-size: 34px; }
.extra-body p { font-size: 15px; color: var(--muted); }
.extra-card.plum { background: var(--plum); color: var(--cream); }
.extra-card.plum p { color: var(--lavender-soft); }
.extra-card.forest { background: var(--forest); color: var(--cream); }
.extra-card.forest p { color: var(--on-dark-muted); }
.extra-date { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--saffron); }

/* CTA */
.cta-wrap { padding-bottom: clamp(72px, 9vw, 120px); }
.cta { background: var(--saffron); border-radius: 40px; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.cta-photo { flex: 1 1 420px; min-width: 0; width: 100%; min-height: 300px; object-fit: cover; }
.cta-body { flex: 1 1 420px; min-width: 0; padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; justify-content: center; color: var(--forest); }
.cta h2 { font-size: clamp(44px, 5vw, 66px); }
.cta h2 em { color: var(--cream); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; max-width: 380px; }

/* Footer */
.site-footer { background: var(--forest); color: var(--cream); border-radius: 48px 48px 0 0; }
.footer-big { font-family: var(--serif); font-style: italic; font-size: clamp(48px, 9vw, 130px); line-height: 1; padding-top: 72px; color: var(--cream); }
.footer-big em { color: var(--saffron); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 40px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; }
.footer-col address, .footer-col span { color: var(--on-dark-muted); font-style: normal; }
.footer-col a { color: var(--cream); }
.footer-col a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid var(--forest-line); padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--on-dark-muted); }
.footer-bottom a { color: var(--on-dark-muted); }

/* WhatsApp mobile */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: var(--saffron); color: var(--forest); display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
@media (max-width: 900px) { .wa-float { display: inline-flex; } }

/* Comparsa allo scorrimento */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .badge-spin svg.ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .extra-card img, .person, .person-photo img { transition: none; }
}

/* Pagine semplici (privacy, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.page h1 { font-size: clamp(44px, 5vw, 60px); margin-bottom: 24px; color: var(--forest); }
.page h2 { font-size: 30px; margin: 32px 0 10px; color: var(--forest); }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
