:root {
  --ink: #14181b;
  --ink-soft: #3a4348;
  --accent: #0e4d5c;
  --accent-dark: #093a46;
  --paper: #ffffff;
  --paper-alt: #f4f6f7;
  --line: #d8dee1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  overflow-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 760px; }

/* Hero */
.hero {
  background: var(--paper);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 20ch;
  margin-bottom: 26px;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 10px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 11px 22px;
}

.btn-ghost:hover { background: var(--accent); color: #fff; }

.note { font-size: 0.95rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-alt); }

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

.section p + p { margin-top: 14px; }

/* Cards formati */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.card h3 { color: var(--accent); font-size: 1.25rem; }

.format {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.card p { font-size: 0.98rem; color: var(--ink-soft); }

.price {
  margin-top: auto;
  padding-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink) !important;
}

.price span { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }

.under-cards {
  margin-top: 26px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 74ch;
}

/* Metodo */
.method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.method-item p { font-size: 0.98rem; color: var(--ink-soft); }

/* Contatti */
.contact { text-align: center; }
.contact .cta-row { justify-content: center; }
.contact p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* Link nel testo */
main a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(14, 77, 92, 0.25);
}

main a:not(.btn):hover { border-bottom-color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

footer a { color: var(--ink-soft); }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
