:root {
  --ink: #201a14;
  --ink-soft: #6b6157;
  --paper: #faf6ef;
  --paper-alt: #f2ece0;
  --accent: #c1502c;
  --accent-deep: #96371c;
  --accent-soft: #f3ded3;
  --line: #e6dcc9;
  --card: #ffffff;
  --forest: #3c5d4f;
  --max-w: 1360px;
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 20px 45px -25px rgba(32, 26, 20, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(32, 26, 20, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ede2;
    --ink-soft: #b7ab9a;
    --paper: #17140f;
    --paper-alt: #1e1a13;
    --accent: #e8845b;
    --accent-deep: #f3a67d;
    --accent-soft: #362621;
    --line: #332c22;
    --card: #211c15;
    --forest: #7ea592;
    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
a { color: var(--accent-deep); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 640px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-title.light { color: #fff; text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff8f4;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.btn-text {
  background: none;
  color: var(--ink);
  padding: 14px 6px;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}
.btn-text:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.site-header .container {
  max-width: 100%;
  padding: 0 40px;
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(23, 20, 15, 0.85); }
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.ia { color: var(--accent); }
.section-title .ia { color: var(--accent); }
.section-title.light .ia { color: var(--accent-deep); }
.footer-brand .ia { color: var(--accent); font-weight: 700; }
/* Hero */
.hero { padding: 90px 0 70px; }
.hero-grid { display: flex; justify-content: center; }
.hero-copy-centered {
  text-align: center;
  max-width: 880px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  margin-bottom: 26px;
}
.hero .lead {
  font-size: 1.28rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* Cosa fa / feature grid */
.cosa-fa { padding: 88px 0; background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card summary {
  padding: 28px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.feature-card summary::-webkit-details-marker { display: none; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card summary p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.feature-toggle {
  position: absolute;
  top: 28px;
  right: 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.feature-card[open] .feature-toggle {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}
.feature-detail {
  padding: 0 28px 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
  padding-top: 18px;
}
.feature-detail p:last-child { margin: 0; }
.mini-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-steps li::marker { color: var(--accent-deep); font-weight: 700; }

.mini-list {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-list li::marker { color: var(--accent); }

/* Fiducia */
.fiducia { padding: 88px 0; background: var(--forest); color: #fff; }
.fiducia .eyebrow { color: #cfe0d7; }
.fiducia .section-title { color: #fff; text-align: left; margin: 0; }
.fiducia-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .fiducia-grid { grid-template-columns: 1fr; } }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.trust-list li { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid rgba(255,255,255,0.3); padding-left: 18px; }
.trust-list strong { font-family: "Fraunces", serif; font-size: 1.05rem; font-weight: 600; }
.trust-list span { color: #d8e3dc; font-size: 0.95rem; }

/* Contatto */
.contatto { padding: 100px 0; text-align: center; background: var(--ink); color: #fdf9f3; }
.contatto p { color: #cfc4b4; max-width: 480px; margin: 0 auto 34px; font-size: 1.08rem; }
.contatto .btn-primary { background: var(--accent); }

/* Footer */
.site-footer { padding: 32px 0; background: var(--ink); color: #cfc4b4; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 0.85rem;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #cfc4b4; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
