/* ===== TOKENS ===== */
:root {
  --bg: #0c0c0e;
  --bg-2: #131318;
  --surface: #17171d;
  --surface-2: #1e1e26;
  --line: rgba(255,255,255,.09);
  --text: #f5f5f7;
  --muted: #a2a2ad;
  --accent: #b9c1ff;      /* periwinkle from IG graphics */
  --accent-2: #8b93e6;
  --accent-ink: #0c0c14;
  --maxw: 1180px;
  --r: 16px;
  --ease: cubic-bezier(.22,1,.36,1);
  --head: "Oswald", system-ui, sans-serif;
  --display: "Anton", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 130px) 0; }

/* ===== TYPE HELPERS ===== */
.kicker {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section__sub { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }
.accent { color: var(--accent); }
.stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  font-size: .85rem;
  padding: 15px 30px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 100px;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 34px -12px var(--accent-2); background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--sm { padding: 10px 20px; font-size: .76rem; }
.btn--full { width: 100%; padding: 17px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,12,14,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 1.05rem; letter-spacing: .04em; }
.nav__brand em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; }
.nav__brand b { color: var(--accent); font-weight: 700; }
.nav__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-family: var(--head); text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; color: var(--muted); transition: color .25s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: var(--accent-ink); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--text); transition: .3s var(--ease); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px clamp(24px, 6vw, 80px) 80px;
  overflow: hidden;
  background: var(--bg-2);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,12,.94) 0%, rgba(10,10,12,.72) 30%, rgba(10,10,12,.28) 60%, rgba(10,10,12,.05) 100%),
    linear-gradient(180deg, rgba(10,10,12,.35) 0%, rgba(10,10,12,.15) 45%, var(--bg) 100%),
    radial-gradient(1000px 520px at 82% 6%, rgba(139,147,230,.16), transparent 60%);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 8%;
  transform: scaleX(-1);
}
.hero__bg { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; opacity: .05; pointer-events: none; mix-blend-mode: overlay; }
.hero__bg span {
  font-family: var(--display); text-transform: uppercase;
  font-size: 22vw; line-height: .82; white-space: nowrap; letter-spacing: -.02em;
}
.hero__bg span:nth-child(even) { margin-left: -6vw; color: var(--accent); }
.hero__inner { position: relative; z-index: 2; max-width: 600px; width: 100%; }
.hero__eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--accent); margin-bottom: 26px; }
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: .95; text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 26px;
}
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 480px; margin-bottom: 36px; }
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 58px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 44px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.hero__stats span { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 1.4rem; color: var(--muted); animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ===== LAB ===== */
.lab__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.lab__text p { color: var(--muted); margin-top: 20px; }
.lab__text strong { color: var(--text); }
.lab__text .section__title { margin-bottom: 8px; }
.lab__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lab__tags span { font-family: var(--head); font-size: .78rem; letter-spacing: .05em; padding: 7px 15px; border: 1px solid var(--line); border-radius: 100px; color: var(--accent); }
.lab__media { position: relative; }
.lab__media img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: grayscale(.15) contrast(1.03); }
.lab__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--accent); color: var(--accent-ink);
  padding: 20px 24px; border-radius: 14px;
  font-family: var(--display); text-transform: uppercase; line-height: 1;
  font-size: 1.3rem; box-shadow: 0 22px 50px -20px rgba(0,0,0,.7);
}

/* ===== VALUES ===== */
.values { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.value { padding: clamp(40px,5vw,64px) 30px; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value__num { font-family: var(--display); font-size: 1.1rem; color: var(--accent); letter-spacing: .1em; }
.value h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.3rem; margin: 16px 0 12px; }
.value p { color: var(--muted); font-size: .96rem; }

/* ===== CORSI ===== */
.corsi__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.corso {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 36px 32px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.corso:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--surface-2); }
.corso__ico {
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(185,193,255,.18), rgba(139,147,230,.06));
  border: 1px solid var(--line);
}
.corso h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.4rem; margin-bottom: 10px; }
.corso h3 small { display: block; font-size: .72rem; letter-spacing: .16em; color: var(--accent); margin-top: 4px; }
.corso p { color: var(--muted); font-size: .98rem; }

/* ===== ORARI ===== */
.orari { background: var(--bg-2); }
.orari__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,6vw,80px); align-items: center; }
.orari__intro p { color: var(--muted); margin: 20px 0 30px; }
.orari__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.orari__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.orari__card-h { padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(185,193,255,.08), transparent); }
.orari__card-h h3 { font-family: var(--head); text-transform: uppercase; font-size: 1.2rem; letter-spacing: .04em; }
.orari__card-h small { display: block; font-size: .66rem; letter-spacing: .16em; color: var(--accent); margin-top: 3px; }
.orari__card ul { list-style: none; padding: 12px 24px 24px; }
.orari__card li { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.orari__card li:last-child { border-bottom: 0; }
.orari__card li span { color: var(--muted); font-size: .9rem; }
.orari__card li b { font-family: var(--head); letter-spacing: .04em; }

/* ===== GALLERY ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 16px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--r); }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: transform .6s var(--ease), filter .5s var(--ease); }
.g-item:hover img { transform: scale(1.06); filter: grayscale(0); }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }

/* ===== INSTAGRAM ===== */
.ig { background: var(--bg-2); }
.ig__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ig__item { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r); }
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.ig__ov { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; background: rgba(12,12,20,.5); opacity: 0; transition: opacity .3s; color: var(--accent); }
.ig__item:hover img { transform: scale(1.05); }
.ig__item:hover .ig__ov { opacity: 1; }
.ig__cta { text-align: center; margin-top: 44px; }

/* ===== TESTIMONIAL ===== */
.testi { padding: clamp(70px,9vw,120px) 0; text-align: center;
  background: radial-gradient(700px 340px at 50% 0%, rgba(139,147,230,.16), transparent 65%); }
.testi__inner { max-width: 820px; margin: 0 auto; }
.testi__stars { color: var(--accent); letter-spacing: .3em; font-size: 1.4rem; margin-bottom: 26px; }
.testi blockquote { font-family: var(--head); font-weight: 500; font-size: clamp(1.4rem, 3.6vw, 2.3rem); line-height: 1.3; }
.testi__by { color: var(--muted); margin-top: 26px; letter-spacing: .04em; }
.testi__by b { color: var(--text); }

/* ===== CONTATTI ===== */
.contatti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,72px); }
.contatti__info p { color: var(--muted); margin-top: 18px; }
.contatti__list { list-style: none; margin: 34px 0; }
.contatti__list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contatti__list .ci { font-size: 1.3rem; }
.contatti__list b { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--text); }
.contatti__list a { color: var(--accent); }
.contatti__list a:hover { text-decoration: underline; }
.contatti__map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 8px; background: var(--surface); box-shadow: 0 20px 44px -28px rgba(0,0,0,.6); }
.contatti__map-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.contatti__map-head b { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; display: block; }
.contatti__map-head span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.contatti__map-btn { flex-shrink: 0; font-family: var(--head); text-transform: uppercase; letter-spacing: .07em; font-size: .74rem; color: var(--accent-ink); background: var(--accent); padding: 9px 14px; border-radius: 100px; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contatti__map-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent-2); }
.contatti__map iframe { width: 100%; height: 260px; border: 0; display: block; filter: saturate(.85) contrast(1.05) brightness(.94); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px,4vw,44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-family: var(--body); font-size: .95rem;
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn--full { grid-column: 1 / -1; margin-top: 6px; }
.form__note { grid-column: 1/-1; color: var(--accent); font-family: var(--head); letter-spacing: .04em; text-align: center; }

/* ===== FOOTER ===== */
.footer { background: #08080a; border-top: 1px solid var(--line); padding-top: 60px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer__brand p { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; line-height: 1.5; }
.footer__brand span { text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--muted); font-size: .85rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--muted); transition: color .25s; }
.footer__nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.footer__social svg { width: 19px; height: 19px; }
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 24px; color: var(--muted); font-size: .82rem; }

/* ===== REVEAL ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 940px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--bg-2); padding: 40px; transform: translateX(100%);
    transition: transform .4s var(--ease); border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: none; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .lab__grid, .orari__grid, .contatti__grid { grid-template-columns: 1fr; }
  .lab__media { order: -1; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .value:nth-child(2) { border-right: 0; }
  .value { border-bottom: 1px solid var(--line); }
  .corsi__grid { grid-template-columns: 1fr 1fr; }
  .ig__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .value { border-right: 0 !important; }
  .values__grid { grid-template-columns: 1fr; }
  .corsi__grid { grid-template-columns: 1fr; }
  .orari__cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g-item--wide { grid-column: span 2; }
  .form { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .lab__badge { left: 0; }
}
