/* NoveVite — design token (dal Design System NoveVite). */

/* Font: file in /public/ */
@font-face{font-family:"Gliker";src:url("/Gliker-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Gliker";src:url("/Gliker-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Aileron";src:url("/aileron.regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Aileron";src:url("/aileron.semibold.otf") format("opentype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Aileron";src:url("/aileron.bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}

:root{
  /* Colori: palette ufficiale a 4 colori */
  --ink:#2f0705; /* Rosso scuro */
  --surface-cream:#f2e9e1; /* Crema */
  --surface-lime:#d8db5a; /* Lime */
  --surface-lavender:#c3bdf5; /* Lilla */

  /* Font */
  --font-display:"Gliker", ui-rounded, "SF Pro Rounded", "Segoe UI", sans-serif;
  --font-sans:"Aileron", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Spaziature */
  --space-1:4px;
  --space-2:8px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --space-6:48px;

  /* Raggi */
  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:28px;
  --radius-full:999px;

  /* Ombra e tratti */
  --shadow-bubble:8px 8px 0 #d8db5a;
  --stroke-2:2px;
  --stroke-3:3px;

  /* Scala fluida desktop ↔ mobile */
  --fs-hero:clamp(44px, 7.5vw + 12px, 96px);
  --fs-statement:clamp(30px, 4vw + 10px, 56px);
  --fs-body:clamp(15px, .4vw + 13px, 18px);
  --content-max:1200px;
  --gutter:clamp(16px, 4vw, 48px);
}

/* Base */
html{background:var(--surface-cream);color:var(--ink)}
body{margin:0;font-family:var(--font-sans);font-size:var(--fs-body);line-height:1.45}
h1,h2,h3{text-wrap:balance}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* NoveVite — componenti del design system usati dal sito. Usa i token di nv-tokens.css. */
.nv-hero-title{font-family:var(--font-display);font-weight:700;color:var(--ink);line-height:.9;letter-spacing:-.03em;text-wrap:balance;margin:0;font-size:var(--fs-hero,96px)}


/*
 * Landing "Coming soon" di novevite.pet (pagina statica, senza server).
 * Il file pubblicato (style.css) è: src/styles/nv-tokens.css + src/styles/nv-components.css + questo file
 * (vedi scripts/landing.mjs). Le regole qui sotto sono copiate da src/styles.css (hero, sezione video, footer)
 * con poche aggiunte per la versione "presto online".
 */

/* ---------- Reset minimo (al posto del preflight di Tailwind) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-size: inherit; font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.05; }
h1 strong, h2 strong { font-weight: 700; }

:root {
  --ink-70: rgba(47, 7, 5, .7);
  --ink-20: rgba(47, 7, 5, .2);
  --fs-sub: clamp(17px, .5vw + 15px, 21px);
  --fs-section: clamp(28px, 3.5vw + 8px, 48px);
  --bar-h: 80px;
}
@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --ink-70: color-mix(in oklab, var(--ink) 70%, transparent);
    --ink-20: color-mix(in oklab, var(--ink) 20%, transparent);
  }
}
@media (max-width: 700px) { :root { --bar-h: 72px; --home-bar-h: 60px; --fs-section: clamp(28px, 8.7vw, 36px); } }

html { scroll-behavior: smooth; scroll-padding-top: 32px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--surface-cream); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
main { overflow: clip; }
a { touch-action: manipulation; }
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.section-pad { padding-block: clamp(32px, 4vw, 60px) clamp(56px, 7vw, 100px); }
.eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* ---------- Pulsanti ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--ink); color: var(--surface-cream);
  padding: 16px 28px; border-radius: var(--radius-full);
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .15s;
}
@media (prefers-reduced-motion: no-preference) { .button:hover { transform: translateY(-2px); } }
.button-small { padding: 12px 20px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: 14px; color: var(--ink); border-bottom: var(--stroke-2) solid var(--ink); padding-bottom: 3px; margin-top: var(--space-2); }

/* ---------- Barra annunci ---------- */
.announcement { display: block; text-align: center; text-transform: uppercase; letter-spacing: .03em; background: var(--ink); color: var(--surface-cream); padding: 12px var(--gutter); font-family: var(--font-sans); font-size: 15px; }
.announcement:hover .announcement-cta-text { text-decoration: underline; }
.announcement-cta { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-weight: 700; }
@media (max-width: 700px) {
  .announcement { font-size: clamp(11.5px, 3.3vw, 13.5px); letter-spacing: 0; line-height: 38px; padding: 0 var(--gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .announcement-cta { margin-left: 6px; vertical-align: -2px; }
}

/* ---------- Header ---------- */
.site-header { background: var(--surface-lavender); position: relative; min-height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100% - var(--content-max)) / 2 + var(--gutter))); }
.site-header .button-small { white-space: nowrap; box-shadow: 4px 4px 0 var(--surface-lime); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-wordmark { display: block; flex: none; line-height: 0; }
.header-wordmark img { display: block; height: 20px; width: auto; }
@media (max-width: 700px) {
  .site-header { gap: var(--space-3); min-height: var(--home-bar-h); z-index: 6; }
  .header-wordmark img { height: 16px; }
  .site-header .button-small { padding: 8px 12px; font-size: 12.5px; }
}

/* ---------- Hero (uguale al sito) ---------- */
.vision { position: relative; background: var(--surface-cream); }
.hero-stage { position: relative; overflow: hidden; width: 100%; background: var(--ink); }
.hero-scroll-cue, .hero-fulllogo { display: none; }
.hero-panel { display: contents; }
.hero-sub { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.hero-sub > span { display: block; white-space: nowrap; }
.hero-cta { margin-top: var(--space-5); padding: 20px 40px; font-size: 18px; box-shadow: 6px 6px 0 var(--surface-lime); }
/* Safari: mai il simbolo di play sopra i video decorativi (quelli senza controls: i video delle recensioni li tengono). Una regola per selettore: se un browser non riconosce
   uno di questi pseudo-elementi scarta solo quella riga, non tutte (in una lista unica Safari le perdeva tutte). */
video:not([controls])::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; pointer-events: none !important; }
video:not([controls])::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; pointer-events: none !important; }
video:not([controls])::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; opacity: 0 !important; pointer-events: none !important; }
video:not([controls])::-webkit-media-controls-enclosure { display: none !important; -webkit-appearance: none; opacity: 0 !important; pointer-events: none !important; }
video:not([controls])::-webkit-media-controls { display: none !important; -webkit-appearance: none; opacity: 0 !important; pointer-events: none !important; }
/* Copertina sopra il video finché non parte davvero (classe .is-playing, vedi landing.js). Se Safari blocca l'autoplay
   (iPhone in Risparmio energetico, Mac con "Riproduzione automatica: mai") si vede la foto, non il pulsante play. */
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; transition: opacity .4s ease; }
video.is-playing + .video-cover { opacity: 0; }
@media (prefers-reduced-motion: reduce) { video.is-playing + .video-cover { transition: none; } }
.hero-patterns { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video { display: block; background: var(--ink); object-fit: cover; }
.hero-center .nv-hero-title { font-weight: 400; }
.hero-center .nv-hero-title strong { font-weight: 700; color: var(--surface-lavender); }
.macchie { position: absolute; z-index: 0; height: auto; max-width: none; pointer-events: none; -webkit-user-select: none; user-select: none; }
.macchie--alto-sinistra { top: 0; left: 0; width: min(46%, 700px); }
@media (min-width: 701px) {
  .hero-stage {
    background: var(--surface-cream);
    display: grid; grid-template-columns: max-content auto; justify-content: space-between; grid-template-areas: ". video" "logo video" "title video" ". video";
    grid-template-rows: 1fr auto auto 1fr; align-content: stretch; align-items: center; column-gap: clamp(32px, 7vw, 120px);
    min-height: calc(100vh - 190px); padding-block: clamp(24px, 3vw, 48px);
    padding-inline: max(var(--gutter), calc((100% - var(--content-max)) / 2 + var(--gutter)));
  }
  .hero-videobox { position: relative; z-index: 1; grid-area: video; justify-self: end; height: min(800px, calc(100vh - 215px), 70vw); min-height: 540px; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink); border: var(--stroke-3) solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-bubble); }
  .hero-videobox .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-mobile-bar { display: block; position: relative; z-index: 1; grid-area: logo; align-self: end; justify-self: center; margin-bottom: var(--space-4); }
  .hero-fulllogo { display: block; height: clamp(190px, 36vh, 380px); width: auto; }
  .hero-fulllogo, .hero-center { transform: translateX(clamp(24px, 7.5vw, 112px)); }
  .hero-center { position: relative; z-index: 1; grid-area: title; align-self: start; text-align: center; }
  .hero-center .nv-hero-title { white-space: nowrap; text-align: center; color: var(--ink); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.08; }
  .hero-sub { margin-top: var(--space-5); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; text-align: center; }
  .hero-sub::before { content: ""; display: block; width: 72px; height: 3px; margin: 0 auto var(--space-4); border-radius: 3px; background: var(--ink); }
  .hero-center .nv-hero-title strong { color: var(--ink); text-shadow: 4px 4px 0 var(--surface-lime); }
}
@media (max-width: 700px) {
  .hero-stage { height: calc(100vh - 38px - var(--home-bar-h)); height: calc(100svh - 38px - var(--home-bar-h)); height: calc(var(--app-h, 100svh) - 38px - var(--home-bar-h)); min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
  .hero-patterns { display: none; }
  .hero-videobox { display: contents; }
  .hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
  .hero-panel { position: relative; z-index: 3; align-self: stretch; height: 58%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; align-items: center; padding: 0 var(--gutter) 28px; text-align: center; }
  .hero-center { display: contents; }
  .hero-mobile-bar, .hero-center .nv-hero-title { grid-row: 1; grid-column: 1; }
  .hero-mobile-bar { display: block; margin: 0; }
  .hero-fulllogo { display: block; height: clamp(110px, calc(36svh - 14px), 300px); max-height: 100%; width: auto; opacity: 0; transition: opacity .45s ease; transform: translateY(-28px); filter: drop-shadow(0 1px 4px rgba(47, 7, 5, .45)); }
  .hero-panel[data-phase="logo"] .hero-fulllogo { opacity: 1; }
  .hero-center .nv-hero-title { display: block; white-space: nowrap; margin: 0; text-align: center; font-size: clamp(22px, 7vw, 30px); line-height: 1.16; color: #fff; text-shadow: 0 1px 8px rgba(47, 7, 5, .65); transition: opacity .45s ease; transform: translateY(22px); }
  .hero-center .nv-hero-title strong { font-size: 1.12em; color: #fff; text-shadow: 2px 2px 0 var(--ink), 0 1px 8px rgba(47, 7, 5, .6); }
  .hero-panel:not([data-seq]) .nv-hero-title, .hero-panel[data-phase="logo"] .nv-hero-title { opacity: 0; }
  .nv-hero-title .ch { position: relative; }
  .hero-panel[data-seq="run"] .ch--last::after { content: ""; position: absolute; right: -3px; top: .1em; bottom: .08em; width: 2px; background: #fff; animation: hero-caret .7s steps(1) infinite; }
  .hero-sub { grid-row: 2; text-align: center; margin: 4px auto 0; font-size: clamp(14px, 4.1vw, 16px); line-height: 1.4; text-wrap: balance; max-width: none; color: #fff; text-shadow: 0 1px 8px rgba(47, 7, 5, .7), 0 1px 2px rgba(47, 7, 5, .5); }
  .hero-sub > span { display: inline; white-space: normal; }
  .hero-cta { grid-row: 3; margin-top: 20px; box-shadow: 4px 4px 0 var(--surface-lime); font-size: 16px; padding: 14px 30px; white-space: nowrap; }
  .hero-scroll-cue { display: block; position: absolute; z-index: 4; left: 50%; bottom: 5px; translate: -50% 0; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 11px solid rgba(255, 255, 255, .8); opacity: .2; animation: scroll-cue 2.8s ease-in-out infinite; }
}
@keyframes hero-caret { 50% { opacity: 0; } }
@keyframes scroll-cue { 0%, 100% { opacity: .1; } 50% { opacity: .6; } }
@media (min-width: 701px) and (max-width: 1100px) {
  .hero-sub { max-width: 30ch; margin-inline: auto; text-wrap: balance; }
  .hero-sub > span { display: inline; white-space: normal; }
  .hero-fulllogo { height: clamp(150px, min(36vh, 24vw), 380px); }
}
@media (max-width: 700px) and (max-height: 700px) { .hero-fulllogo { height: 136px; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue { animation: none; opacity: .4; } }

/* ---------- Sezione video + "Coming soon" ---------- */
.join-section { background: var(--surface-lavender); }
.join-layout { display: grid; grid-template-columns: minmax(0, 380px) 1fr; grid-template-areas: "box head"; column-gap: clamp(32px, 6vw, 96px); align-items: center; }
.join-head { grid-area: head; }
.join-head > .eyebrow { margin-bottom: var(--space-3); }
.soon-title { font-size: clamp(52px, 7vw + 8px, 112px); line-height: .95; letter-spacing: -.03em; }
.soon-title strong { text-shadow: 6px 6px 0 var(--surface-lime); }
.join-head > p:not(.eyebrow):not(.join-food) { margin-top: var(--space-5); max-width: 52ch; font-family: var(--font-sans); font-size: var(--fs-sub); line-height: 1.45; color: var(--ink-70); }
.join-food { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--ink); max-width: 26ch; }
.video-box { position: relative; grid-area: box; aspect-ratio: 384 / 448; border: var(--stroke-3) solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-bubble); overflow: hidden; background: var(--ink); }
.video-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.social-row { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.social-row .text-link { margin-top: 0; font-size: 16px; }
.video-insta-icon { display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; border-radius: var(--radius-full); box-shadow: 4px 4px 0 var(--surface-lime); }
.video-insta-icon--ink { background: var(--ink); color: var(--surface-cream); }
@media (max-width: 900px) {
  /* Telefono: titolo, video grande, poi i testi */
  .join-layout { display: flex; flex-direction: column; align-items: stretch; }
  .join-head { display: contents; }
  .join-head > .eyebrow { order: 0; }
  .soon-title { order: 1; }
  .video-box { order: 2; width: 100%; max-width: 440px; margin-top: var(--space-5); }
  .join-head > p:not(.eyebrow) { order: 3; }
  .social-row { order: 4; }
}

/* ---------- Footer ---------- */
.footer { background: var(--surface-cream); color: var(--ink); }
.footer-content { padding-top: var(--space-6); padding-bottom: var(--space-5); }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 2px solid var(--ink-20); }
.footer-logo { justify-self: start; display: block; line-height: 0; }
.footer-logo img { display: block; height: clamp(76px, 6.7vw, 96px); width: auto; }
.footer-row > p { justify-self: end; text-align: right; font-family: var(--font-sans); font-size: 13px; color: var(--ink); opacity: .85; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); font-family: var(--font-sans); font-size: 13px; }
.footer-legal a { color: var(--ink); border: var(--stroke-2) solid var(--ink); border-radius: var(--radius-full); padding: 8px 18px; font-weight: 700; box-shadow: 3px 3px 0 var(--surface-lime); }
.footer-legal a:hover { background: var(--ink); color: var(--surface-cream); }
@media (max-width: 900px) {
  .footer-row { grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: var(--space-4); row-gap: var(--space-4); }
  .footer-row > p { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .footer-legal { justify-content: flex-start; gap: 8px; font-size: 12px; }
  .footer-legal a { padding: 6px 12px; }
}
