/* ============================================================================
   GooUX — Site design system  ·  "Editorial Light"
   Estetica: chiara, ariosa, elegante (rif. Stripe/Ramp/Attio). Inter self-hosted
   (GDPR-safe), pesi leggeri, 1 accento teal + 1 caldo amber, niente viola,
   niente monospace, niente bande scure pesanti. Ridipinge le classi BEM esistenti.
   ============================================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

:root {
  --ink:        #0f172a;   /* heading / near-black slate            17.8:1 */
  --text:       #334155;   /* body                                  10.3:1 */
  --muted:      #475569;   /* secondary text (AA floor)              7.6:1 */
  --faint:      #64748b;   /* meta / large only                      4.8:1 */
  --line:       #e7e5e4;   /* hairline borders (warm) */
  --line-2:     #d6d3d1;
  --bg:         #ffffff;
  --bg-soft:    #faf9f7;   /* warm off-white sections */
  --ink-band:   #0f172a;   /* rare dark accent band / contrast moment */
  --accent:     #0f766e;   /* teal — primary brand                   5.5:1 */
  --accent-d:   #0c5f59;
  --accent-soft:#effdf9;   /* teal tint (icon bg) */
  --amber:      #b45309;   /* warm secondary accent                  5.0:1 */
  --amber-soft: #fff7ed;
  --success:    #15803d;
  --brand-ux:   #e74c3c;   /* logo "UX" — identità brand nero/rosso */
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(15,23,42,.04), 0 6px 24px rgba(15,23,42,.05);
  --shadow-lg:  0 2px 4px rgba(15,23,42,.04), 0 18px 48px rgba(15,23,42,.10);
  --maxw:       1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px */
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-d); }

::selection { background: var(--accent-soft); color: var(--accent-d); }

/* ----------------------------------------------------------------- Layout - */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 6rem 0; }
.section--gray { background: var(--bg-soft); }
.section--dark { background: var(--ink-band); color: #e7eaf0; }
.section--dark .section__title { color: #fff; }
.section--dark .section__subtitle { color: #b6c0cf; }

.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: center;
}
.section__subtitle {
  margin: 1rem auto 2.2rem;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
}
.section__title + .section__subtitle { margin-top: .9rem; }

/* eyebrow (uppercase spaced label — l'aria "leggera" vive qui in sicurezza) */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

/* --------------------------------------------------------------------- Nav - */
.header { position: relative; background: var(--bg); }

.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
  padding: 0 24px;
  max-width: var(--maxw); margin: 0 auto;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__logo span { color: var(--brand-ux); }   /* "UX" — rosso brand */

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: .95rem; font-weight: 450; color: var(--muted);
  position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--accent);
}

/* CTA dentro la nav */
.nav__links .nav__cta {
  padding: .55rem 1.1rem;
  background: var(--accent); color: #fff !important;
  border-radius: var(--radius-sm); font-weight: 500;
}
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover { background: var(--accent-d); }
.nav__lang { font-weight: 700; font-size: .78rem; letter-spacing: .06em; padding: .25rem .5rem; border: 1px solid #cbd5d3; border-radius: 6px; color: var(--accent); }
.nav__lang::after { display: none; }
.nav__lang:hover { background: var(--accent-soft); color: var(--accent-d); }

/* hamburger */
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------- Hero - */
.hero {
  background: var(--bg);
  padding: 6.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
}
.hero .container { max-width: 880px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 18ch;
}
.hero__subtitle {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}
.hero .btn-group { margin-top: 2.6rem; }
.hero__social-proof {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 2.4rem;
  padding: .5rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem; color: var(--muted);
}
.hero__social-proof strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ Buttons - */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font-family: inherit; font-size: .98rem; font-weight: 500; line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-d); color: #fff; transform: translateY(-1px); }
.btn--gold { background: var(--amber); color: #fff; }            /* secondario caldo */
.btn--gold:hover { background: #92400e; color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --------------------------------------------------------------------- Grid - */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------------- Cards - */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem;
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 10px; font-size: 1.35rem; margin-bottom: 1.1rem;
}
.card__title { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; letter-spacing: -0.01em; }
.card__text { color: var(--muted); font-size: .98rem; }
.card__badge {
  display: inline-block; margin-bottom: .9rem;
  padding: .25rem .65rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.card__badge--premium { color: var(--amber); background: var(--amber-soft); }
.card__badge--dev { color: #1565c0; background: #e3f2fd; }

/* ------------------------------------------------------------------- Claim - */
.claim { padding: 5rem 0; text-align: center; background: var(--bg-soft); }
.claim__text {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 300; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink);
  max-width: 22ch; margin: 0 auto;
}
.claim__text .highlight { color: var(--accent); font-weight: 400; }
.claim__sub { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }
.claim--dark { background: var(--ink-band); }
.claim--dark .claim__text { color: #fff; }
.claim--dark .claim__sub { color: #b6c0cf; }
.claim--gold { background: var(--amber-soft); }
.claim--gold .claim__text .highlight { color: var(--amber); }

/* ------------------------------------------------------------------ Problem - */
.problem { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.problem__item {
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: 1.5rem 1.7rem; color: var(--muted);
}
.problem__item strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------------- Steps - */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.step { text-align: center; }
.step__number {
  width: 44px; height: 44px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 50%;
  font-weight: 600; font-size: 1.05rem;
}
.step__title { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.step__text { color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ Use case - */
.use-case { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.8rem; }
.use-case__step { border-left: 3px solid var(--accent); padding: .15rem 0 .15rem 1.5rem; }
.use-case__step-content h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; letter-spacing: -0.01em; }
.use-case__step-content p { color: var(--muted); }
.use-case__step-content p + p { margin-top: .7rem; }

/* ------------------------------------------------------------------ Dual CTA - */
.dual-cta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.dual-cta__box {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; text-align: center; box-shadow: var(--shadow);
}
.dual-cta__icon { margin-bottom: .85rem; line-height: 0; }

/* ------------------------------------------------------------- Feature detail - */
.feature-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.feature-detail + .feature-detail { margin-top: 5rem; }
.feature-detail__content h2 { font-size: 1.6rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 1rem; }
.feature-detail__content p { color: var(--muted); margin-bottom: 1rem; }
.feature-detail__benefit { color: var(--text); }
.feature-detail__benefit strong { color: var(--accent); }
.feature-detail__visual {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 240px; display: flex; align-items: center; justify-content: center;
  color: var(--faint);
}

/* -------------------------------------------------------------------- About - */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about__content p { color: var(--muted); margin-bottom: 1rem; }
.about__content p strong { color: var(--ink); }
.about__content h2 { font-size: 1.17em; font-weight: 700; }
.about__visual {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--faint);
}

/* ------------------------------------------------------------------- Values - */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { text-align: center; padding: 1.5rem; }
.value__icon {
  width: 56px; height: 56px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); border-radius: 14px; font-size: 1.6rem;
}
.value h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.value p { color: var(--muted); font-size: .96rem; }

/* --------------------------------------------------------------- Feature list - */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.5rem; }
.feature-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list__icon {
  flex: 0 0 auto; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); border-radius: 9px; font-size: 1.1rem;
}
.feature-list__content h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.feature-list__content p { color: var(--muted); font-size: .94rem; }

/* ------------------------------------------------------------------ Pricing - */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center; box-shadow: var(--shadow);
}
.pricing__card--featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.pricing__badge {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .8rem;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.pricing__name { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.pricing__price { font-size: 2.4rem; font-weight: 600; color: var(--ink); margin: .6rem 0; letter-spacing: -0.02em; }
.pricing__desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.3rem; }
.pricing__features { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.pricing__features li { padding: .45rem 0; color: var(--text); font-size: .95rem; border-bottom: 1px solid var(--line); }
.pricing__features li::before { content: '✓'; color: var(--success); font-weight: 700; margin-right: .55rem; }

/* -------------------------------------------------------------- Comparison - */
.comparison-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.comparison-table th, .comparison-table td { padding: .85rem 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.comparison-table td { color: var(--muted); }

/* ---------------------------------------------------------------------- FAQ - */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; cursor: pointer;
  font-size: 1.08rem; font-weight: 500; color: var(--ink);
}
.faq__question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform .25s ease; }
.faq__item.active .faq__question::after { content: '−'; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq__item.active .faq__answer { max-height: 400px; }
.faq__answer p { padding-bottom: 1.3rem; }

/* --------------------------------------------------------------------- Form - */
.form { max-width: 560px; margin: 0 auto; }
.form__group { margin-bottom: 1.2rem; }
.form__label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.form__input, .form__textarea {
  width: 100%; padding: .8rem 1rem; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__input:focus, .form__textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__textarea { min-height: 140px; resize: vertical; }

/* ----------------------------------------------------------------- Highlight - */
.highlight { color: var(--accent); font-weight: 500; }
.highlight--red { color: var(--amber); font-weight: 500; }   /* niente rosso: amber */
.highlight--gold { color: var(--amber); font-weight: 500; }
.highlight--green { color: var(--success); font-weight: 500; }

/* ------------------------------------------------------------------- Footer - */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 4rem 0 2rem; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: .8rem; }
.footer__brand span { color: var(--brand-ux); }
.footer__legal { margin-top: 1rem; font-size: .82rem; line-height: 1.7; color: var(--faint); }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--accent); }
.footer__desc { color: var(--muted); font-size: .94rem; max-width: 32ch; }
.footer__title { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: .6rem; }
.footer__links a { color: var(--muted); font-size: .94rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: var(--faint);
}

/* ---------------------------------------------------------------- Utilities - */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0 24px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  }
  .nav__links.active { max-height: 420px; padding: .5rem 24px 1.2rem; }
  .nav__links a { width: 100%; padding: .7rem 0; }
  .nav__links a.active::after { display: none; }
  .nav__links .nav__cta { margin-top: .6rem; width: 100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .problem, .dual-cta, .feature-detail, .about__grid, .values, .feature-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-detail { gap: 2rem; }
  .feature-detail + .feature-detail { margin-top: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__bottom { flex-direction: column; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}
