/* ==========================================================================
   TIME INSIDE — foglio di stile
   Mobile-first. Nessuna dipendenza esterna. Font ospitati localmente.
   ========================================================================== */

/* ---------- Font locali (licenza SIL OFL 1.1, vedi assets/fonts) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff") format("woff");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("../fonts/crimson-text-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("../fonts/crimson-text-400-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("../fonts/crimson-text-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variabili ---------- */
:root {
  --bg: #050807;
  --bg-2: #07150f;
  --panel: #0a1f16;
  --panel-2: #06100c;
  --emerald: #105c3a;
  --green: #3dff8a;
  --green-soft: #8cffb8;
  --gold: #d9b870;
  --gold-soft: #e8cd8a;
  --white: #f3eee4;
  --text: #d6d0c4;
  --muted: #b9b2a6;
  --dim: #9a9488;
  --error: #ffb3a8;
  --error-line: #ff8a7a;
  --line: rgba(61, 255, 138, 0.28);

  --f-title: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: 24px;
  --wrap: 1120px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-soft); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #04110a;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #04110a; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Elementi ricorrenti ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.label__num { color: var(--green); font-size: 12px; letter-spacing: 0.08em; }
.label__line { flex: 1; height: 1px; background: var(--line); }

.h2 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(24px, 6.4vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
}
.serif-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(36px, 10vw, 60px);
  line-height: 1.04;
  color: var(--white);
}
.serif-title em,
.gold-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.time-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(61,255,138,0) 0%, var(--green) 50%, rgba(61,255,138,0) 100%);
  box-shadow: 0 0 12px rgba(61, 255, 138, 0.55);
  overflow: visible;
}
.time-line::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #b6ffd3;
  box-shadow: 0 0 10px var(--green);
  animation: tick 6s var(--ease) infinite;
}
@keyframes tick {
  0%, 100% { transform: translateX(-60px); opacity: 0.55; }
  50% { transform: translateX(60px); opacity: 1; }
}

/* Pulsanti */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: none;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.3s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  min-height: 60px;
  border-radius: 16px;
  background: var(--green);
  color: #04110a;
  font-weight: 700;
  box-shadow: 0 0 34px rgba(61, 255, 138, 0.42);
}
.btn--primary:hover { color: #04110a; background: #6dffa8; box-shadow: 0 0 44px rgba(61, 255, 138, 0.6); }
.btn--primary:disabled,
.btn--primary[aria-disabled="true"] {
  background: rgba(61, 255, 138, 0.08);
  border-color: rgba(61, 255, 138, 0.25);
  color: #8a988f;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn--gold { border-color: var(--gold); color: var(--gold-soft); }
.btn--gold:hover { color: #04110a; background: var(--gold); }
.btn--green { border-color: var(--green); color: var(--green-soft); }
.btn--green:hover { color: #04110a; background: var(--green); }
.btn--ghost { border-color: rgba(243, 238, 228, 0.4); color: var(--white); }
.btn--ghost:hover { color: var(--white); border-color: var(--white); background: rgba(243, 238, 228, 0.06); }
.btn--sm { min-height: 46px; padding: 10px 18px; font-size: 13px; border-radius: 12px; }

.ext-icon { width: 16px; height: 16px; flex: none; }

/* Rivelazione progressiva (solo con JS attivo e movimento consentito) */
.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-ready .reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 60% at 50% 16%, rgba(16, 92, 58, 0.55) 0%, rgba(5, 8, 7, 0) 70%);
  padding-bottom: 24px;
}
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 1053 / 629; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(5,8,7,0) 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px var(--pad) 0;
}
.hero__eyebrow {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.hero__title {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(44px, 12.5vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.09em;
  color: var(--white);
}
.hero__title span { display: block; }
.hero__subtitle {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.15;
  color: var(--gold);
}
.hero__lines { font-size: 17px; line-height: 1.55; color: var(--text); }
.hero__lines strong { color: var(--green); font-weight: 500; }
.hero .time-line { margin: 18px 0 8px; }
.hero__impact {
  font-family: var(--f-serif);
  font-size: clamp(27px, 7.4vw, 40px);
  line-height: 1.16;
  color: var(--white);
}
.hero__impact em { display: block; font-style: italic; color: var(--green-soft); }
.hero__cue {
  align-self: center;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  padding: 8px 12px 0;
  color: var(--dim);
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__cue:hover { color: var(--white); }
.hero__cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--green), rgba(61,255,138,0));
  transform-origin: top;
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   SEZIONI
   ========================================================================== */
.section { padding: 72px 0 0; }
.section__inner { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Video ---------- */
.video { display: flex; flex-direction: column; gap: 14px; }
.video__frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 36px rgba(61, 255, 138, 0.16);
  overflow: hidden;
  transition: height 0.45s var(--ease);
}
.video__frame.is-169 { aspect-ratio: 16 / 9; }
.video__cover {
  grid-area: 1 / 1;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1566 / 1005; /* proporzioni originali delle copertine */
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}
.video__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* nessun ritaglio né deformazione */
  transition: filter 0.3s var(--ease);
}
.video__cover:hover img { filter: brightness(1.06); }
.video__cover:focus-visible { outline-offset: -4px; }
.video__frame.is-playing .video__cover {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  opacity: 0;
  pointer-events: none;
}
.video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.video__player.is-loaded { opacity: 1; }

/* Pannello di consenso */
.video__frame.is-consent .video__cover {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  filter: blur(3px) brightness(0.3);
  pointer-events: none;
}
.video__frame.is-consent .video__cover img { object-fit: cover; }
.video__consent {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 22px;
  background: rgba(5, 8, 7, 0.55);
}
.video__consent[hidden] { display: none; }
.video__consent .video__consent-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
}
.video__consent p { font-size: 14px; line-height: 1.5; color: var(--text); }
.video__consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 4px;
}
.video__yt-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text);
}
.video__back {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.video__back:hover { color: var(--white); }
.video__note { font-size: 13px; color: var(--gold-soft) !important; }

.video__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--dim);
}
.video__duration {
  font-family: var(--f-title);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.video__fallback { font-size: 14px; color: var(--muted); }

/* ---------- Filosofia ---------- */
.philosophy {
  margin-top: 88px;
  padding: 76px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
}
.philosophy .section__inner { gap: 32px; }
.philosophy__pair p { font-size: 20px; line-height: 1.45; color: var(--text); }
.philosophy__pair p + p { color: var(--green); font-weight: 500; }
.philosophy__kicker {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.philosophy__statement { font-size: 20px; line-height: 1.5; color: var(--white); margin-top: 10px; }
.philosophy__question { font-size: 18px; color: var(--muted); }
.philosophy__answer {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.15;
  color: var(--white);
}
.philosophy__quote {
  margin-top: 12px;
  padding: 36px 22px;
  border-radius: 20px;
  border: 1px solid rgba(217, 184, 112, 0.35);
  background: radial-gradient(90% 120% at 50% 0%, rgba(217, 184, 112, 0.1) 0%, rgba(5, 8, 7, 0) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.philosophy__quote::before,
.philosophy__quote::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.philosophy__quote blockquote {
  font-family: var(--f-serif);
  font-size: clamp(28px, 7.6vw, 44px);
  line-height: 1.2;
  color: var(--white);
}
.philosophy__quote blockquote em { display: block; font-style: italic; color: var(--gold); }

/* ---------- Time Watch ---------- */
.watch__lead {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.3;
  color: var(--text);
}
.watch__figure { display: flex; flex-direction: column; gap: 12px; }
.watch__media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(61, 255, 138, 0.35);
  box-shadow: 0 0 60px rgba(61, 255, 138, 0.2);
}
.watch__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.watch__caption {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.watch__claim {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(28px, 7.8vw, 44px);
  line-height: 1.16;
  color: var(--white);
}
.watch__claim span { color: var(--green); text-shadow: 0 0 24px rgba(61, 255, 138, 0.35); }

/* ---------- Libro ---------- */
.book {
  margin-top: 40px;
  padding: 72px 0 76px;
  background: radial-gradient(110% 50% at 50% 30%, rgba(16, 92, 58, 0.45) 0%, rgba(5, 8, 7, 0) 70%);
}
.book__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 900 / 985; object-fit: cover; }
.book__text { display: flex; flex-direction: column; gap: 20px; }
.book__lines p { font-size: 19px; line-height: 1.5; color: var(--muted); }
.book__lines p + p { color: var(--white); font-weight: 500; }
.book__offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(61, 255, 138, 0.25);
  background: rgba(10, 40, 27, 0.55);
}
.book__offer-detail { display: flex; flex-direction: column; gap: 3px; }
.book__format {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.book__updates { font-size: 14px; color: var(--muted); }
.book__price {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 30px;
  color: var(--white);
  white-space: nowrap;
}
.book__note { font-size: 13px; color: var(--dim); text-align: center; }

/* ---------- Fondatore ---------- */
.founder__media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(217, 184, 112, 0.35);
}
.founder__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.founder__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(5,8,7,0) 0%, rgba(5,8,7,0.92) 100%);
}
.founder__name {
  position: absolute;
  z-index: 1;
  left: 20px; right: 20px; bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.founder__name strong {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
}
.founder__name span {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.founder__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--f-serif);
  font-size: clamp(21px, 5.6vw, 26px);
  line-height: 1.38;
  color: var(--white);
}
.founder__text p:last-child { font-style: italic; color: var(--gold); }

/* ---------- Immersion ---------- */
.immersion__intro { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- Candidatura ---------- */
.apply { padding-top: 80px; scroll-margin-top: 16px; }
.apply__card {
  padding: 32px 20px;
  border-radius: 24px;
  border: 1px solid rgba(61, 255, 138, 0.25);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.apply__title {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(20px, 5.6vw, 26px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.apply__subtitle { font-size: 16px; line-height: 1.5; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 184, 112, 0.45);
  font-size: 13px;
  color: var(--gold-soft);
}
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.form__required { font-size: 13px; color: var(--dim); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--text); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(243, 238, 228, 0.24);
  background: #040a07;
  color: var(--white);
  font-size: 16px; /* evita lo zoom automatico su iPhone */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 255, 138, 0.22); }
.field input[aria-invalid="true"] { border-color: var(--error-line); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 138, 122, 0.25); }
.field input.is-valid { border-color: rgba(61, 255, 138, 0.6); }
.field__error { font-size: 13px; color: var(--error); }
.field__error[hidden] { display: none; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}
.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.check label { cursor: pointer; padding-top: 1px; }
.form__hint { font-size: 13px; line-height: 1.5; color: var(--dim); }
.form__status { font-size: 14px; line-height: 1.5; color: var(--gold-soft); }
.form__status:empty { display: none; }
.form__status a { color: var(--green-soft); }

/* ---------- Contatto ---------- */
.contact { padding-top: 80px; text-align: center; }
.contact .section__inner { align-items: center; gap: 14px; }
.contact__title {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(28px, 7.4vw, 38px);
  line-height: 1.2;
  color: var(--white);
}
.contact__text { font-size: 16px; color: var(--muted); }
.contact .btn { margin-top: 6px; width: 100%; max-width: 420px; letter-spacing: 0.06em; font-size: 13px; padding-left: 16px; padding-right: 16px; }

/* ---------- App gratuite ---------- */
.apps { padding-top: 84px; }
.apps__label {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.apps__list { display: grid; gap: 12px; margin-top: 14px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(243, 238, 228, 0.12);
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s;
}
.app-card:hover { border-color: rgba(217, 184, 112, 0.5); background: rgba(243, 238, 228, 0.03); }
.app-card img { flex: none; width: 60px; height: 60px; border-radius: 14px; }
.app-card__text { display: flex; flex-direction: column; gap: 3px; }
.app-card__name {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.app-card__tag { font-size: 14px; font-style: italic; color: var(--gold); }
.app-card__desc { font-size: 13px; line-height: 1.45; color: var(--dim); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px;
  padding: 60px 0 calc(44px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(61, 255, 138, 0.2);
  background: radial-gradient(100% 70% at 50% 0%, rgba(16, 92, 58, 0.35) 0%, rgba(5, 8, 7, 0) 70%);
  text-align: center;
}
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__ptp {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: 0.3em;
  color: var(--gold);
  padding-left: 0.3em; /* compensa la spaziatura finale */
}
.footer__time { font-family: var(--f-serif); font-style: italic; font-size: 23px; color: var(--white); }
.footer__sign {
  margin-top: 8px;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--green);
}
.footer__mail { margin-top: 18px; font-size: 16px; color: var(--text); }
.footer__legal {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
}
.footer__prefs {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__prefs:hover { color: var(--white); }
.footer__prefs-note { font-size: 13px; color: var(--gold-soft); }
.footer__prefs-note:empty { display: none; }

/* ==========================================================================
   TABLET E DESKTOP
   ========================================================================== */
@media (min-width: 600px) {
  :root { --pad: 40px; }
  .apps__list { grid-template-columns: 1fr 1fr; }
  .apply__card { padding: 40px; }
}

@media (min-width: 960px) {
  :root { --pad: 56px; }
  .section { padding-top: 112px; }

  .hero {
    padding: 64px 0 40px;
    background: radial-gradient(60% 70% at 72% 42%, rgba(16, 92, 58, 0.5) 0%, rgba(5, 8, 7, 0) 70%);
  }
  .hero__grid {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
  }
  .hero__media { order: 2; border-radius: 28px; overflow: hidden; box-shadow: 0 0 90px rgba(61,255,138,0.22), 0 30px 80px rgba(0,0,0,0.6); }
  .hero__media::after { display: none; }
  .hero__body { order: 1; padding: 0; }
  .hero .time-line { max-width: 420px; }
  .hero__cue { margin-top: 40px; align-self: flex-start; align-items: flex-start; padding-left: 0; }

  .video-section .section__inner { max-width: 880px; margin: 0 auto; }

  .philosophy { margin-top: 120px; padding: 120px 0; }
  .philosophy .section__inner { max-width: 760px; margin: 0 auto; }

  .watch .section__inner,
  .founder .section__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 72px;
    row-gap: 24px;
    align-items: center;
  }
  .watch .label,
  .founder .label { grid-column: 1 / -1; }
  .watch__figure { grid-row: 2 / span 2; grid-column: 1; }
  .watch__lead { grid-column: 2; align-self: end; }
  .watch__claim { grid-column: 2; align-self: start; }

  .book { padding: 112px 0; margin-top: 80px; }
  .book .section__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    column-gap: 80px;
    align-items: center;
  }
  .book .label { grid-column: 1 / -1; }
  .book__actions { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
  .book__note { text-align: left; }

  .founder__media { grid-column: 1; grid-row: 2; }
  .founder__text { grid-column: 2; grid-row: 2; }

  .apply .wrap { max-width: 760px; }
  .apply__card { padding: 48px 56px; }
}

/* ==========================================================================
   Movimento ridotto
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
