/* ==========================================================
   Bilancio.ai — stile condiviso (home e consulenza)
   Blu del marchio, superfici bianche, linee sottili
   ========================================================== */

:root {
    --blue: #1c4f96;
    --blue-600: #163f7a;
    --blue-50: #ecf2f9;
    --navy: #14284a;
    --navy-900: #0f1e36;
    --ink: #1b2533;
    --text: #566170;
    --muted: #6b7684;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-soft: #f6f7f8;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(15, 30, 54, .04), 0 8px 24px rgba(15, 30, 54, .06);
    --shadow-lg: 0 2px 4px rgba(15, 30, 54, .04), 0 24px 48px rgba(15, 30, 54, .12);
    --container: 1240px;
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #b9c6da; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--lined { border-top: 1px solid var(--line); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }
.section--navy .section-head p { color: #93a5bf; }
.section--navy .eyebrow { color: #8fb3e6; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 15px/1 var(--font); padding: 16px 24px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; padding: 14px 0; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--blue); transition: transform .2s; }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 30, 54, .05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 14px; position: relative; }
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue);
    transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { color: #fff; }

.mobile-menu-btn {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 9px; background: none; border: 0; cursor: pointer;
}
.mobile-menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(15, 30, 54, .08);
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { margin-top: 16px; border-bottom: 0; color: #fff; padding: 16px 24px; }

/* ---------- Hero ---------- */
.hero { background: #fff; }
.hero__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: center;
    padding-top: 56px; padding-bottom: 72px;
}
.hero__eyebrow {
    display: flex; align-items: center; gap: 9px; color: var(--blue-600);
    font-size: 12px; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; margin-bottom: 24px;
}
.hero__eyebrow > span { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.045em; margin: 0 0 24px; }
.hero h1 span { color: var(--blue); }
.hero__lead { max-width: 520px; font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
.hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.hero__ctas .btn--mobile { display: none; }

.user-stats {
    display: flex; align-items: center; gap: 14px;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px;
}
.user-avatars { display: flex; }
.user-avatars span {
    width: 34px; height: 34px; border-radius: 50%; margin-left: -8px;
    display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue); border: 2px solid #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.user-avatars span:first-child { margin-left: 0; }
.user-avatars span:last-child { background: var(--blue); color: #fff; }
.user-stats-text { font-size: 14px; color: var(--text); }
.user-stats-text strong { color: var(--ink); font-weight: 700; }

/* Form */
.signup-card {
    background: #fff; border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.signup-card-header { margin-bottom: 24px; }
.signup-card-header h3 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 4px; }
.signup-card-header p { color: var(--muted); font-size: 14px; margin: 0; display: flex; align-items: center; gap: 8px; }
.signup-card-header p .icon { width: 16px; height: 16px; color: var(--blue); stroke-width: 2.2; }
.signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signup-form .form-group { display: grid; gap: 6px; min-width: 0; }
.signup-form .form-group--full { grid-column: 1 / -1; }
.signup-form label { font-size: 13px; font-weight: 700; color: var(--ink); }
.signup-form input,
.signup-form select {
    width: 100%; font: 500 15px/1.4 var(--font); color: var(--ink); background: var(--bg-soft);
    border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px;
    transition: border-color .2s, background .2s;
}
.signup-form select {
    -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566170' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.signup-form select:invalid { color: var(--muted); }
.signup-form input:focus,
.signup-form select:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.signup-form input::placeholder { color: #98a1ad; }
.signup-btn { grid-column: 1 / -1; margin-top: 8px; padding: 17px 24px; font-size: 15px; }
.signup-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.signup-note a { text-decoration: underline; text-underline-offset: 2px; }
.signup-success { text-align: center; padding: 24px 8px; }
.signup-success__icon {
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
}
.signup-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.signup-success h3 { font-size: 22px; letter-spacing: -.02em; }
.signup-success p { color: var(--muted); margin: 0; }

/* Feature strip */
.highlights { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 28px; padding-bottom: 28px; }
.highlight { display: flex; gap: 14px; align-items: flex-start; padding: 4px 28px; }
.highlight:first-child { padding-left: 0; }
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.highlight h4 { font-size: 14px; letter-spacing: -.01em; margin: 0 0 2px; }
.highlight p { font-size: 13px; line-height: 1.55; margin: 0; color: var(--muted); }

/* ---------- Video ---------- */
.video-container { max-width: 1000px; margin: 0 auto; }
.video-wrapper {
    position: relative; border-radius: 16px; overflow: hidden;
    background: var(--navy-900); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.video-wrapper video { width: 100%; height: auto; display: block; aspect-ratio: 3360 / 1658; background: #f3f5f8; }
.video-play-overlay {
    position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
    background: rgba(15, 30, 54, .18); transition: background .2s, opacity .2s;
}
.video-play-overlay:hover { background: rgba(15, 30, 54, .28); }
.video-play-overlay.hidden { opacity: 0; pointer-events: none; }
.play-button {
    width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--blue);
    display: grid; place-items: center; box-shadow: 0 10px 30px rgba(15, 30, 54, .25); transition: transform .2s;
}
.video-play-overlay:hover .play-button { transform: scale(1.05); }
.play-button svg { width: 26px; height: 26px; margin-left: 4px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 36px; left: 16.6%; right: 16.6%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px); opacity: .35;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step__dot {
    width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--blue); color: var(--blue); font-size: 24px; font-weight: 800;
    position: relative; z-index: 1; box-shadow: 0 0 0 10px #fff;
}
.step h3 { font-size: 19px; letter-spacing: -.02em; }
.step p { font-size: 15px; margin: 0 auto; max-width: 320px; }

/* ---------- Features ---------- */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.feature { background: #fff; padding: 30px 28px; transition: background .2s; }
.feature:hover { background: #fbfcfd; }
.feature__icon {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
    background: var(--blue-50); color: var(--blue); margin-bottom: 20px;
}
.feature h3 { font-size: 16px; letter-spacing: -.015em; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 8px 32px; }
.stat-item:first-child { padding-left: 0; }
.stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat-number {
    font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1;
    color: #fff; margin-bottom: 18px; height: 52px; display: flex; align-items: center;
}
.stat-flag { display: flex; width: 54px; height: 36px; border-radius: 5px; overflow: hidden; }
.stat-flag i { flex: 1; }
.stat-flag i:nth-child(1) { background: #0f8a4a; }
.stat-flag i:nth-child(2) { background: #f4f5f0; }
.stat-flag i:nth-child(3) { background: #d0312d; }
.stat-item h3 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.stat-item p { font-size: 14px; line-height: 1.6; margin: 0; color: #93a5bf; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.pricing-card {
    position: relative; display: flex; flex-direction: column; background: #fff; padding: 32px;
    border-radius: var(--radius-lg); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.popular { border: 2px solid var(--blue); padding: 31px; box-shadow: var(--shadow); }
.pricing-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 20px; }
.pricing-header h3 { font-size: 20px; letter-spacing: -.02em; margin: 0; }
.pricing-header p { flex-basis: 100%; order: 3; font-size: 14px; color: var(--muted); margin: 0; }
.popular-badge {
    position: absolute; top: 30px; right: 30px; font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue); background: var(--blue-50); padding: 5px 10px; border-radius: 6px;
}
.pricing-price { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 4px; }
.pricing-price .amount { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -.05em; line-height: 1; }
.pricing-price .period { color: var(--muted); font-size: 15px; font-weight: 500; }
.pricing-features { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.pricing-features li svg { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.4; flex-shrink: 0; }
.pricing-card .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
    display: flex; flex-direction: column; background: #fff; padding: 30px;
    border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 18px; }
.testimonial-stars svg { width: 16px; height: 16px; fill: #f2a516; }
.testimonial-text { font-size: 15.5px; line-height: 1.75; color: var(--ink); margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue); flex-shrink: 0;
}
.testimonial-avatar .icon { width: 20px; height: 20px; }
.testimonial-info h4 { font-size: 14px; margin: 0; }
.testimonial-info p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-layout .section-head { text-align: left; margin: 0; position: sticky; top: 120px; }
.faq-layout .section-head .eyebrow::after { display: none; }
.faq-container { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.faq-item.active { box-shadow: var(--shadow); border-color: transparent; }
.faq-question {
    width: 100%; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: none; border: 0; cursor: pointer; text-align: left;
    font: 700 16px/1.4 var(--font); color: var(--ink);
}
.faq-question svg { width: 22px; height: 22px; color: var(--blue); transition: transform .25s; flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 24px 22px; font-size: 15px; line-height: 1.75; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-item { padding-top: 24px; border-top: 2px solid var(--line); }
.trust-item .icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 18px; }
.trust-item h4 { font-size: 17px; margin-bottom: 8px; }
.trust-item p { font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- Footer ---------- */
footer { background: var(--bg-soft); color: var(--text); padding: 72px 0 28px; font-size: 14.5px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; mix-blend-mode: multiply; }
.footer-section > p { max-width: 340px; line-height: 1.75; }
.footer-section h4 { color: var(--ink); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-section ul { list-style: none; display: grid; gap: 10px; }
.footer-section a { color: var(--text); }
.footer-section a:hover { color: var(--blue); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-mail .icon { width: 18px; height: 18px; color: var(--blue); }
.footer-section .footer-mail { color: var(--ink); }
.footer-bottom { padding-top: 24px; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
    max-width: 1080px; margin: 0 auto; background: #fff; padding: 18px 22px;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-content p { flex: 1; margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.cookie-content a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Accessibilità e animazioni ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.signup-form input:focus-visible, .signup-form select:focus-visible { outline: none; }
.reveal.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.will-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal.will-reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight { padding: 4px 18px; }
    .stat-item { padding: 8px 20px; }
    .trust-grid { gap: 24px; }
}
@media (max-width: 920px) {
    .header__inner { height: 70px; }
    .header__logo img { height: 42px; }
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
    .hero__ctas .btn--mobile { display: inline-flex; }
    .hero__lead, .user-stats { max-width: 600px; }
    .hero-right { max-width: 560px; }
    .highlights__grid { grid-template-columns: repeat(2, 1fr); padding-top: 8px; padding-bottom: 8px; }
    .highlight, .highlight:first-child { padding: 20px 16px 20px 0; }
    .highlight:nth-child(2n) { padding-left: 20px; }
    .highlight:nth-child(3) { border-left: 0; }
    .highlight:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { top: 36px; bottom: 36px; left: 50%; right: auto; width: 2px; height: auto;
        background: repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 16px); }
    .step p { max-width: 420px; }
    .step h3, .step p { background: #fff; position: relative; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .faq-layout { grid-template-columns: 1fr; gap: 32px; }
    .faq-layout .section-head { position: static; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; text-align: left; }
    .section-head .eyebrow::after { display: none; }
    .section-head p { font-size: 15px; }
    .eyebrow { font-size: 11px; }
    .hero__eyebrow { font-size: 10.5px; letter-spacing: .06em; margin-bottom: 18px; }
    .hero h1 { font-size: clamp(34px, 10vw, 44px); margin-bottom: 18px; }
    .hero__lead { font-size: 15.5px; }
    .hero__ctas { gap: 14px; }
    .signup-card { padding: 24px 20px; }
    .signup-form { grid-template-columns: 1fr; }
    .highlights__grid { grid-template-columns: 1fr; }
    .highlight, .highlight:first-child, .highlight:nth-child(2n) { padding: 18px 0; border-left: 0; }
    .highlight:nth-child(n+2) { border-top: 1px solid var(--line); }
    .play-button { width: 60px; height: 60px; }
    .play-button svg { width: 20px; height: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature { padding: 22px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; align-items: start; }
    .feature__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
    .feature h3 { margin: 2px 0 6px; }
    .stats-grid { grid-template-columns: 1fr; row-gap: 0; }
    .stat-item, .stat-item:first-child, .stat-item:nth-child(3) { padding: 24px 0; border-left: 0; }
    .stat-item + .stat-item { border-top: 1px solid rgba(255, 255, 255, .12); }
    .stat-number { margin-bottom: 12px; }
    .pricing-card { padding: 26px 22px; }
    .pricing-card.popular { padding: 25px 21px; }
    .testimonial-card { padding: 24px 22px; }
    .faq-question { padding: 18px 18px; font-size: 15px; }
    .faq-answer-content { padding: 0 18px 18px; font-size: 14.5px; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .cookie-content { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-buttons .btn { flex: 1; }
}

/* ==========================================================
   Pagina consulenza
   ========================================================== */
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu a[aria-current="page"] { color: var(--blue); }

.hero__proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__proof span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hero__proof .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.2; }

.page-hero .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
.page-hero h1 { font-size: clamp(36px, 3.9vw, 54px); }
.areas-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area-tile {
    display: flex; flex-direction: column; min-height: 200px; padding: 24px;
    border-radius: 16px; background: var(--bg-soft); color: var(--ink); transition: background .2s;
}
.area-tile:hover { background: var(--blue-50); color: var(--ink); }
.area-tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.area-tile__top .icon { width: 28px; height: 28px; color: var(--blue); }
.area-tile__num { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.area-tile h2 { font-size: 20px; letter-spacing: -.03em; margin: auto 0 6px; }
.area-tile p { font-size: 13px; line-height: 1.6; margin: 0; color: var(--text); }
.area-tile--dark { background: var(--navy); }
.area-tile--dark:hover { background: var(--navy-900); }
.area-tile--dark h2 { color: #fff; }
.area-tile--dark p, .area-tile--dark .area-tile__num { color: #b9c6da; }
.area-tile--dark .area-tile__top .icon { color: #8fb3e6; }

.area-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.area-row:last-child { border-bottom: 1px solid var(--line); }
.area-row__head { display: flex; gap: 20px; align-items: flex-start; }
.area-row__head .feature__icon { width: 52px; height: 52px; margin: 0; flex-shrink: 0; }
.area-row__num { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--blue); margin-bottom: 6px; }
.area-row h3 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 10px; }
.area-row__head p { font-size: 15.5px; margin: 0; max-width: 420px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-content: start; padding-top: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.checklist .icon { width: 20px; height: 20px; color: var(--blue); stroke-width: 2.2; margin-top: 1px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 8px 36px; }
.pillar:first-child { padding-left: 0; }
.pillar + .pillar { border-left: 1px solid rgba(255, 255, 255, .12); }
.pillar .icon { width: 30px; height: 30px; color: #8fb3e6; margin-bottom: 20px; }
.pillar h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.pillar p { font-size: 15px; line-height: 1.7; margin: 0; color: #93a5bf; }

.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--4::before { left: 12.5%; right: 12.5%; }

.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 40px; padding: 28px 32px; border-radius: var(--radius); background: var(--blue-50);
}
.cta-band h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 4px; }
.cta-band p { font-size: 14px; margin: 0; max-width: 560px; }
.cta-band .btn { flex-shrink: 0; }
.pricing-grid + .cta-band { max-width: 1100px; margin-left: auto; margin-right: auto; }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact__info h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; }
.contact__info > p { font-size: 17px; color: var(--muted); }
.contact__list { list-style: none; display: grid; gap: 20px; margin-top: 32px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list .feature__icon { margin: 0; width: 46px; height: 46px; flex-shrink: 0; }
.contact__list strong { display: block; font-size: 14px; color: var(--ink); }
.contact__list a, .contact__list span { font-size: 15px; }

.signup-form textarea {
    width: 100%; min-height: 130px; resize: vertical; font: 500 15px/1.5 var(--font); color: var(--ink);
    background: var(--bg-soft); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px;
    transition: border-color .2s, background .2s;
}
.signup-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.signup-form textarea::placeholder { color: #98a1ad; }
.signup-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.signup-form legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
    display: inline-flex; align-items: center; padding: 9px 14px; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
    font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s, color .2s;
}
.chip span:hover { border-color: #c4d2df; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.signup-form .check { font-weight: 500; color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1120px) {
    .page-hero .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; }
    .area-tile { min-height: 180px; padding: 20px; }
    .pillar { padding: 8px 24px; }
}
@media (max-width: 920px) {
    .page-hero .hero__inner { grid-template-columns: 1fr; }
    .areas-preview { max-width: 600px; }
    .area-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
    .pillars { grid-template-columns: 1fr; }
    .pillar, .pillar:first-child { padding: 24px 0; }
    .pillar + .pillar { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
    .steps--4 { grid-template-columns: 1fr; }
    .steps--4::before { left: 50%; right: auto; }
    .contact { grid-template-columns: 1fr; gap: 40px; }
    .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .areas-preview { gap: 10px; }
    .area-tile { min-height: 0; padding: 16px; border-radius: 12px; }
    .area-tile__top { margin-bottom: 20px; }
    .area-tile__top .icon { width: 24px; height: 24px; }
    .area-tile h2 { font-size: 17px; margin: 0; }
    .area-tile p { display: none; }
    .area-row h3 { font-size: 22px; }
    .checklist { grid-template-columns: 1fr; gap: 12px; }
    .cta-band { padding: 24px 20px; }
    .cta-band .btn { width: 100%; }
}
