/* =====================================================================
   Viv · Cartomanzia Astrale — galaxy design system
   Palette: deep space black, cosmic blue, violet, nebula magenta, starlight gold
   ===================================================================== */

:root {
  /* Space background tones */
  --space-900: #05010f;
  --space-800: #0a0618;
  --space-700: #0e0a24;
  --space-650: #130c30;
  --space-600: #1a1240;

  /* Cosmic hues */
  --indigo:    #1b2a6b;
  --violet-700:#6d28d9;
  --violet-600:#7c3aed;
  --violet-500:#8b5cf6;
  --violet-400:#a78bfa;
  --magenta:   #d946ef;
  --pink:      #ec4899;
  --blue:      #3b82f6;
  --sky:       #38bdf8;

  /* Starlight gold */
  --gold:      #f5d67b;
  --gold-2:    #e8b84b;

  /* Text */
  --text:      #ece9ff;
  --muted:     #aba3d4;
  --muted-2:   #837aa8;
  --line:      rgba(167,139,250,.18);

  /* Gradients */
  --grad-nebula: linear-gradient(135deg, #a78bfa 0%, #d946ef 48%, #38bdf8 100%);
  --grad-cta:    linear-gradient(135deg, #f5d67b 0%, #e8b84b 100%);
  --grad-text:   linear-gradient(120deg, #f5d67b, #ffe9b0 30%, #f5d67b 70%);
  --grad-heading:linear-gradient(120deg, #ffffff 0%, #d7ccff 60%, #a78bfa 100%);

  --glass:       rgba(20, 14, 46, .55);
  --glass-brd:   rgba(167,139,250,.22);
  --glow-violet: 0 0 40px rgba(139,92,246,.35);
  --glow-gold:   0 0 30px rgba(245,214,123,.35);

  --radius:  20px;
  --radius-sm: 12px;
  --wrap: 1160px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mark:    "Cinzel", var(--font-display);
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--space-800);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 17px;
  letter-spacing: .1px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 500; }

::selection { background: rgba(217,70,239,.4); color: #fff; }

.skip-link {
  position: fixed; left: -999px; top: 10px; z-index: 200;
  background: var(--gold); color: #1a1240; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 14px; }

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

/* ------------------------ Cosmic background ------------------------ */
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -3; display: block;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1246 0%, #0a0618 45%, #05010f 100%);
}
.nebula-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.nebula {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  mix-blend-mode: screen; animation: drift 26s ease-in-out infinite alternate;
}
.nebula--violet { width: 46vw; height: 46vw; top: -8vw; left: -6vw;
  background: radial-gradient(circle, rgba(124,58,237,.85), transparent 68%); }
.nebula--magenta { width: 40vw; height: 40vw; top: 32%; right: -10vw;
  background: radial-gradient(circle, rgba(217,70,239,.7), transparent 68%);
  animation-delay: -8s; }
.nebula--blue { width: 44vw; height: 44vw; bottom: -12vw; left: 18%;
  background: radial-gradient(circle, rgba(56,132,246,.65), transparent 68%);
  animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(4vw,3vw,0) scale(1.12); }
}

/* ------------------------------ Layout ----------------------------- */
.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }

.eyebrow {
  font-family: var(--font-mark);
  text-transform: uppercase; letter-spacing: .32em;
  font-size: .72rem; color: var(--gold);
  margin: 0 0 18px; font-weight: 600;
}
.eyebrow--center { text-align: center; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 500; letter-spacing: .2px;
  background: var(--grad-heading);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__sub { color: var(--muted); font-size: 1.06rem; margin: 18px auto 0; max-width: 640px; }

/* ------------------------------ Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  letter-spacing: .02em; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s;
  white-space: nowrap;
}
.btn--gold { background: var(--grad-cta); color: #241a05; box-shadow: var(--glow-gold); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(245,214,123,.4); }
.btn--ghost { background: rgba(167,139,250,.06); color: var(--text); border-color: var(--glass-brd); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--violet-400); background: rgba(167,139,250,.14); }
.btn--sm { padding: 11px 22px; font-size: .88rem; }
.btn--block { width: 100%; }

/* -------------------------------- Nav ------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 6, 24, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(var(--wrap), 100% - 44px); margin-inline: auto;
  display: flex; align-items: center; gap: 14px;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
/* Language switcher */
.lang-toggle {
  position: relative; z-index: 101;
  background: rgba(167,139,250,.08); border: 1px solid var(--glass-brd); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  transition: background .2s, border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--violet-400); color: var(--gold); background: rgba(167,139,250,.16); }
.brand__glyph { display: inline-grid; place-items: center; filter: drop-shadow(0 0 8px rgba(167,139,250,.5)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-mark); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .14em; color: #fff; white-space: nowrap;
}
.brand__tag {
  font-family: var(--font-display); font-style: italic;
  font-size: .82rem; color: var(--gold); letter-spacing: .04em; margin-top: 2px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: .92rem; color: var(--muted); font-weight: 500; position: relative;
  transition: color .2s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--grad-nebula); transition: width .25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover:not(.nav__cta)::after { width: 100%; }
.nav__cta {
  padding: 9px 22px; border-radius: 999px; color: #241a05 !important;
  background: var(--grad-cta); font-weight: 600; box-shadow: var(--glow-gold);
}
.nav__cta:hover { transform: translateY(-2px); }
.nav__toggle {
  display: none; background: none; border: 0; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px; padding: 8px;
}
.nav__toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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 ----------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px 0 80px;
}
.hero__content { position: relative; z-index: 2; width: min(760px, 100% - 44px); }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.9rem, 8vw, 5.6rem); letter-spacing: .5px;
  background: var(--grad-heading);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: italic; display: inline-block;
  /* background-clip:text paints only inside the box: pad it so italic
     descenders (g, q, y) and overhangs aren't cut, then cancel with margins */
  padding: 0 .12em .2em; margin: 0 -.12em -.2em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 600px; margin: 0 auto 34px; }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
  margin: 40px 0 0; padding: 0; color: var(--muted); font-size: .88rem;
}
.hero__trust strong { color: var(--text); }
.hero__trust .stars { color: var(--gold); letter-spacing: 2px; }

/* Hero orbit decoration */
.hero__orbit {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  pointer-events: none;
}
.hero__moon {
  width: clamp(160px, 26vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(245,214,123,.20), transparent 60%),
    radial-gradient(circle at 70% 74%, rgba(217,70,239,.28), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(124,58,237,.16), transparent 70%);
  filter: blur(6px); opacity: .8;
  animation: pulse 9s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.06); opacity: .95; } }
.orbit {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.orbit i {
  position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px 2px rgba(245,214,123,.8); transform: translateX(-50%);
}
.orbit--1 { width: clamp(280px, 44vw, 560px); aspect-ratio: 1; animation: spin 34s linear infinite; }
.orbit--2 { width: clamp(400px, 62vw, 780px); aspect-ratio: 1; animation: spin 52s linear infinite reverse; opacity: .7; }
.orbit--2 i { background: var(--magenta); box-shadow: 0 0 12px 2px rgba(217,70,239,.8); }
.orbit--3 { width: clamp(520px, 82vw, 1020px); aspect-ratio: 1; animation: spin 74s linear infinite; opacity: .5; }
.orbit--3 i { background: var(--sky); box-shadow: 0 0 12px 2px rgba(56,189,248,.8); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--glass-brd); border-radius: 999px;
  display: grid; justify-items: center; padding-top: 8px;
}
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------ Chi sono --------------------------- */
.chi-sono__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.portrait-orb {
  width: min(360px, 100%); margin-inline: auto; aspect-ratio: 1;
  border-radius: 50%; padding: 10px;
  background: conic-gradient(from 210deg, var(--violet-500), var(--magenta), var(--sky), var(--violet-500));
  box-shadow: var(--glow-violet);
  animation: floaty 7s ease-in-out infinite;
}
.portrait-orb svg { border-radius: 50%; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.chi-sono__text h2 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 22px;
  background: var(--grad-heading); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chi-sono__text p { color: var(--muted); margin: 0 0 18px; }
.chi-sono__text strong { color: var(--text); }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.pill-list li {
  font-size: .84rem; color: var(--violet-400); padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--glass-brd); background: rgba(167,139,250,.06);
}

/* ---------------------------- Carta del giorno --------------------- */
.carta__wrap { text-align: center; max-width: 780px; margin-inline: auto; }
.tarot {
  margin-top: 48px; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: center; text-align: left;
}
.tarot__card {
  background: none; border: 0; padding: 0; perspective: 1200px;
  width: 236px; height: 372px; justify-self: center;
}
.tarot__inner {
  position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.4,.1,.2,1);
  transform-style: preserve-3d;
}
.tarot.flipped .tarot__inner { transform: rotateY(180deg); }
.tarot__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px; display: grid; place-content: center; text-align: center;
  border: 1px solid var(--glass-brd); overflow: hidden;
}
.tarot__back {
  background: radial-gradient(120% 120% at 50% 0%, #201246, #0d0826);
  box-shadow: var(--glow-violet); padding: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tarot__card:hover .tarot__back { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(139,92,246,.5); }
.tarot__hint {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.tarot__front {
  transform: rotateY(180deg);
  background: radial-gradient(130% 120% at 50% 0%, #2a1a5e, #120b30);
  box-shadow: var(--glow-gold); padding: 12px;
}
/* Rider–Waite–Smith card, fully visible and inset from the rounded frame */
.tarot__img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.tarot__cardname { font-family: var(--font-display); font-size: 1.9rem; color: #fff; font-weight: 500; margin: 0 0 4px; }
.tarot__cardkey { font-size: .78rem; color: var(--violet-400); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; min-height: 1em; }
.tarot__reading { min-height: 120px; }
.tarot__message { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--text); font-style: italic; margin: 0 0 20px; line-height: 1.4; }
.tarot__disclaimer { font-size: .78rem; color: var(--muted-2); margin: 18px 0 0; }

/* ------------------------------ Servizi ---------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column;
  backdrop-filter: blur(6px); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-nebula); opacity: 0; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(10,4,30,.6); }
.card:hover::before { opacity: 1; }
.card--featured { background: linear-gradient(180deg, rgba(124,58,237,.22), rgba(20,14,46,.6)); border-color: rgba(245,214,123,.35); }
.card__badge {
  position: absolute; top: 16px; right: 16px; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: #241a05; background: var(--grad-cta);
  padding: 5px 12px; border-radius: 999px; font-weight: 600;
}
.card__icon { font-size: 2.2rem; margin-bottom: 14px; }
.card__icon-img { align-self: flex-start; height: 66px; width: auto; margin-bottom: 14px; border-radius: 5px; box-shadow: 0 6px 18px rgba(10,4,30,.5); }
.card h3 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 22px; flex: 1; }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.price { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); font-weight: 600; }
.dur { font-size: .82rem; color: var(--muted-2); }
.card__btn {
  display: block; text-align: center; padding: 12px; border-radius: 999px;
  border: 1px solid var(--glass-brd); font-weight: 600; font-size: .9rem; color: var(--text);
  transition: background .25s, border-color .25s, color .25s;
}
.card__btn:hover { background: rgba(167,139,250,.14); border-color: var(--violet-400); }
.card__btn--gold { background: var(--grad-cta); color: #241a05; border-color: transparent; }
.card__btn--gold:hover { transform: translateY(-2px); background: var(--grad-cta); }

/* --------------------------- Come funziona ------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 30px 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-brd);
}
.step__num {
  font-family: var(--font-mark); font-size: 1.1rem; letter-spacing: .12em;
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(167,139,250,.1); border: 1px solid var(--glass-brd); color: var(--gold);
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* --------------------------- Testimonianze ------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  padding: 30px 28px; margin: 0;
}
.quote__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.28rem; font-style: italic; color: var(--text); line-height: 1.45; }
.quote figcaption { color: var(--violet-400); font-size: .88rem; font-weight: 500; }

/* -------------------------------- FAQ ------------------------------ */
.faq__wrap { max-width: 820px; margin-inline: auto; }
.accordion { display: grid; gap: 14px; }
.acc {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius-sm);
  padding: 4px 24px; transition: border-color .25s;
}
.acc[open] { border-color: rgba(245,214,123,.32); }
.acc summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 1.28rem;
  color: #fff; padding: 18px 34px 18px 0; position: relative; font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold); transition: transform .25s; line-height: 1;
}
.acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc p { color: var(--muted); margin: 0 0 20px; font-size: .98rem; }

/* ------------------------------ Contatti --------------------------- */
.contatti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 76px); align-items: start; }
.contatti__intro .section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-align: left; }
.contatti__intro .section__sub { margin-left: 0; text-align: left; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(167,139,250,.1); border: 1px solid var(--glass-brd); font-size: 1.1rem; }
.contact-list a { color: var(--text); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact-list a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.form {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); backdrop-filter: blur(8px);
}
.form__row { margin-bottom: 18px; }
.form label { display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(6,3,16,.55); border: 1px solid var(--glass-brd); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted-2); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--violet-400); box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--space-700); color: var(--text); }
.form textarea { resize: vertical; min-height: 110px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; font-size: .92rem; min-height: 1.2em; }
.form__status.ok { color: #6ee7b7; }
.form__status.err { color: #fca5a5; }
.form__status.wait { color: var(--muted); }
.form__note { margin: 10px 0 0; color: var(--muted-2); font-size: .82rem; }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--gold); }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------ Footer ----------------------------- */
.footer { position: relative; border-top: 1px solid var(--line); background: rgba(6,3,16,.6); backdrop-filter: blur(8px); margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 56px 0 34px; }
.footer__brand { max-width: 340px; }
.footer__brand .brand__name { display: block; font-family: var(--font-mark); font-size: 1.5rem; letter-spacing: .28em; color: #fff; }
.footer__brand .brand__tag { display: block; font-family: var(--font-display); font-style: italic; color: var(--gold); margin: 4px 0 14px; }
.footer__brand p { color: var(--muted); font-size: .95rem; margin: 0; }
.footer__nav { display: grid; gap: 12px; align-content: start; }
.footer__nav a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 40px; border-top: 1px solid var(--line); }
.footer__bottom p { margin: 0; color: var(--muted-2); font-size: .82rem; }
.footer__legal { max-width: 560px; text-align: right; }
.footer__links { flex-basis: 100%; order: 3; }
.footer__links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167,139,250,.4); }
.footer__links a:hover { color: var(--gold); }

/* ------------------- Client brand logo & photography --------------- */
/* Brand logo (nav + footer) */
.brand__logo { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(167,139,250,.5)); }
.footer__logo { width: 210px; max-width: 62vw; height: auto; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(167,139,250,.4)); }

/* Hero — photographic Milky Way background + legibility scrim */
.hero--photo .hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(5,1,15,.62) 0%, rgba(5,1,15,.36) 44%, rgba(10,6,24,.96) 100%),
    url('../images/sky-hero.jpg') center / cover no-repeat;
}
.hero--photo .hero__content { text-shadow: 0 2px 26px rgba(5,1,15,.55); }
/* Shooting stars over the hero photo (drawn by main.js on stars sky) */
.hero__meteors {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
.hero__cite {
  font-family: var(--font-display); font-style: italic; color: var(--gold);
  font-size: clamp(1rem, 2.2vw, 1.28rem); margin: -14px 0 24px; letter-spacing: .02em;
}

/* Philosophy — "Il cielo è un quartiere" with photo background */
.filosofia { position: relative; overflow: hidden; text-align: center; }
.filosofia__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,6,24,.84), rgba(10,6,24,.7) 50%, rgba(10,6,24,.94)),
    url('../images/sky-sea.jpg') center / cover no-repeat;
}
.filosofia__wrap { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.filosofia__lead {
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.95rem); color: var(--text);
  font-style: italic; line-height: 1.4; margin: 6px 0 24px;
}
.filosofia__body { color: var(--muted); font-size: 1.06rem; margin: 0 auto; max-width: 620px; }
.filosofia__body strong { color: var(--text); }

/* Chi sono — photographic portrait in a gradient frame */
.chi-sono__photo {
  margin: 0; width: min(400px, 100%); margin-inline: auto;
  border-radius: 22px; padding: 8px;
  background: conic-gradient(from 210deg, var(--violet-500), var(--magenta), var(--sky), var(--violet-500));
  box-shadow: var(--glow-violet);
  animation: floaty 7s ease-in-out infinite;
}
.chi-sono__photo img { width: 100%; height: auto; display: block; border-radius: 16px; }

/* ---------------------------- Newsletter --------------------------- */
.newsletter__box {
  position: relative; max-width: 760px; margin-inline: auto; text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 64px);
  border-radius: var(--radius); border: 1px solid var(--glass-brd);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(124,58,237,.28), transparent 60%),
    rgba(20,14,46,.6);
  box-shadow: var(--glow-violet);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.newsletter__glyph { display: inline-block; margin-bottom: 14px; filter: drop-shadow(0 0 14px rgba(245,214,123,.7)); }
.newsletter__box .section__sub { margin-bottom: 30px; }
.newsletter__note { margin: 18px 0 0; color: var(--muted-2); font-size: .86rem; }
.newsletter__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.newsletter__note a:hover { color: var(--gold); }
@media (max-width: 560px) { .newsletter__box .btn { width: 100%; } }

/* --------------------------- Legal pages --------------------------- */
.legal { padding-top: 130px; }
.legal__wrap { max-width: 820px; }
html:not([lang="en"]) .legal__body[lang="en"],
html[lang="en"] .legal__body[lang="it"] { display: none; }
.legal__body {
  background: rgba(20,14,46,.55); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.legal__body .section__title { margin-bottom: 6px; }
.legal__body .eyebrow { letter-spacing: .16em; line-height: 1.6; }
.legal__updated { color: var(--muted-2); font-size: .9rem; margin: 0 0 34px; }
.legal__body h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--gold);
  margin: 38px 0 12px; scroll-margin-top: 100px;
}
.legal__body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 22px 0 6px; scroll-margin-top: 100px; }
.legal__body p, .legal__body li { color: var(--muted); font-size: 1rem; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 8px; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body a { color: var(--violet-400); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--gold); }
.legal__body code { font-size: .88em; background: rgba(167,139,250,.12); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.legal__back { margin-left: auto; }
@media (max-width: 560px) {
  .legal__back { padding: 9px 14px; font-size: .8rem; }
  .legal { padding-top: 104px; }
  .legal-page .brand__text { display: none; }
}

/* --------------------------- Reveal anim --------------------------- */
/* Gated behind .js: if JavaScript never runs, content stays fully visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------- Responsive --------------------------- */
@media (max-width: 1000px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .chi-sono__grid { grid-template-columns: 1fr; text-align: center; }
  .chi-sono__text .pill-list { justify-content: center; }
  .contatti__grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 40px; background: rgba(10,6,24,.96);
    backdrop-filter: blur(18px); border-left: 1px solid var(--line);
    transform: translateX(105%); transition: transform .35s cubic-bezier(.4,.1,.2,1);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 101; }
  body.menu-open { overflow: hidden; }
  .tarot { grid-template-columns: 1fr; text-align: center; }
  .tarot__reading { text-align: center; }
  .footer__legal { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .brand__tag { display: none; }
  .brand__name { font-size: clamp(.82rem, 3.4vw, .98rem); letter-spacing: .08em; }
  .brand__logo { height: 38px; }
  .footer__inner { flex-direction: column; gap: 28px; }
}

/* --------------------------- Reduced motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
