:root {
  --bg: #f7f4ed;
  --surface: #ffffff;
  --text: #1e2a2e;
  --muted: #5b6b67;
  --line: #ddd6c4;
  --accent: #f2b84b;
  --accent-ink: #1e2a2e;
  --accent-2: #e4f1ed;
  --secondary: #16725f;
  --dark: #123b46;
  --radius-sm: 10px;
  --radius: 18px;
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  /* 100vh on mobile browsers counts the space the address bar takes
     even while it's on screen, leaving a gap before the footer.
     100dvh tracks the actually-visible viewport instead. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

/* Grows to fill the viewport on short pages, pushing the footer down
   to the bottom of the screen instead of leaving it stranded mid-page. */
main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Links inside body copy need a visible affordance — the reset above
   is meant for nav/buttons/cards, not for links inline in a paragraph. */
.content-section p a,
.faq-item p a,
.page-hero p a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section p a:hover,
.faq-item p a:hover,
.page-hero p a:hover {
  color: var(--dark);
}

/* .container only ever centers a block — layout (grid/flex) always lives
   on a separate inner element, never combined on the same node. */
.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 237, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  height: 40px;
  width: 40px;
  display: block;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  height: 28px;
  width: 28px;
  display: block;
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}

/* Page name centered in the header, standing in for the nav links this
   header no longer has. Not a link: it just says where you are. */
.header-page-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Hero */

.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* A single, deliberate entrance on page load — not a scroll effect,
   and not repeated on every section. Respects reduced motion. */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: hero-enter 0.7s ease-out both;
}

.device-wrap {
  animation: hero-enter 0.7s ease-out 0.15s both;
}

@keyframes screen-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

.hero-device-svg rect[fill="url(#screenGlow)"] {
  animation: screen-breathe 4.5s ease-in-out infinite;
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .device-wrap,
  .hero-device-svg rect[fill="url(#screenGlow)"] {
    animation: none;
  }
}

/* The hero headline is now a full question, not a short tagline —
   sized down from the default h1 scale so it doesn't push the CTA
   below the fold. */
.hero h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;
  max-width: 620px;
}

.hero-payoff {
  margin: 18px 0 28px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
}

.hero-text,
.step p,
.signup p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--secondary);
}

.trust-row span {
  position: relative;
  padding-left: 16px;
}

.trust-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}

/* Device illustration — the one bold, illustrative moment on the page */

.device-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-device-svg {
  width: min(360px, 78vw);
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(18, 59, 70, 0.25));
}

.hero-device-brand,
.hero-device-status {
  font-family: var(--font-display);
}

/* Benefits — a parallel list, not a sequence: no numbering, no card
   shadows. A colored rule marks each item instead. */

.benefits {
  padding: 88px 0;
}

/* A heading meant to sit centered above a full-width grid, instead of
   pinned to the container's left edge like the grid cards below it. */
.section-heading {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.benefits-lead {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 40px;
}

/* A set of problems, boxed instead of the plain colored-rule list used
   for benefits right below on the same page — same language as
   .status-card on Sicurezza, kept visually apart from .benefit. */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.compare-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.compare-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.compare-card h3 {
  margin-bottom: 8px;
}

.compare-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.benefit {
  border-left: 3px solid var(--secondary);
  padding-left: 20px;
}

.benefit p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* How it works — a genuine sequence, shown as a connected path */

.how {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.step p {
  margin: 0;
}

/* Signup — the one deliberately bold block on every page */

.signup {
  padding: 88px 0;
}

.signup-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 48px;
  border-radius: 20px;
  background: var(--dark);
  color: white;
}

.signup-box h2 {
  color: white;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.signup-box p {
  color: #cbd5e1;
}

.signup-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.signup-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #1c4a56;
  border-radius: 14px;
  background: #0d2b33;
  color: white;
  font: inherit;
  outline: none;
}

.signup-form input:focus {
  border-color: var(--accent);
}

.signup-form button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: white;
  color: var(--dark);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.form-message {
  min-height: 24px;
  margin: 4px 0 0;
  font-size: 0.9rem;
}

footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a:hover {
  color: var(--dark);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: inline-flex;
  color: var(--muted);
}

.footer-social a:hover {
  color: var(--dark);
}

.footer-social svg {
  width: 19px;
  height: 19px;
}

/* Inner pages */

.page-hero {
  padding: 76px 0 8px;
}

.page-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-section {
  padding: 48px 0;
}

.content-section p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.status-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.status-card.confirmed {
  border-color: var(--secondary);
}

.status-card.pending {
  border-color: var(--accent);
}

.status-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 4px;
  max-width: 720px;
}

.faq-item {
  padding: 24px 0 24px 20px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
}

.faq-item p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* The opening sentence of a long answer carries the gist on its own,
   so it can be scanned without reading the whole paragraph. */
.faq-lead {
  color: var(--text);
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 40px;
  margin-top: 28px;
  justify-content: center;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  background: var(--accent-2);
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--dark);
}

.team-member h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.team-linkedin {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.92rem;
}

.team-linkedin:hover {
  color: var(--dark);
}

.stat-bar-group {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  margin-bottom: 28px;
  max-width: 680px;
}

.stat-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.96rem;
  color: var(--text);
}

.stat-bar-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}

.stat-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--secondary);
}

.stat-bar-fill.pending {
  background: var(--accent);
}

.stub-notice {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--accent-2);
  color: var(--dark);
  font-weight: 600;
  max-width: 620px;
}

.stub-notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Blog/Diario listing — a grid of parallel entries, same "colored rule,
   no shadow, no boxed card" language as .benefit, not the SaaS-card kit. */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 44px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  border-left: 3px solid var(--secondary);
}

.post-card-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--text);
}

.post-card-excerpt {
  color: var(--muted);
  line-height: 1.6;
}

.post-card-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.post-card-byline img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-byline span {
  font-size: 0.82rem;
  color: var(--muted);
}

.post-card:hover .post-card-title {
  color: var(--secondary);
}

.post-meta {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.post-meta a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-dek {
  font-size: 1.05rem;
}

/* Byline — photo, name, date, like a dateline under the headline. */
.post-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.post-byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-byline-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

.post-byline-date {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
}

.post-back {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.post-back a {
  color: var(--secondary);
  font-weight: 600;
}

.post-back a:hover {
  color: var(--dark);
}

/* Shared reading-column width, reused wherever post content needs to
   line up: hero title, body, rule, back-link. */
.post-col {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Centered text, for short intro/explanatory blocks (page heroes,
   section intros). Never applied to .faq-list or article bodies: a
   list of Q&A pairs or a long-form read is more legible left-aligned,
   centering is for short display copy, not extended reading. */
.post-col.centered {
  text-align: center;
}

/* The opening paragraph carries the reader in: a little larger and a
   little darker than the rest, like a lede — and a capital letter set
   like a dropped cap, the one flourish this template allows itself. */
.post-body > p:first-child {
  font-size: 1.15rem;
  color: var(--text);
}

.post-body > p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.78;
  float: left;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--secondary);
}

.post-body h2 {
  margin-top: 40px;
}

.post-body h3 {
  margin-top: 28px;
}

.post-body ul,
.post-body ol {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
  padding-left: 22px;
}

.post-body li + li {
  margin-top: 6px;
}

/* Diagrams/illustrations embedded in an article: full width, a soft card
   rather than a bare image, since the source art is a dark teal panel
   sitting on this page's light background. */
.post-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(18, 59, 70, 0.18);
}

/* Pull quote: a line lifted from the body and set larger, not a citation. */
.post-body blockquote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--dark);
}

.post-body blockquote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

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

@media (max-width: 840px) {
  .header-page-name {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero-text,
  .hero-payoff {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }

  .hero-grid,
  .how-grid,
  .signup-box,
  .status-grid,
  .benefit-list,
  .team-grid,
  .post-grid,
  .compare-grid,
  .compare-grid.three {
    grid-template-columns: 1fr;
  }

  .team-grid {
    justify-items: center;
  }

  .benefit-list {
    gap: 28px;
  }

  .how-grid {
    gap: 30px;
  }

  .signup-box {
    padding: 34px 24px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1160px);
  }

  .nav-cta {
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Ponte dalla home allo strumento del quaderno: PacoKey non e' ancora
   acquistabile, e chi arriva deve poter portare via qualcosa di utile
   subito invece di una sola lista d'attesa. */
.intanto {
  margin-top: 36px;
  color: var(--muted);
  line-height: 1.6;
}

.intanto a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
