/* ============================================
   LIVIA LAGUZ — one-page site
   Palette chiara, coerente con la brand identity
   (lime + viola) ma senza fondo scuro.
   ============================================ */

:root {
  --bg: #FAF7EF;
  --bg-panel: #F1ECDC;
  --bg-panel-alt: #EAE3CD;
  --ink: #1C1B14;
  --muted: #6E6A5A;
  --lime: #C4FD76;
  --lime-ink: #4C6B1B;   /* variante scura del lime, leggibile su fondo chiaro */
  --violet: #7C4FA3;
  --violet-deep: #3D2650;
  --card-dark: #171207;
  --violet-soft: #9E76C4;
  --line: rgba(28, 27, 20, 0.12);

  --font-display: "League Spartan", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-btn: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 24px; top: 24px; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow.on-dark { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
}
.btn-primary:hover { background: #B4EE62; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28,27,20,0.3);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); }

.btn-disabled {
  background: rgba(28,27,20,0.08);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  text-align: center;
}

/* barra logo + whatsapp sopra l'hero */
.hero-topbar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Social icons (riusate in hero e footer) ---------- */
.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s ease, opacity 0.15s ease;
}
.social-icons a:hover { color: var(--violet); }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }

.social-icons.on-dark a {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.social-icons.on-dark a:hover { opacity: 0.75; }

.footer-social { justify-content: center; margin-bottom: 20px; }
.hero-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.hero-logo img { height: 80px; display: block; }
.hero-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  transition: opacity 0.15s ease;
}
.hero-whatsapp:hover { opacity: 0.85; }
.hero-whatsapp__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-whatsapp__icon svg { width: 16px; height: 16px; fill: #fff; }

#hero-slot {
  position: absolute;
  inset: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__dot.is-active { background: #fff; transform: scale(1.3); }
.hero__dot:hover { background: rgba(255, 255, 255, 0.7); }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero__arrow:hover { background: rgba(0, 0, 0, 0.48); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

@media (max-width: 640px) {
  .hero__arrow { display: none; }
  .hero__dots { bottom: 20px; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-panel-alt);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 12, 8, 0.92) 0%,
    rgba(15, 12, 8, 0.6) 38%,
    rgba(15, 12, 8, 0.12) 68%,
    rgba(15, 12, 8, 0.05) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 96px;
  padding-top: 220px;
  color: #fff;
}
.hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 78px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.02;
  text-wrap: balance;
}
.hero p.tagline {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
}

@media (max-width: 640px) {
  .hero__content { padding-top: 140px; padding-bottom: 64px; }
  .hero-topbar { top: 16px; left: 16px; right: 16px; }
  .hero-logo img { height: 56px; }
  .hero-topbar__right { gap: 12px; }
  .social-icons { gap: 8px; }
  .hero-whatsapp span:not(.hero-whatsapp__icon) { display: none; }
}

/* ============================================
   SECTIONS — shells
   ============================================ */
section { padding: 88px 0; }
.section-panel { background: var(--bg-panel); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); margin: 0; }

/* ============================================
   BIO — due colonne, testo + foto piena
   ============================================ */
.bio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
}
.bio-split__text {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bio-split__text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 18px;
}
.bio-split__text p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 14px;
}
.bio-split__text p:last-child { margin-bottom: 0; }

.bio-split__media {
  position: relative;
  min-height: 360px;
}
.bio-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .bio-split { grid-template-columns: 1fr; }
  .bio-split__media { order: -1; min-height: 280px; }
  .bio-split__text { padding: 40px 28px; text-align: center; }
}

/* ============================================
   SHOP — corsi / consulenze
   card interamente "immagine": zero testo fuori
   dallo spazio del prodotto
   ============================================ */
.shop-group { margin-bottom: 64px; }
.shop-group:last-child { margin-bottom: 0; }
.shop-group__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  margin: 0 0 28px;
  color: var(--violet);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-dark);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }

/* l'immagine è lo sfondo di TUTTA la card (posizionata in absolute,
   non partecipa al flusso): l'altezza della card resta determinata
   dal testo in .card__content, l'immagine si estende sempre a
   riempire qualunque altezza risulti. */
.card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.card__bg-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-panel-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__bg-placeholder svg { width: 22%; opacity: 0.4; }

.card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(23, 18, 7, 0.85) 0%,
    rgba(23, 18, 7, 0.45) 55%,
    rgba(23, 18, 7, 0.05) 100%
  );
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.card__badge--available { background: rgba(196,253,118,0.95); color: var(--ink); }
.card__badge--soon { background: rgba(61,38,80,0.9); color: var(--violet-soft); }
.card__badge--free { background: var(--lime); color: var(--ink); }

/* il testo vive in flusso normale: determina l'altezza della card.
   Il padding-top lascia vedere l'immagine sopra al testo. */
.card__content {
  position: relative;
  z-index: 2;
  padding: 100px 16px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
}
.card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.card__footer {
  display: flex;
  display: flex;
  flex-direction: column;
  gap: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lime);
  margin: 0;
}
.card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.card__cta {
  padding: 9px 18px;
  font-size: 13px;
}

.card.is-soon .card__bg { filter: grayscale(65%); opacity: 0.55; }

/* ============================================
   ALTRI LINK — pannello chiaro + immagine a lato
   1 o 2 bottoni secondo links[]
   ============================================ */
/* ============================================
   ALTRI LINK — griglia a due colonne
   testo + bottoni a sinistra, immagine circolare a destra
   1 o 2 bottoni secondo links[]
   ============================================ */
.link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.link-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.link-card__badge--default { background: var(--lime); color: var(--ink); }
.link-card__badge--soon { background: var(--violet); color: #fff; }
.link-card.is-soon .link-card__media img { filter: grayscale(60%); opacity: 0.6; }
.link-card__body {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.link-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 19px;
  margin: 0;
}
.link-card__desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 4px;
}
.link-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.link-card__media {
  position: relative;
  width: 50%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-panel);
}
.link-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-card__media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card__media.is-placeholder svg { width: 50%; opacity: 0.4; }

@media (max-width: 700px) {
  .link-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .link-card {
    flex-direction: column;
    text-align: center;
  }
  .link-card__body { flex-basis: auto; }
  .link-card__media { width: 60%; max-width: 240px; }
  .link-card__actions { justify-content: center; }
}


/* ============================================
   ASSISTENZA WHATSAPP — banner prima del footer
   ============================================ */
.assist-section { padding: 64px 0; }
.assist-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.assist-card:hover { transform: translateY(-2px); border-color: var(--violet); }
.assist-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.assist-card__icon svg { width: 26px; height: 26px; fill: #fff; }
.assist-card__body { flex: 1; }
.assist-card__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}
.assist-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 2px;
}
.assist-card__sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.assist-card__arrow {
  font-size: 22px;
  color: var(--violet);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .assist-card { flex-wrap: wrap; }
}


/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer .wordmark {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-footer .wordmark span { color: var(--violet); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 14px;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--violet); }
.footer-note { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Empty / hidden ---------- */
[hidden] { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
