/* ==========================================================================
   1. Design Tokens
   La Baia del Silenzio di mattina presto: fondo di foschia fredda, testo
   blu profondo, ocra delle facciate di Sestri in piccole dosi.
   ========================================================================== */

:root {
    --bg: #F4F7F8;
    --card: #FFFFFF;
    --ink: #0C2233;
    --ink-soft: #23405A;
    --slate: #5C7285;
    --muted: #4E6377;
    --line: #DBE2E8;
    --line-strong: #C5D0D8;
    --accent: #D9A036;
    --accent-ink: #96690D;
    --dark: #0C2233;

    /* Raggi: una famiglia, tre taglie. Controlli piccoli 12px, card 20px, oggetti-hero 28px. */
    --r-sm: 0.75rem;
    --r: 1.25rem;
    --r-lg: 1.75rem;
    --radius: var(--r);

    /* Ombre fredde, tinte d'inchiostro, larghe e leggere. --edge e' un velo di keyline
       che impedisce al bianco di sciogliersi nella foschia senza disegnare un bordo. */
    --edge: 0 0 0 1px rgba(12, 34, 51, 0.05);
    --shadow-rest: var(--edge), 0 1px 2px rgba(12, 34, 51, 0.04), 0 16px 40px -20px rgba(12, 34, 51, 0.16);
    --shadow-hover: var(--edge), 0 2px 4px rgba(12, 34, 51, 0.05), 0 28px 56px -24px rgba(12, 34, 51, 0.24);
    --shadow-float: var(--edge), 0 2px 6px rgba(12, 34, 51, 0.06), 0 44px 88px -36px rgba(12, 34, 51, 0.38);

    /* Movimento: breve, decelerato, mai elastico. */
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.22s;
    --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
    --font-body: 'Instrument Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    padding: 0;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

[hidden] { display: none !important; }

section[id] { scroll-margin-top: 5rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

.section {
    position: relative;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .section { padding-top: 8.5rem; padding-bottom: 8.5rem; }
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 700;
    text-wrap: balance;
}

h1 { line-height: 1; letter-spacing: -0.04em; }
h2 { line-height: 1.04; letter-spacing: -0.035em; }

.section-title {
    margin-bottom: 2.5rem;
    max-width: 26ch;
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
    color: var(--ink);
}

@media (min-width: 768px) {
    .section-title { margin-bottom: 3.5rem; }
}

/* Etichetta di sezione: mono in tondo, tick ocra. Niente maiuscolo spaziato. */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--muted);
}

.section-label::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 2px;
    background-color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

.btn--primary {
    background-color: var(--ink);
    color: var(--card);
}

.btn--primary:hover {
    background-color: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -12px rgba(12, 34, 51, 0.4);
}

/* Secondario: superficie appena sollevata dal fondo, nessun contorno */
.btn--ghost {
    background-color: rgba(12, 34, 51, 0.07);
    color: var(--ink);
}

.btn--ghost:hover {
    background-color: rgba(12, 34, 51, 0.12);
}

/* ==========================================================================
   6. Scroll progress
   ========================================================================== */

/* Cresce con scaleX e non con width: resta sul compositor e non forza
   un layout a ogni evento di scroll, che sui telefoni di fascia media si sente. */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: var(--accent);
    z-index: 100;
    transition: transform 0.1s linear;
}

/* ==========================================================================
   7. Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header--scrolled {
    background-color: rgba(244, 247, 248, 0.78);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 1px 0 rgba(12, 34, 51, 0.06), 0 12px 32px -24px rgba(12, 34, 51, 0.18);
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .header__nav { padding-left: 2rem; padding-right: 2rem; }
}

.header__logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.header__desktop-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .header__desktop-nav { display: flex; }
}

.header__nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--dur) var(--ease);
}

.header__nav-link:hover {
    color: var(--ink);
}

.header__cta-link {
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5rem 1.15rem;
    background-color: var(--ink);
    color: var(--card);
    transition: background-color var(--dur) var(--ease);
}

.header__cta-link:hover {
    background-color: var(--ink-soft);
}

.header__lang-toggle {
    position: relative;
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    background-color: rgba(12, 34, 51, 0.06);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.header__lang-toggle:hover {
    background-color: rgba(12, 34, 51, 0.11);
    color: var(--ink);
}

/* Area di tocco estesa (44px) per i controlli piccoli dell'header */
.header__lang-toggle::after,
.header__hamburger::after {
    content: "";
    position: absolute;
    inset: -0.65rem -0.3rem;
}

.header__hamburger::after { inset: -0.75rem; }

.header__mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header__mobile-controls { display: none; }
}

.header__hamburger {
    position: relative;
    display: inline-flex;
    color: var(--ink);
}

.header__hamburger svg {
    width: 1.4rem;
    height: 1.4rem;
}

/* Mobile overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(244, 247, 248, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__link {
    padding: 0.9rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 50ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 100ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 150ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 200ms; }

/* ==========================================================================
   8. Hero
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 9.5rem;
        padding-bottom: 6.5rem;
    }
}

.hero__grid {
    display: grid;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

/* Allineata in alto: cambiando canale la demo cresce verso il basso e il titolo non si sposta */
@media (min-width: 1024px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4rem; align-items: start; }
}

.hero__headline {
    font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
    font-weight: 750;
    color: var(--ink);
}

.hero__headline span { display: block; }

/* La firma non ha lo stesso peso dell'affermazione: senza questo, su mobile
   sono cinque righe tutte uguali e si legge come un muro. */
.hero__headline-accent {
    margin-top: 0.5rem;
    font-size: 0.56em;
    font-weight: 650;
    color: var(--ink-soft);
}

.hero__headline-accent em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.14em;
    text-decoration-skip-ink: none;
}

.hero__subtitle {
    max-width: 32rem;
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

@media (min-width: 768px) {
    .hero__subtitle { margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.55; }
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.hero__ctanote {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 30rem;
}

/* Entrata: l'unico momento orchestrato della pagina */
.hero__entrance {
    opacity: 0;
    animation: hero-rise 0.6s var(--ease-out) forwards;
}

.hero__entrance--1 { animation-delay: 0.05s; }
.hero__entrance--2 { animation-delay: 0.13s; }
.hero__entrance--3 { animation-delay: 0.21s; }
.hero__entrance--4 { animation-delay: 0.3s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Demo dell'assistente in hero */
.hero__demo {
    width: 100%;
    max-width: 24rem;
    justify-self: center;
}

@media (min-width: 1024px) {
    .hero__demo { justify-self: end; }
}

/* ==========================================================================
   9. "Come ti vede l'AI": banda sotto la hero, l'unico blocco scuro della pagina
   ========================================================================== */

.audit-band {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--card);
}

@media (min-width: 768px) {
    .audit-band { padding-top: 7rem; padding-bottom: 6rem; }
}

.audit-band__inner {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .audit-band__inner { grid-template-columns: minmax(0, 1fr) 30rem; gap: 5rem; }
}

.audit-band__title {
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
}

.audit-band__text {
    max-width: 32rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--muted);
    text-wrap: pretty;
}

.audit-band__widget {
    width: 100%;
    max-width: 30rem;
    justify-self: center;
}

@media (min-width: 1024px) {
    .audit-band__widget { justify-self: end; }
}

.audit {
    background-color: var(--dark);
    color: #E8EEF2;
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: 0 2px 6px rgba(12, 34, 51, 0.12), 0 44px 88px -36px rgba(12, 34, 51, 0.55);
}

.audit__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.audit__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--accent);
    animation: audit-pulse 2.4s ease-in-out infinite;
}

@keyframes audit-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.audit__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.audit__intro {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #A9BAC7;
    margin-bottom: 1rem;
}

.audit__form {
    display: flex;
    gap: 0.5rem;
}

.audit__form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid #2C4B64;
    background-color: #142E44;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-mono);
    /* 16px pieni: sotto, iOS zooma la pagina al focus. Si stringe da tablet in su. */
    font-size: 1rem;
    color: #FFFFFF;
    outline: none;
    transition: border-color var(--dur) var(--ease);
}

.audit__form input::placeholder {
    color: #6C8296;
}

@media (min-width: 768px) {
    .audit__form input { font-size: 0.82rem; }
}

/* La riga che dichiara le risposte scritte da noi */
.audit__ours {
    margin-bottom: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--accent);
}

.audit__form input:focus {
    border-color: var(--accent);
}

.audit__form button {
    min-height: 44px;
    border-radius: var(--r-sm);
    background-color: var(--accent);
    color: var(--ink);
    padding: 0.7rem 1.1rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background-color var(--dur) var(--ease);
}

.audit__form button:hover { background-color: #E5B152; }
.audit__form button:disabled { opacity: 0.55; cursor: wait; }

.audit__demo {
    margin-top: 1.1rem;
    border: 1px solid #21415A;
    border-radius: var(--r-sm);
    padding: 0.85rem 0.95rem;
    background-color: #0F2A3F;
}

.audit__error {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #F5B7A6;
}

.audit__error a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.audit__status {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #A9BAC7;
}

.audit__bridge {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #C8D4DD;
}

.audit__panels {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.audit__panel {
    border: 1px solid #21415A;
    border-radius: var(--r-sm);
    padding: 0.85rem 0.95rem;
    background-color: #0F2A3F;
}

.audit__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin-bottom: 0.45rem;
}

.audit__out {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.65;
    color: #DEE8EE;
    min-height: 1.3em;
    white-space: pre-wrap;
}

.audit__out.is-streaming::after {
    content: "▋";
    color: var(--accent);
    animation: audit-blink 0.9s steps(1) infinite;
}

@keyframes audit-blink {
    50% { opacity: 0; }
}

.audit__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    border-radius: 9999px;
    background-color: var(--accent);
    color: var(--ink);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color var(--dur) var(--ease);
}

.audit__cta:hover { background-color: #E8B455; }

.audit__disclaimer {
    margin-top: 0.8rem;
    font-size: 0.74rem;
    color: #8FA3B3;
}

/* ==========================================================================
   10. Stats
   ========================================================================== */

/* I numeri continuano la banda bianca dell'audit: li separa un filetto largo quanto il contenuto */
.stats {
    padding: 0 0 4.5rem;
    background-color: var(--card);
}

@media (min-width: 768px) {
    .stats { padding-bottom: 7rem; }
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); padding-top: 4.5rem; }
}

.stat__value {
    font-family: var(--font-mono);
    font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.stat__label {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 14rem;
}

/* ==========================================================================
   11. Offers (bento)
   ========================================================================== */

.offers__sub {
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    max-width: 46rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--accent-ink);
}

@media (min-width: 768px) {
    .offers__sub { margin-top: -2rem; margin-bottom: 3.5rem; }
}

.offers__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .offers__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .offers__grid { grid-template-columns: repeat(6, 1fr); }
    .offer-card { grid-column: span 3; }
    .offer-card--wide { grid-column: span 6; }
}

@media (min-width: 700px) and (max-width: 1023px) {
    .offer-card--wide { grid-column: span 2; }
}

.offer-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--r);
    background-color: var(--card);
    box-shadow: var(--shadow-rest);
    padding: 1.5rem 1.375rem 1.625rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

@media (min-width: 700px) {
    .offer-card { padding: 2rem; }
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.offer-card::before {
    content: attr(data-n) " /05";
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent-ink);
    margin-bottom: 1.25rem;
}

/* Card 01, larga: titolo a scala maggiore a sinistra, spiegazione a destra,
   prezzo su tutta la larghezza cosi' le due colonne chiudono sulla stessa riga. */
.offer-card__cols {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .offer-card__cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
    /* La spiegazione parte sulla riga del titolo, non su quella dei canali: riga canali (1.3rem) + suo margine (1.25rem) */
    .offer-card__body { padding-top: 2.55rem; }
}

.offer-card__lead,
.offer-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.offer-card--wide .offer-card__title {
    margin-bottom: 0.9rem;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.offer-card--wide .offer-card__problem {
    margin-bottom: 0;
    font-size: 1.0625rem;
    max-width: 30rem;
}

.offer-card--wide .offer-card__what {
    font-size: 1rem;
    max-width: 34rem;
}


/* I due canali, detti con le icone: informazione, non decorazione */
.offer-card__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.offer-card__channel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.offer-card__channel svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent-ink);
}

.offer-card__icon {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 1.1rem;
    border-radius: var(--r-sm);
    background-color: var(--bg);
    padding: 0.6rem;
}

.offer-card__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--ink);
}

.offer-card__title {
    margin-bottom: 0.6rem;
    font-size: 1.375rem;
}

.offer-card__problem {
    margin-bottom: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink-soft);
}

.offer-card__what {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--muted);
    flex: 1;
}

/* ==========================================================================
   12. Demo: chat WhatsApp e thread email
   ========================================================================== */

.demo {
    width: 100%;
}

.chat-mock {
    border-radius: var(--r-lg);
    background-color: #EFEAE2;
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.chat-mock__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    background-color: #F0F2F5;
    box-shadow: 0 1px 0 rgba(12, 34, 51, 0.06);
    position: relative;
}

.chat-mock__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background-color: var(--ink);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
}

.chat-mock__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.chat-mock__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.chat-mock__status {
    font-size: 0.72rem;
    color: var(--muted);
}

.chat-mock__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.1rem 1rem 1.25rem;
}

.chat-bubble {
    max-width: 86%;
    border-radius: 1rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--ink);
    box-shadow: 0 1px 1px rgba(12, 34, 51, 0.06);
}

.chat-bubble--in {
    align-self: flex-start;
    background-color: #FFFFFF;
    border-bottom-left-radius: 0.3rem;
}

.chat-bubble--out {
    align-self: flex-end;
    background-color: #D9FDD3;
    border-bottom-right-radius: 0.3rem;
}

/* Steps hidden until revealed */
.chat-step {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.chat-step.is-shown {
    opacity: 1;
    transform: translateY(0);
}

/* Typing indicator */
.chat-bubble__typing { display: none; gap: 0.25rem; align-items: center; height: 1.3em; }
.chat-bubble__typing i {
    width: 0.33rem;
    height: 0.33rem;
    border-radius: 50%;
    background-color: var(--slate);
    animation: typing-dot 1s ease-in-out infinite;
}
.chat-bubble__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-dot {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.chat-bubble.is-typing .chat-bubble__typing { display: inline-flex; }
.chat-bubble.is-typing .chat-bubble__text { display: none; }

/* Voice message */
.chat-bubble--voice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 58%;
}

.chat-voice__play {
    width: 0;
    height: 0;
    border-top: 0.38rem solid transparent;
    border-bottom: 0.38rem solid transparent;
    border-left: 0.58rem solid var(--slate);
    flex-shrink: 0;
}

.chat-voice__wave {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    height: 1.15rem;
}

.chat-voice__wave i {
    flex: 1;
    border-radius: 2px;
    background-color: var(--slate);
}

.chat-voice__wave i:nth-child(odd)  { height: 40%; }
.chat-voice__wave i:nth-child(even) { height: 85%; }
.chat-voice__wave i:nth-child(3n)   { height: 60%; }

.chat-voice__time {
    font-size: 0.68rem;
    color: var(--muted);
}

/* Confirmation tag */
.chat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-end;
    border-radius: 9999px;
    background-color: #FFFFFF;
    box-shadow: var(--edge), 0 1px 2px rgba(12, 34, 51, 0.08);
    padding: 0.35rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
}

.chat-tag svg { width: 0.85rem; height: 0.85rem; color: var(--accent-ink); }

/* Interruttore di canale: vetro sopra la demo, la linguetta attiva e' una superficie sollevata */
.demo-switch {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.875rem;
    padding: 0.25rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: var(--edge), 0 1px 2px rgba(12, 34, 51, 0.03);
}

.demo-switch__tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    border-radius: 9999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.demo-switch__tab svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.demo-switch__tab:hover { color: var(--ink); }

.demo-switch__tab:focus-visible { outline-offset: -2px; }

.demo-switch__tab.is-active {
    background-color: var(--card);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(12, 34, 51, 0.12), 0 6px 14px -6px rgba(12, 34, 51, 0.16);
}

.demo-switch__tab.is-active svg { color: var(--accent-ink); }

/* Il pannello che entra scivola appena, come un messaggio */
.demo-panel {
    animation: demo-in 0.3s var(--ease-out);
}

@keyframes demo-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Email mockup (same card, second channel) */
.mail-mock {
    border-radius: var(--r-lg);
    background-color: var(--card);
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.mail-mock__header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1.15rem;
    background-color: #F0F2F5;
    box-shadow: 0 1px 0 rgba(12, 34, 51, 0.06);
    position: relative;
}

.mail-mock__box {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.mail-mock__subject {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.mail-mock__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.1rem 1rem 1.25rem;
}

@media (min-width: 900px) {
    .chat-mock__body,
    .mail-mock__body { min-height: 17rem; }
}

.mail-msg {
    border-radius: var(--r-sm);
    background-color: var(--bg);
    padding: 0.7rem 0.85rem;
}

.mail-msg--out {
    margin-left: 0.9rem;
    background-color: #FDF7EC;
    box-shadow: 0 0 0 1px rgba(150, 105, 13, 0.22);
}

.mail-msg__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.mail-msg__who {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
}

.mail-msg__time {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
}

.mail-msg__text {
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--ink);
}

/* Firma automatica: la mail dichiara sempre di essere una risposta automatica */
.mail-msg__sig {
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(150, 105, 13, 0.22);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    line-height: 1.45;
    color: var(--muted);
}

.mail-msg .chat-bubble__typing { display: none; }
.mail-msg.is-typing .chat-bubble__typing { display: inline-flex; }
.mail-msg.is-typing .mail-msg__text,
.mail-msg.is-typing .mail-msg__sig { display: none; }

/* ==========================================================================
   13. Sectors
   ========================================================================== */

.sectors { position: relative; }

.sectors__bg {
    position: absolute;
    inset: 0;
    background-color: var(--card);
    pointer-events: none;
}

.sectors__inner { position: relative; }

.sectors__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .sectors__grid { gap: 3.5rem 2.5rem; }
}

@media (min-width: 640px) {
    .sectors__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .sectors__grid { grid-template-columns: repeat(3, 1fr); }
}

.sector {
    border-top: 2px solid var(--ink);
    padding-top: 1.5rem;
}

.sector__case {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--accent-ink);
}

.sector__title {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.sector__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--muted);
}

/* ==========================================================================
   14. Proof
   ========================================================================== */

.proof__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .proof__grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
}

.proof__case {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink-soft);
    text-wrap: pretty;
}

@media (min-width: 768px) {
    .proof__case { padding-left: 1.75rem; font-size: 1.25rem; }
}

.proof__cite {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--slate);
}

.proof__side {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-self: center;
}

.proof__products {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--muted);
}

.proof__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proof__badge {
    border-radius: 9999px;
    border: 1px solid var(--line-strong);
    background-color: var(--card);
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.proof__badge--meta {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.proof__meta {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Mid-page CTA band: su mobile e' gia' coperta dal CTA sticky, quindi non si mostra. */
.cta-band {
    display: none;
    background-color: var(--card);
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .cta-band { display: block; padding: 4.5rem 0; }
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cta-band__text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Products shelf */
.proof__kicker {
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
}

.proof-shelf {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    /* Con snap mandatory la prima card si aggancia al bordo dello snapport e
       si mangia il padding: senza questo parte attaccata al bordo schermo,
       fuori squadro col titolo di sezione. */
    scroll-padding-left: 1.5rem;
    scroll-padding-right: 1.5rem;
}

.proof-shelf > li {
    flex: 0 0 78vw;
    max-width: 20rem;
    scroll-snap-align: start;
    display: flex;
}

@media (min-width: 768px) {
    .proof-shelf {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    .proof-shelf > li { max-width: none; }
}

@media (min-width: 1024px) {
    .proof-shelf { grid-template-columns: repeat(4, 1fr); }
}

.proof-shelf__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-height: 9rem;
    overflow: hidden;
    background-color: var(--card);
    box-shadow: var(--shadow-rest);
    border-radius: var(--r);
    padding: 1.5rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

a.proof-shelf__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

a.proof-shelf__card:hover .proof-shelf__foot { color: var(--ink); }

/* Lo scatto del prodotto: a filo della card, angoli alti raccordati col suo raggio.
   Il network editoriale non ha un sito da fotografare, quindi al suo posto va il numero. */
.proof-shelf__shot {
    display: block;
    margin: -1.5rem -1.5rem 0.9rem;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: var(--r) var(--r) 0 0;
    background-color: var(--line);
}

.proof-shelf__shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.proof-shelf__shot--tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background-color: var(--dark);
}

.proof-shelf__tile-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--accent);
}

.proof-shelf__tile-lab {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

a.proof-shelf__card:hover .proof-shelf__shot img { transform: scale(1.03); }

.proof-shelf__shot img { transition: transform var(--dur) var(--ease); }

@media (prefers-reduced-motion: reduce) {
    .proof-shelf__shot img { transition: none; }
    a.proof-shelf__card:hover .proof-shelf__shot img { transform: none; }
}

.proof-shelf__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.proof-shelf__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.proof-shelf__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.proof-shelf__status {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--accent-ink);
    border: 1px solid var(--accent);
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.proof-shelf__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.proof-shelf__foot {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    transition: color var(--dur) var(--ease);
}

/* ==========================================================================
   15. About
   ========================================================================== */

.about {
    background-color: var(--card);
}

.about__inner { max-width: 52rem; }

.about__lines {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.about__lines li {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 62ch;
}

.about__lines li:last-child { border-bottom: none; }

.about__coords {
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--slate);
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */

.faq__inner { max-width: 52rem; }

/* Un elenco a filetti, non nove scatole: il bordo qui e' informazione (una riga per domanda) */
.faq__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.4;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: color var(--dur) var(--ease);
}

@media (min-width: 768px) {
    .faq-item summary { padding: 1.5rem 0; font-size: 1.125rem; }
}

.faq-item summary:hover { color: var(--ink-soft); }

.faq-item summary:focus-visible {
    outline-offset: 6px;
    border-radius: 0.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent-ink);
    transition: transform var(--dur) var(--ease);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 2.5rem 1.6rem 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}

/* ==========================================================================
   17. Contact
   ========================================================================== */

.contact {
    background-color: var(--card);
}

.contact__bg { display: none; }

.contact__inner { position: relative; }

.contact__subtitle {
    margin-bottom: 3rem;
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--muted);
    text-wrap: pretty;
}

.contact__grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact__grid { grid-template-columns: 1fr 0.62fr; gap: 6rem; }
}

.contact__aside {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

/* Sotto il desktop l'aside sale sopra il form: prima il motivo, poi i campi */
@media (max-width: 1023px) {
    .contact__aside {
        order: -1;
        border-left: none;
        border-radius: var(--r);
        background-color: var(--bg);
        padding: 1.25rem 1.375rem;
    }

    .contact__aside-address { display: none; }
}

.contact__aside-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.contact__aside-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--muted);
}

.contact__aside-list li::before {
    content: "\2192\0020";
    font-family: var(--font-mono);
    color: var(--accent-ink);
}

.contact__aside-address {
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--slate);
}

/* Honeypot: fuori dallo schermo, non display:none, che i bot riconoscono. */
.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--muted);
    cursor: pointer;
    max-width: 34rem;
}

.contact-form__consent input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    accent-color: var(--ink);
    flex-shrink: 0;
}

.contact-form__consent a {
    display: inline-block;
    padding: 0.7rem 0.15rem;
    margin: -0.7rem -0.15rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form__row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background-color: var(--card);
    padding: 0.8rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--ink);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--slate);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(12, 34, 51, 0.08);
}

.contact-form textarea { resize: none; }

/* La checkbox del consenso non e' un campo di testo: niente larghezza piena, niente padding.
   Specificita' alzata apposta per vincere sulle regole generiche degli input qui sopra. */
.contact-form .contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 0;
}

.contact-form .contact-form__consent input {
    width: 1.2rem;
    height: 1.2rem;
    min-height: 0;
    padding: 0;
    margin-top: 0.1rem;
    border-radius: 0.3rem;
    flex-shrink: 0;
}

/* Telefono: 16px evita lo zoom automatico di iOS, 48px di altezza per il dito */
@media (max-width: 767px) {
    .contact-form input:not([type="checkbox"]):not([type="hidden"]),
    .contact-form textarea {
        font-size: 1rem;
        min-height: 3rem;
    }
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    border-radius: 9999px;
    background-color: var(--ink);
    padding: 0.8rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--card);
    transition: background-color var(--dur) var(--ease);
    align-self: stretch;
}

@media (min-width: 640px) {
    .contact-form__submit { align-self: flex-start; }
}

.contact-form__submit:hover {
    background-color: var(--ink-soft);
}

.contact-form__submit svg {
    width: 1rem;
    height: 1rem;
    transition: transform var(--dur) var(--ease);
}

.contact-form__submit:hover svg { transform: translateX(4px); }

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form__feedback {
    padding: 0.75rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form__feedback--success {
    background-color: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(29, 168, 81, 0.4);
    color: #14683A;
}

.contact-form__feedback--error {
    background-color: rgba(200, 60, 40, 0.08);
    border: 1px solid rgba(200, 60, 40, 0.35);
    color: #9E2F1D;
}

.contact__note {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 32rem;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

.footer {
    background-color: var(--card);
    padding: 0 0 5rem;
}

@media (min-width: 768px) {
    .footer { padding-bottom: 2.5rem; }
}

.footer__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Filetto largo quanto il contenuto, non quanto il contenitore col suo padding */
.footer__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background-color: var(--line);
}

@media (min-width: 1024px) {
    .footer__inner::before { left: 2rem; right: 2rem; }
}

.footer__legal { opacity: 0.8; }

.footer__legal a {
    display: inline-block;
    padding: 0.9rem 0.3rem;
    margin: -0.9rem -0.3rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.footer__marks {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--slate);
    text-align: center;
}

@media (min-width: 640px) {
    .footer__marks { text-align: left; }
}

@media (min-width: 640px) {
    .footer__inner { flex-direction: row; text-align: left; }
}

/* Legal / privacy page */
.legal__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.legal__body {
    max-width: 46rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.legal__body h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.legal__updated {
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: 2rem;
}

.legal__body h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.6rem;
}

.legal__body h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.4rem;
}

.legal__body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
}

.legal__back { margin-top: 3rem; }

.legal__back a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ==========================================================================
   19. Mobile sticky CTA
   ========================================================================== */

/* Vetro scuro sopra il contenuto che scorre */
.mobile-cta {
    position: fixed;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    border-radius: 9999px;
    background-color: rgba(12, 34, 51, 0.84);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    color: var(--card);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(12, 34, 51, 0.12), 0 20px 44px -16px rgba(12, 34, 51, 0.5);
    white-space: nowrap;
}

.mobile-cta svg { width: 1.1rem; height: 1.1rem; }

.mobile-cta.is-hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobile-cta { display: none; }
}

/* ==========================================================================
   20. Scroll reveal
   ========================================================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal--sm {
    transform: translateY(10px);
}

/* Sotto i 640px le griglie sono a colonna singola: ogni elemento entra in
   viewport da solo, e il ritardo scaglionato pensato per le card affiancate
   lo lascerebbe soltanto vuoto piu' a lungo. */
@media (max-width: 639.98px) {
    .scroll-reveal { transition-delay: 0ms; }
}

/* ==========================================================================
   21. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .scroll-reveal,
    .chat-step,
    .hero__entrance,
    .demo-panel {
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-delay: 0s;
        opacity: 1;
        transform: none;
    }

    .chat-bubble__typing i,
    .audit__dot,
    .audit__out.is-streaming::after {
        animation: none;
    }

    .btn, .offer-card, .proof-shelf__card, .mobile-cta,
    .faq-item summary::after, .contact-form__submit svg {
        transition: none;
    }

    .btn--primary:hover, .offer-card:hover, a.proof-shelf__card:hover { transform: none; }
}
