/* ============================================================
   OFFICINA WEB — styles.css (v2)
   Nero neutro + accento fiamma. Wordmark gigante, nav a pillole,
   bento di mockup in marquee verticale. Archivo + Instrument Sans.
   I font serif (Fraunces) vivono solo DENTRO i mockup.
   ============================================================ */

:root {
  /* Palette */
  --ink: #0a0a0a;          /* nero base */
  --ink-2: #141414;        /* pannelli */
  --ink-3: #262626;        /* bordi */
  --cream: #f5f4f1;        /* testo principale */
  --muted: #9b9b96;        /* testo secondario */
  --flame: #ff5c1f;        /* accento fiamma */
  --flame-soft: #ff8a5c;

  /* Type */
  --font-display: "Archivo", -apple-system, sans-serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-serif: "Fraunces", Georgia, serif; /* solo mockup */

  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --nav-h: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--flame); color: #fff; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }
.container-wide { width: min(1400px, 94vw); margin-inline: auto; }
.container-narrow { width: min(860px, 92vw); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink-3);
  color: var(--cream);
  transition: transform 0.25s var(--ease-spring), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-flame {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(255, 92, 31, 0.5);
}
.btn-flame:hover { background: #ff6e38; box-shadow: 0 14px 40px -8px rgba(255, 92, 31, 0.65); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: #4a4a4a; background: rgba(255, 255, 255, 0.07); }
.btn-wide { width: 100%; }

/* ============ Eyebrow / titles ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--flame);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.section-title em { font-style: italic; color: var(--flame); }
.section-sub {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 54ch;
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }

/* ============ NAV (pill) ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: transform 0.4s var(--ease-out), background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(1400px, 94vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav-side { display: flex; gap: 0.55rem; }
.nav-side-left { justify-content: flex-start; }
.nav-side-right { justify-content: flex-end; }
.pill {
  display: inline-flex; align-items: center;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--ink-3);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-spring), color 0.25s;
}
.pill:hover { background: #1d1d1d; border-color: #3d3d3d; transform: translateY(-1px); }
.pill-flame { background: var(--flame); border-color: var(--flame); color: #fff; }
.pill-flame:hover { background: #ff6e38; border-color: #ff6e38; }
.nav-logo {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--flame);
  color: #fff;
  font-size: 1.35rem;
  justify-self: center;
  transition: transform 0.5s var(--ease-spring);
}
.nav-logo:hover { transform: rotate(90deg); }
.nav-burger { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .nav-side { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-logo { justify-self: start; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px;
    justify-self: end; padding: 10px;
  }
  .nav-burger span {
    width: 26px; height: 2px;
    background: var(--cream);
    transition: transform 0.3s var(--ease-out);
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ============ HERO ============ */
.hero {
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
  text-align: center;
  overflow: hidden;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 115%;
  font-size: 10vw; /* fallback: fit esatto via JS (fitText) */
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-transform: uppercase; /* unico testo maiuscolo del sito */
  white-space: nowrap;
  margin-top: 1.2rem;
  background: linear-gradient(180deg, #ffffff 42%, #b9b9b9 66%, #4c4c4c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.hero-tagline {
  margin-top: 1.8rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
}
.rotator {
  display: inline-grid;
  vertical-align: top;
  overflow: hidden;
  color: var(--cream);
  font-weight: 600;
  border-bottom: 2.5px solid var(--flame);
  padding-bottom: 0.05em;
}
.rotator-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.55s var(--ease-out), opacity 0.4s;
}
.rotator-word.is-active { opacity: 1; transform: translateY(0); }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-110%); }
.hero-cta {
  margin-top: 2.4rem;
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

/* Hero load animation */
.hero-el {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--d) * 0.11s + 0.1s);
}
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

/* ============ BENTO (piano obliquo 3D) ============ */
.bento-stage {
  margin-top: 4.5rem;
  perspective: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
}
.bento {
  width: min(1400px, 96vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  height: min(76vh, 720px);
  transform: rotateX(12deg) scale(1.22);
  transform-origin: 50% 42%;
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); height: 62vh; transform: rotateX(9deg) scale(1.12); }
  .bento-col:nth-child(3), .bento-col:nth-child(4) { display: none; }
}
.bento-col { overflow: hidden; will-change: transform; }
.bento-track {
  display: flex; flex-direction: column; gap: 1.1rem;
  animation: bento-scroll var(--dur, 48s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.bento-col-down .bento-track { animation-direction: reverse; }
@keyframes bento-scroll {
  to { transform: translateY(calc(-50% - 0.55rem)); }
}
.bento-note {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  padding-inline: 4vw;
}
.bento-note a { color: var(--flame); font-weight: 600; border-bottom: 1.5px solid currentColor; transition: opacity 0.25s; }
.bento-note a:hover { opacity: 0.75; }

/* ============ CARD (browser mockup) ============ */
.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.card:hover { transform: scale(1.02); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8); }
.card-chrome {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.8rem;
  background: #e9e7e2;
  border-bottom: 1px solid #dad7d0;
}
.card-dots { display: flex; gap: 4px; }
.card-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c9c5bb; }
.card-dots i:first-child { background: #f97362; }
.card-url {
  flex: 1;
  font-family: var(--font-mono); font-size: 0.62rem;
  color: #7b7669;
  background: #f5f3ee;
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body { text-align: left; }

/* ============ MOCKUP v2 — mini-siti fotografici ============ */
.mk { text-align: left; }
.mk img { width: 100%; height: 100%; object-fit: cover; }

/* Hero fotografico full-bleed */
.mk-hero { position: relative; height: 240px; overflow: hidden; }
.mk-hero-tall { height: 290px; }
.mk-hero > img { position: absolute; inset: 0; }
.mk-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.05) 38%, rgba(0,0,0,0.78) 100%);
}
.mk-shade-gym { background: linear-gradient(180deg, rgba(10,16,8,0.5) 0%, rgba(10,16,8,0.15) 40%, rgba(10,16,8,0.88) 100%); }
.mk-shade-navy { background: linear-gradient(180deg, rgba(16,24,44,0.45) 0%, rgba(16,24,44,0.2) 40%, rgba(16,24,44,0.92) 100%); }
.mk-img-navy { filter: sepia(0.25) hue-rotate(190deg) saturate(0.75) brightness(0.95); }

/* Barra di navigazione finta sopra la foto */
.mk-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0.95rem;
  z-index: 2;
}
.mk-navlinks { font-family: var(--font-body); font-size: 0.58rem; color: rgba(255,255,255,0.85); letter-spacing: 0.02em; }
.mk-logo-serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1rem; color: #fff; }
.mk-logo-block { font-family: var(--font-display); font-weight: 860; font-stretch: 115%; letter-spacing: 0.05em; font-size: 0.95rem; color: #b8f425; }

/* Contenuto in basso sulla foto */
.mk-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0.95rem 1.05rem; z-index: 2; }
.mk-kicker-mono { font-family: var(--font-mono); font-size: 0.57rem; letter-spacing: 0.16em; color: #ffb694; margin-bottom: 0.35rem; }
.mk-title-serif { font-family: var(--font-serif); font-style: italic; font-weight: 540; font-size: 1.5rem; line-height: 1.06; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.mk-title-block { font-family: var(--font-display); font-weight: 830; font-style: italic; font-size: 1.6rem; line-height: 0.98; letter-spacing: -0.015em; color: #fff; }
.mk-sub-mono { font-family: var(--font-mono); font-size: 0.57rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }
.mk-gold { color: #d8b370; }
.mk-rose { color: #f4b8c8; }

/* Chip e bottoni dei mockup */
.mk-chip {
  position: absolute; top: 2.6rem; right: 0.95rem; z-index: 2;
  background: rgba(255,255,255,0.92); color: #2d2417;
  font-family: var(--font-body); font-size: 0.55rem; font-weight: 700;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.mk-chip-acid { background: #b8f425; color: #0f1410; font-family: var(--font-body); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.32rem 0.7rem; border-radius: 999px; }
.mk-btn {
  display: inline-block;
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  padding: 0.45rem 1.05rem; border-radius: 999px;
  margin-top: 0.7rem;
}
.mk-btn-terra { background: #c2410c; color: #fff; }
.mk-btn-sage { background: #8ba888; color: #fff; display: table; margin: 0.8rem auto 0; }
.mk-btn-navy { background: #1d2a44; color: #f7f6f3; border-radius: 4px; margin: 0; margin-left: auto; }
.mk-btn-lav { background: #6b5ca5; color: #fff; display: table; margin: 0.85rem auto 1.1rem; }
.mk-btn-rose { background: #e58aa0; color: #fff; margin: 0; margin-left: auto; flex-shrink: 0; }

/* Strip sotto la foto */
.mk-strip { padding: 0.85rem 0.95rem 1rem; }
.mk-strip-cream { background: #fdf6ea; color: #2d2417; }
.mk-strip-ivory { background: #f7f6f3; color: #1d2a44; display: flex; align-items: center; gap: 0.45rem; }
.mk-dish { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-body); font-size: 0.72rem; padding: 0.32rem 0; }
.mk-dish i { flex: 1; border-bottom: 1px dotted #d8c8a8; }
.mk-dish b { font-family: var(--font-serif); color: #7a2e1d; }

/* Palestra: barra prezzo acida */
.mk-bar-acid {
  background: #b8f425; color: #0f1410;
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body); font-size: 0.62rem;
}
.mk-bar-acid b { font-family: var(--font-display); font-weight: 830; font-size: 1rem; letter-spacing: -0.01em; }


/* Fioraio: arco fotografico */
.mk-fiori { background: #faf3f0; color: #4a3f3a; padding-bottom: 1.15rem; text-align: center; }
.mk-f-top { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.95rem; }
.mk-f-logo { color: #a9756b; }
.mk-f-links { color: #b59a92; }
.mk-arch {
  width: 74%; height: 190px;
  margin: 0.35rem auto 0;
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
  border: 1px solid #e5d3cd;
  box-shadow: 0 14px 30px -14px rgba(169,117,107,0.5);
}
.mk-f-title { color: #6c5a52; text-shadow: none; margin-top: 0.9rem; font-size: 1.3rem; }
.mk-f-tags { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; padding: 0.75rem 0.8rem 0; }
.mk-f-tags span { font-family: var(--font-body); font-size: 0.56rem; color: #a9756b; border: 1px solid #e5d3cd; border-radius: 999px; padding: 0.26rem 0.6rem; background: #fff; }

/* Dentista: clinico con badge glass */
.mk-dental { background: #fff; color: #17303f; padding-bottom: 1rem; }
.mk-d-nav { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.95rem; font-size: 0.64rem; font-weight: 600; }
.mk-d-logo { color: #0e7ec4; }
.mk-d-tel { color: #6b8494; font-size: 0.55rem; }
.mk-d-title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; padding: 0.15rem 0.95rem 0.75rem; }
.mk-d-photo { position: relative; margin: 0 0.7rem; height: 170px; border-radius: 12px; overflow: hidden; }
.mk-d-glass {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0e5e94;
  font-size: 0.6rem; font-weight: 700;
  padding: 0.42rem 0.75rem; border-radius: 8px;
  box-shadow: 0 8px 22px -8px rgba(14,60,100,0.45);
}
.mk-d-chips { display: flex; gap: 0.4rem; padding: 0.8rem 0.7rem 0; flex-wrap: wrap; }
.mk-d-chips span { font-size: 0.56rem; font-weight: 600; color: #0e5e94; background: #e8f4fc; border-radius: 999px; padding: 0.28rem 0.65rem; }

/* Avvocato */
.mk-l-logo { font-size: 0.9rem; }
.mk-l-kicker { color: #d3b06a; }
.mk-l-rule { display: block; width: 34px; height: 2px; background: #d3b06a; margin-bottom: 0.5rem; }
.mk-l-area { font-family: var(--font-body); font-size: 0.58rem; font-weight: 600; color: #44506b; border: 1px solid #dcd8cd; border-radius: 3px; padding: 0.28rem 0.55rem; }

/* B&B */
.mk-bnb { background: #f4f1fa; color: #3d3654; text-align: center; }
.mk-n-top { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.95rem; }
.mk-n-logo { color: #6b5ca5; }
.mk-n-lang { font-family: var(--font-mono); font-size: 0.52rem; color: #9a91b8; }
.mk-n-title { color: #3d3654; text-shadow: none; font-size: 1.3rem; padding: 0.15rem 0.95rem 0.8rem; }
.mk-n-photo { position: relative; margin: 0 0.7rem; height: 180px; border-radius: 12px; overflow: hidden; }
.mk-n-float {
  position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.55rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-body); font-size: 0.62rem;
  color: #3d3654;
}
.mk-n-float b { color: #6b5ca5; }



/* Ginecologa: caldo professionale malva */
.mk-gyn { background: #fdf7f8; color: #4a2f3a; font-family: var(--font-body); padding-bottom: 1rem; }
.mk-y-nav { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.95rem; }
.mk-y-logo { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 0.82rem; color: #8a4a5e; }
.mk-y-tel { color: #a98a95; font-size: 0.55rem; }
.mk-y-kicker { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em; color: #b06a80; padding: 0.1rem 0.95rem 0; }
.mk-y-title { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.15; font-weight: 520; padding: 0.3rem 0.95rem 0.75rem; }
.mk-y-photo { position: relative; margin: 0 0.7rem; height: 165px; border-radius: 12px; overflow: hidden; }
.mk-y-glass {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #8a4a5e;
  font-size: 0.6rem; font-weight: 700;
  padding: 0.42rem 0.75rem; border-radius: 8px;
  box-shadow: 0 8px 22px -8px rgba(138,74,94,0.45);
}
.mk-y-chips { display: flex; gap: 0.4rem; padding: 0.8rem 0.7rem 0; flex-wrap: wrap; }
.mk-y-chips span { font-size: 0.56rem; font-weight: 600; color: #8a4a5e; background: #f6e7eb; border-radius: 999px; padding: 0.28rem 0.65rem; }

/* Ristorante stellato: lusso essenziale nero/oro */
.mk-fine { background: #0b0a08; color: #f2ede3; }
.mk-shade-fine { background: linear-gradient(180deg, rgba(11,10,8,0.5) 0%, rgba(11,10,8,0.12) 38%, rgba(11,10,8,0.92) 100%); }
.mk-fine-rule { display: block; width: 30px; height: 1px; background: #c9a96a; margin-bottom: 0.55rem; }
.mk-fine-gold { color: #c9a96a; }
.mk-fine-strip {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 0.95rem 0.95rem;
  border-top: 1px solid #221e16;
}
.mk-fine-txt { flex: 1; font-family: var(--font-body); line-height: 1.35; }
.mk-fine-txt b { display: block; font-size: 0.66rem; color: #f2ede3; font-weight: 600; }
.mk-fine-txt span { font-size: 0.56rem; color: #9a8d74; }
.mk-btn-goldline {
  flex-shrink: 0;
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 600;
  color: #c9a96a;
  border: 1px solid #c9a96a;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
}

/* ============ MANIFESTO ============ */
.manifesto { border-top: 1px solid var(--ink-3); }
.manifesto-lines { margin-bottom: clamp(3rem, 7vw, 5rem); }
.manifesto-line {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.manifesto-line em { font-style: italic; color: var(--cream); }
.manifesto-line-flame { color: var(--flame); margin-top: 0.4em; }
.manifesto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--ink-3);
  padding-top: 3rem;
}
@media (max-width: 820px) { .manifesto-grid { grid-template-columns: 1fr; } }
.m-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.m-stat-unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--flame);
  margin-left: 0.5rem;
  letter-spacing: 0.08em;
}
.m-stat p { margin-top: 0.7rem; color: var(--muted); max-width: 26ch; }

/* ============ PACCHETTI ============ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-3);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.2rem 1.9rem;
  background: var(--ink-2);
  position: relative;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(255, 92, 31, 0.45); }
.plan-featured {
  background: linear-gradient(165deg, #1d1512, #141414 55%);
  border-color: rgba(255, 92, 31, 0.55);
  box-shadow: 0 30px 80px -30px rgba(255, 92, 31, 0.3);
}
.plan-badge {
  position: absolute; top: -13px; left: 1.9rem;
  background: var(--flame); color: #fff;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem; border-radius: 999px;
}
.plan-tag {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--flame);
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0.7rem;
}
.plan-price { margin-top: 1.2rem; }
.plan-price b {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-price span { color: var(--muted); font-size: 0.95rem; }
.plan-desc { margin-top: 1rem; color: var(--muted); font-size: 0.98rem; }
.plan-list { list-style: none; margin: 1.4rem 0 2rem; flex: 1; }
.plan-list li {
  padding: 0.5rem 0 0.5rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plan-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--flame);
  font-weight: 700;
}
.plan-btn { width: 100%; }

/* ============ PROCESSO ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.6rem; font-weight: 830; font-style: italic;
  color: var(--flame);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1rem 0 0.6rem;
}
.step p { color: var(--muted); font-size: 1rem; }
.step-line {
  height: 1px; width: 60px;
  background: repeating-linear-gradient(90deg, var(--flame) 0 6px, transparent 6px 12px);
  margin-top: 2rem;
  opacity: 0.6;
}

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--ink-3); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--flame-soft); }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--cream);
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--flame); border-color: var(--flame);
  transform: rotate(135deg);
}
.faq-q[aria-expanded="true"] .faq-icon::before,
.faq-q[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out); }
.faq-a p { padding: 0 0 1.6rem; color: var(--muted); max-width: 62ch; }

/* ============ CTA / FORM ============ */
.cta { overflow: hidden; }
.cta-glow {
  position: absolute;
  width: 80vw; height: 40vw;
  max-width: 1000px; max-height: 500px;
  left: 50%; bottom: -20vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 92, 31, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.cta-title em { font-style: italic; color: var(--flame); }

.form { margin-top: 3rem; position: relative; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem; margin-bottom: 1.2rem;
}
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.form label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form input {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font: inherit;
  color: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input::placeholder { color: #5e5e5a; }
.form input:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(255, 92, 31, 0.15);
}
.form-ok { margin-top: 1.2rem; text-align: center; color: var(--flame-soft); font-weight: 600; }


/* ============ Icone lineari ============ */
.icon-ring {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ink-3);
  background: rgba(255, 92, 31, 0.06);
  color: var(--flame);
  margin-bottom: 1.3rem;
}
.icon-ring svg { width: 24px; height: 24px; }
.step-head { display: flex; align-items: flex-end; gap: 1rem; }
.step-head .icon-ring { margin-bottom: 0; width: 46px; height: 46px; }
.step-head .icon-ring svg { width: 21px; height: 21px; }


/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--ink-3);
  padding: 4rem 0 2.5rem;
  overflow: hidden;
}
.footer-word {
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 115%;
  font-size: clamp(2.8rem, 10.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px #2e2e2e;
  user-select: none;
  white-space: nowrap;
  transition: -webkit-text-stroke-color 0.8s;
}
.footer:hover .footer-word { -webkit-text-stroke-color: rgba(255, 92, 31, 0.45); }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--flame); }


/* ============ Titoli: reveal parola per parola ============ */
.wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* respiro per le discendenti (g, p, q) senza tagli */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.75s var(--ease-out);
  transition-delay: calc(var(--wd, 0) * 55ms);
  will-change: transform;
}
.is-in .wi { transform: translateY(0); }
/* l'elemento splittato non trasla in blocco: si muovono solo le parole */
[data-reveal].has-split { transform: none; }


/* ============ Rifiniture mobile ============ */
@media (max-width: 980px) {
  /* card strette: via i numeri di telefono nelle mini-nav */
  .mk-y-tel, .mk-d-tel { display: none; }
  /* strip con più elementi: lascia andare a capo */
  .mk-strip-ivory, .mk-fine-strip { flex-wrap: wrap; }
  .mk-btn-navy, .mk-btn-goldline { margin-left: 0; }
  /* mini-nav dei mockup: solo il logo, niente voci */
  .mk-navlinks { display: none; }
  /* tagline hero piu' compatta */
  .hero-tagline { padding-inline: 4vw; }
  /* bottoni CTA hero comodi al pollice */
  .hero-cta .btn { min-width: 220px; }
}

/* ============ Scroll reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], .hero-el { opacity: 1; transform: none; }
  .bento-track { animation: none; }
}
