/* =========================================================
   1. Variabili globali
   Modifica qui palette, radius, ombre e misure principali.
   ========================================================= */
:root {
    --color-primary: #588157;
    --color-primary-dark: #3A5A40;
    --color-primary-soft: rgba(88, 129, 87, 0.13);
    --color-accent: #A3B18A;
    --color-ink: #344E41;
    --color-ink-soft: #3A5A40;
    --color-muted: #5c6e5c;
    --color-line: rgba(52, 78, 65, 0.13);
    --color-bg: #DAD7CD;
    --color-surface: rgba(255, 255, 255, 0.82);
    --color-surface-muted: #e8e5db;
    --color-text: #344E41;
    --color-text-muted: #5c6e5c;
    --color-border: rgba(52, 78, 65, 0.13);
    --color-link: #3A5A40;
    --color-card: rgba(255, 255, 255, 0.86);
    --color-white: #ffffff;
    --color-premium: #1a2e1f;
    --shadow-soft: 0 18px 60px rgba(52, 78, 65, 0.10);
    --shadow-card: 0 14px 40px rgba(52, 78, 65, 0.08);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --container: 1160px;
    --header-height: 78px;
    --section-y: clamp(2.8rem, 5.4vw, 5rem);
    --section-y-tight: clamp(2.1rem, 4vw, 3.7rem);
    --card-pad: clamp(1.25rem, 2.2vw, 1.75rem);
    --text-measure: 64ch;
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 280ms var(--ease-smooth);
    --transition-slow: 640ms var(--ease-out-soft);
}

/* ── Dark mode: variabili ── */
[data-theme="dark"] {
    --color-primary: #A3B18A;
    --color-primary-dark: #c4cdb3;
    --color-primary-soft: rgba(163, 177, 138, 0.14);
    --color-accent: #DAD7CD;
    --color-ink: #e8e5db;
    --color-ink-soft: #cdc9bc;
    --color-muted: #9aaa94;
    --color-line: rgba(163, 177, 138, 0.22);
    --color-bg: #1a2418;
    --color-surface: #243020;
    --color-surface-muted: #1e2a1c;
    --color-text: #e8e5db;
    --color-text-muted: #9aaa94;
    --color-border: rgba(163, 177, 138, 0.22);
    --color-link: #c4cdb3;
    --color-card: #243020;
    --color-premium: #0f1a0f;
    --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.38);
    --shadow-card: 0 14px 38px rgba(0, 0, 0, 0.32);
}

/* ── Transizione globale smooth ── */
html { transition: background-color 0.4s ease, color 0.3s ease; }
body, .site-header, .site-footer, .hero, .section, .price-card, .feature-card, .content-card, .team-card, .faq-item {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

html.no-transition,
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
    transition: none !important;
}

/* =========================================================
   2. Reset/base
   Base solida per evitare overflow e incoerenze cross-browser.
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(88, 129, 87, 0.12), transparent 30rem),
        radial-gradient(circle at 88% 4%, rgba(163, 177, 138, 0.14), transparent 28rem),
        linear-gradient(180deg, #e2dfd5 0%, var(--color-bg) 44%, #eae7dd 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    color: var(--color-white);
    background: var(--color-primary);
}

:focus-visible {
    outline: 3px solid rgba(88, 129, 87, 0.45);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-ink);
    color: var(--color-white);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 1rem;
}

/* =========================================================
   3. Typography
   Tipografia fluida con clamp per desktop e mobile.
   ========================================================= */
h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    line-height: 1.1;
    color: var(--color-ink);
}

h1 {
    max-width: 13ch;
    font-size: clamp(2.55rem, 5.4vw, 5.15rem);
}

h2 {
    font-size: clamp(1.85rem, 3.2vw, 3rem);
}

h3 {
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

p {
    max-width: var(--text-measure);
    color: var(--color-muted);
    line-height: 1.68;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-bottom: 0.8rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(88, 129, 87, 0.22);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-lead,
.page-hero p {
    max-width: 58ch;
    font-size: clamp(1.03rem, 1.7vw, 1.18rem);
    line-height: 1.7;
}

/* =========================================================
   4. Layout generale
   Container, sezioni e layout riutilizzabili.
   ========================================================= */
.container {
    width: min(calc(100% - 2.5rem), var(--container));
    margin-inline: auto;
}

.narrow {
    width: min(calc(100% - 2.5rem), 860px);
}

.section {
    position: relative;
    padding: var(--section-y) 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(163, 177, 138, 0.14));
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
}

.section-heading h2,
.section-heading p {
    margin-bottom: 0;
}

.centered {
    margin-inline: auto;
    text-align: center;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.problem-layout {
    align-items: start;
}

.problem-layout .section-heading {
    margin-top: 0;
    padding-top: 0.1rem;
}

.section-with-blobs {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.blob {
    position: absolute;
    z-index: -1;
    width: clamp(14rem, 28vw, 28rem);
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

.blob-one {
    left: -7rem;
    top: 7rem;
    background: rgba(88, 129, 87, 0.35);
}

.blob-two {
    right: -8rem;
    top: 2rem;
    background: rgba(163, 177, 138, 0.35);
}

/* =========================================================
   5. Navbar
   Navbar glass sticky con stato scroll e menu mobile animato.
   ========================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), transform var(--transition);
}

.site-header.is-scrolled {
    background: rgba(218, 215, 205, 0.82);
    box-shadow: 0 14px 40px rgba(52, 78, 65, 0.08);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--color-white);
    background: linear-gradient(135deg, #588157, #3A5A40);
    box-shadow: 0 12px 28px rgba(88, 129, 87, 0.30);
}

.brand-text {
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1.4vw, 1.4rem);
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-menu a:not(.btn) {
    position: relative;
    padding: 0.6rem 0.4rem;
    color: var(--color-ink-soft);
    font-size: 0.94rem;
    font-weight: 750;
    transition: color var(--transition), transform var(--transition);
}

.nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.34rem;
    height: 2px;
    border-radius: 999px;
    background: #588157;
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: opacity var(--transition), transform var(--transition);
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--color-primary-dark);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
    opacity: 0.8;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-ink);
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Pulsante toggle ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: inherit;
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    position: relative;
}

.theme-toggle svg {
    position: absolute;
    transition: opacity 0.35s ease, transform 0.4s ease;
}

/* Light mode: luna visibile, sole nascosto */
.theme-toggle [data-icon-moon] { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle [data-icon-sun]  { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* Dark mode: sole visibile, luna nascosta */
[data-theme="dark"] .theme-toggle [data-icon-moon] { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle [data-icon-sun]  { opacity: 1; transform: rotate(0deg) scale(1); }

/* Override finali dark mode: devono stare in fondo per vincere sulla cascata. */
[data-theme="dark"] {
    --color-primary: #A3B18A;
    --color-primary-dark: #c4cdb3;
    --color-primary-soft: rgba(163, 177, 138, 0.14);
    --color-accent: #DAD7CD;
    --color-ink: #e8e5db;
    --color-ink-soft: #cdc9bc;
    --color-muted: #9aaa94;
    --color-line: rgba(163, 177, 138, 0.22);
    --color-bg: #1a2418;
    --color-surface: #243020;
    --color-surface-muted: #1e2a1c;
    --color-link: #c4cdb3;
    --shadow-soft: 0 22px 58px rgba(0, 0, 0, 0.44);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] body {
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(163, 177, 138, 0.10), transparent 30rem),
        radial-gradient(circle at 88% 4%, rgba(218, 215, 205, 0.06), transparent 28rem),
        linear-gradient(180deg, #1a2418 0%, #243020 48%, #1a2418 100%);
}

[data-theme="dark"] .site-header {
    background: rgba(26, 36, 24, 0.85);
    border-bottom: 1px solid rgba(163, 177, 138, 0.14);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(26, 36, 24, 0.94);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .nav-menu {
    background: rgba(36, 48, 32, 0.88);
    border-color: rgba(163, 177, 138, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .nav-menu a:not(.btn) {
    color: var(--color-ink-soft);
}

[data-theme="dark"] .nav-menu a:not(.btn):hover,
[data-theme="dark"] .nav-menu a:not(.btn).is-active {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .theme-toggle {
    color: var(--color-ink);
    background: rgba(243, 251, 246, 0.08);
    border: 1px solid rgba(180, 205, 188, 0.20);
    border-radius: 14px;
}

[data-theme="dark"] .nav-toggle span {
    background: var(--color-ink);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: var(--color-ink);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] small,
[data-theme="dark"] .price-card li,
[data-theme="dark"] .footer-brand p {
    color: var(--color-muted);
}

[data-theme="dark"] .eyebrow {
    color: var(--color-primary-dark);
    background: rgba(74, 222, 128, 0.11);
    border-color: rgba(134, 239, 172, 0.30);
}

[data-theme="dark"] .section {
    background: transparent;
}

[data-theme="dark"] .section-muted {
    background: linear-gradient(180deg, rgba(22, 37, 27, 0.72), rgba(13, 28, 19, 0.72));
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 78% 16%, rgba(103, 232, 249, 0.11), transparent 27rem),
        linear-gradient(135deg, rgba(11, 21, 16, 0.45), rgba(22, 37, 27, 0.72));
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .timeline-step,
[data-theme="dark"] .problem-list article,
[data-theme="dark"] .solution-panel,
[data-theme="dark"] .privacy-preview,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .brand-closing-panel,
[data-theme="dark"] .final-cta .container {
    color: var(--color-ink);
    background: rgba(23, 41, 32, 0.92);
    border-color: rgba(180, 205, 188, 0.18);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .stat-card strong,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .content-card h2,
[data-theme="dark"] .team-card h3,
[data-theme="dark"] .price-card h3,
[data-theme="dark"] .faq-item button,
[data-theme="dark"] .app-header b,
[data-theme="dark"] label {
    color: var(--color-ink);
}

[data-theme="dark"] .stat-card span,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .content-card p,
[data-theme="dark"] .team-card p:not(.role),
[data-theme="dark"] .timeline-step p,
[data-theme="dark"] .faq-panel p {
    color: var(--color-muted);
}

[data-theme="dark"] .feature-icon,
[data-theme="dark"] .product-icon,
[data-theme="dark"] .timeline-step span,
[data-theme="dark"] .solution-tags span,
[data-theme="dark"] .team-avatar {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #67e8f9);
}

[data-theme="dark"] .price {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .premium-section {
    background:
        radial-gradient(circle at 20% 8%, rgba(74, 222, 128, 0.18), transparent 28rem),
        linear-gradient(135deg, #07110c, #102018 58%, #050a07);
}

[data-theme="dark"] .phone-mockup,
[data-theme="dark"] .app-screen {
    background: linear-gradient(180deg, #1b3024, #0f1f17);
    border-color: rgba(180, 205, 188, 0.18);
}

[data-theme="dark"] .phone-top {
    background: rgba(243, 251, 246, 0.24);
}

[data-theme="dark"] .product-row,
[data-theme="dark"] .app-search,
[data-theme="dark"] .floating-card,
[data-theme="dark"] .map-placeholder {
    color: var(--color-ink);
    background: rgba(11, 21, 16, 0.76);
    border: 1px solid rgba(180, 205, 188, 0.16);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    color: var(--color-ink);
    background: rgba(11, 21, 16, 0.84);
    border-color: rgba(180, 205, 188, 0.26);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: rgba(134, 239, 172, 0.60);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

[data-theme="dark"] .btn-primary {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #4ade80);
}

[data-theme="dark"] .btn-secondary {
    color: var(--color-primary-dark);
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(134, 239, 172, 0.34);
}

[data-theme="dark"] .btn-secondary:hover {
    color: #052e16;
    background: #86efac;
}

[data-theme="dark"] .site-footer,
[data-theme="dark"] .brand-closing {
    background: #070f0b;
}

[data-theme="dark"] .site-footer a,
[data-theme="dark"] .content-card a:not(.btn),
[data-theme="dark"] .team-contact a {
    color: var(--color-link);
}

[data-theme="dark"] .footer-bottom {
    border-color: rgba(180, 205, 188, 0.14);
}

[data-theme="dark"] .team-contact {
    color: #d7eadf;
    background: rgba(23, 41, 32, 0.96);
    border-color: rgba(134, 239, 172, 0.34);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .team-contact a {
    color: #86efac;
}

[data-theme="dark"] .result-card .btn-primary {
    color: #052e16;
}

/* =========================================================
   6. Hero
   Sezione iniziale con mockup telefono, statistiche e floating card.
   ========================================================= */
.hero {
    min-height: clamp(680px, 86svh, 820px);
    padding: calc(var(--header-height) + 2.4rem) 0 3rem;
    display: grid;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    gap: clamp(1.5rem, 4.6vw, 4rem);
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.45rem 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
    max-width: 620px;
}

.stat-card {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.stat-card strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: clamp(1.06rem, 1.45vw, 1.22rem);
    line-height: 1.2;
    text-wrap: balance;
}

.stat-card span {
    display: block;
    margin-top: 0.55rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.42;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.phone-mockup {
    width: min(310px, 80vw);
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(221, 247, 233, 0.74));
    box-shadow: 0 30px 80px rgba(16, 33, 26, 0.24);
}

.phone-top {
    width: 32%;
    height: 7px;
    margin: 0.5rem auto 0.8rem;
    border-radius: 999px;
    background: rgba(16, 33, 26, 0.22);
}

.app-screen {
    min-height: 450px;
    padding: 1.15rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(78, 205, 196, 0.35), transparent 13rem),
        linear-gradient(180deg, #f8fffb, #edf9f2);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.app-header span {
    color: var(--color-muted);
}

.app-search {
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(16, 33, 26, 0.07);
}

.product-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(16, 33, 26, 0.08);
}

.product-row.urgent {
    border: 1px solid rgba(24, 160, 88, 0.25);
}

.product-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--color-primary-soft);
}

.product-row b,
.product-row small {
    display: block;
}

.product-row small {
    color: var(--color-muted);
}

.mini-chart {
    display: flex;
    align-items: end;
    gap: 0.55rem;
    height: 96px;
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 22px;
    background: #0d2c21;
}

.mini-chart span {
    flex: 1;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
}

.floating-card {
    position: absolute;
    z-index: 2;
    max-width: 190px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    color: var(--color-ink-soft);
    font-weight: 800;
    animation: floatCard 6.5s var(--ease-smooth) infinite;
}

.floating-card-left {
    left: 0;
    top: 18%;
}

.floating-card-right {
    right: 0;
    bottom: 18%;
    animation-delay: 900ms;
}

/* =========================================================
   7. Sezioni
   Blocchi generici usati da problema, soluzione e CTA.
   ========================================================= */
.problem-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.problem-layout .problem-list {
    padding-top: 0;
}

.problem-list article,
.solution-panel,
.privacy-preview,
.final-cta .container {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.problem-list article {
    display: flex;
    gap: 1rem;
    padding: var(--card-pad);
    align-items: flex-start;
}

.problem-list span {
    line-height: 1.45;
    color: var(--color-primary-dark);
    font-weight: 900;
}

.problem-list p {
    margin: 0;
}

.solution-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1.55rem, 3.2vw, 2.45rem);
}

.solution-panel p,
.privacy-preview p,
.final-cta p {
    margin-bottom: 0;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 0.8rem;
}

.solution-tags span {
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    font-weight: 800;
}

.page-hero {
    padding: calc(var(--header-height) + 3.4rem) 0 2.9rem;
}

.page-hero h1 {
    max-width: 14ch;
}

/* =========================================================
   8. Card funzionalita'
   Griglia card con hover sobrio e reveal sequenziale.
   ========================================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 981px) {
    .complete-feature-grid .feature-card:nth-last-child(2) {
        grid-column: 2;
    }

    .complete-feature-grid .feature-card:last-child {
        grid-column: 3;
    }
}

.preview-grid .feature-card {
    min-height: 190px;
}

.feature-card,
.content-card,
.team-card,
.price-card {
    border: 1px solid rgba(16, 33, 26, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.feature-card {
    min-height: 214px;
    padding: var(--card-pad);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    will-change: transform;
}

.feature-card h3,
.timeline-step h3,
.team-card h3,
.price-card h3 {
    margin-bottom: 0.55rem;
}

.feature-card p,
.timeline-step p,
.team-card p,
.price-card p,
.content-card p {
    margin-bottom: 0;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 160, 88, 0.28);
    box-shadow: 0 20px 48px rgba(16, 33, 26, 0.14);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
    border-radius: 16px;
    color: var(--color-primary-dark);
    background: linear-gradient(135deg, var(--color-primary-soft), #ffffff);
    font-weight: 900;
}

/* =========================================================
   9. Timeline
   Step orizzontali su desktop, verticali su mobile.
   ========================================================= */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 34px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(24, 160, 88, 0.35), transparent);
}

.timeline-step {
    position: relative;
    min-height: 170px;
    padding: var(--card-pad);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

.timeline-step span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-primary);
    font-weight: 900;
}

/* =========================================================
   10. Piani
   Sezione scura premium con tre card e nota placeholder.
   ========================================================= */
.premium-section {
    padding-block: var(--section-y-tight);
    color: var(--color-white);
    background:
        radial-gradient(circle at 18% 10%, rgba(24, 160, 88, 0.32), transparent 32rem),
        linear-gradient(135deg, #071812, #10251c 58%, #06110d);
}

.premium-section h2,
.premium-section h3 {
    color: var(--color-white);
}

.premium-section p,
.premium-section li {
    color: rgba(255, 255, 255, 0.75);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: var(--card-pad);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.price-card.highlighted {
    transform: translateY(-6px);
    border-color: rgba(78, 205, 196, 0.42);
    box-shadow: 0 26px 80px rgba(24, 160, 88, 0.22);
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 58px rgba(24, 160, 88, 0.18);
}

.price-card.highlighted:hover {
    transform: translateY(-7px);
}

.price {
    margin: 0.8rem 0 1rem;
    color: var(--color-white) !important;
    font-size: 2rem;
    font-weight: 900;
}

.price span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
}

.plan-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #082118;
    background: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.price-card ul,
.content-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.price-card ul {
    margin-top: auto;
}

.price-card li,
.content-card li {
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

/* =========================================================
   11. GDPR/privacy
   Layout informativa con indice sticky e card contenuto.
   ========================================================= */
.privacy-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1.55rem, 3.2vw, 2.45rem);
}

.privacy-preview-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.privacy-preview-inline p {
    max-width: none;
    white-space: nowrap;
    font-size: 0.98rem;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(1.1rem, 2.4vw, 1.8rem);
    align-items: start;
}

.privacy-index {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

.privacy-index a {
    padding: 0.62rem 0.8rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-weight: 750;
}

.privacy-index a:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.privacy-content {
    display: grid;
    gap: 0.9rem;
}

.content-card {
    padding: var(--card-pad);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.content-card:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 160, 88, 0.18);
    box-shadow: 0 18px 46px rgba(16, 33, 26, 0.12);
}

.content-card h2,
.contact-form h2,
.privacy-index + .privacy-content h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    line-height: 1.18;
}

.content-card a:not(.btn) {
    color: var(--color-primary-dark);
    font-weight: 850;
}

.check-list li::marker {
    color: var(--color-primary);
}

.small-note {
    margin-bottom: 0;
    font-size: 0.92rem;
}

/* =========================================================
   12. Chi siamo
   Valori, missione e card membri team.
   ========================================================= */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
}

.team-card {
    display: grid;
    min-height: 300px;
    align-content: start;
    justify-items: start;
    gap: 0.45rem;
    padding: clamp(1.35rem, 2.2vw, 1.7rem);
    transition: transform var(--transition), box-shadow var(--transition);
    will-change: transform;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(16, 33, 26, 0.13);
}

.team-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.65rem;
    border-radius: 18px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-size: 1.25rem;
    font-weight: 900;
}

.team-card h3 {
    margin-bottom: 0.2rem;
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    line-height: 1.18;
}

.role {
    margin-bottom: 0.45rem;
    color: var(--color-primary-dark);
    font-size: 0.92rem;
    font-weight: 850;
}

.team-card p:not(.role) {
    color: var(--color-muted);
    font-size: 0.94rem;
    line-height: 1.62;
}

.team-contact {
    width: fit-content;
    margin: 1.2rem auto 0;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(24, 160, 88, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-muted);
    font-weight: 750;
    text-align: center;
}

.team-contact a {
    color: var(--color-primary-dark);
    font-weight: 900;
}

/* =========================================================
   13. Contatti
   Layout pagina contatti e placeholder info.
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: clamp(1rem, 2.4vw, 1.5rem);
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 0.9rem;
}

.map-placeholder {
    min-height: 150px;
    padding: var(--card-pad);
    display: grid;
    place-items: center;
    border: 1px dashed rgba(24, 160, 88, 0.38);
    border-radius: var(--radius-lg);
    color: var(--color-primary-dark);
    background:
        linear-gradient(135deg, rgba(24, 160, 88, 0.12), rgba(78, 205, 196, 0.12)),
        rgba(255, 255, 255, 0.72);
    font-weight: 850;
}

/* =========================================================
   14. FAQ accordion
   Pannelli animati via altezza gestita in JavaScript.
   ========================================================= */
.faq-wrap {
    max-width: 960px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: start;
}

.faq-item {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 1rem 1.15rem;
    border: 0;
    color: var(--color-ink);
    background: transparent;
    text-align: left;
    font-weight: 850;
}

.faq-item strong {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    transition: transform var(--transition);
}

.faq-item.is-open strong {
    transform: rotate(45deg);
}

.faq-panel {
    height: 0;
    overflow: hidden;
    transition: height 320ms var(--ease-smooth);
}

.faq-panel p {
    margin: 0;
    padding: 0 1.15rem 1.15rem;
}

/* =========================================================
   15. Footer
   Footer completo, leggibile e coerente col brand.
   ========================================================= */
.brand-closing {
    padding: clamp(1.15rem, 2.4vw, 1.9rem) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(225, 246, 233, 0.32));
}

.brand-closing-panel {
    padding: clamp(1.05rem, 2vw, 1.55rem);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    text-align: center;
}

.brand-closing p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-ink);
    font-size: clamp(1.18rem, 2.1vw, 1.78rem);
    font-weight: 900;
    line-height: 1.18;
    text-wrap: balance;
}

.brand-closing p span {
    color: var(--color-primary-dark);
}

.brand-closing small {
    display: block;
    max-width: 580px;
    margin: 0.5rem auto 0;
    color: var(--color-muted);
    font-size: clamp(0.84rem, 1.05vw, 0.94rem);
    line-height: 1.45;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #071812;
}

.final-cta {
    padding-block: var(--section-y-tight);
}

.final-cta .container {
    padding: clamp(2rem, 4vw, 3rem) clamp(1.8rem, 4.5vw, 3.5rem);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.final-cta p {
    margin-inline: auto;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: 2.8rem 0 1.8rem;
}

.brand-footer,
.site-footer h3 {
    color: var(--color-white);
}

.footer-brand p {
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.68);
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

.footer-column h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: 1.1rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
}

/* =========================================================
   16. Form
   Campi contatto, feedback e risultati.
   ========================================================= */
.contact-form {
    display: grid;
    gap: 0.9rem;
    padding: var(--card-pad);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.form-alert {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 750;
}

.form-alert p {
    margin: 0;
}

.form-alert.is-error {
    color: #8a1f16;
    background: rgba(180, 35, 24, 0.10);
}

.form-alert.is-success {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.help-term {
    position: relative;
    display: inline;
    border-bottom: 2px solid rgba(24, 160, 88, 0.48);
    color: inherit;
    text-decoration: none;
    text-underline-offset: 0.18em;
    cursor: help;
}

.help-term::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.65rem);
    z-index: 40;
    width: min(260px, 78vw);
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(24, 160, 88, 0.18);
    border-radius: var(--radius-sm);
    color: var(--color-ink-soft);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition);
}

.help-term::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    bottom: calc(100% + 0.38rem);
    z-index: 41;
    border: 0.35rem solid transparent;
    border-top-color: rgba(255, 255, 255, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.help-term:hover::after,
.help-term:focus-visible::after,
.help-term:hover::before,
.help-term:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    display: grid;
    gap: 0.4rem;
}

label {
    color: var(--color-ink-soft);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:focus,
textarea:focus {
    border-color: rgba(24, 160, 88, 0.55);
    box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.12);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 132px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 650;
}

.checkbox-row input {
    width: auto;
    margin-top: 0.35rem;
}

.form-feedback {
    min-height: 1.4rem;
    margin: 0;
    font-weight: 800;
}

.form-feedback.is-error {
    color: #b42318;
}

.form-feedback.is-success {
    color: var(--color-primary-dark);
}

.result-card ul {
    color: var(--color-muted);
}

.result-card {
    display: grid;
    gap: 0.9rem;
    align-items: start;
}

.result-card .btn {
    width: fit-content;
}

.result-success {
    border-color: rgba(24, 160, 88, 0.28);
}

.result-error {
    border-color: rgba(180, 35, 24, 0.22);
}

/* =========================================================
   17. Bottoni
   CTA e micro-interazioni sobrie.
   ========================================================= */
.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.82rem 1.18rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 14px 34px rgba(24, 160, 88, 0.30);
}

.btn-primary:hover {
    box-shadow: 0 16px 38px rgba(24, 160, 88, 0.34);
}

.btn-secondary {
    color: var(--color-primary-dark);
    border-color: rgba(24, 160, 88, 0.18);
    background: rgba(255, 255, 255, 0.76);
}

.btn-secondary:hover {
    border-color: rgba(24, 160, 88, 0.34);
    background: rgba(255, 255, 255, 0.9);
}

.btn-small {
    min-height: 40px;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
}

.centered-actions {
    justify-content: center;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    will-change: transform, opacity;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================================
   18. Animazioni
   Reveal on-scroll, hero load e floating card.
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.delay-1 {
    --reveal-delay: 140ms;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* =========================================================
   19. Responsive
   Adattamenti tablet e mobile, senza overflow orizzontale.
   ========================================================= */
@media (max-width: 980px) {
    :root {
        --section-y: clamp(2.5rem, 6vw, 4rem);
        --section-y-tight: clamp(2rem, 5vw, 3rem);
        --card-pad: clamp(1.2rem, 3vw, 1.55rem);
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: calc(var(--header-height) - 0.1rem);
        display: grid;
        gap: 0.3rem;
        padding: 1rem;
        border-radius: 24px;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, -8px, 0) scale(0.985);
        transform-origin: top center;
        transition: opacity var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
        will-change: opacity, transform;
    }

    .nav-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
    }

    .nav-menu a:not(.btn),
    .nav-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-grid,
    .split-layout,
    .solution-panel,
    .privacy-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-bottom: 2.4rem;
    }

    .hero-visual {
        min-height: 500px;
    }

    .stats-grid,
    .pricing-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
    }

    .timeline::before {
        display: none;
    }

    .privacy-index {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .faq-list {
        grid-template-columns: 1fr;
    }

    .problem-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .privacy-preview-inline {
        grid-template-columns: 1fr;
    }

    .privacy-preview-inline p {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 70px;
        --section-y: clamp(2.15rem, 8vw, 3rem);
        --card-pad: 1.15rem;
    }

    .container {
        width: min(calc(100% - 1.4rem), var(--container));
    }

    .narrow {
        width: min(calc(100% - 1.4rem), 860px);
    }

    .hero {
        padding-top: calc(var(--header-height) + 1.55rem);
    }

    h1 {
        max-width: 12ch;
        font-size: clamp(2.25rem, 13vw, 3.15rem);
    }

    h2 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }

    h3 {
        line-height: 1.18;
    }

    p {
        line-height: 1.62;
    }

    .eyebrow {
        margin-bottom: 0.65rem;
        padding: 0.38rem 0.68rem;
        font-size: 0.74rem;
    }

    .hero-actions,
    .privacy-preview {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions {
        margin-top: 1.15rem;
    }

    .btn {
        width: 100%;
        min-height: 46px;
    }

    .stats-grid,
    .feature-grid,
    .pricing-grid,
    .timeline,
    .value-grid,
    .team-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: auto;
    }

    .feature-card,
    .timeline-step,
    .price-card {
        min-height: auto;
    }

    .hero-visual {
        min-height: auto;
        padding-top: 0.35rem;
    }

    .phone-mockup {
        width: min(292px, 92vw);
    }

    .app-screen {
        min-height: 430px;
    }

    .floating-card {
        position: static;
        max-width: 292px;
        margin: 0.5rem auto;
        animation: none;
        text-align: center;
    }

    .price-card.highlighted {
        transform: none;
    }

    .page-hero {
        padding: calc(var(--header-height) + 2.25rem) 0 2rem;
    }

    .section-heading {
        text-align: left;
    }

    .centered {
        text-align: left;
    }

    .centered-actions {
        justify-content: stretch;
    }

    .faq-item button {
        min-height: 66px;
    }

    .footer-grid {
        padding-top: 2.2rem;
    }
}

/* =========================================================
   20. Utility classes
   Piccole classi riutilizzabili per casi ricorrenti.
   ========================================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Rispetta utenti che preferiscono ridurre le animazioni. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════
   DARK MODE
   ═══════════════════════════════ */

[data-theme="dark"] { background-color: #0f1a14; }

html {
    transition: background-color 0.4s ease;
}

body,
.site-header,
.site-footer,
section,
.hero,
.feature-card,
.price-card,
.content-card,
.team-card,
.stat-card,
.faq-item,
.contact-form,
.phone-mockup {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.4s ease;
}

[data-theme="dark"] body                { background: #0f1a14; color: #e8f5ee; }
[data-theme="dark"] .site-header        { background: rgba(15, 26, 20, 0.95); border-color: #2a4a35; box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(15, 26, 20, 0.92); }
[data-theme="dark"] .site-footer        { background: #0a1410; color: #9abfaa; }
[data-theme="dark"] .nav-menu           { background: rgba(26, 46, 32, 0.9); border-color: #2a4a35; }
[data-theme="dark"] .nav-menu a         { color: #e8f5ee; }
[data-theme="dark"] .nav-menu a.is-active { color: #2ecc71; }
[data-theme="dark"] .brand-text         { color: #e8f5ee; }
[data-theme="dark"] .brand-mark         { color: #0f1a14; }
[data-theme="dark"] .eyebrow            { background: rgba(46, 204, 113, 0.13); border-color: #2a4a35; color: #8ee9ad; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #e8f5ee; }
[data-theme="dark"] p                   { color: #c5dece; }
[data-theme="dark"] small               { color: #9abfaa; }
[data-theme="dark"] li                  { color: #c5dece; }
[data-theme="dark"] a                   { color: #7ee9a4; }

/* Sezioni */
[data-theme="dark"] .section            { background: #0f1a14; }
[data-theme="dark"] .section-muted      { background: #131f18; }
[data-theme="dark"] .hero               { background: linear-gradient(135deg, #0f1a14 0%, #1a2e20 100%); }
[data-theme="dark"] .final-cta          { background: #131f18; }
[data-theme="dark"] .brand-closing      { background: #0a1410; }
[data-theme="dark"] .brand-closing-panel { background: #1a2e20; border-color: #2a4a35; }

/* Card */
[data-theme="dark"] .stat-card          { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .stat-card strong   { color: #e8f5ee; }
[data-theme="dark"] .stat-card span     { color: #9abfaa; }
[data-theme="dark"] .feature-card       { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .price-card         { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .content-card       { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .team-card          { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .faq-item           { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .faq-item button    { color: #e8f5ee; }
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .product-icon       { background: rgba(46, 204, 113, 0.16); color: #8ee9ad; }

/* Bottoni */
[data-theme="dark"] .btn-primary        { color: #0f1a14; background: linear-gradient(135deg, #8ee9ad, #2ecc71); box-shadow: 0 14px 34px rgba(46, 204, 113, 0.22); }
[data-theme="dark"] .btn-secondary      { color: #e8f5ee; border-color: #2ecc71; background: rgba(46, 204, 113, 0.08); }
[data-theme="dark"] .btn-secondary:hover { background: #2ecc71; color: #0f1a14; }

/* Form */
[data-theme="dark"] .contact-form       { background: #1a2e20; border-color: #2a4a35; }
[data-theme="dark"] input, [data-theme="dark"] textarea { background: #0f1a14; color: #e8f5ee; border-color: #2a4a35; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #9abfaa; }
[data-theme="dark"] label               { color: #c5dece; }

/* Privacy preview e altri pannelli */
[data-theme="dark"] .privacy-preview    { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .solution-panel     { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .solution-tags span { background: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .timeline-step      { background: #1a2e20; color: #e8f5ee; }
[data-theme="dark"] .timeline-step span { background: #2ecc71; color: #0f1a14; }
[data-theme="dark"] .footer-bottom      { border-color: #2a4a35; color: #9abfaa; }
[data-theme="dark"] .phone-mockup       { background: #1a2e20; border-color: #2a4a35; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38); }
[data-theme="dark"] .app-screen         { background: linear-gradient(180deg, #162519, #0f1a14); }
[data-theme="dark"] .product-row,
[data-theme="dark"] .app-search,
[data-theme="dark"] .floating-card,
[data-theme="dark"] .map-placeholder    { background: #162519; border-color: #2a4a35; color: #e8f5ee; }
[data-theme="dark"] .premium-section    { background: linear-gradient(135deg, #07100c, #10251c 58%, #050907); }
[data-theme="dark"] .help-term::after   { background: #1a2e20; border-color: #2a4a35; color: #e8f5ee; }

/* ── Icone toggle ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: inherit;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    position: relative;
}
.theme-toggle svg {
    position: absolute;
    transition: opacity 0.35s ease, transform 0.4s ease;
    pointer-events: none;
}
/* Light: luna visibile, sole nascosto */
.theme-toggle [data-icon-moon] { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle [data-icon-sun]  { opacity: 0; transform: rotate(90deg) scale(0.5); }
/* Dark: sole visibile, luna nascosta */
[data-theme="dark"] .theme-toggle [data-icon-moon] { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle [data-icon-sun]  { opacity: 1; transform: rotate(0deg) scale(1); }

/* Override finali dark mode: devono stare in fondo per vincere sulla cascata. */
[data-theme="dark"] {
    --color-primary: #4ade80;
    --color-primary-dark: #86efac;
    --color-primary-soft: rgba(74, 222, 128, 0.14);
    --color-accent: #67e8f9;
    --color-ink: #f3fbf6;
    --color-ink-soft: #d7eadf;
    --color-muted: #b4cdbc;
    --color-line: rgba(180, 205, 188, 0.24);
    --color-bg: #0b1510;
    --color-surface: #16251b;
    --color-surface-muted: #102018;
    --color-link: #9af7b8;
    --shadow-soft: 0 22px 58px rgba(0, 0, 0, 0.44);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] body {
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(74, 222, 128, 0.13), transparent 30rem),
        radial-gradient(circle at 88% 4%, rgba(103, 232, 249, 0.10), transparent 28rem),
        linear-gradient(180deg, #0b1510 0%, #101d16 48%, #0b1510 100%);
}

[data-theme="dark"] .site-header {
    background: rgba(11, 21, 16, 0.82);
    border-bottom: 1px solid rgba(180, 205, 188, 0.14);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(11, 21, 16, 0.94);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nav-menu {
    background: rgba(22, 37, 27, 0.88);
    border-color: rgba(180, 205, 188, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .nav-menu a:not(.btn) {
    color: var(--color-ink-soft);
}

[data-theme="dark"] .nav-menu a:not(.btn):hover,
[data-theme="dark"] .nav-menu a:not(.btn).is-active {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .theme-toggle {
    color: var(--color-ink);
    background: rgba(243, 251, 246, 0.08);
    border: 1px solid rgba(180, 205, 188, 0.20);
    border-radius: 14px;
}

[data-theme="dark"] .nav-toggle span {
    background: var(--color-ink);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: var(--color-ink);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] small,
[data-theme="dark"] .price-card li,
[data-theme="dark"] .footer-brand p {
    color: var(--color-muted);
}

[data-theme="dark"] .eyebrow {
    color: var(--color-primary-dark);
    background: rgba(74, 222, 128, 0.11);
    border-color: rgba(134, 239, 172, 0.30);
}

[data-theme="dark"] .section {
    background: transparent;
}

[data-theme="dark"] .section-muted {
    background: linear-gradient(180deg, rgba(22, 37, 27, 0.72), rgba(13, 28, 19, 0.72));
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 78% 16%, rgba(103, 232, 249, 0.11), transparent 27rem),
        linear-gradient(135deg, rgba(11, 21, 16, 0.45), rgba(22, 37, 27, 0.72));
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .timeline-step,
[data-theme="dark"] .problem-list article,
[data-theme="dark"] .solution-panel,
[data-theme="dark"] .privacy-preview,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .brand-closing-panel,
[data-theme="dark"] .final-cta .container {
    color: var(--color-ink);
    background: rgba(23, 41, 32, 0.92);
    border-color: rgba(180, 205, 188, 0.18);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .stat-card strong,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .content-card h2,
[data-theme="dark"] .team-card h3,
[data-theme="dark"] .price-card h3,
[data-theme="dark"] .faq-item button,
[data-theme="dark"] .app-header b,
[data-theme="dark"] label {
    color: var(--color-ink);
}

[data-theme="dark"] .stat-card span,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .content-card p,
[data-theme="dark"] .team-card p:not(.role),
[data-theme="dark"] .timeline-step p,
[data-theme="dark"] .faq-panel p {
    color: var(--color-muted);
}

[data-theme="dark"] .feature-icon,
[data-theme="dark"] .product-icon,
[data-theme="dark"] .timeline-step span,
[data-theme="dark"] .solution-tags span,
[data-theme="dark"] .team-avatar {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #67e8f9);
}

[data-theme="dark"] .price {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .premium-section {
    background:
        radial-gradient(circle at 20% 8%, rgba(74, 222, 128, 0.18), transparent 28rem),
        linear-gradient(135deg, #07110c, #102018 58%, #050a07);
}

[data-theme="dark"] .phone-mockup,
[data-theme="dark"] .app-screen {
    background: linear-gradient(180deg, #1b3024, #0f1f17);
    border-color: rgba(180, 205, 188, 0.18);
}

[data-theme="dark"] .phone-top {
    background: rgba(243, 251, 246, 0.24);
}

[data-theme="dark"] .product-row,
[data-theme="dark"] .app-search,
[data-theme="dark"] .floating-card,
[data-theme="dark"] .map-placeholder {
    color: var(--color-ink);
    background: rgba(11, 21, 16, 0.76);
    border: 1px solid rgba(180, 205, 188, 0.16);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    color: var(--color-ink);
    background: rgba(11, 21, 16, 0.84);
    border-color: rgba(180, 205, 188, 0.26);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: rgba(134, 239, 172, 0.60);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

[data-theme="dark"] .btn-primary {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #4ade80);
}

[data-theme="dark"] .btn-secondary {
    color: var(--color-primary-dark);
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(134, 239, 172, 0.34);
}

[data-theme="dark"] .btn-secondary:hover {
    color: #052e16;
    background: #86efac;
}

[data-theme="dark"] .site-footer,
[data-theme="dark"] .brand-closing {
    background: #070f0b;
}

[data-theme="dark"] .site-footer a,
[data-theme="dark"] .content-card a:not(.btn),
[data-theme="dark"] .team-contact a {
    color: var(--color-link);
}

[data-theme="dark"] .footer-bottom {
    border-color: rgba(180, 205, 188, 0.14);
}

[data-theme="dark"] .team-contact {
    color: #d7eadf;
    background: rgba(23, 41, 32, 0.96);
    border-color: rgba(134, 239, 172, 0.34);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .team-contact a {
    color: #86efac;
}

/* =========================================================
   App preview hero polish
   Stili finali per il mockup mobile della homepage.
   ========================================================= */
.app-preview {
    position: relative;
    min-height: clamp(520px, 58vw, 650px);
    width: min(100%, 650px);
    margin-inline: auto;
    isolation: isolate;
    overflow: visible;
}

.app-preview::before {
    content: "";
    position: absolute;
    inset: 10% 6% 4%;
    z-index: -2;
    border-radius: 48px;
    background:
        radial-gradient(circle at 50% 20%, rgba(78, 205, 196, 0.24), transparent 38%),
        radial-gradient(circle at 50% 80%, rgba(24, 160, 88, 0.16), transparent 42%);
    filter: blur(18px);
    opacity: 0.82;
    transform: translateZ(0);
}

.app-preview::after {
    content: "";
    position: absolute;
    inset: auto 14% 0;
    z-index: -1;
    height: 34%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(24, 160, 88, 0.16), rgba(78, 205, 196, 0.20));
    filter: blur(36px);
    opacity: 0.72;
}

.app-preview .phone-mockup {
    position: relative;
    z-index: 1;
    width: min(330px, 72vw);
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 46px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(223, 248, 234, 0.64)),
        rgba(255, 255, 255, 0.74);
    box-shadow:
        0 38px 92px rgba(16, 33, 26, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(22px);
    transform: translateY(18px) scale(0.985);
    opacity: 0;
}

.app-preview.is-preview-visible .phone-mockup,
.app-preview.reveal.is-visible .phone-mockup {
    animation: phonePreviewIn 820ms var(--ease-out-soft) forwards;
}

.app-preview .phone-mockup::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border-radius: 38px;
    border: 1px solid rgba(16, 33, 26, 0.07);
    pointer-events: none;
}

.app-preview .phone-top {
    width: 29%;
    height: 6px;
    margin: 0.45rem auto 0.8rem;
    border-radius: 999px;
    background: rgba(16, 33, 26, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.app-preview .app-screen {
    position: relative;
    min-height: 462px;
    overflow: hidden;
    padding: 1.28rem 1.18rem 1.1rem;
    border-radius: 34px;
    background:
        linear-gradient(160deg, rgba(248, 255, 251, 0.94) 0%, rgba(232, 250, 241, 0.92) 52%, rgba(214, 248, 239, 0.84) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(16, 33, 26, 0.06),
        inset 0 18px 40px rgba(255, 255, 255, 0.62);
}

.app-preview .app-screen::before {
    content: "";
    position: absolute;
    inset: -18% -18% auto auto;
    width: 72%;
    height: 45%;
    border-radius: 999px;
    background: rgba(78, 205, 196, 0.22);
    filter: blur(28px);
}

.app-preview .app-header,
.app-preview .app-search,
.app-preview .product-row,
.app-preview .mini-chart {
    position: relative;
    z-index: 1;
}

.app-preview .app-header {
    margin-bottom: 1rem;
    color: var(--color-ink);
    font-size: 0.98rem;
}

.app-preview .app-header span {
    color: #64786d;
    font-weight: 700;
}

.app-preview .app-header b {
    color: #10211a;
    font-size: 1.02rem;
    font-weight: 900;
}

.app-preview .app-search {
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 1px rgba(16, 33, 26, 0.05),
        0 12px 28px rgba(16, 33, 26, 0.05);
}

.app-preview .app-search::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 34%;
    height: 8px;
    border-radius: 999px;
    background: rgba(16, 33, 26, 0.07);
    transform: translateY(-50%);
}

.app-preview .product-row {
    min-height: 74px;
    margin-bottom: 0.82rem;
    padding: 0.86rem 0.95rem;
    border: 1px solid rgba(16, 33, 26, 0.07);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 12px 28px rgba(16, 33, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(12px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-preview.is-preview-visible .product-row,
.app-preview.reveal.is-visible .product-row {
    animation: appRowIn 520ms var(--ease-out-soft) forwards;
    animation-delay: var(--row-delay, 0ms);
}

.app-preview .product-row:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 160, 88, 0.24);
    box-shadow: 0 16px 34px rgba(16, 33, 26, 0.12);
}

.app-preview .product-row.urgent {
    border-color: rgba(24, 160, 88, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.app-preview .product-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(223, 248, 234, 0.98), rgba(255, 255, 255, 0.88));
    box-shadow: inset 0 0 0 1px rgba(24, 160, 88, 0.08);
    font-size: 1.05rem;
}

.app-preview .product-row b {
    color: #10211a;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.2;
}

.app-preview .product-row small {
    margin-top: 0.28rem;
    color: #65776d;
    font-size: 0.8rem;
    font-weight: 650;
}

.app-preview .mini-chart {
    display: grid;
    gap: 0.8rem;
    height: auto;
    min-height: 104px;
    margin-top: 1rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(9, 54, 38, 0.96), rgba(12, 82, 56, 0.92));
    box-shadow:
        0 18px 38px rgba(7, 24, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mini-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 800;
}

.mini-chart-header span {
    flex: initial;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.mini-chart-header b {
    color: #a7f3c2;
    font-size: 0.78rem;
}

.mini-chart-bars {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 62px;
}

.mini-chart-bars span {
    flex: 1;
    height: 0;
    min-width: 0;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #7ee7dd 0%, #2ecc71 92%);
    box-shadow: 0 8px 18px rgba(46, 204, 113, 0.18);
    transform-origin: bottom;
}

.app-preview.is-preview-visible .mini-chart-bars span,
.app-preview.reveal.is-visible .mini-chart-bars span {
    animation: chartBarGrow 840ms var(--ease-out-soft) forwards;
}

.app-preview .mini-chart-bars span:nth-child(2) {
    animation-delay: 120ms;
}

.app-preview .mini-chart-bars span:nth-child(3) {
    animation-delay: 220ms;
}

.app-preview .mini-chart-bars span:nth-child(4) {
    animation-delay: 320ms;
}

.app-preview .floating-card {
    display: grid;
    gap: 0.18rem;
    max-width: 210px;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    color: #263d32;
    background: rgba(255, 255, 255, 0.74);
    box-shadow:
        0 18px 48px rgba(16, 33, 26, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    font-weight: 850;
    line-height: 1.25;
    animation: floatCardPremium 7s var(--ease-smooth) infinite;
}

.app-preview .floating-card span {
    color: #496156;
    font-size: 0.78rem;
    font-weight: 850;
}

.app-preview .floating-card strong {
    color: #10211a;
    font-size: 0.98rem;
    font-weight: 950;
}

.app-preview .floating-card-left {
    left: clamp(0.2rem, 3vw, 2rem);
    top: 23%;
}

.app-preview .floating-card-right {
    right: clamp(0.2rem, 3vw, 1.6rem);
    bottom: 20%;
    animation-delay: 1.1s;
}

[data-theme="dark"] .app-preview::before {
    background:
        radial-gradient(circle at 50% 20%, rgba(103, 232, 249, 0.14), transparent 38%),
        radial-gradient(circle at 50% 80%, rgba(74, 222, 128, 0.14), transparent 42%);
}

[data-theme="dark"] .app-preview .phone-mockup {
    background:
        linear-gradient(145deg, rgba(39, 62, 48, 0.92), rgba(15, 31, 23, 0.88)),
        rgba(22, 37, 27, 0.86);
    border-color: rgba(180, 205, 188, 0.20);
    box-shadow:
        0 38px 92px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .app-preview .app-screen {
    background:
        linear-gradient(160deg, rgba(24, 44, 33, 0.98) 0%, rgba(16, 32, 24, 0.98) 56%, rgba(12, 26, 19, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(180, 205, 188, 0.10);
}

[data-theme="dark"] .app-preview .app-header span,
[data-theme="dark"] .app-preview .product-row small,
[data-theme="dark"] .app-preview .floating-card span {
    color: #b4cdbc;
}

[data-theme="dark"] .app-preview .app-header b,
[data-theme="dark"] .app-preview .product-row b,
[data-theme="dark"] .app-preview .floating-card strong {
    color: #f3fbf6;
}

[data-theme="dark"] .app-preview .app-search,
[data-theme="dark"] .app-preview .product-row,
[data-theme="dark"] .app-preview .floating-card {
    background: rgba(11, 21, 16, 0.72);
    border-color: rgba(180, 205, 188, 0.17);
}

[data-theme="dark"] .app-preview .product-icon {
    color: #052e16;
    background: linear-gradient(145deg, rgba(134, 239, 172, 0.92), rgba(103, 232, 249, 0.84));
}

@keyframes phonePreviewIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appRowIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chartBarGrow {
    from {
        height: 0;
    }
    to {
        height: var(--bar-height);
    }
}

@keyframes floatCardPremium {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@media (max-width: 980px) {
    .app-preview {
        width: min(100%, 560px);
        min-height: 590px;
        padding-inline: 0.5rem;
    }

    .app-preview .floating-card-left {
        left: 0;
        top: 16%;
    }

    .app-preview .floating-card-right {
        right: 0;
        bottom: 13%;
    }
}

@media (max-width: 640px) {
    .app-preview {
        min-height: auto;
        display: grid;
        gap: 0.75rem;
        padding: 0.2rem 0 0;
        overflow: hidden;
    }

    .app-preview .phone-mockup {
        order: 1;
        width: min(310px, 88vw);
        margin-inline: auto;
    }

    .app-preview .app-screen {
        min-height: 430px;
        padding: 1.1rem 1rem 1rem;
    }

    .app-preview .floating-card {
        position: relative;
        inset: auto;
        order: 2;
        width: min(310px, 88vw);
        max-width: none;
        margin: 0 auto;
        text-align: left;
        animation: floatCardPremium 7s var(--ease-smooth) infinite;
    }

    .app-preview .floating-card-right {
        animation-delay: 1.1s;
    }

    .app-preview .product-row {
        min-height: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-preview .phone-mockup,
    .app-preview .product-row,
    .app-preview .mini-chart-bars span {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .app-preview .mini-chart-bars span {
        height: var(--bar-height);
    }

    .app-preview .floating-card {
        animation: none !important;
    }
}

[data-theme="dark"] .team-contact {
    color: #d7eadf;
    background: rgba(23, 41, 32, 0.96);
    border-color: rgba(134, 239, 172, 0.34);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .team-contact a {
    color: #86efac;
}

[data-theme="dark"] .team-contact {
    color: #d7eadf;
    background: rgba(23, 41, 32, 0.96);
    border-color: rgba(134, 239, 172, 0.34);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .team-contact a {
    color: #86efac;
}

/* =========================================================
   21. Dark mode contrast pass
   Override finali per rendere leggibili tutti i blocchi principali.
   ========================================================= */
[data-theme="dark"] {
    --color-primary: #4ade80;
    --color-primary-dark: #86efac;
    --color-primary-soft: rgba(74, 222, 128, 0.14);
    --color-accent: #67e8f9;
    --color-ink: #f3fbf6;
    --color-ink-soft: #d7eadf;
    --color-muted: #b4cdbc;
    --color-line: rgba(180, 205, 188, 0.24);
    --color-bg: #0b1510;
    --color-surface: #16251b;
    --color-surface-muted: #102018;
    --color-text: #f3fbf6;
    --color-text-muted: #b4cdbc;
    --color-border: rgba(180, 205, 188, 0.24);
    --color-link: #9af7b8;
    --color-card: #172920;
    --shadow-soft: 0 22px 58px rgba(0, 0, 0, 0.44);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] body {
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(74, 222, 128, 0.13), transparent 30rem),
        radial-gradient(circle at 88% 4%, rgba(103, 232, 249, 0.10), transparent 28rem),
        linear-gradient(180deg, #0b1510 0%, #101d16 48%, #0b1510 100%);
}

[data-theme="dark"] .site-header {
    background: rgba(11, 21, 16, 0.82);
    border-bottom: 1px solid rgba(180, 205, 188, 0.14);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(11, 21, 16, 0.94);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nav-menu {
    background: rgba(22, 37, 27, 0.88);
    border-color: rgba(180, 205, 188, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .nav-menu a:not(.btn) {
    color: var(--color-ink-soft);
}

[data-theme="dark"] .nav-menu a:not(.btn):hover,
[data-theme="dark"] .nav-menu a:not(.btn).is-active {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .theme-toggle {
    color: var(--color-ink);
    background: rgba(243, 251, 246, 0.08);
    border: 1px solid rgba(180, 205, 188, 0.20);
    border-radius: 14px;
}

[data-theme="dark"] .nav-toggle span {
    background: var(--color-ink);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: var(--color-ink);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] small,
[data-theme="dark"] .price-card li,
[data-theme="dark"] .footer-brand p {
    color: var(--color-muted);
}

[data-theme="dark"] .eyebrow {
    color: var(--color-primary-dark);
    background: rgba(74, 222, 128, 0.11);
    border-color: rgba(134, 239, 172, 0.30);
}

[data-theme="dark"] .section {
    background: transparent;
}

[data-theme="dark"] .section-muted {
    background: linear-gradient(180deg, rgba(22, 37, 27, 0.72), rgba(13, 28, 19, 0.72));
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 78% 16%, rgba(103, 232, 249, 0.11), transparent 27rem),
        linear-gradient(135deg, rgba(11, 21, 16, 0.45), rgba(22, 37, 27, 0.72));
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .timeline-step,
[data-theme="dark"] .problem-list article,
[data-theme="dark"] .solution-panel,
[data-theme="dark"] .privacy-preview,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .brand-closing-panel,
[data-theme="dark"] .final-cta .container {
    color: var(--color-ink);
    background: rgba(23, 41, 32, 0.92);
    border-color: rgba(180, 205, 188, 0.18);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .content-card:hover,
[data-theme="dark"] .team-card:hover {
    border-color: rgba(134, 239, 172, 0.38);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .stat-card strong,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .content-card h2,
[data-theme="dark"] .team-card h3,
[data-theme="dark"] .price-card h3,
[data-theme="dark"] .faq-item button,
[data-theme="dark"] .app-header b,
[data-theme="dark"] label {
    color: var(--color-ink);
}

[data-theme="dark"] .stat-card span,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .content-card p,
[data-theme="dark"] .team-card p:not(.role),
[data-theme="dark"] .timeline-step p,
[data-theme="dark"] .faq-panel p {
    color: var(--color-muted);
}

[data-theme="dark"] .feature-icon,
[data-theme="dark"] .product-icon,
[data-theme="dark"] .timeline-step span,
[data-theme="dark"] .solution-tags span,
[data-theme="dark"] .team-avatar {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #67e8f9);
}

[data-theme="dark"] .price {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .premium-section {
    background:
        radial-gradient(circle at 20% 8%, rgba(74, 222, 128, 0.18), transparent 28rem),
        linear-gradient(135deg, #07110c, #102018 58%, #050a07);
}

[data-theme="dark"] .phone-mockup,
[data-theme="dark"] .app-screen {
    background: linear-gradient(180deg, #1b3024, #0f1f17);
    border-color: rgba(180, 205, 188, 0.18);
}

[data-theme="dark"] .phone-top {
    background: rgba(243, 251, 246, 0.24);
}

[data-theme="dark"] .product-row,
[data-theme="dark"] .app-search,
[data-theme="dark"] .floating-card,
[data-theme="dark"] .map-placeholder {
    color: var(--color-ink);
    background: rgba(11, 21, 16, 0.76);
    border: 1px solid rgba(180, 205, 188, 0.16);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    color: var(--color-ink);
    background: rgba(11, 21, 16, 0.84);
    border-color: rgba(180, 205, 188, 0.26);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: rgba(134, 239, 172, 0.60);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

[data-theme="dark"] .btn-primary {
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #4ade80);
}

[data-theme="dark"] .btn-secondary {
    color: var(--color-primary-dark);
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(134, 239, 172, 0.34);
}

[data-theme="dark"] .btn-secondary:hover {
    color: #052e16;
    background: #86efac;
}

[data-theme="dark"] .site-footer,
[data-theme="dark"] .brand-closing {
    background: #070f0b;
}

[data-theme="dark"] .site-footer a,
[data-theme="dark"] .content-card a:not(.btn),
[data-theme="dark"] .team-contact a {
    color: var(--color-link);
}

[data-theme="dark"] .footer-bottom {
    border-color: rgba(180, 205, 188, 0.14);
}
