/* ============================================================================
   Sito pubblico Clomsy (Home, Prodotto, Applicazioni, Prezzi)
   ----------------------------------------------------------------------------
   Un solo foglio di stile, senza framework. Riprende il linguaggio di
   www.jwsrl.com (site.css): palette petrolio/antracite, Barlow per i titoli,
   Inter per il testo, bottoni a pillola, card con bordo sottile e ombra morbida.
   L'azzurro del logo Clomsy e' usato solo come accento (icone, eyebrow, chip).
   ============================================================================ */

@font-face { font-family: "Inter"; src: url("/fonts/inter-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-800.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-800.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-italic-400.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --c-petrol: #1f4e5f;
    --c-petrol-dark: #173b48;
    --c-petrol-soft: #eaf0f2;
    --c-anthracite: #1f2933;
    --c-gray: #6b7280;
    --c-gray-dark: #52606b;
    --c-silver: #c7ccd1;
    --c-soft: #f5f6f7;
    --c-white: #ffffff;
    --c-line: #e5e7eb;
    --c-accent: #005eb8;        /* azzurro del logo Clomsy */
    --c-accent-soft: #e8f1fa;
    --c-navy: #111f45;          /* blu scuro della scritta CLOMSY nel logo */
    --shadow: 0 18px 48px rgba(31, 41, 51, 0.08);
    --shadow-strong: 0 24px 70px rgba(31, 41, 51, 0.16);
    --radius-lg: 1.5rem;
    --radius-md: 1.25rem;
    --radius-sm: .85rem;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-head: "Barlow", "Segoe UI", Arial, sans-serif;
    --header-h: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    color: var(--c-anthracite);
    background: var(--c-white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-petrol); text-decoration: none; }
a:hover { color: var(--c-petrol-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-anthracite); margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 1.2rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(199, 204, 209, .6);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.main-nav a { color: var(--c-anthracite); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--c-petrol); }
.main-nav a.active { font-weight: 700; }
.nav-sep { width: 1px; height: 26px; background: var(--c-line); }
.lang-select {
    height: 38px; padding: 0 2rem 0 .8rem;
    border: 1px solid var(--c-silver); border-radius: 999px;
    background: var(--c-white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231f2933' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") no-repeat right .7rem center / 12px;
    color: var(--c-anthracite); font: inherit; font-size: .9rem; font-weight: 500;
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.menu-toggle { display: none; border: 0; background: transparent; color: var(--c-anthracite); padding: .4rem; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------------------
   Bottoni
   --------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 999px; padding: .78rem 1.25rem;
    font-weight: 700; font-size: .95rem; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.btn.primary, .main-nav a.btn.primary { color: var(--c-white); background: var(--c-petrol); }
.btn.primary:hover, .main-nav a.btn.primary:hover { color: var(--c-white); background: var(--c-petrol-dark); }
.btn.secondary, .main-nav a.btn.secondary { border-color: var(--c-silver); color: var(--c-anthracite); background: var(--c-white); }
.btn.secondary:hover, .main-nav a.btn.secondary:hover { border-color: var(--c-petrol); color: var(--c-petrol-dark); background: #f8fbfc; }
.btn.ghost { color: var(--c-petrol-dark); background: transparent; border-color: rgba(31, 78, 95, .22); }
.btn.ghost:hover { border-color: rgba(31, 78, 95, .4); background: #f8fbfc; }
.btn.small { padding: .55rem .95rem; font-size: .88rem; }

/* ---------------------------------------------------------------------------
   Tipografia di sezione
   --------------------------------------------------------------------------- */
.eyebrow {
    display: inline-block; color: var(--c-accent);
    text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800;
}
.section { padding: 4.75rem 0; }
.section.muted { background: var(--c-soft); }
.section-title { max-width: 52rem; margin-bottom: 2.25rem; }
.section-title h2 { margin: .7rem 0 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; }
.section-title p { margin: 1rem 0 0; color: var(--c-gray); font-size: 1.08rem; max-width: 44rem; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.center p { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
/* Foto a tutta altezza sulla destra, sfumata verso sinistra sotto il testo (come la home di jwsrl.com).
   La foto e la sfumatura sono ancorate al centro della pagina (dove sta la colonna del testo), non al
   bordo della finestra: finche' c'e' spazio la foto tocca il bordo destro come prima; sugli schermi molto
   larghi (oltre 2 x (--hero-photo-w - 240px) = 1880px) si ferma accanto alla colonna del testo e sfuma
   anche a destra, cosi' testo e immagine restano un blocco unico centrato. */
.hero {
    --hero-photo-w: 1180px;     /* foto 16:9 alla altezza della hero (min-height 640px) */
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 640px; display: flex; align-items: center;
    padding: 4.5rem 0; background: #eceef1;
}
.hero::before {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: -2;
    left: min(calc(50% - 240px), calc(100% - var(--hero-photo-w))); width: var(--hero-photo-w);
    background: url("/site/img/home-hero.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, #eceef1 0%, #eceef1 calc(50% - 192px), rgba(236, 238, 241, .96) calc(50% - 48px), rgba(236, 238, 241, .55) calc(50% + 144px), rgba(236, 238, 241, 0) calc(50% + 384px));
}
@media (min-width: 1881px) {
    .hero::before {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 85%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 85%, transparent 100%);
    }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); align-items: center; }
.hero-logo { display: block; width: min(420px, 78%); height: auto; margin-bottom: 1.6rem; }
.hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.35rem, 4.5vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero h1 span { color: var(--c-petrol); }
.hero p.lead { max-width: 40rem; color: var(--c-gray-dark); font-size: 1.15rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* Fascia "Non solo archivio" in testa alla sezione Moduli */
.pitch {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center;
    margin-bottom: 2rem; padding: 1.6rem 1.8rem;
    border: 1px solid rgba(31, 78, 95, .16); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f3f7f9 100%); box-shadow: var(--shadow);
}
.pitch strong { display: block; margin: .5rem 0 .6rem; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; color: var(--c-petrol-dark); }
.pitch p { color: var(--c-gray); font-size: 1rem; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin-top: 0; }

/* Pagine interne: hero compatto */
.page-hero { padding: 4.5rem 0 3rem; background: var(--c-soft); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { margin: .9rem 0 1rem; font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.page-hero p { max-width: 44rem; color: var(--c-gray-dark); font-size: 1.12rem; line-height: 1.7; }
.page-hero .hero-actions { margin-top: 1.5rem; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.anchor-nav a {
    border: 1px solid rgba(31, 78, 95, .18); border-radius: 999px; padding: .45rem .85rem;
    background: rgba(255, 255, 255, .8); color: var(--c-petrol-dark); font-size: .88rem; font-weight: 700;
}
.anchor-nav a:hover { background: var(--c-white); border-color: rgba(31, 78, 95, .4); }

/* ---------------------------------------------------------------------------
   Striscia "fiducia" sotto l'hero
   --------------------------------------------------------------------------- */
.trust-strip { padding: 1.2rem 0; border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-grid div { display: grid; gap: .15rem; }
.trust-grid strong { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-anthracite); }
.trust-grid span { color: var(--c-gray); font-size: .95rem; }

/* ---------------------------------------------------------------------------
   Card
   --------------------------------------------------------------------------- */
.cards { display: grid; gap: 1.35rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
    border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.6rem;
    background: var(--c-white); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin: .9rem 0 .6rem; color: var(--c-petrol-dark); font-size: 1.3rem; line-height: 1.2; }
.card p { color: var(--c-gray); }
.card .card-link { margin-top: auto; padding-top: 1rem; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--c-accent-soft); color: var(--c-accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card.problem { border-top: 4px solid var(--c-petrol); }
.card.problem h3 { margin-top: .4rem; }

/* ---------------------------------------------------------------------------
   Split (testo + immagine) e blocchi evidenziati
   --------------------------------------------------------------------------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-grid.reverse > :first-child { order: 2; }
.split-grid.reverse > :last-child { order: 1; }
.split-copy h2 { margin: .7rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.split-copy > p { color: var(--c-gray); font-size: 1.05rem; }
.split-copy h3 { margin: .6rem 0 .8rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; }
.highlight-list { border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-white); box-shadow: var(--shadow); overflow: hidden; }
.highlight-list p { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--c-petrol); color: var(--c-anthracite); }
.highlight-list p + p { border-top: 1px solid var(--c-line); }
.check-list { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.2rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--c-anthracite); line-height: 1.5; }
.check-list li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: .1rem; border-radius: 50%;
    background: var(--c-accent-soft) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23005eb8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m3.5 8.5 3 3 6-7'/%3e%3c/svg%3e") no-repeat center / 13px;
}
.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1.5rem; }
.tags span {
    border: 1px solid rgba(31, 78, 95, .18); border-radius: 999px; padding: .45rem .75rem;
    background: rgba(255, 255, 255, .7); color: var(--c-petrol-dark); font-size: .88rem; font-weight: 700;
}
.metric-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-list div { display: grid; gap: .2rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-white); padding: 1.25rem; box-shadow: var(--shadow); }
.metric-list strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: var(--c-petrol); }
.metric-list span { color: var(--c-gray); font-size: .95rem; }

/* ---------------------------------------------------------------------------
   Immagini: foto stock (segnaposto finche' non arriva il file licenziato)
   e composizione chat.
   --------------------------------------------------------------------------- */
.stock {
    position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #dfe7ec 0%, #c9d6de 55%, #b8c7cd 100%);
    box-shadow: var(--shadow-strong); aspect-ratio: 16 / 10;
}
.stock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stock figcaption {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .4rem; padding: 1.5rem; text-align: center; color: var(--c-petrol-dark);
}
.stock figcaption strong { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.stock figcaption span { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; max-width: 22rem; line-height: 1.3; }
.stock.square { aspect-ratio: 1 / 1; }
/* Variante senza ritaglio: la figura prende le proporzioni naturali della foto. */
.stock.fit { aspect-ratio: auto; }
.stock.fit img { position: static; height: auto; }
.stock.has-img figcaption { display: none; }

/* Screenshot dell'applicazione incorniciato come finestra: barra superiore con tre pallini, bordo, ombra. */
.shot { position: relative; margin: 0; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-white); box-shadow: var(--shadow-strong); overflow: hidden; }
.shot::before { content: ""; display: block; height: 30px; border-bottom: 1px solid var(--c-line); background: #f3f5f7; }
.shot::after { content: ""; position: absolute; top: 9px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: #d3d8de; box-shadow: 18px 0 0 #d3d8de, 36px 0 0 #d3d8de; }
.shot img { display: block; width: 100%; height: auto; }
.section .shot { margin-top: 2.25rem; }
.check-list.three-col { grid-template-columns: repeat(3, 1fr); gap: .8rem 1.5rem; margin-top: 0; }

/* ---------------------------------------------------------------------------
   Sezioni "modulo" della pagina Prodotto e "settore" di Applicazioni
   --------------------------------------------------------------------------- */
.module { padding: 4rem 0; border-top: 1px solid var(--c-line); }
.module:first-of-type { border-top: 0; }
.module .split-grid { align-items: start; }
.module .stock, .module .shot { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.module-num { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--c-petrol-soft); color: var(--c-petrol-dark); font-size: .8rem; font-weight: 800; margin-right: .6rem; vertical-align: middle; }

.sector { padding: 4rem 0; border-top: 1px solid var(--c-line); }
.sector-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.sector-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sector-aside .stock { aspect-ratio: 1 / 1; margin-top: 1.25rem; }
.sector-aside h2 { margin: .6rem 0 .6rem; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; }
.sector-aside p { color: var(--c-gray); }
.use-cases { display: grid; gap: 1rem; }
.use-case { display: flex; gap: 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-white); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.use-case .card-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.use-case .card-icon svg { width: 20px; height: 20px; }
.use-case strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--c-petrol-dark); margin-bottom: .25rem; }
.use-case p { color: var(--c-gray); font-size: .96rem; }

/* ---------------------------------------------------------------------------
   Prezzi
   --------------------------------------------------------------------------- */
.billing-toggle { display: inline-flex; border: 1px solid var(--c-silver); border-radius: 999px; padding: .25rem; background: var(--c-white); margin-top: 1.5rem; }
.billing-toggle button { border: 0; border-radius: 999px; padding: .55rem 1.1rem; background: transparent; color: var(--c-gray-dark); font: inherit; font-weight: 700; cursor: pointer; }
.billing-toggle button.active { background: var(--c-petrol); color: var(--c-white); }
.billing-toggle .save { margin-left: .4rem; font-size: .75rem; color: var(--c-accent); }
.billing-toggle button.active .save { color: #cfe3f5; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; margin-top: -3.5rem; }
.plan { text-align: center; }
.plan.featured { border-color: rgba(31, 78, 95, .35); background: var(--c-anthracite); color: var(--c-white); }
.plan.featured h3, .plan.featured .price { color: var(--c-white); }
.plan.featured p { color: #c7ccd1; }
.plan h3 { margin: 0 0 .4rem; font-size: 1.4rem; }
.plan p { color: var(--c-gray); font-size: .95rem; min-height: 3rem; }
.price { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--c-anthracite); margin: .6rem 0 .3rem; }
.price-note { font-size: .85rem; color: var(--c-gray); margin-bottom: 1.25rem; }
.plan.featured .price-note { color: #c7ccd1; }
.plan .btn { align-self: center; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.compare .card h3 { margin-top: 0; }
.compare ul { list-style: none; padding: 0; margin: .5rem 0 1.25rem; display: grid; gap: .55rem; font-size: .95rem; }
.compare li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--c-line); }
.compare li span:first-child { color: var(--c-gray); }
.compare li span:last-child { font-weight: 700; color: var(--c-anthracite); text-align: right; }
.compare li .yes { color: #1b7f4d; }
.compare li .no { color: var(--c-silver); }
.plan .seats { font-weight: 700; color: var(--c-accent); margin: .1rem 0 .2rem; }
.plan.featured .seats { color: #9fd0f5; }
.plan .vat { font-size: .8rem; color: var(--c-gray); margin-bottom: 1.1rem; }
.plan.featured .vat { color: #c7ccd1; }
.plans.packages { margin-top: 0; }
.plans:not(.packages) { align-items: stretch; }
.plan { position: relative; }
.plan.featured { box-shadow: var(--shadow-strong); border: 2px solid var(--c-accent); }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; background: var(--c-accent); color: var(--c-white); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; }
.plan-trial { margin-top: .8rem; font-size: .85rem; font-weight: 700; color: #9fd0f5; }
.btn.accent { color: var(--c-white); background: var(--c-accent); }
.btn.accent:hover { color: var(--c-white); background: #004c95; }
.trial-chip { display: inline-block; margin-top: 1.25rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--c-accent-soft); border: 1px solid rgba(0, 94, 184, .25); color: var(--c-navy); font-size: .95rem; text-decoration: none; }
.trial-chip strong { color: var(--c-accent); }
.trial-chip:hover { border-color: var(--c-accent); }
.trial-banner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2.25rem; padding: 2rem 2.25rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--c-navy), var(--c-accent)); color: var(--c-white); box-shadow: var(--shadow-strong); }
.trial-banner h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; color: var(--c-white); }
.trial-banner p { margin: 0; color: #dbe8f6; max-width: 46rem; }
.trial-banner ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: 0; margin: 1rem 0 0; font-weight: 700; }
.trial-banner li::before { content: "\2713"; margin-right: .45rem; color: #9fd0f5; }
.trial-banner .btn.accent { flex: none; background: var(--c-white); color: var(--c-navy); }
.trial-banner .btn.accent:hover { background: var(--c-accent-soft); color: var(--c-navy); }
@media (max-width: 860px) { .trial-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; } .plan.featured { margin-top: .6rem; } }
.packages .price { font-size: 2.4rem; }
.compare .card { display: flex; flex-direction: column; }
.compare .card ul { flex: 1; }
.compare .card .btn { margin-top: auto; align-self: center; }
.pricing-note { text-align: center; color: var(--c-gray); font-size: .92rem; max-width: 60rem; margin: 1.75rem auto 0; }
.pricing-hero { padding-bottom: 6.5rem; }

/* ---------------------------------------------------------------------------
   Pagine legali (Termini e condizioni, Privacy): il documento arriva da S3 in un iframe
   --------------------------------------------------------------------------- */
.section.legal { padding-top: 3rem; }
.legal-doc { max-width: 900px; margin: 0 auto; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-white); box-shadow: var(--shadow); padding: .75rem; }
.legal-frame { display: block; width: 100%; min-height: 480px; border: 0; border-radius: var(--radius-sm); background: var(--c-white); }

/* ---------------------------------------------------------------------------
   Richiedi una demo (Views/Home/Demo.cshtml)
   --------------------------------------------------------------------------- */
.section.demo { padding-top: 3rem; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 2.5rem; align-items: start; }
.demo-card { border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-white); box-shadow: var(--shadow); padding: 2rem 2.2rem 2.2rem; }
.demo-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.demo-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.demo-field label { font-size: .88rem; font-weight: 600; color: var(--c-anthracite); }
.demo-field .req, .demo-consent .req { color: var(--c-accent); }
.demo-field input, .demo-field textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--c-silver); border-radius: var(--radius-sm);
    background: var(--c-white); color: var(--c-anthracite); font: inherit; font-size: .98rem; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.demo-field textarea { resize: vertical; min-height: 8rem; }
.demo-field input:focus, .demo-field textarea:focus { outline: none; border-color: var(--c-petrol); box-shadow: 0 0 0 3px rgba(31, 78, 95, .14); }
.demo-consent { display: flex; align-items: flex-start; gap: .7rem; margin: .4rem 0 1.4rem; font-size: .9rem; color: var(--c-gray-dark); line-height: 1.5; cursor: pointer; }
.demo-consent input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--c-petrol); }
.demo-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.demo-required { font-size: .82rem; color: var(--c-gray); }
.demo-errors { margin: 0 0 1.2rem; padding: .9rem 1.1rem; border: 1px solid #f1c4c4; border-radius: var(--radius-sm); background: #fdf1f1; color: #9b1c1c; font-size: .92rem; }
.demo-errors ul { margin: 0; padding-left: 1.1rem; }
.demo-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.demo-sent { text-align: center; padding: 3rem 2.2rem; }
.demo-check { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: 1rem; }
.demo-check svg { width: 34px; height: 34px; }
.demo-sent h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.demo-sent p { color: var(--c-gray); max-width: 30rem; margin: 0 auto 1.6rem; }
.demo-aside { padding-top: .4rem; }
.demo-steps { list-style: none; counter-reset: step; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.demo-steps li { position: relative; padding-left: 3rem; }
.demo-steps li::before {
    counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
    width: 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--c-petrol-soft); color: var(--c-petrol-dark); font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.demo-steps strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--c-anthracite); }
.demo-steps span { color: var(--c-gray); font-size: .95rem; line-height: 1.5; }
.demo-aside-note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--c-line); color: var(--c-gray); font-size: .92rem; }

/* ---------------------------------------------------------------------------
   CTA finale
   --------------------------------------------------------------------------- */
.final-cta { background: var(--c-soft); padding: 4rem 0 4.5rem; }
.final-cta-box {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
    border: 1px solid var(--c-line); border-radius: 1.75rem; padding: 2rem 2.2rem;
    background: linear-gradient(135deg, #fff 0%, #fbfcfc 100%); box-shadow: var(--shadow);
}
.final-cta-box h2 { max-width: 46rem; margin-top: .65rem; font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.05; }
.final-cta-box p { max-width: 40rem; margin: .9rem 0 0; color: var(--c-gray); }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer { color: #d1d5db; background: var(--c-anthracite); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; gap: 2rem; padding: 3.4rem 0; }
.footer-brand img.footer-clomsy { height: 34px; width: auto; display: block; margin-bottom: .9rem; }
.footer-brand p { color: #b8c0c8; font-size: .95rem; max-width: 22rem; }
.footer-owner { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-owner img { width: 42px; height: 42px; border-radius: 50%; background: var(--c-white); flex: none; }
.footer-owner span { font-size: .88rem; color: #b8c0c8; }
.footer-owner a { color: var(--c-white); font-weight: 700; display: inline; margin: 0; }
.site-footer h2 { color: var(--c-white); font-size: 1rem; margin-bottom: .6rem; font-family: var(--font-body); }
.site-footer a { display: block; margin-top: .4rem; color: #e5e7eb; }
.site-footer a:hover { color: var(--c-white); }
.site-footer address { font-style: normal; color: #d1d5db; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; color: #9ca3af; font-size: .9rem; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute; top: var(--header-h); right: 0; left: 0; display: none;
        flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem;
        border-bottom: 1px solid var(--c-line); background: var(--c-white); box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .nav-sep { display: none; }
    .hero-grid, .split-grid, .sector-grid, .final-cta-box, .pitch, .demo-grid { grid-template-columns: 1fr; }
    .check-list.two-col, .check-list.three-col { grid-template-columns: 1fr; }
    .hero { min-height: 0; }
    .hero::before { left: 0; width: 100%; background-size: cover; background-position: 70% center; opacity: .35; -webkit-mask-image: none; mask-image: none; }
    .hero::after { background: linear-gradient(180deg, rgba(236, 238, 241, .9) 0%, rgba(236, 238, 241, .75) 100%); }
    .split-grid.reverse > :first-child { order: initial; }
    .split-grid.reverse > :last-child { order: initial; }
    .cards.three, .cards.two, .trust-grid, .footer-grid, .plans, .compare, .metric-list { grid-template-columns: 1fr; }
    .plans { margin-top: 0; }
    .pricing-hero { padding-bottom: 3rem; }
    .trust-grid div + div { padding-top: 1rem; border-top: 1px solid var(--c-line); }
    .module .stock, .module .shot, .sector-aside { position: static; }
    .sector-aside .stock { max-width: 24rem; }
}
@media (max-width: 767.98px) {
    :root { --header-h: 70px; }
    .brand img { height: 32px; }
    .hero { padding: 3rem 0 2.75rem; }
    .hero-logo { width: min(300px, 85%); }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    .hero p.lead, .page-hero p { font-size: 1.05rem; }
    .hero-actions, .cta-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn, .final-cta-box .btn { width: 100%; }
    .section { padding: 3.5rem 0; }
    .module, .sector { padding: 3rem 0; }
    .final-cta { padding: 3rem 0 3.25rem; }
    .final-cta-box { padding: 1.5rem; }
    .footer-bottom > div { flex-direction: column; }
    .card { padding: 1.35rem; }
    .demo-card { padding: 1.4rem 1.2rem 1.6rem; }
    .demo-row.two { grid-template-columns: 1fr; gap: 0; }
}
