/* GentleTech — sito teaser. Palette presa dal logo (blu, verde, rosa, grigio). */
:root {
  --bg: #f7f8f6;
  --bg-soft: #eef2ee;
  --surface: #ffffff;
  --ink: #2b2f2e;
  --ink-2: #5c6461;
  --ink-3: #8a918e;
  --line: #dfe4e0;
  --green: #709c78;
  --green-soft: #94b498;
  --green-tint: #e6efe7;
  --blue: #5490a4;
  --blue-soft: #64a8c4;
  --blue-tint: #e3eef3;
  --pink: #f28b9a;
  --pink-tint: #fbe4e7;
  --grey-petal: #d9dbd8;
  --focus: #5490a4;
  --radius: 14px;
  --measure: 62ch;
  --gutter: clamp(16px, 5vw, 48px);
  --font-display: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171c1a; --bg-soft: #1e2422; --surface: #222927;
    --ink: #e7ebe8; --ink-2: #b5bdb9; --ink-3: #8b938f; --line: #333b38;
    --green: #8fb897; --green-tint: #243129; --blue: #7ab5c9; --blue-tint: #1f2f36;
    --pink: #f29aa7; --pink-tint: #3a2a2e; --grey-petal: #4a514e;
  }
}
:root[data-theme="dark"] {
  --bg: #171c1a; --bg-soft: #1e2422; --surface: #222927;
  --ink: #e7ebe8; --ink-2: #b5bdb9; --ink-3: #8b938f; --line: #333b38;
  --green: #8fb897; --green-tint: #243129; --blue: #7ab5c9; --blue-tint: #1f2f36;
  --pink: #f29aa7; --pink-tint: #3a2a2e; --grey-petal: #4a514e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; max-width: var(--measure); }
.eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin: 0 0 1rem; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.brand img { height: 34px; width: auto; }
.brand-dark { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; } :root[data-theme="dark"] .brand-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-dark { display: block; } :root:not([data-theme="light"]) .brand-light { display: none; } }
.nav { display: flex; gap: 1.6rem; align-items: center; font-family: var(--font-display); font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .98rem; padding: .78rem 1.35rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--green) 85%, #000); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); margin-top: 1.4rem; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.petals { position: relative; aspect-ratio: 1; max-width: 100%; width: min(100%, 420px); margin-inline: auto; }
.petal { position: absolute; border-radius: 999px; opacity: .92; animation: breathe 7s ease-in-out infinite; }
.petal.b1 { background: var(--blue-soft); left: 4%; top: 25%; width: 36%; height: 25%; }
.petal.b2 { background: var(--blue-soft); left: 25%; top: 4%; width: 25%; height: 36%; animation-delay: -1s; }
.petal.g1 { background: var(--green-soft); left: 50%; top: 4%; width: 25%; height: 36%; animation-delay: -2s; }
.petal.g2 { background: var(--green-soft); left: 60%; top: 25%; width: 36%; height: 25%; animation-delay: -3s; }
.petal.n1 { background: var(--grey-petal); left: 4%; top: 50%; width: 36%; height: 25%; animation-delay: -4s; }
.petal.n2 { background: var(--grey-petal); left: 25%; top: 60%; width: 25%; height: 36%; animation-delay: -5s; }
.petal.p1 { background: var(--pink); left: 50%; top: 60%; width: 25%; height: 36%; animation-delay: -6s; }
.petal.p2 { background: #fccccc; left: 60%; top: 50%; width: 36%; height: 25%; animation-delay: -2.5s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .petals { width: min(70%, 260px); order: -1; } }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1.1rem; }
.statement { margin-top: 2.2rem; padding: 1.6rem 1.8rem; border-left: 4px solid var(--green); background: var(--green-tint); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.35; }
.statement span { display: block; }
.statement span + span { color: var(--blue); }

/* Perché: tre punti su una riga, marcatori nei colori del logo */
.reasons { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); }
.reasons li { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.reasons .mark { display: inline-block; width: 14px; height: 14px; border-radius: 5px; margin-bottom: .9rem; }
.reasons h3 { margin-bottom: .55rem; }
.reasons p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } }

/* Pipeline */
.pipeline { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .75rem; }
.pipeline li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 500; }
.pipeline .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .45rem; }
.pipeline .status { display: inline-block; margin-top: 1.4rem; font-size: .85rem; color: var(--ink-3); }

/* Team */
.team { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; }
.team li { padding: 1rem 0; border-top: 1px solid var(--line); }
.team h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.team p { color: var(--ink-2); font-size: .95rem; }

/* Form */
.join { background: var(--blue-tint); }
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .join .wrap { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 10px 30px -18px rgba(30, 40, 36, .35); }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.field input[type="email"] { font: inherit; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field input[type="email"]:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.check { display: flex; gap: .7rem; align-items: start; font-size: .92rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.check input { margin-top: .3rem; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.form-note { font-size: .85rem; color: var(--ink-3); margin-top: .9rem; }
.form-msg { margin-top: 1rem; font-size: .95rem; padding: .8rem 1rem; border-radius: 10px; background: var(--green-tint); color: var(--ink); }
.form-msg.err { background: var(--pink-tint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .92rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 28px; margin-bottom: .8rem; }
.site-footer strong { color: var(--ink); font-family: var(--font-display); }
.site-footer .legal { margin-top: 1.4rem; font-size: .84rem; color: var(--ink-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; }
.site-footer nav a { color: var(--ink-2); }

/* Pagine legali */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.doc .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.doc p, .doc li { max-width: none; color: var(--ink-2); }
.doc ul { padding-left: 1.2rem; margin: .6rem 0; }
.doc .notice { background: var(--pink-tint); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; margin-bottom: 1.5rem; }
.email-pending { font-style: italic; color: var(--ink-3); }
