/* ==========================================================================
   Vesper by Pantoufle — foglio di stile unico
   1. Token  2. Base  3. Layout  4. Intestazione  5. Componenti
   6. Sezioni  7. Piè di pagina  8. Movimento
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */
:root {
  --white-cool: #f0f0f2;
  --white: #ffffff;
  --navy: #0b1226;
  --navy-2: #121a33;
  --slate: #424859;
  --honey: #f2ba52;
  --honey-hover: #e6aa3c;
  --gold: #a68444;
  --star: #e9b43c;

  --line: rgb(11 18 38 / 0.11);
  --line-strong: rgb(11 18 38 / 0.22);
  --line-dark: rgb(255 255 255 / 0.16);
  --on-dark: rgb(255 255 255 / 0.8);
  --on-dark-soft: rgb(255 255 255 / 0.62);

  --font: 'Avenir Next', 'Avenir Next LT Pro', Avenir, 'Helvetica Neue', 'Segoe UI', Verdana, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2.5rem, 1.2rem + 5.4vw, 5.5rem);

  --container: 80rem;
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 4rem);
  --section: clamp(4.5rem, 2.4rem + 8.5vw, 10rem);
  --section-sm: clamp(3rem, 2rem + 4vw, 6rem);
  --header-h: 4.75rem;

  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 200ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white-cool);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: 1.03; font-weight: 400; }
h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 400; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-h4); line-height: 1.35; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--honey); }

.vh {
  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 {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--navy); color: #fff;
  border-radius: var(--radius); text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Testo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate);
}
.eyebrow::before { content: ''; width: 1.5rem; height: 2px; background: var(--honey); }
.dark .eyebrow, .hero .eyebrow { color: var(--on-dark); }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--slate); max-width: 34rem; }
.dark .lead, .hero .lead { color: var(--on-dark); }
.muted { color: var(--slate); }
.dark .muted { color: var(--on-dark); }
.small { font-size: var(--fs-sm); }
.num { color: var(--gold); font-weight: 400; letter-spacing: -0.01em; }
.dark .num { color: var(--honey); }

.prose { max-width: 38rem; color: var(--slate); }
.prose > * + * { margin-top: 1.25rem; }
.dark .prose { color: var(--on-dark); }

/* Nota di stato o di metodo */
.note {
  padding-left: 1rem; border-left: 2px solid var(--honey);
  font-size: var(--fs-sm); color: var(--slate); max-width: 40rem;
}
.dark .note, .hero .note { color: var(--on-dark); }

/* Segnaposto per dati da completare */
.ph {
  padding: 0.05em 0.35em; background: rgb(242 186 82 / 0.24);
  border: 1px dashed rgb(11 18 38 / 0.35); border-radius: 3px;
  font-size: 0.92em; color: var(--navy);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.dark .ph { color: #fff; border-color: rgb(255 255 255 / 0.4); background: rgb(242 186 82 / 0.18); }
.ph b { font-weight: 600; }

/* 3. Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section); }
.sec--sm { padding-block: var(--section-sm); }
.white { background: var(--white); }
.dark { background: var(--navy); color: #fff; }
.dark-2 { background: var(--navy-2); color: #fff; }

.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw + 1rem, 5rem); }
.head > p:not(.eyebrow) { margin-top: 1.25rem; }

.split { display: grid; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-wide { grid-template-columns: 7fr 5fr; }
  .split--text-wide { grid-template-columns: 5fr 7fr; }
  .split--top { align-items: start; }
  .split--rev > :first-child { order: 2; }
}

.grid-3, .grid-4 { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 40rem) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 4. Intestazione --------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

/* Sopra la fotografia di apertura: chiaro su scuro */
.hdr.is-over { color: #fff; background: linear-gradient(rgb(11 18 38 / 0.5), rgb(11 18 38 / 0)); }
.hdr.is-solid { background: rgb(240 240 242 / 0.94); border-bottom-color: var(--line); color: var(--navy); }
@supports (backdrop-filter: blur(1px)) { .hdr.is-solid { background: rgb(240 240 242 / 0.82); backdrop-filter: blur(12px); } }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; }
.brand__logo { height: 34px; width: auto; }
.brand__logo--light { display: none; }
.hdr.is-over .brand__logo--dark { display: none; }
.hdr.is-over .brand__logo--light { display: block; }
.brand__p { height: 24px; width: auto; }
.brand__word { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

.nav__list { display: flex; gap: clamp(1rem, 1.8vw, 2rem); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-sm); text-decoration: none; color: inherit;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--honey); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current='true']::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }

.hdr__tools { display: flex; align-items: center; gap: 1.25rem; }
.cross {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-size: var(--fs-sm); text-decoration: none; color: inherit; opacity: 0.85;
}
.cross:hover { opacity: 1; }
.cross img { height: 18px; width: auto; }
.cross .on-light { display: block; }
.cross .on-dark-img { display: none; }
.hdr.is-over .cross .on-light { display: none; }
.hdr.is-over .cross .on-dark-img { display: block; }

.menu-btn {
  display: none; width: 48px; height: 48px; margin-right: -12px;
  align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }

@media (max-width: 79.99rem) {
  .hdr .btn--hdr { display: none; }
  html.js .menu-btn { display: inline-flex; }
  html.js .nav {
    position: fixed; inset: var(--header-h) 0 0 0; display: none; flex-direction: column;
    padding: 1.5rem var(--gutter) 3rem; background: var(--white-cool); color: var(--navy);
    border-top: 1px solid var(--line); overflow-y: auto;
  }
  html.js .hdr.is-open { background: var(--white-cool); color: var(--navy); }
  html.js .hdr.is-open .brand__logo--dark { display: block; }
  html.js .hdr.is-open .brand__logo--light { display: none; }
  html.js .hdr.is-open .cross .on-light { display: block; }
  html.js .hdr.is-open .cross .on-dark-img { display: none; }
  html.js .hdr.is-open .nav { display: flex; }
  html.js .nav__list { flex-direction: column; gap: 0; }
  html.js .nav__link { width: 100%; min-height: 60px; font-size: var(--fs-h3); border-bottom: 1px solid var(--line); }
  html.js .nav__link::after { bottom: -1px; right: auto; width: 2.5rem; }
  html.js .nav__extra { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
  .hdr.is-open .i-open { display: none; }
  .hdr.is-open .i-close { display: block; }
  html:not(.js) .hdr { position: absolute; }
  html:not(.js) .hdr__in { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .nav { order: 3; width: 100%; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
}
@media (min-width: 80rem) { .nav__extra { display: none; } }
@media (max-width: 30rem) { .hdr .cross img { height: 14px; } }
body.menu-open { overflow: hidden; }

/* 5. Componenti ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.5rem;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; text-decoration: none;
  border-radius: var(--radius); border: 0; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--honey { background: var(--honey); color: var(--navy); }
.btn--honey:hover { background: var(--honey-hover); }
.btn--line { color: inherit; border: 1px solid var(--line-strong); background: none; }
.dark .btn--line, .hero .btn--line { border-color: var(--line-dark); }
.btn--line:hover { border-color: var(--honey); }
.btn--hdr { min-height: 42px; padding: 0.6rem 1.15rem; }

.link {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--honey), var(--honey)) 0 calc(100% - 9px) / 100% 2px no-repeat;
}
.link:hover { background-size: 100% 3px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }

/* Fotografie */
.ph-fig { position: relative; overflow: hidden; background: #dcdce2; border-radius: 2px; }
.ph-fig img { width: 100%; height: 100%; object-fit: cover; }
.ph-fig--43 { aspect-ratio: 4 / 3; }
.ph-fig--32 { aspect-ratio: 3 / 2; }
.ph-fig--1610 { aspect-ratio: 16 / 10; }
.ph-fig--45 { aspect-ratio: 4 / 5; }
.tag {
  position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 2; max-width: calc(100% - 1.2rem);
  padding: 0.25rem 0.55rem; font-size: 0.6875rem; line-height: 1.3; letter-spacing: 0.02em;
  color: var(--navy); background: rgb(255 255 255 / 0.88); border-radius: 3px;
}
.tag--prov { border: 1px dashed rgb(11 18 38 / 0.4); }
.caption { margin-top: 0.75rem; font-size: var(--fs-xs); color: var(--slate); }
.dark .caption { color: var(--on-dark-soft); }

/* Etichette di stato */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.2rem 0.6rem; font-size: var(--fs-xs); line-height: 1.4;
  border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.chip--done::before { background: var(--gold); }
.chip--proto::before { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }
.chip--dev::before { background: linear-gradient(90deg, var(--gold) 25%, transparent 25%); }
.dark .chip { border-color: var(--line-dark); color: var(--on-dark); }
.dark .chip::before { border-color: var(--honey); }
.dark .chip--done::before { background: var(--honey); }
.dark .chip--proto::before { background: linear-gradient(90deg, var(--honey) 50%, transparent 50%); }
.dark .chip--dev::before { background: linear-gradient(90deg, var(--honey) 25%, transparent 25%); }

/* Elenco numerato editoriale */
.steps { border-top: 1px solid var(--line); }
.steps > li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.steps .num { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.1; }
.steps p { margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--slate); max-width: 34rem; }
.dark .steps, .dark .steps > li { border-color: var(--line-dark); }
.dark .steps p { color: var(--on-dark); }

/* 6. Sezioni -------------------------------------------------------------- */

/* Apertura a tutto schermo */
.hero { position: relative; display: flex; min-height: 100vh; min-height: 100svh; color: #fff; background: var(--navy); isolation: isolate; overflow: hidden; }
.hero--tall { min-height: 88vh; min-height: 88svh; }
.hero__media, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; }
.hero__shade { background: linear-gradient(0deg, rgb(11 18 38 / 0.88) 0%, rgb(11 18 38 / 0.45) 50%, rgb(11 18 38 / 0.25) 100%); }
@media (min-width: 60rem) {
  .hero--left .hero__shade { background: linear-gradient(90deg, rgb(11 18 38 / 0.86) 0%, rgb(11 18 38 / 0.55) 40%, rgb(11 18 38 / 0.08) 72%), linear-gradient(0deg, rgb(11 18 38 / 0.35), rgb(11 18 38 / 0) 40%); }
  .hero--right .hero__shade { background: linear-gradient(270deg, rgb(11 18 38 / 0.86) 0%, rgb(11 18 38 / 0.55) 40%, rgb(11 18 38 / 0.08) 72%), linear-gradient(0deg, rgb(11 18 38 / 0.35), rgb(11 18 38 / 0) 40%); }
}
.hero__in { display: flex; align-items: flex-end; padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 10vh, 7rem); }
@media (min-width: 60rem) {
  .hero--left .hero__in, .hero--right .hero__in { align-items: center; }
  .hero--right .hero__in { justify-content: flex-end; }
}
.hero__text { max-width: 40rem; }
.hero__logo { width: clamp(150px, 13vw, 210px); margin-bottom: 2.25rem; }
.hero h1, .hero .h1 { margin-bottom: 1.75rem; }
.hero .h1 { font-size: clamp(2.25rem, 1.3rem + 4vw, 4.5rem); line-height: 1.06; font-weight: 400; letter-spacing: -0.022em; }
.hero__lead { max-width: 32rem; font-size: var(--fs-lead); line-height: 1.6; color: rgb(255 255 255 / 0.88); }
.sig { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--on-dark); text-decoration: none; }
.sig img { height: 17px; width: auto; }
.sig strong { font-weight: 600; color: #fff; }
.hero__note { margin-top: 2rem; }
.hero__badge { position: absolute; right: 1rem; bottom: 1rem; }
.cue {
  position: absolute; left: 50%; bottom: 1.5rem; display: none; flex-direction: column; align-items: center; gap: 0.5rem;
  transform: translateX(-50%); font-size: var(--fs-xs); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--on-dark); text-decoration: none; min-height: 44px;
}
.cue i { width: 1px; height: 2.5rem; background: linear-gradient(rgb(255 255 255 / 0.85), rgb(255 255 255 / 0)); }
@media (min-width: 60rem) and (min-height: 40rem) { .cue { display: flex; } }

/* Vesper: come funziona */
.how { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .how { grid-template-columns: repeat(3, 1fr); } }
.how > li { padding: 2rem 2rem 2.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .how > li:nth-child(odd) { padding-right: 2.5rem; } }
.how__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.how .num { font-size: 1.5rem; }
.how p { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--slate); max-width: 26rem; }

/* Vesper: situazioni */
.sits { display: grid; gap: 3.5rem 2rem; }
@media (min-width: 48rem) { .sits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .sits { grid-template-columns: repeat(3, 1fr); } .sit--wide { grid-column: span 1; } }
.sit h3 { margin: 1.5rem 0 1rem; font-size: var(--fs-h4); }
.sit dl { display: grid; gap: 0.85rem; }
.sit dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.sit dd { margin-top: 0.15rem; font-size: var(--fs-sm); color: var(--slate); }

/* Vesper: tecnologia */
.flow { display: grid; gap: 1px; margin-top: 3.5rem; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 52rem) { .flow { grid-template-columns: 1fr 1fr; } }
.flow > div { padding: 2rem; background: var(--navy); }
.flow h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: var(--fs-h4); }
.flow h3 svg { width: 22px; height: 22px; color: var(--honey); flex: none; }
.flow ul { padding-left: 1.1em; color: var(--on-dark); font-size: var(--fs-sm); }
.flow li + li { margin-top: 0.5rem; }

.goals { display: grid; gap: 2.5rem 2rem; margin-top: 4rem; }
@media (min-width: 52rem) { .goals { grid-template-columns: repeat(3, 1fr); } }
.goals h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.goals p { font-size: var(--fs-sm); color: var(--on-dark); max-width: 20rem; }
.goals > li { padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }

/* Vesper: piattaforma */
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 0.25rem 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .spec > div { grid-template-columns: 13rem 1fr; } }
.spec dt { font-size: var(--fs-sm); color: var(--slate); }
.spec dd { font-size: var(--fs-sm); }

/* Vesper: privacy */
.cols2 { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 48rem) { .cols2 { grid-template-columns: 1fr 1fr; } }
.box { padding: 1.75rem; background: var(--white); border-radius: var(--radius); }
.box h3 { font-size: var(--fs-h4); margin-bottom: 0.75rem; }
.box ul { padding-left: 1.1em; font-size: var(--fs-sm); color: var(--slate); }
.box li + li { margin-top: 0.4rem; }

.principles { display: grid; gap: 1.75rem 2.5rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .principles { grid-template-columns: 1fr 1fr; } }
.principles h3 { font-size: var(--fs-h4); }
.principles p { margin-top: 0.35rem; font-size: var(--fs-sm); color: var(--slate); }

/* Vesper: stato */
.track { position: relative; display: grid; gap: 0; }
.track > li { position: relative; display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding-bottom: 2rem; }
.track > li::before { content: ''; position: absolute; left: calc(0.6rem - 0.5px); top: 1.3rem; bottom: 0; width: 1px; background: var(--line-strong); }
.track > li:last-child::before { display: none; }
.track__dot { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; border-radius: 50%; border: 2px solid var(--gold); background: var(--white-cool); position: relative; z-index: 1; }
.track__dot--done { background: var(--gold); }
.track__dot--proto { background: linear-gradient(90deg, var(--gold) 50%, var(--white-cool) 50%); }
.track__dot--dev { background: linear-gradient(90deg, var(--gold) 25%, var(--white-cool) 25%); }
.track h3 { font-size: var(--fs-h4); }
.track .state { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.track p, .track ul { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--slate); }
.track ul { padding-left: 1.1em; }

.indicators { margin-top: 3rem; padding: 2rem; background: var(--white); border-radius: var(--radius); }
.indicators h3 { font-size: var(--fs-h4); margin-bottom: 1rem; }
.indicators ol { padding-left: 1.2em; font-size: var(--fs-sm); color: var(--slate); }
.indicators li + li { margin-top: 0.4rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 64px; padding-block: 1.1rem; cursor: pointer; list-style: none;
  font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .ans { padding: 0 0 1.75rem; max-width: 46rem; color: var(--slate); }
.faq .ans > * + * { margin-top: 0.85rem; }

/* Contatti */
.form { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); color: var(--navy); border-radius: var(--radius); }
.form h3 { font-size: var(--fs-h4); }
.form .hint { margin-top: 0.4rem; margin-bottom: 1.5rem; font-size: var(--fs-xs); color: var(--slate); }
.field + .field { margin-top: 1.25rem; }
.field > label, .field legend { display: block; margin-bottom: 0.5rem; font-size: var(--fs-sm); font-weight: 500; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.choice { display: grid; gap: 0.5rem; }
@media (min-width: 36rem) { .choice { grid-template-columns: repeat(3, 1fr); } }
.choice label {
  display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.6rem 0.85rem;
  font-size: var(--fs-sm); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.choice input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.choice label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field input[type='text'], .field input[type='email'], .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font-size: 1rem;
  background: var(--white-cool); border: 1px solid var(--line-strong); border-radius: 4px;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.field [aria-invalid='true'] { border-color: #a3271f; }
.err { margin-top: 0.4rem; font-size: var(--fs-xs); color: #a3271f; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--slate); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.check .err { grid-column: 1 / -1; }
.status:empty { display: none; }
.status { margin-top: 1.25rem; padding: 0.9rem 1.1rem; font-size: var(--fs-sm); border-left: 3px solid; }
.status--ok { color: #1d6b45; background: rgb(29 107 69 / 0.07); }
.status--ko { color: #a3271f; background: rgb(163 39 31 / 0.06); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.contact-list li { padding-top: 1rem; border-top: 1px solid var(--line-dark); }
.contact-list h3 { font-size: var(--fs-h4); }
.contact-list p { margin-top: 0.25rem; font-size: var(--fs-sm); color: var(--on-dark); }

/* Pantoufle: ricerca */
.timeline { border-top: 1px solid var(--line); }
.timeline > li { display: grid; gap: 0.5rem 3rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .timeline > li { grid-template-columns: 12rem 1fr; } }
.timeline .when { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.timeline .where { display: block; margin-top: 0.25rem; font-size: var(--fs-xs); letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.timeline p { color: var(--slate); font-size: var(--fs-sm); max-width: 42rem; }
.timeline a { color: var(--navy); }

.kinds { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 52rem) { .kinds { grid-template-columns: repeat(3, 1fr); } }
.kinds > li { padding: 1.5rem; background: var(--white-cool); border-radius: var(--radius); }
.kinds h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.kinds p { font-size: var(--fs-sm); color: var(--slate); }

.method { counter-reset: m; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 52rem) { .method { grid-template-columns: repeat(3, 1fr); } }
.method > li { padding: 1.75rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.method .num { display: block; font-size: 1.5rem; margin-bottom: 1rem; }
.method h3 { font-size: var(--fs-h4); }
.method p { margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--slate); max-width: 22rem; }

.people { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 52rem) { .people { grid-template-columns: repeat(3, 1fr); } }
.people > li { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.people h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; }
.people p { font-size: var(--fs-sm); color: var(--slate); }

/* Grande citazione */
.quote { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.75rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 400; max-width: 44rem; text-wrap: balance; }

/* 7. Piè di pagina -------------------------------------------------------- */
.ftr { padding-block: var(--section-sm) 2.5rem; background: var(--navy); color: #fff; font-size: var(--fs-sm); }
.ftr a { color: var(--on-dark); text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.ftr a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--honey); }
.ftr__top { display: grid; gap: 3rem 2.5rem; padding-bottom: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
@media (min-width: 64rem) { .ftr__top { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.ftr__brand img { height: 46px; width: auto; }
.ftr__brand p { margin-top: 1.25rem; max-width: 22rem; color: var(--on-dark); }
.ftr h2 { margin-bottom: 1rem; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.ftr li { color: var(--on-dark); }
.ftr__by { display: inline-flex !important; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.ftr__by img { height: 16px; width: auto; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--on-dark-soft); font-size: var(--fs-xs); }
.ftr__bottom p { max-width: 46rem; }

/* 8. Movimento ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 130ms + 80ms); }
  html.js .in .rv, html.js .rv.in { opacity: 1; transform: none; }
  html.js .hero__media img { transform: scale(1.045); transition: transform 2.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
  html.js .hero.in .hero__media img { transform: none; }
  .cue i { animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
  @keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.hero__badge .tag { position: static; }
.ph-fig picture { width: 100%; height: 100%; }
.brand__logo { height: 40px; }
.ftr .ph { color: #fff; border-color: rgb(255 255 255 / 0.4); background: rgb(242 186 82 / 0.18); }

.a11y__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer;
  border-radius: 6px; opacity: 0.85;
}
.a11y__btn:hover { opacity: 1; }
  width: 72px; height: 20px; margin: 0; background: transparent; cursor: pointer;
  accent-color: var(--honey); -webkit-appearance: none; appearance: none;
}

/* Accessibilità: contrasto e dimensione del testo */
.a11y { display: flex; gap: 0.15rem; }
.a11y__btn svg { width: 20px; height: 20px; }
.a11y__aa { font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.a11y__aa small { font-size: 0.7rem; }
.a11y__btn[aria-pressed='true'] { box-shadow: inset 0 -2px 0 var(--honey); opacity: 1; }
@media (max-width: 30rem) { .a11y { display: none; } }
html.big { font-size: 112.5%; }
html.hc { --slate: #1b2133; --on-dark: #ffffff; --on-dark-soft: rgb(255 255 255 / 0.9); --line: rgb(11 18 38 / 0.35); --line-dark: rgb(255 255 255 / 0.4); --gold: #6e5420; }
html.hc .hero__shade { background: rgb(11 18 38 / 0.82) !important; }
html.hc .hero__lead { color: #fff; }
html.hc .chip { border-color: currentColor; }

/* Hero: segni distintivi */
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2rem; font-size: var(--fs-sm); color: var(--on-dark); }
.facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--honey); }
.hero .facts + .hero__note { margin-top: 1.25rem; }

/* Per chi è pensato */
.groups { display: grid; gap: 2.5rem 2rem; margin-top: 4rem; }
@media (min-width: 40rem) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .groups { grid-template-columns: repeat(4, 1fr); } }
.groups li { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.groups svg { width: 28px; height: 28px; color: var(--navy); }
.groups h3 { margin: 1.1rem 0 0.4rem; font-size: var(--fs-h4); }
.groups p { font-size: var(--fs-sm); color: var(--slate); }
.why { margin-top: 4rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--navy); color: #fff; border-radius: var(--radius); display: grid; gap: 1rem 3rem; }
@media (min-width: 52rem) { .why { grid-template-columns: 4fr 8fr; align-items: start; } }
.why h3 { font-size: var(--fs-h3); font-weight: 400; }
.why p { color: var(--on-dark); max-width: 44rem; }

/* Situazioni: esempio di voce */
.voice { margin-top: 1.1rem; padding: 0.85rem 1rem; font-size: var(--fs-sm); font-style: italic; background: var(--white); border-left: 2px solid var(--honey); border-radius: 0 4px 4px 0; }
.white .voice { background: var(--white-cool); }

/* Elenco con spunte */
.ticks { display: grid; gap: 0.7rem; margin-top: 1.75rem; }
.ticks li { position: relative; padding-left: 1.75rem; font-size: var(--fs-sm); color: var(--slate); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ticks--dark li { color: var(--on-dark); }
.ticks--dark li::before { border-color: var(--honey); }
.contact-list + .ticks { margin-top: 2rem; }

/* App: telefono di esempio */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone {
  width: min(300px, 80vw); padding: 1.1rem 1rem 1.5rem; background: var(--white-cool);
  border: 10px solid var(--navy); border-radius: 36px; box-shadow: 0 30px 60px rgb(11 18 38 / 0.18);
  font-size: 0.875rem; color: var(--navy);
}
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.4rem 0.9rem; font-weight: 600; }
.phone__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.phone__ok { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; margin-bottom: 0.9rem; background: var(--navy); color: #fff; border-radius: 14px; }
.phone__ok span { font-size: 0.8125rem; color: var(--on-dark); }
.phone ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.phone li { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.8rem; background: #fff; border-radius: 10px; }
.phone time { font-variant-numeric: tabular-nums; color: var(--slate); font-size: 0.8125rem; }
.d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.d--ok { background: #3c8c66; }
.d--warn { background: var(--honey); }
.phone-wrap .caption { max-width: 300px; text-align: center; margin-top: 1.25rem; }

/* Modulo: selezione */
.field select {
  width: 100%; min-height: 48px; padding: 0.7rem 2.5rem 0.7rem 0.85rem; font-size: 1rem;
  background: var(--white-cool) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B1226' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 9.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  border: 1px solid var(--line-strong); border-radius: 4px; appearance: none;
}
.field input[type='tel'] { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font-size: 1rem; background: var(--white-cool); border: 1px solid var(--line-strong); border-radius: 4px; }

/* Foto dei gruppi, riquadro «perché» e foto dell'app */
.groups .g-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin: 0 0 0.25rem; }
.groups .g-photo img { width: 100%; height: 100%; object-fit: cover; }
.groups li { border-top: 0; padding-top: 0; }
.why { padding: 0; overflow: hidden; gap: 0; }
@media (min-width: 52rem) { .why { grid-template-columns: 5fr 7fr; align-items: stretch; } }
.why__img { margin: 0; min-height: 260px; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__txt { padding: clamp(1.5rem, 3.5vw, 3rem); align-self: center; display: grid; gap: 1rem; }
.app-visual { position: relative; }
.app-visual__img { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; }
.app-visual__img img { width: 100%; height: 100%; object-fit: cover; }
.app-visual .phone-wrap { margin-top: -6rem; position: relative; }
.app-visual .phone { width: min(260px, 72vw); font-size: 0.8125rem; }
@media (min-width: 64rem) {
  .app-visual { padding-left: 4rem; }
  .app-visual .phone-wrap { position: absolute; left: 0; bottom: -6rem; align-items: flex-start; margin: 0; }
  .app-visual .phone-wrap .caption { max-width: 260px; text-align: left; }
  .app-visual { margin-bottom: 6rem; }
  .app-visual__img { width: 88%; margin-left: auto; }
}
.app-visual + .app-caption { margin-top: 3.5rem; }

/* Titoli: ogni frase su una riga nuova, senza punto finale */
h1, h2 { text-wrap: balance; }
.hero h1 { width: max-content; max-width: min(56rem, calc(100vw - 2.5rem)); }

/* Firma Pantoufle: solo il logo esteso bianco */
.sig img { height: 20px; width: auto; display: block; }
.ftr__by img { height: 18px; width: auto; display: block; }

/* ===== Aggiornamento ottobre 2026: menu ===== */
@media (min-width: 80rem) {
  .nav__list { align-items: flex-start; }
  .nav__link { align-items: flex-start; padding-top: 0.75rem; line-height: 1.3; }
}
@media (max-width: 79.99rem) {
  html.js .hdr__in { justify-content: flex-start; gap: 0.75rem; }
  html.js .hdr__in > .menu-btn { margin-right: 0; margin-left: -12px; }
  html.js .hdr__in > .brand { margin-right: auto; }
  html.js .nav {
    inset: var(--header-h) auto auto 0; width: min(21rem, 88vw);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    padding: 0.75rem var(--gutter) 1.75rem; color: var(--navy); background: rgb(240 240 242 / 0.96);
    border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius) 0; box-shadow: 0 18px 40px rgb(11 18 38 / 0.08);
    animation: vnav-in 0.25s var(--ease) both;
  }
    html.js .nav__link { min-height: 52px; font-size: 1.125rem; }
  html.js .nav__extra .btn { align-self: flex-start; }
  /* l'intestazione resta com'è: trasparente sopra la foto, chiara dopo lo scorrimento */
  html.js .hdr.is-over.is-open { color: #fff; background: linear-gradient(rgb(11 18 38 / 0.5), rgb(11 18 38 / 0)); }
  html.js .hdr.is-open { backdrop-filter: none; }
  html.js .hdr.is-solid.is-open { background: rgb(240 240 242); }
  @supports (backdrop-filter: blur(1px)) { html.js .nav { background: rgb(240 240 242 / 0.82); backdrop-filter: blur(14px); } }
  html.js .hdr.is-over.is-open .brand__logo--dark { display: none; }
  html.js .hdr.is-over.is-open .brand__logo--light { display: block; }
  html.js .hdr.is-over.is-open .cross .on-light { display: none; }
  html.js .hdr.is-over.is-open .cross .on-dark-img { display: block; }
  html.js .hdr.is-over .nav { color: #fff; background: rgb(11 18 38 / 0.55); border-color: rgb(255 255 255 / 0.15); box-shadow: none; }
  @supports (backdrop-filter: blur(1px)) { html.js .hdr.is-over .nav { background: rgb(11 18 38 / 0.45); backdrop-filter: blur(12px); } }
  html.js .hdr.is-over .nav__link { border-bottom-color: rgb(255 255 255 / 0.18); }
  html.js .hdr.is-over .nav__extra .link { color: #fff; }
}
@keyframes vnav-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav { animation: none !important; } }

/* Nota sulle immagini, in fondo al piè di pagina (ottobre 2026) */
.pf-nota{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid rgb(255 255 255 / .12);max-width:78ch;font-size:.75rem;line-height:1.55;color:rgb(255 255 255 / .62)}
.pf-nota__t{margin:0 0 .4rem;font-size:.75rem;font-weight:600;letter-spacing:.04em;color:rgb(255 255 255 / .78)}
.pf-nota p{margin:0}
.pf-nota p+p{margin-top:.3rem}
