/* ==========================================================================
   NutriMente – sito di presentazione
   Stessa palette e stesso font dell'applicazione (Plus Jakarta Sans, verde #1f6f63).
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #1f6f63;
  --green-600: #185a50;
  --green-800: #0f3a34;
  --green-900: #0b2b27;
  --green-100: #d3ebe5;
  --green-50: #ecf6f3;
  --mint: #bfe3da;
  --amber: #e9a23b;
  --amber-600: #c9831f;
  --amber-50: #fdf3e2;
  --coral: #c4553a;
  --coral-50: #fbebe6;
  --violet: #7a5aa8;
  --violet-50: #f1ecf8;
  --blue: #3b6fb6;
  --blue-50: #e8f0fa;
  --ink: #14211e;
  --ink-2: #33433f;
  --muted: #5f6f69;
  --line: #e3eae8;
  --bg: #fbfaf7;
  --cream: #f5f1e8;
  --surface: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 30, .05), 0 4px 14px rgba(20, 33, 30, .05);
  --shadow: 0 2px 6px rgba(20, 33, 30, .05), 0 18px 48px rgba(20, 33, 30, .10);
  --shadow-xl: 0 30px 80px rgba(15, 58, 52, .22), 0 8px 24px rgba(15, 58, 52, .10);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn .ico { transition: transform .18s ease; }
.btn:hover .ico-arrow, .btn:hover .ico:last-child { transform: translateX(3px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(31, 111, 99, .32); }
.btn--primary:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(31, 111, 99, .38); }
.btn--amber { background: var(--amber); color: var(--green-900); box-shadow: 0 8px 22px rgba(233, 162, 59, .35); }
.btn--amber:hover { background: #f0b052; color: var(--green-900); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--sm { padding: .75em 1.2em; font-size: .93rem; }
.btn--lg { padding: 1.15em 1.8em; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Navigazione ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 250, 247, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 250, 247, .92); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.28rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; }
.brand__name b { color: var(--green); font-weight: 800; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__name b { color: var(--mint); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links > a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav__links > a:hover { background: var(--green-50); color: var(--green); }
.nav__links > a[aria-current="page"] { color: var(--green); background: var(--green-50); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__login { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.nav__toggle .ico { width: 26px; height: 26px; }
.nav__close, .nav__mobile-cta { display: none; }

@media (max-width: 1080px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 2px;
    background: var(--bg); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px rgba(20, 33, 30, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links > a { font-size: 1.1rem; padding: 14px 12px; border-radius: 12px; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .nav__open { display: none; }
  .nav.is-open .nav__close { display: block; }
  .nav__mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .nav { background: rgba(251, 250, 247, .96); }
}
@media (max-width: 420px) { .nav__mobile-cta { grid-template-columns: 1fr; } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--surface); }
.section--dark { background: var(--green-900); color: #dfeee9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section--dark .section-head p { color: #b7d3cb; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); background: var(--green-50); border: 1px solid var(--green-100); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow--amber { color: #94600f; background: var(--amber-50); border-color: #f6dfb7; }
.eyebrow--dark { color: var(--mint); background: rgba(191, 227, 218, .08); border-color: rgba(191, 227, 218, .2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.hl { color: var(--green); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .32em; background: var(--amber); opacity: .35; border-radius: 6px; z-index: -1; }
.hl-amber { color: var(--amber-600); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 85% 25%, rgba(191, 227, 218, .75), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, rgba(253, 243, 226, .9), transparent 70%),
    radial-gradient(35% 45% at 60% 90%, rgba(236, 246, 243, .9), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.hero .btn-row { flex-wrap: nowrap; }
@media (max-width: 1180px) and (min-width: 981px) { .hero .btn--lg { padding: 1em 1.3em; font-size: 1rem; } }
@media (max-width: 520px) { .hero .btn-row { flex-wrap: wrap; } .hero .btn-row .btn { width: 100%; } }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof .ico { color: var(--green); width: 20px; height: 20px; background: var(--green-50); border-radius: 50%; padding: 3px; }
.hero__visual { position: relative; padding: 0 0 40px 0; }
.hero__visual .browser { transform: perspective(2000px) rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
.hero__visual .phone { position: absolute; width: 33%; left: -9%; bottom: -10px; z-index: 2; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .9rem; font-weight: 700; color: var(--ink); animation: bob 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.float-chip .badge-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.float-chip--a { top: -4%; right: 2%; }
.float-chip--b { bottom: 18%; right: -3%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row, .hero__proof { justify-content: center; }
  .hero__visual { max-width: 720px; margin: 0 auto; padding-left: 8%; }
  .hero__visual .browser { transform: none; }
  .hero__visual .phone { left: 0; width: 30%; }
}
@media (max-width: 560px) {
  .float-chip { display: none; }
  .hero__visual { padding-left: 14%; }
  .hero__visual .phone { width: 36%; bottom: -20px; }
}

/* ---------- Cornici dei dispositivi ---------- */
.browser { background: #fff; border-radius: 14px; box-shadow: var(--shadow-xl); overflow: hidden; border: 1px solid rgba(20, 33, 30, .08); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f1f4f3; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0e5e3; }
.browser__bar i:nth-child(1) { background: #f0a597; } .browser__bar i:nth-child(2) { background: #f3cf8a; } .browser__bar i:nth-child(3) { background: #9fd3be; }
.browser__url { margin-left: 12px; flex: 1; max-width: 340px; background: #fff; border-radius: 8px; font-size: .72rem; color: var(--muted); padding: 4px 10px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.browser__url .ico { width: 11px; height: 11px; color: var(--green); }
.browser img { width: 100%; }

.phone { background: #10201c; border-radius: 15% / 7.2%; padding: 3.2%; box-shadow: var(--shadow-xl), inset 0 0 0 2px #2a3b37; position: relative; }
.phone::before { content: ""; position: absolute; top: 2.2%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); background: #10201c; border-radius: 999px; z-index: 2; }
.phone img { border-radius: 11% / 5.3%; width: 100%; }

.tablet { background: #10201c; border-radius: 6% / 4.4%; padding: 3.4%; box-shadow: var(--shadow-xl), inset 0 0 0 2px #2a3b37; }
.tablet img { border-radius: 3% / 2.2%; width: 100%; }

/* ---------- Banda "pubblico" ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo__card {
  position: relative; border-radius: 28px; padding: clamp(28px, 4vw, 48px); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: 100%;
}
.duo__card--pro { background: var(--green-900); color: #d9ebe5; }
.duo__card--pro h3 { color: #fff; }
.duo__card--client { background: var(--amber-50); border: 1px solid #f3e0bd; }
.duo__card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.duo__tag { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.duo__card--pro .duo__tag { color: var(--mint); }
.duo__card--client .duo__tag { color: var(--amber-600); }
.duo__list { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 12px; }
.duo__list li { display: flex; gap: 12px; align-items: flex-start; }
.duo__list .ico { margin-top: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; }
.duo__card--pro .duo__list .ico { background: rgba(191, 227, 218, .14); color: var(--mint); }
.duo__card--client .duo__list .ico { background: #fff; color: var(--amber-600); }
.duo__card .btn { align-self: flex-start; margin-top: auto; }
.duo__card::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -120px; bottom: -160px; z-index: -1; }
.duo__card--pro::after { background: radial-gradient(circle, rgba(42, 138, 123, .55), transparent 70%); }
.duo__card--client::after { background: radial-gradient(circle, rgba(233, 162, 59, .25), transparent 70%); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Funzioni ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }
.ibox { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.ibox .ico { width: 24px; height: 24px; }
.ibox--green { background: var(--green-50); color: var(--green); }
.ibox--amber { background: var(--amber-50); color: var(--amber-600); }
.ibox--coral { background: var(--coral-50); color: var(--coral); }
.ibox--violet { background: var(--violet-50); color: var(--violet); }
.ibox--blue { background: var(--blue-50); color: var(--blue); }
.ibox--dark { background: rgba(191, 227, 218, .1); color: var(--mint); }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ---------- Blocchi testo + immagine ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 140px); }
.split--rev .split__media { order: -1; }
.split--even { grid-template-columns: 1fr 1fr; }
.split__copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.split__copy .lead { font-size: 1.12rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li b { color: var(--ink); }
.checks .ico { flex: none; margin-top: 2px; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--green-50); color: var(--green); }
.split__media { position: relative; }
.split__media .phone { width: min(320px, 70%); margin: 0 auto; }
.split__media .tablet { width: min(420px, 100%); margin: 0 auto; }
.media-glow::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 40px; filter: blur(40px);
  background: linear-gradient(135deg, rgba(191, 227, 218, .9), rgba(253, 243, 226, .9));
}
.media-stack { position: relative; padding-bottom: 8%; }
.media-stack .phone { position: absolute; width: 30%; right: -4%; bottom: 0; margin: 0; }
@media (max-width: 900px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .media-stack .phone { right: 0; }
}

/* ---------- Vetrina con schede ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tab {
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .15s;
}
.tab:hover { border-color: var(--green); color: var(--green); }
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31, 111, 99, .25); }
.section--dark .tab { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #dfeee9; }
.section--dark .tab[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--green-900); }
.showcase__panel[hidden] { display: none; }
.showcase__panel { animation: fadeUp .45s ease both; }
.showcase__caption { text-align: center; max-width: 640px; margin: 26px auto 0; color: var(--muted); }
.section--dark .showcase__caption { color: #b7d3cb; }
.showcase .browser { max-width: 1060px; margin: 0 auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Galleria telefoni ---------- */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.5vw, 32px); align-items: start; }
.phones figure { margin: 0; text-align: center; }
.phones figure:nth-child(even) { margin-top: 48px; }
.phones figcaption { margin-top: 18px; font-weight: 700; color: var(--ink); }
.phones figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.section--dark .phones figcaption { color: #fff; }
.section--dark .phones figcaption small { color: #b7d3cb; }
@media (max-width: 900px) {
  .phones { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones figure { scroll-snap-align: center; }
  .phones figure:nth-child(even) { margin-top: 0; }
}
@media (min-width: 560px) and (max-width: 900px) { .phones { grid-template-columns: repeat(4, 42%); } }

/* ---------- Numeri / punti chiave ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.stat b { display: block; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat b em { font-style: normal; color: var(--amber); }
.stat span { color: #b7d3cb; font-size: .98rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Passi ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(31, 111, 99, .3);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
.step::after { content: ""; position: absolute; top: 50px; right: -21px; width: 22px; border-top: 2px dashed var(--green-100); }
.step:last-child::after { display: none; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Timeline (come funziona) ---------- */
.timeline { display: grid; gap: clamp(56px, 8vw, 110px); }
.tl-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.tl-num { font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--green-100); letter-spacing: -.05em; align-self: start; }
.tl-item h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 900px) {
  .tl-item { grid-template-columns: 1fr; }
  .tl-num { font-size: 3rem; }
}

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pcard { border-radius: var(--radius); padding: 30px; }
.pcard h3 { display: flex; align-items: center; gap: 10px; }
.pcard ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pcard li { display: flex; gap: 10px; align-items: flex-start; }
.pcard li .ico { margin-top: 3px; }
.pcard--yes { background: var(--green-50); border: 1px solid var(--green-100); }
.pcard--yes li .ico { color: var(--green); }
.pcard--no { background: var(--coral-50); border: 1px solid #f3d2c8; }
.pcard--no li .ico { color: var(--coral); }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }

.band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm);
}
.band__ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.band__ico .ico { width: 34px; height: 34px; }
.band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.band p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Brand dello studio ---------- */
.brandbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.brandbox div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.brandbox b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.brandbox span { color: var(--muted); font-size: .92rem; }
@media (max-width: 620px) { .brandbox { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-group { margin-top: 48px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { font-size: 1.4rem; margin-bottom: 16px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--green-100); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%231f6f63' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA finale ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(135deg, #1f6f63, #0f3a34); color: #dcefe9; text-align: center;
}
.cta h2 { color: #fff; max-width: 760px; margin: 0 auto 16px; }
.cta p { max-width: 620px; margin: 0 auto 30px; font-size: 1.15rem; color: #c3ddd5; }
.cta .btn-row { justify-content: center; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.cta::before { width: 420px; height: 420px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(233, 162, 59, .35), transparent 70%); }
.cta::after { width: 520px; height: 520px; right: -180px; bottom: -260px; background: radial-gradient(circle, rgba(191, 227, 218, .3), transparent 70%); }

/* ---------- Pagine interne ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 70% at 80% 20%, rgba(191, 227, 218, .6), transparent 70%), radial-gradient(35% 60% at 15% 30%, rgba(253, 243, 226, .9), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 900px; margin-left: auto; margin-right: auto; }
.page-hero .lead { max-width: 720px; margin: 0 auto 28px; }
.page-hero .btn-row { justify-content: center; }
.page-hero__media { margin-top: clamp(40px, 6vw, 64px); }
.page-hero__media .browser { max-width: 1080px; margin: 0 auto; }

/* ---------- Testi lunghi e legali ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.placeholder {
  border: 2px dashed #e5c98f; background: var(--amber-50); border-radius: 16px; padding: 20px 24px; color: #7a5410; margin: 20px 0;
}
.placeholder b { color: #5e400a; }
.placeholder-box { background: repeating-linear-gradient(-45deg, #f5efe2, #f5efe2 12px, #efe7d6 12px, #efe7d6 24px); border-radius: 20px; display: grid; place-items: center; color: #8a6a2c; font-weight: 700; text-align: center; padding: 24px; aspect-ratio: 4 / 3; }

/* ---------- Chi siamo ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.member .placeholder-box { aspect-ratio: 1; margin-bottom: 16px; border-radius: 16px; }
.member b { display: block; }
.member span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .values, .team { grid-template-columns: 1fr; } }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__aside { display: grid; gap: 16px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.contact__item p { margin: 0; color: var(--muted); font-size: .96rem; }
.contact__item b { display: block; margin-bottom: 2px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form h2 { font-size: 1.6rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 99, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); }
.field .err { color: var(--coral); font-size: .85rem; margin-top: 4px; display: none; }
.field.has-error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert--ok { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.alert--err { background: var(--coral-50); color: #8c3420; border: 1px solid #f3d2c8; }
.form__note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound b { display: block; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; font-weight: 800; color: var(--green-100); letter-spacing: -.06em; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #a9c7bf; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #cfe3dd; }
.footer a:hover { color: #fff; }
.footer__brand p { margin: 16px 0; max-width: 340px; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; font-size: .85rem; color: #84a69d; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Animazione all'ingresso ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
  .showcase__panel { animation: none; }
}

/* ---------- Utilità ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.contact__item .ibox { margin: 0; flex: none; }
