/* =========================================================
   Mariastella Lashmaker — Landing
   Design system: dark & glam, oro/champagne, rosa cipria
   ========================================================= */

:root {
  /* Colori */
  --bg:        #0d0b0f;
  --bg-alt:    #141017;
  --surface:   #1b1620;
  --surface-2: #241d2b;
  --gold:      #c9a24b;
  --gold-2:    #e8c979;
  --rose:      #e8c4c9;
  --peacock:   #1a8f7a;
  --text:      #f5f1ea;
  --muted:     #a89f97;
  --line:      rgba(201,162,75,0.22);

  /* Tipografia */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  --gold-gradient: linear-gradient(135deg, var(--gold-2), var(--gold));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
em { font-style: italic; color: var(--gold-2); }

/* ---------- Utility ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #000; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary { background: var(--gold-gradient); color: #1a1206; box-shadow: 0 10px 30px -10px rgba(201,162,75,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(201,162,75,0.75); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(13,11,15,0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(13,11,15,0.92); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.35rem; }
.brand-mark { color: var(--gold-2); font-size: 1.1rem; }
.brand-text { line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 2rem; padding: 0; }
.nav-menu a { font-size: 0.9rem; color: var(--muted); transition: color .2s; position: relative; }
.nav-menu a:hover { color: var(--text); }
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .25s;
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.3rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-2) !important; }
.nav-cta:hover { background: var(--gold-gradient); color: #1a1206 !important; }

.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: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 20%, rgba(201,162,75,0.16), transparent 60%),
    radial-gradient(45% 45% at 15% 90%, rgba(26,143,122,0.14), transparent 60%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .lead { color: var(--muted); font-size: 1.15rem; margin: 1.4rem 0 2rem; max-width: 34ch; }
.hero h1 { letter-spacing: -0.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats { list-style: none; display: flex; gap: 2rem; padding: 0; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-2); }
.hero-stats span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: 220px 220px var(--radius) var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative; z-index: 1;
  aspect-ratio: 1/1; object-fit: cover;
}
.hero-media-glow {
  position: absolute; inset: -12% -12% 8% -12%;
  background: radial-gradient(circle at 50% 40%, rgba(201,162,75,0.35), transparent 62%);
  filter: blur(20px); z-index: 0;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: var(--gold); font-size: 1.3rem; z-index: 2; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Cards (servizi) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(201,162,75,0.12); color: var(--gold-2);
  font-size: 1.4rem; margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .price { color: var(--gold-2); font-family: var(--font-display); font-size: 1.25rem; margin-top: 1.1rem; }
.price-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }
.about-copy p { color: var(--muted); margin-top: 1rem; }
.about-copy h2 { margin-bottom: 0.4rem; }

.check-list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text); font-size: 0.97rem; }
.check-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold-2);
}
.about-copy .btn { margin-top: 0.8rem; }

/* ---------- Corsi ---------- */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.course-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card--featured { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border-color: var(--gold); }
.course-card h3 { margin-bottom: 0.7rem; }
.course-card > p { color: var(--muted); }
.course-card .check-list { margin-top: 1.2rem; margin-bottom: 0; }
.badge {
  position: absolute; top: -13px; left: 2rem;
  background: var(--gold-gradient); color: #1a1206;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; padding: 0.3rem 0.9rem; border-radius: 999px;
}
.courses-cta { text-align: center; margin-top: 3rem; }

/* ---------- Portfolio ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Recensioni ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.9rem; margin: 0;
}
.stars { color: var(--gold-2); letter-spacing: 0.15em; margin-bottom: 1rem; }
.review p { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--text); }
.review cite { display: block; margin-top: 1.2rem; color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ---------- Contatti ---------- */
.contact-channels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; margin-bottom: 2.5rem;
}
.contact-channel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.contact-channel:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.channel-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(201,162,75,0.12); font-size: 1.5rem; margin-bottom: 0.6rem;
}
.channel-label { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
.channel-value { color: var(--gold-2); font-size: 0.95rem; word-break: break-word; }

.contact-list {
  list-style: none; padding: 0; margin: 0 auto; max-width: 640px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem;
  justify-items: center;
}
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; text-align: left; }
.contact-list .ci { font-size: 1.3rem; line-height: 1.4; }
.contact-list strong { color: var(--gold-2); font-family: var(--font-display); font-weight: 600; }
.contact-list small { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .brand-text { font-family: var(--font-display); font-size: 1.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a, .footer-meta a { color: var(--muted); transition: color .2s; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--gold-2); }
.footer-meta p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 0.82rem; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-gradient); font-size: 1.5rem;
  box-shadow: 0 12px 30px -8px rgba(201,162,75,0.6);
  transition: transform .25s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(13,11,15,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 2rem;
    transform: translateY(-120%); transition: transform .35s ease; visibility: hidden;
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-menu a { display: block; padding: 1rem 0.25rem; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 1rem; padding: 0.9rem !important; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-media { order: -1; max-width: 360px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; }
  .footer-nav { align-items: center; }
  .footer-brand p { margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.3rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
