/* Advia — sito di presentazione (advia.info).
   Colori e font sono quelli dell'app: blu #2638E4, notte #111947, lime #EAFF64, corallo #FF876D, lavanda #E5EAFF;
   DM Sans per i testi, Anton per titoli e numeri grandi. Testo base a 18 px: il pubblico tipo ha 60 anni. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans-latin-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #111947;
  --night-2: #1b2462;
  --night-line: rgb(255 255 255 / 0.14);
  --blue: #2638e4;
  --blue-dark: #1d2bb8;
  --lime: #eaff64;
  --coral: #ff876d;
  --lavender: #e5eaff;
  --paper: #f4f6fd;
  --ink: #111947;
  --ink-2: #434b72;
  --line: #dce0f2;
  --white: #ffffff;

  --font: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-shot: 0 1px 0 rgb(17 25 71 / 0.04), 0 30px 70px -36px rgb(17 25 71 / 0.6);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

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

.on-night :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 1.9rem + 5.4vw, 6.6rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.4rem, 1.6rem + 3.1vw, 4.2rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40em;
}

.visually-hidden {
  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: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius-s);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 14px;
  font: 650 1.0625rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-lime {
  background: var(--lime);
  color: var(--night);
}

.btn-lime:hover {
  background: #f3ff9e;
  color: var(--night);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ---------- Testata ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.25s ease;
}

.brand .logo-dark {
  display: none;
}

/* Sopra la foto dell'apertura la testata è trasparente con scritte bianche; scorrendo torna bianca. */
.site-header.is-over-hero:not(.menu-open) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-over-hero:not(.menu-open) .brand .logo-light {
  display: none;
}

.site-header.is-over-hero:not(.menu-open) .brand .logo-dark {
  display: block;
}

.site-header.is-over-hero:not(.menu-open) .main-nav a,
.site-header.is-over-hero:not(.menu-open) .header-actions .login {
  color: var(--white);
}

.site-header.is-over-hero:not(.menu-open) .main-nav a:hover {
  background: rgb(255 255 255 / 0.12);
}

.site-header.is-over-hero:not(.menu-open) .btn-primary {
  background: var(--lime);
  color: var(--night);
}

.site-header.is-over-hero:not(.menu-open) .menu-toggle {
  border-color: rgb(255 255 255 / 0.35);
  background: transparent;
  color: var(--white);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: 122px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 550;
  font-size: 1.0625rem;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .login {
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  margin: auto;
}

@media (max-width: 980px) {
  .main-nav,
  .header-actions .login {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    order: 3;
  }

  .site-header.menu-open .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgb(17 25 71 / 0.5);
  }

  .site-header.menu-open .main-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.2rem;
  }

  .main-nav .nav-login {
    display: block;
  }
}

@media (min-width: 981px) {
  .main-nav .nav-login {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 100px;
  }

  .header-actions .btn-small {
    padding-inline: 14px;
  }
}

/* ---------- Apertura ----------
   Scena a tutto schermo: il video di montagne (Mixkit, licenza gratuita) velato di blu notte a sinistra,
   il titolo in bianco e l'app in prospettiva che entra una volta sola, con tre momenti veri del lavoro intorno. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -76px;
  padding-top: calc(76px + clamp(40px, 7vh, 96px));
  padding-bottom: clamp(96px, 14vh, 180px);
  min-height: min(100svh, 1080px);
  display: flex;
  align-items: center;
  background: var(--night);
  color: var(--white);
}

/* Sotto c'è il fotogramma fisso; sopra il video, che compare in dissolvenza quando parte davvero (site.js). */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-bg img {
  animation: hero-photo 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-video {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-video.is-playing {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(17 25 71 / 0.9) 0%, rgb(17 25 71 / 0.8) 36%, rgb(17 25 71 / 0.58) 49%, rgb(17 25 71 / 0.14) 64%, rgb(17 25 71 / 0) 76%),
    linear-gradient(180deg, rgb(17 25 71 / 0.45) 0%, rgb(17 25 71 / 0) 18%, rgb(17 25 71 / 0) 74%, var(--night) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.1rem, 1.5rem + 4.2vw, 5.9rem);
  line-height: 0.95;
  color: var(--white);
}

.hero h1 .line {
  display: block;
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 .line + .line {
  animation-delay: 0.12s;
}

.hero .lead {
  margin-top: 28px;
  max-width: 31em;
  color: rgb(255 255 255 / 0.86);
  animation: hero-rise 0.9s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero .hero-actions {
  animation: hero-rise 0.9s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.btn-glass {
  border-color: rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-glass:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 0.14);
  color: var(--white);
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  color: rgb(255 255 255 / 0.84);
  font-size: 1rem;
}

.hero .reassure {
  animation: hero-rise 0.9s 0.44s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reassure li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--night);
  display: inline-grid;
  place-items: center;
}

/* La scena dell'app: prospettiva leggera, si muove appena con il mouse (variabili --px e --py da site.js). */
.hero-stage {
  position: relative;
  perspective: 2000px;
  margin-right: calc(-1 * var(--gutter) - 6vw);
}

.stage-enter {
  animation: stage-in 1.3s 0.2s cubic-bezier(0.16, 0.8, 0.2, 1) both;
  transform-style: preserve-3d;
}

.stage-3d {
  --px: 0;
  --py: 0;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(calc(-17deg + var(--px) * 3deg)) rotateX(calc(7deg - var(--py) * 2deg)) rotateZ(1.2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stage-desktop {
  border-radius: 22px;
  overflow: hidden;
  background: var(--night-2);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.22),
    0 50px 100px -30px rgb(5 8 30 / 0.85),
    0 20px 40px -20px rgb(5 8 30 / 0.6);
}

.float {
  position: absolute;
  transform-style: preserve-3d;
  animation: float-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

.float-toast {
  top: -44px;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  background: var(--white);
  color: var(--night);
  box-shadow: 0 30px 60px -24px rgb(5 8 30 / 0.7);
  transform: translateZ(140px);
  animation-delay: 1.55s;
}

.float-toast strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.float-toast small {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.toast-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #16a34a;
  color: var(--white);
  display: grid;
  place-items: center;
}

.float-stat {
  left: -3%;
  bottom: -14%;
  width: 200px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--lime);
  color: var(--night);
  box-shadow: 0 30px 60px -24px rgb(5 8 30 / 0.7);
  transform: translateZ(110px);
  animation-delay: 1.15s;
}

.float-stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 4rem;
  line-height: 0.9;
}

.float-stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.float-chip {
  left: 30%;
  bottom: -34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  background: rgb(17 25 71 / 0.72);
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 20px 40px -20px rgb(5 8 30 / 0.8);
  transform: translateZ(90px);
  animation-delay: 1.35s;
}

.chip-dots {
  display: inline-flex;
}

.chip-dots i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--night);
}

.chip-dots i + i {
  margin-left: -7px;
}

.chip-dots .ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

.chip-dots .fb {
  background: #1877f2;
}

.float-phone {
  right: 9%;
  bottom: -12%;
  width: 210px;
  transform: translateZ(70px) rotateZ(-2deg);
  animation-delay: 0.95s;
}

@keyframes hero-photo {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes stage-in {
  from { opacity: 0; transform: translateX(120px) rotateY(-14deg); }
  to { opacity: 1; transform: none; }
}

@keyframes float-in {
  from { opacity: 0; scale: 0.82; }
  to { opacity: 1; scale: 1; }
}

@media (max-width: 1100px) {
  .float-chip {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-bottom: 120px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgb(17 25 71 / 0.9) 0%, rgb(17 25 71 / 0.82) 45%, rgb(17 25 71 / 0.25) 75%, var(--night) 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-stage {
    margin-right: 0;
  }

  .stage-3d {
    transform: rotateY(-8deg) rotateX(5deg);
  }

  .float-toast {
    left: 4%;
    top: -40px;
    max-width: 300px;
    padding: 10px 14px 10px 10px;
  }

  .float-toast strong {
    font-size: 0.92rem;
  }

  .float-toast small {
    font-size: 0.85rem;
  }

  .toast-icon {
    width: 34px;
    height: 34px;
  }

  .float-stat,
  .float-chip {
    display: none;
  }

  .float-phone {
    right: 2%;
    bottom: -60px;
    width: 120px;
  }

  .float-phone.phone {
    padding: 5px;
    border-radius: 24px;
  }

  .float-phone.phone img {
    border-radius: 19px;
  }
}

/* Le foto dell'app: bordi tondi e ombra tinta di blu notte, come i pannelli dell'app. */
.shot {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--lavender);
  box-shadow: var(--shadow-shot);
}

.phone {
  padding: 9px;
  border-radius: 40px;
  background: var(--night);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 40px 70px -30px rgb(17 25 71 / 0.75);
}

.phone img {
  border-radius: 31px;
}

/* ---------- Fascia notte: la strada di un post ---------- */

.night-band {
  position: relative;
  background: var(--night);
  color: var(--white);
}

.hero + .night-band {
  padding-top: clamp(16px, 3vw, 40px);
}

.journey-section {
  padding-bottom: var(--section);
}

.journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px;
  align-items: end;
}

.journey-head p {
  color: rgb(255 255 255 / 0.78);
  font-size: 1.2rem;
}

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
  padding: 12px;
  list-style: none;
  border-radius: 26px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--night-line);
}

.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 24px 24px;
  border-radius: 18px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line);
  transition: background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.journey .step-num {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgb(255 255 255 / 0.32);
  transition: color 0.45s ease;
}

.journey h3 {
  margin-top: 18px;
  font-size: 1.45rem;
}

.journey p {
  margin-top: 10px;
  color: rgb(255 255 255 / 0.76);
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: color 0.45s ease;
}

.journey .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 650;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.journey .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* Il passo attivo prende il lime, come la prima scheda della fascia nell'app. */
.journey li.is-active {
  background: var(--lime);
  color: var(--night);
  box-shadow: none;
}

.journey li.is-active .step-num {
  color: var(--night);
}

.journey li.is-active p {
  color: rgb(17 25 71 / 0.82);
}

.journey li.is-active .status {
  background: var(--night);
  color: var(--lime);
}

.journey li.is-done .step-num {
  color: var(--lime);
}

.journey-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: rgb(255 255 255 / 0.7);
  font-size: 1rem;
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  font: 600 1rem var(--font);
  cursor: pointer;
}

.replay:hover {
  border-color: rgb(255 255 255 / 0.4);
}

@media (max-width: 980px) {
  .journey-head {
    grid-template-columns: 1fr;
  }

  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey li {
    min-height: 250px;
  }
}

@media (max-width: 600px) {
  .journey {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .journey li {
    min-height: 0;
  }

  .journey .status {
    margin-top: 18px;
  }
}

/* ---------- Ti suona familiare? ---------- */

.section {
  padding-block: var(--section);
}

.section-head {
  max-width: 820px;
}

.section-head .lead {
  margin-top: 20px;
}

.familiar {
  margin-top: 56px;
  border-top: 2px solid var(--night);
}

.familiar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 64px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.familiar-row blockquote {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--night);
}

.familiar-row blockquote::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--coral);
}

.familiar-row p {
  align-self: end;
  color: var(--ink-2);
  font-size: 1.15rem;
}

.familiar-row p strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .familiar-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Funzioni ---------- */

.features {
  background: var(--paper);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature.is-flipped {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature.is-flipped .feature-copy {
  order: 2;
}

.feature-copy p {
  margin-top: 18px;
  color: var(--ink-2);
}

.feature-copy ul {
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-top: 1px solid var(--line);
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}

.feature-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 650;
}

.feature-media {
  position: relative;
}

.feature-media .phone {
  position: absolute;
  width: clamp(130px, 15vw, 200px);
  right: -12px;
  bottom: -40px;
}

/* Report: una pagina del documento appoggiata sopra la foto delle campagne, come un foglio sulla scrivania. */
.has-paper {
  padding-bottom: 72px;
}

.paper {
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 48%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgb(17 25 71 / 0.55);
}

@media (max-width: 900px) {
  .paper {
    left: 8px;
    width: 62%;
  }
}

@media (max-width: 900px) {
  .feature,
  .feature.is-flipped {
    grid-template-columns: 1fr;
  }

  .feature.is-flipped .feature-copy {
    order: 0;
  }

  .feature-media .phone {
    right: 4px;
    bottom: -28px;
  }
}

/* ---------- E tutto il resto ---------- */

.rest {
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.rest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tile h3 {
  font-size: 1.35rem;
}

.tile p {
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.tile .shot {
  margin-top: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
}

.tile-wide {
  grid-column: span 3;
}

.tile-third {
  grid-column: span 2;
}

.tile-phone {
  grid-column: span 2;
  background: var(--night);
  color: var(--white);
  box-shadow: none;
}

.tile-phone p {
  color: rgb(255 255 255 / 0.78);
}

.tile-phone .phone {
  width: min(220px, 80%);
  margin: 18px auto 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset;
}

.tile-quad {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  padding: 0;
  background: none;
  box-shadow: none;
}

@media (max-width: 980px) {
  .tile-wide,
  .tile-third,
  .tile-quad,
  .tile-phone {
    grid-column: span 6;
  }

}

@media (max-width: 600px) {
  .tile-quad {
    grid-template-columns: 1fr;
  }

  .tile {
    padding: 22px;
  }
}

/* ---------- Funziona con ---------- */

.works-with {
  padding-block: 48px;
  border-block: 1px solid var(--line);
}

.works-with .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
}

.works-with h2 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.works-with ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.works-with li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- Calcolatore ---------- */

.calc {
  background: var(--lavender);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 48px;
  align-items: stretch;
}

.calc-form {
  display: grid;
  gap: 30px;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-l);
  background: var(--white);
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 650;
}

.calc-field output {
  flex: none;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--blue);
}

.calc-field small {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 6px 0 0;
  background: transparent;
  accent-color: var(--blue);
  cursor: pointer;
}

.calc-result {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-l);
  background: var(--night);
  color: var(--white);
}

.calc-result .big-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-result .big {
  padding: 22px;
  border-radius: 16px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line);
}

.calc-result .big:first-child {
  background: var(--lime);
  color: var(--night);
  box-shadow: none;
}

.calc-result .big strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 1;
}

.calc-result .big span {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.calc-result .verdict {
  margin-top: 26px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.calc-result .verdict strong {
  color: var(--lime);
}

.calc-result .fine {
  margin-top: auto;
  padding-top: 22px;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fatto in Italia ---------- */

.italy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px clamp(40px, 7vw, 104px);
  align-items: start;
}

.italy-grid .lead {
  margin-top: 22px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.facts div {
  padding-block: 24px;
  border-top: 2px solid var(--night);
}

.facts dt {
  font-weight: 700;
  font-size: 1.2rem;
}

.facts dd {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

@media (max-width: 900px) {
  .italy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Prezzi ---------- */

.pricing {
  background: var(--paper);
}

.pricing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.billing-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.billing-switch button {
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 650 1.0625rem var(--font);
  cursor: pointer;
}

.billing-switch button[aria-pressed="true"] {
  background: var(--night);
  color: var(--white);
}

.billing-switch .save {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-size: 0.85rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 750;
}

.plan-for {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 26px;
}

.plan-price .amount {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
}

.plan-price .per {
  font-size: 1.05rem;
  color: var(--ink-2);
}

.plan-billed {
  min-height: 1.6em;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.plan ul {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 17px;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}

.plan .btn {
  margin-top: auto;
}

.plan.is-featured {
  background: var(--night);
  color: var(--white);
  box-shadow: 0 40px 70px -40px rgb(17 25 71 / 0.8);
}

.plan.is-featured .plan-for,
.plan.is-featured .plan-price .per,
.plan.is-featured .plan-billed {
  color: rgb(255 255 255 / 0.74);
}

.plan.is-featured li {
  border-top-color: var(--night-line);
}

.plan.is-featured li::before {
  border-color: var(--lime);
}

.plan.is-featured {
  position: relative;
}

/* Il bollino sta sul bordo della scheda, così i prezzi dei tre piani restano alla stessa altezza. */
.plan-badge {
  position: absolute;
  top: -16px;
  left: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-size: 0.95rem;
  font-weight: 700;
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.extras div {
  padding: 24px 26px;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.extras h3 {
  font-size: 1.15rem;
}

.extras p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.price-note {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (max-width: 980px) {
  .plans,
  .extras {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* ---------- Domande ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-grid .lead {
  margin-top: 20px;
}

.faq-list {
  border-top: 2px solid var(--night);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: 18px;
  font-size: 1.2rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--night), var(--night)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--night), var(--night)) center / 2.5px 14px no-repeat,
    var(--lavender);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .answer {
  padding: 0 52px 24px 0;
  color: var(--ink-2);
}

.faq-list .answer p + p {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-list .answer {
    padding-right: 0;
  }
}

/* ---------- Invito finale ---------- */

.final-cta {
  padding-block: var(--section);
  text-align: left;
}

.final-cta h2 {
  max-width: 13em;
  font-size: clamp(2.8rem, 1.8rem + 4vw, 5.6rem);
  line-height: 0.98;
}

.final-cta p {
  margin-top: 24px;
  max-width: 36em;
  color: rgb(255 255 255 / 0.8);
  font-size: 1.25rem;
}

.final-cta .hero-actions {
  margin-top: 36px;
}

.final-cta .btn-ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.3);
  color: var(--white);
}

.final-cta .btn-ghost:hover {
  border-color: var(--white);
}

/* ---------- Piè di pagina ---------- */

.site-footer {
  background: #0c1235;
  color: rgb(255 255 255 / 0.78);
  font-size: 1rem;
}

.site-footer .wrap {
  padding-block: 64px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-top img {
  width: 132px;
  height: auto;
}

.footer-top .tagline {
  margin-top: 18px;
  max-width: 22em;
}

.site-footer h2 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}

.site-footer ul {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.legal-line {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  color: rgb(255 255 255 / 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Pagine legali ---------- */

.legal-main {
  padding-block: clamp(40px, 6vw, 80px) var(--section);
}

.legal-main .wrap {
  max-width: calc(820px + 2 * var(--gutter));
}

.legal-main h1 {
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
  line-height: 1;
}

.legal-updated {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1rem;
}

.legal-owner {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-owner strong {
  display: block;
  margin-bottom: 4px;
}

.legal-toc {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: var(--lavender);
}

.legal-toc p {
  font-weight: 700;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin-top: 10px;
  padding-left: 1.3em;
  font-size: 1.0625rem;
}

@media (max-width: 640px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 8px;
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.92em;
}

.prose a {
  overflow-wrap: anywhere;
}

.legal-intro {
  margin-top: 28px;
}

.legal-article {
  margin-top: 40px;
}

.legal-article section {
  scroll-margin-top: 96px;
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.legal-article section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-article h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.legal-summary {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1rem;
}

.legal-summary h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.legal-summary p {
  margin-top: 8px;
}

/* ---------- Pagina non trovata ---------- */

.not-found {
  padding-block: clamp(80px, 14vw, 180px);
}

.not-found p {
  margin-top: 20px;
}

.not-found .hero-actions {
  margin-top: 32px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Icona dei riquadri di solo testo: dà un punto d'appoggio all'occhio e riempie il riquadro alto. */
.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--blue);
}

.tile-quad .tile {
  justify-content: flex-start;
}

.tile-quad .tile h3 {
  margin-top: 28px;
}

.calc-result .big strong {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .calc-result .big strong {
    font-size: 2.3rem;
  }

  .calc-result .big {
    padding: 18px 16px;
  }
}
