﻿/* =====================================================================
   IRIGuest — site.css
   Foglio di stile unico per tutto il sito.
   Sostituisce: style-index2.css + style-index3.css + style-nuovo.css
   Header/nav: header.css (file separato, caricato sempre)
   ===================================================================== */

/* =====================================================================
   1. VARIABILI
   ===================================================================== */
:root {
  --ink:          #08202B;
  --ink-2:        #0C2C3A;
  --ink-3:        #0E3344;
  --teal:         #1F6F93;
  --teal-deep:    #0C5D7B;
  --bright:       #2E9BC4;

  --paper:        #FFFFFF;
  --surface:      #F6FAFB;
  --surface-2:    #EAF1F4;
  --line:         #E6EDF0;
  --line-strong:  #CFDBE0;

  --text:         #0E2630;
  --text-muted:   #5A6F78;
  --invert:       #EAF3F6;
  --invert-muted: #9DB6BF;

  --gold:         #C2A878;

  --shadow-sm:  0 1px 2px rgba(8,32,43,.05), 0 8px 24px rgba(8,32,43,.06);
  --shadow-md:  0 2px 8px rgba(8,32,43,.07), 0 22px 50px rgba(8,32,43,.13);
  --shadow-lg:  0 30px 80px rgba(8,32,43,.22);

  --max:        1200px;
  --radius:     20px;
  --radius-sm:  13px;
  --pill:       999px;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* =====================================================================
   2. RESET & BASE
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =====================================================================
   3. UTILITIES
   ===================================================================== */
.container {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

/* Reveal on scroll (IntersectionObserver in homepage) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* IRIGuest wordmark: SEMPRE Poppins, mai serif */
.iriguest-wordmark {
  white-space: nowrap;
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: .005em;
}
.iriguest-wordmark span[style*="600"] { font-weight: 600 !important; }
.iriguest-wordmark span[style*="300"] { font-weight: 300 !important; }

/* =====================================================================
   4. TIPOGRAFIA
   ===================================================================== */
.display {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.07;
  color: var(--ink);
}
.accent { color: var(--teal); }
.accent-grad {
  font-family: var(--serif); /* eccezione: "con stile" e "Accoglienza, ridefinita." restano serif */
  background: linear-gradient(100deg, var(--teal) 0%, var(--bright) 60%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Elemento "brand" nel footer (non nell'header, che usa header.css) */
.brand-name { font-size: 1.45rem; color: var(--ink); letter-spacing: .01em; }
.brand-tag {
  font-size: .56rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px; font-weight: 500;
}

/* =====================================================================
   5. BOTTONI
   ===================================================================== */
.btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease,
              box-shadow .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 12px 26px rgba(31,111,147,.30);
}
.btn-primary:hover { background: var(--teal-deep); box-shadow: 0 16px 34px rgba(31,111,147,.38); }

.btn-secondary {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--teal); }

/* Bottone "soft" — terziario elegante (terzo CTA hero) */
.btn-soft {
  background: linear-gradient(180deg, rgba(46,155,196,.10), rgba(31,111,147,.06));
  border: 1px solid rgba(31,111,147,.28);
  color: var(--teal-deep);
  box-shadow: none;
}
.btn-soft svg { transition: transform .18s ease; }
.btn-soft:hover {
  background: linear-gradient(180deg, rgba(46,155,196,.18), rgba(31,111,147,.11));
  border-color: var(--teal); color: var(--teal-deep);
}
.btn-soft:hover svg { transform: translateX(4px); }

/* Bottoni su sfondi scuri */
.on-dark .btn-ghost,
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.30); }
.on-dark .btn-ghost:hover,
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* btn-secondary su hero dark: background semi-trasparente per renderlo sempre leggibile */
.hero .btn-secondary {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,.18);
  border-color: #fff;
  color: #fff;
}

/* =====================================================================
   6. RITMO SEZIONI, LABEL, TITOLI
   ===================================================================== */
section { padding: 104px 0; position: relative; }

/* Eyebrow — etichetta di sezione con tratti laterali (homepage e landing sections) */
.eyebrow {
  display: flex; width: fit-content; align-items: center; gap: 9px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--teal); margin: 0 auto 18px;
}
.eyebrow::before,
.eyebrow::after {
  content: ""; width: 26px; height: 1.5px; background: var(--teal);
  display: inline-block; flex: 0 0 auto;
}
.eyebrow.center { display: flex; justify-content: center; }

/* Kicker — come eyebrow, usato nelle landing e nelle card */
.kicker {
  display: flex; width: fit-content; align-items: center; gap: 9px;
  text-transform: uppercase; font-size: .76rem;
  letter-spacing: .18em; font-weight: 600;
  color: var(--teal); margin: 0 auto 14px;
}
.kicker::before,
.kicker::after {
  content: ""; width: 22px; height: 1.5px; background: var(--teal);
  display: inline-block; flex: 0 0 auto;
}

.section-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--ink);
  margin: 0 0 22px;
}
.section-title.center { text-align: center; }

.hairline {
  width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--bright));
  margin: 0 auto 26px;
}
.hairline.center { margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 1.08rem; }

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--ink);
}
h3 { font-weight: 400; color: var(--ink); }

/* Paragrafo lead nelle sezioni editorial (homepage split-grid, band-dark, ecc.) */
.lead-p { color: var(--text-muted); font-size: 1.08rem; }

/* =====================================================================
   7. HERO — LANDING + DEMO (sfondo scuro, gradiente teal)
   Il hero di default è quello dark usato da landing e demo.
   Per la homepage usa #top.hero (vedere sezione homepage più in basso).
   ===================================================================== */
.hero {
  position: relative;
  padding: 92px 0 96px;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(46,155,196,.20), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0E3344 100%);
  overflow: hidden;
}

/* Eyebrow badge dentro hero scuro */
.hero .eyebrow {
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(46,155,196,0.14);
  border: 1px solid rgba(46,155,196,0.35);
  color: #BFE6F2;
  /* Badge a pillola (con pallino, non delimitato da tratti): resta allineato a sinistra */
  margin: 0 auto 22px 0;
  font-size: .85rem;
  letter-spacing: .02em;
}
.hero .eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bright);
  box-shadow: 0 0 0 4px rgba(46,155,196,.25);
}
.hero .eyebrow::after { display: none; }

/* Layout interno landing (3 aree: titolo, copy, screenshot) */
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.hero-title { grid-column: 1 / -1; }
.hero-copy { min-width: 0; }

/* Titoli dentro hero scuro */
h1 { margin: 0; color: #fff; font-weight: 400; letter-spacing: -.02em; }
.h1-main {
  display: block;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
}
.h1-sub {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--invert-muted);
}

/* Lead / intro dentro hero scuro */
.lead {
  margin: 0 0 32px;
  max-width: 620px;
  color: var(--invert);
  font-size: 1.12rem;
  line-height: 1.7;
}
.lead .iriguest-wordmark { color: #fff; }

/* Actions row */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

/* Trust strip (landing) / hero-trust (demo + home) */
.hero-trust, .trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--invert-muted);
  font-size: .85rem;
}
.hero-trust span, .trust-strip span,
.hero-trust a, .trust-strip a { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust a, .trust-strip a { color: inherit; text-decoration: none; transition: color .15s ease; }
.hero-trust a:hover { opacity: .75; }
.hero-trust svg { width: 16px; height: 16px; opacity: .9; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
#top.hero .hero-trust a:hover { color: var(--teal); opacity: 1; }

/* Screenshot app dentro hero */
.phone-wrap { display: flex; justify-content: center; }
.phone-wrap img {
  width: min(460px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.phone-shift { align-self: flex-end; }

/* Hero points strip (demo) */
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-points .mini-card {
  padding: 26px 28px 0;
  color: var(--invert-muted);
  font-size: .95rem;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.hero-points .mini-card:first-child { border-left: 0; padding-left: 0; }
.mini-card strong {
  display: flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 500; margin-bottom: 8px; font-size: 1rem;
}
.mini-card strong svg { width: 18px; height: 18px; color: var(--bright); }

/* Hero grid (demo) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

/* =====================================================================
   8. HERO — HOMEPAGE (luce, foto sfumata, stile "editorial")
   Sovrascrive il dark hero tramite id="valore" (presente in tutti e 5 gli index)
   ===================================================================== */
#top.hero {
  padding: 0;
  background:
    radial-gradient(900px 600px at 12% 18%, rgba(46,155,196,.06), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--surface) 100%);
  min-height: 640px;
  display: flex;
  align-items: center;
}
#top.hero .hero-photo {
  position: absolute;
  right: 0; top: 0;
  width: 60%; height: 100%;
  object-fit: cover; object-position: center right;
  z-index: 1;
  pointer-events: none;
}
.hero-photo-mobile { display: none; }
#top.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, var(--surface) 0%, rgba(246,250,251,.65) 30%, transparent 52%);
  pointer-events: none;
}
#top.hero .container { position: relative; z-index: 3; padding: 120px 0; }
#top.hero .hero-copy { max-width: 620px; }

/* Badge (non eyebrow) nella homepage hero */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--pill);
  background: rgba(31,111,147,.08);
  border: 1px solid rgba(31,111,147,.20);
  color: var(--teal-deep); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  margin-bottom: 26px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bright); box-shadow: 0 0 0 4px rgba(46,155,196,.22);
}

/* Titolo h1 nella homepage hero */
#top.hero h1 {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
#top.hero h1 .accent-grad { font-style: italic; font-weight: 600; }
.hero-sub {
  margin: 0 0 36px;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

/* Lead nella homepage hero (testo scuro, non invert) */
#top.hero .lead {
  color: var(--text-muted);
  font-size: 1.08rem;
}
#top.hero .lead .iriguest-wordmark { color: var(--ink); }

/* Hero-trust su fondo chiaro */
#top.hero .hero-trust { color: var(--text-muted); }
#top.hero .hero-trust svg { color: var(--teal); }

/* Bottoni hero homepage: sfondo opaco garantisce leggibilità sull'immagine */

/* "Scarica gratis" ora usa btn-soft → sfondo teal-tint opaco */
#top.hero .btn-soft {
  background: #E8F2F7;
  border-color: rgba(31,111,147,.30);
  color: var(--teal-deep);
}
#top.hero .btn-soft:hover {
  background: #D6E9F2;
  border-color: var(--teal);
  color: var(--teal-deep);
}
#top.hero .btn-soft svg { transition: transform .18s ease; }
#top.hero .btn-soft:hover svg { transform: translateX(4px); }

/* "Prova online" ora usa btn-ghost → sfondo bianco opaco */
#top.hero .btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
#top.hero .btn-ghost:hover {
  background: #fff;
  border-color: var(--teal);
  color: var(--teal);
}

/* =====================================================================
   9. SEZIONI HOMEPAGE
   ===================================================================== */

/* --- "La prima impressione conta" split grid --- */
.split-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.pillar-list { display: grid; gap: 28px; }
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
}
.pillar-ico {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #E9F3F6, #DCEBF0);
  color: var(--teal);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s ease,
              color .25s ease, box-shadow .25s ease;
}
.pillar-ico svg { width: 26px; height: 26px; }
.pillar:hover .pillar-ico {
  transform: translateY(-3px) scale(1.06) rotate(-3deg);
  background: linear-gradient(150deg, var(--bright), var(--teal));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31,111,147,.30);
}
.pillar h3 { margin: 0 0 5px; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.pillar p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* --- Band scura "Un nuovo standard" --- */
.band-dark {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(46,155,196,.16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: var(--invert);
}
.band-dark .section-title,
.band-dark h2 { color: #fff; }
.standard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.band-dark .eyebrow { color: var(--bright); }
.band-dark .eyebrow::before,
.band-dark .eyebrow::after { background: var(--bright); }
.standard-copy p { color: var(--invert-muted); font-size: 1.06rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat { padding: 24px 18px 0 0; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--sans); font-weight: 600; font-size: 2.2rem; color: #fff; line-height: 1;
}
.stat .lbl { color: var(--invert-muted); font-size: .82rem; margin-top: 8px; }

/* Device stage (screenshot app nella band scura) */
.device-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 360px;
}
.device-stage img {
  width: min(440px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
}
.device-glow {
  position: absolute; inset: 12% 16%;
  background: radial-gradient(circle, rgba(46,155,196,.35), transparent 65%);
  filter: blur(50px); z-index: 0;
}
.device-stage img { position: relative; z-index: 1; }

/* --- Funzioni (feat-grid) --- */
.feat-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.feat {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feat:hover {
  box-shadow: 0 10px 30px -10px rgba(31,111,147,.30);
  border-color: rgba(46,155,196,.55);
}
.feat-ico {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(150deg, #E9F3F6, #DCEBF0); color: var(--teal);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s ease,
              color .25s ease, box-shadow .25s ease;
}
.feat:hover .feat-ico {
  transform: scale(1.07) rotate(-3deg);
  background: linear-gradient(150deg, var(--bright), var(--teal));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31,111,147,.30);
}
.feat-ico svg { width: 25px; height: 25px; }
.feat h3 {
  margin: 0 0 9px; font-size: 1.16rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.feat p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.tag-cloud {
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--teal-deep); background: #E4EFF3; padding: 3px 9px; border-radius: var(--pill);
}

/* --- Versioni (vcard) --- */
.versions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch;
}
.vcard {
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm);
  position: relative;
}
.vcard .vmedia {
  background: var(--surface-2);
  display: grid; place-items: center;
  padding: 36px; min-height: 220px;
}
.vcard .vmedia img { width: min(200px, 70%); filter: drop-shadow(0 20px 40px rgba(8,32,43,.20)); border-radius: 18px; }
.vcard .vbody { padding: 34px; display: flex; flex-direction: column; flex: 1; }
.vcard .vkicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 10px; }
.vcard h3 { font-family: var(--sans); font-weight: 600; font-size: 1.9rem; margin: 0 0 6px; color: var(--ink); }
.vcard .vdesc { margin: 0 0 22px; color: var(--text-muted); }
.vlist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 13px; }
.vlist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text); font-size: .97rem; }
.vlist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: #E1F0E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.vcard .vcta { margin-top: auto; }
.vcard .vstore { margin-top: auto; }
.vcard .vstore-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin: 0 0 12px; }
.vcard .vstore-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vcard .vstore-badges a { display: inline-flex; transition: transform .16s ease; }
.vcard .vstore-badges a:hover { transform: translateY(-2px); }
.vcard .vstore-badges img { height: 46px; width: auto; display: block; }
.vcard.cloud { background: var(--ink); color: var(--invert); border-color: var(--ink); }
.vcard.cloud .vmedia { background: var(--ink-2); }
.vcard.cloud h3 { color: #fff; }
.vcard.cloud .vkicker { color: var(--bright); }
.vcard.cloud .btn-soft {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.30);
  color: rgba(255,255,255,.85);
}
.vcard.cloud .btn-soft:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.60);
  color: #fff;
}
.vcard.cloud .vdesc { color: var(--invert-muted); }
.vcard.cloud .vlist li { color: var(--invert); }
.vcard.cloud .vlist li::before {
  background: rgba(46,155,196,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237FD4ED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.vbadge {
  position: absolute; top: 18px; right: 18px;
  background: var(--teal); color: #fff; font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--pill);
}

/* --- Settori (icona-style nella homepage) --- */
.sectors { background: var(--surface); }
.sector-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.sector {
  text-align: center; padding: 28px 14px;
  border-radius: var(--radius-sm);
  transition: transform .2s ease, background .2s ease;
}
.sector:hover { background: #fff; box-shadow: var(--shadow-sm); }
.sector-ico {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--teal);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s ease,
              color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sector-ico svg { width: 27px; height: 27px; }
.sector:hover .sector-ico {
  transform: scale(1.07) rotate(-3deg);
  background: linear-gradient(150deg, var(--bright), var(--teal));
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 22px rgba(31,111,147,.28);
}
.sector span { font-size: .9rem; color: var(--text); font-weight: 500; line-height: 1.35; display: block; }

/* Settori descrittivi — card style (index3 add-on) */
.sectors .sec-intro { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sectors .sec-intro p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.sectors .sector-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sectors .sector {
  text-align: left;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.sectors .sector:hover { box-shadow: 0 10px 30px -10px rgba(31,111,147,.30); background: #fff; border-color: rgba(46,155,196,.55); }
.sectors .sector-ico { margin: 0; flex: 0 0 auto; }
.sectors .sec-txt strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.04rem; margin-bottom: 4px; line-height: 1.25; }
.sectors .sec-txt p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.sector.linked { cursor: pointer; }
.sector .sec-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; color: var(--teal); font-weight: 500; font-size: .85rem;
}
.sector .sec-more::after { content: "\2192"; transition: transform .18s ease; }
.sector.linked:hover .sec-more::after { transform: translateX(4px); }

/* --- CTA band (foto reception) --- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8,32,43,.92), rgba(12,44,58,.82)),
    url("/images/iriguest-reception.png") center/cover no-repeat;
  color: #fff; text-align: center;
}
.cta-band .display { color: #fff; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band p { color: var(--invert-muted); font-size: 1.1rem; margin: 0 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Form contatti homepage --- */
.contact { background: var(--surface); }
.contact-card {
  max-width: 860px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 52px;
}
.contact-head { text-align: center; margin-bottom: 32px; }
.contact-head p { color: var(--text-muted); max-width: 560px; margin: 10px auto 0; }

/* --- Sezione "Problemi del cartaceo" (homepage) --- */
.problems { background: var(--paper); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* .problem dentro .problem-grid (homepage): card con bordo e icona arancione (.pico) */
.problem-grid .problem {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.problem-grid .problem:hover { box-shadow: 0 10px 30px -10px rgba(194,96,60,.28); border-color: rgba(194,96,60,.42); }

/* Icona .pico (homepage problems) */
.problem .pico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, #FBEDE7, #F6E1D7);
  color: #C2603C;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s ease,
              color .25s ease, box-shadow .25s ease;
}
.problem-grid .problem:hover .pico {
  transform: scale(1.07) rotate(-3deg);
  background: linear-gradient(150deg, #E8845C, #C2603C);
  color: #fff;
  box-shadow: 0 12px 22px rgba(194,96,60,.30);
}
.problem .pico svg { width: 24px; height: 24px; }
.problems .solve-line {
  margin: 44px auto 0; max-width: 760px; text-align: center;
  color: var(--text-muted); font-size: 1.05rem;
}
.problems .solve-line strong { color: var(--ink); font-weight: 600; }

/* --- FAQ accordion (senza JS) --- */
.faq { background: var(--surface); }
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 22px 26px;
  font-weight: 600; color: var(--ink); font-size: 1.06rem;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: color .15s ease;
}
.faq-item summary:hover { color: var(--teal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto;
  width: 22px; height: 22px;
  background:
    linear-gradient(var(--teal),var(--teal)) center/14px 2px no-repeat,
    linear-gradient(var(--teal),var(--teal)) center/2px 14px no-repeat;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item .faq-a { padding: 0 26px 24px; color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
.faq-item .faq-a p { margin: 0; }

/* --- Tabella comparativa homepage (compare-table) --- */
.compare-head { max-width: 720px; margin: 64px auto 32px; text-align: center; }
.compare-head h3 {
  font-family: var(--sans); font-weight: 400; color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 10px;
}
.compare-head p { color: var(--text-muted); margin: 0; }
.compare-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; min-width: 560px;
  border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); font-size: .97rem;
}
.compare-table thead th {
  color: #fff; font-weight: 600; padding: 16px 18px; text-align: center;
  font-size: .98rem; letter-spacing: .01em;
}
.compare-table thead th.col-feat { background: var(--teal-deep); text-align: left; }
.compare-table thead th.col-free { background: var(--teal); }
.compare-table thead th.col-adv  { background: var(--ink); }
.compare-table tbody td {
  padding: 13px 18px; border-top: 1px solid var(--line); text-align: center; color: var(--text);
}
.compare-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.compare-table tbody tr:nth-child(even) td { background: var(--surface); }
.compare-table tbody tr:hover td { background: #EAF3F6; }
.ck {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle;
}
.ck.yes { background: #E1F0E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.ck.no  { background: #F6E1D7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C2603C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat; }
.compare-note { text-align: center; color: var(--text-muted); font-size: .86rem; margin: 18px auto 0; }

/* --- Sezione Prova online (tryon) --- */
.tryon { background: var(--paper); }
.tryon-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.tryon-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.tryon-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-muted); font-size: .92rem;
}
.tryon-note svg { width: 20px; height: 20px; color: var(--teal); flex: 0 0 auto; margin-top: 1px; }
.shot-clean { width: 100%; display: block; filter: drop-shadow(0 26px 50px rgba(8,32,43,.26)); }

/* --- Teaser "Guarda in azione" (tour) --- */
.tour { background: var(--surface); text-align: center; }
.tour-shot { max-width: 760px; margin: 0 auto 32px; }
.tour-shot img { width: 100%; display: block; }

/* --- Blocco SEO testuale --- */
.seo-content { background: var(--paper); }
.seo-prose { max-width: 820px; margin: 0 auto; }
.seo-prose h2 { text-align: center; }
.seo-prose .hairline { margin-left: auto; margin-right: auto; }
.seo-prose p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; margin: 0 0 18px; }
.seo-prose a { color: var(--teal); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.seo-prose a:hover { border-bottom-color: var(--teal); }

/* =====================================================================
   10. COMPONENTI LANDING
   ===================================================================== */
#problems, #plans, #faq, #demo-note { background: var(--surface); }

/* Card base */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.grid-3, .grid-2 { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Feature / problem / faq card (landing) */
.feature, .problem, .faq, .tier { padding: 30px; }
.feature, .problem {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover, .problem:hover {
  box-shadow: 0 10px 30px -10px rgba(31,111,147,.24);
  border-color: rgba(46,155,196,.50);
}

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(150deg, #E9F3F6, #DCEBF0);
  color: var(--teal);
}
.icon svg { width: 24px; height: 24px; stroke: var(--teal); }
.problem .icon { background: linear-gradient(150deg, #FBEDE9, #F6E2DA); color: #C2603C; }
.problem .icon svg { stroke: #C2603C; }

.feature h3, .problem h3, .faq h3 { margin: 0 0 10px; font-size: 1.18rem; }
.feature p, .problem p, .faq p { margin: 0; color: var(--text-muted); }
.feature h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.22; }

/* CTA card scura (landing) */
.cta {
  padding: 40px;
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 30px; align-items: center;
  background: linear-gradient(135deg, #0E3142, #134357);
  border: 0; border-radius: var(--radius);
  color: var(--invert); box-shadow: var(--shadow-md);
}
.cta .kicker { color: var(--bright); }
.cta h2 { color: #fff; }
.cta p { margin: 0; color: var(--invert); }
.cta-actions-col { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta-actions-col .btn { width: 100%; }
.cta .btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.cta .btn-secondary:hover { background: rgba(255,255,255,0.14); color:#fff; }

/* Quote card */
.quote {
  padding: 36px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--teal), var(--teal-deep));
  border: 0; color: #fff;
}
.quote::before {
  content: "\201C";
  position: absolute; right: 22px; top: 2px;
  font-size: 6rem; line-height: 1;
  color: rgba(255,255,255,0.14);
  font-family: Georgia, serif;
}
.quote p { margin: 0 0 14px; font-size: 1.18rem; line-height: 1.5; }
.quote .author { color: rgba(255,255,255,.82); font-weight: 500; }

/* Piani Free / Cloud (landing plans section) */
.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: stretch;
}
.tier { display: flex; flex-direction: column; }
.tier.cloud {
  border: 2px solid var(--teal);
  position: relative;
  box-shadow: var(--shadow-md);
}
.tier.cloud::after {
  content: "Consigliata";
  position: absolute; top: -13px; right: 26px;
  background: var(--teal); color: #fff;
  font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  padding: 5px 13px; border-radius: var(--pill);
}
.tier h3 { margin: 0 0 10px; font-size: 1.22rem; }
.tier p { margin: 0; color: var(--text-muted); }
.tier ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.tier li {
  display: grid; grid-template-columns: 24px 1fr;
  gap: 11px; color: var(--text); align-items: start;
}
.tier li::before {
  content: "";
  width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: #E1F0E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

.badge {
  display: inline-block; margin-bottom: 16px;
  padding: 7px 14px; font-size: .76rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--pill);
  background: #E9F2F5; color: var(--teal-deep);
}
.tier.cloud .badge { background: var(--teal); color: #fff; }

/* Badge "Consigliata" localizzato via html[lang] */
[lang="en"] .tier.cloud::after { content: "Recommended"; }
[lang="fr"] .tier.cloud::after { content: "Recommandée"; }
[lang="de"] .tier.cloud::after { content: "Empfohlen"; }
[lang="es"] .tier.cloud::after { content: "Recomendada"; }

/* ---- Sezione download gratuito (landing free) ---- */
.download-section { background: var(--surface); }
.download-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 52px 56px;
}
.download-copy .kicker { margin-bottom: 14px; }
.download-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.18; margin: 0 0 14px; color: var(--ink);
}
.download-copy p { margin: 0; color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; }
.download-stores {
  display: flex; flex-direction: column; gap: 16px;
}
/* Ogni link store: card cliccabile con icona + info + badge */
.download-store-link {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.download-store-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31,111,147,.14);
  border-color: rgba(46,155,196,.40);
}
.download-store-card {
  display: flex; align-items: center; gap: 14px; flex: 1 1 auto;
}
.store-icon {
  width: 36px; height: 36px; flex-shrink: 0; color: var(--ink);
}
.store-icon--android { color: #3ddc84; }
.store-info { display: flex; flex-direction: column; }
.store-name {
  font-weight: 600; font-size: .98rem; color: var(--ink); line-height: 1.2;
}
.store-platform {
  font-size: .8rem; color: var(--text-muted); margin-top: 2px;
}
.download-store-link img {
  height: 38px; width: auto; flex-shrink: 0;
  opacity: .92; transition: opacity .2s ease;
}
.download-store-link:hover img { opacity: 1; }

/* vecchi stili compat (non più usati in produzione) */
.download-head { margin-bottom: 30px; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 34px; }
.store-link { transition: transform .16s ease; }
.store-link:hover { transform: translateY(-2px); }
.store-link img { height: 58px; width: auto; }

/* Solutions grid */
.solution-grid { align-items: stretch; }
.solution-card {
  display: flex; flex-direction: column;
  gap: 12px; padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.solution-card:hover {
  box-shadow: 0 10px 30px -10px rgba(31,111,147,.24);
  border-color: rgba(46,155,196,.55);
}
.solution-card h3 { margin: 0; font-size: 1.16rem; line-height: 1.3; }
.solution-card p { margin: 0; color: var(--text-muted); }
.text-link {
  margin-top: auto; color: var(--teal); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: "\2192"; transition: transform .18s ease; }
.solution-card:hover .text-link::after { transform: translateX(4px); }

/* Landing list */
.landing-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.landing-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.landing-list li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: #E1F0E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.list-text { color: var(--text-muted); font-size: .97rem; }
.inline-link { color: var(--teal); font-weight: 500; }
.inline-link:hover { text-decoration: underline; }

/* Form richiesta demo (landing + demo) */
#request-info { background: var(--surface); }
.request-card {
  padding: 48px; background: var(--paper);
  display: grid; grid-template-columns: 1fr; gap: 28px;
  max-width: 840px; margin: 0 auto; text-align: left;
}
.request-card > div:first-child { text-align: center; }
.request-card > div:first-child p { margin: 8px auto 0; color: var(--text-muted); max-width: 560px; }
.request-form { width: 100%; }
.form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px; margin-bottom: 18px;
}
.form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.form-grid .form-field { margin-bottom: 0; }
.form-field label { font-size: .9rem; color: var(--ink); font-weight: 500; }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 14px 16px; font: inherit; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9AAEB5; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(31,111,147,.12);
}
.form-consent {
  display: flex; align-items: flex-start; gap: 11px;
  margin: 6px 0 22px; color: var(--text-muted); font-size: .92rem;
}
.form-consent input { margin-top: 5px; width: auto; flex: 0 0 auto; accent-color: var(--teal); }
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}
.form-response {
  display: none; margin: 0 0 18px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: .95rem;
}
.form-response.is-success, .form-response.is-error { display: block; }
.form-response.is-success { background: #E9F7EF; border-color: #B8E6CC; color: #176B43; }
.form-response.is-error   { background: #FCEDED; border-color: #F2C4C4; color: #9F2B2B; }
.request-form .btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-alt-actions { margin-top: 22px; text-align: center; color: var(--text-muted); font-size: .92rem; }
.form-alt-text { margin-bottom: 10px; }
.form-alt-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.alt-link { color: var(--teal); font-weight: 500; position: relative; }
.alt-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.alt-link:hover::after { transform: scaleX(1); }

/* Tabella comparativa landing (comparison-table) */
.comparison-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Card nota sotto la tabella: staccata dalla tabella e a colonna singola */
.comparison-note { margin-top: 32px; grid-template-columns: 1fr; }
.comparison-table {
  width: 100%; min-width: 540px;
  border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); font-size: .97rem;
}
.comparison-table thead th {
  color: #fff; font-weight: 600; padding: 16px 18px; text-align: center;
  font-size: .98rem; letter-spacing: .01em;
}
.comparison-table thead th:first-child { background: var(--teal-deep); text-align: left; }
.comparison-table thead th:nth-child(2) { background: var(--teal); }
.comparison-table thead th:nth-child(3) { background: var(--ink); }
.comparison-table tbody td {
  padding: 13px 18px; border-top: 1px solid var(--line); text-align: center; color: var(--text);
}
.comparison-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.comparison-table tbody tr:nth-child(even) td { background: var(--surface); }
.comparison-table tbody tr:hover td { background: #EAF3F6; }
/* Badge disponibilità: stesso look circolare della tabella home (.ck) */
.availability {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%;
  vertical-align: middle; font-size: 0; line-height: 0; color: transparent;
}
.availability.yes { background: #E1F0E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.availability.no  { background: #F6E1D7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C2603C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat; }

/* =====================================================================
   11. DEMO PAGE
   ===================================================================== */
.demo-embed-wrap { display: block; }
.demo-shell {
  max-width: 1100px; margin: 0 auto;
  padding: 18px; border-radius: 30px;
  background: #0b0b0b;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.demo-frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px; overflow: hidden; background: #000;
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.demo-mobile-fallback { display: none; padding: 30px; }
.demo-mobile-fallback h3 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.demo-mobile-fallback p { margin: 0; color: var(--text-muted); font-size: 1rem; }
.demo-mobile-actions { margin-top: 22px; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* Modal orientamento smartphone */
.demo-warning-modal { display: none; }
.demo-warning-modal.is-open { display: block; }
.demo-warning-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,32,43,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
}
.demo-warning-dialog {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  padding: 28px 24px 24px; z-index: 1001;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  text-align: center; color: #fff;
  max-height: calc(100vh - 24px); overflow-y: auto;
}
.demo-warning-dialog h3 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.05; color: #fff; }
.demo-warning-text { color: rgba(255,255,255,0.85); margin: 0 auto 14px; max-width: 360px; font-size: 0.98rem; line-height: 1.4; }
.demo-warning-anim { position: relative; width: 130px; height: 92px; margin: 0 auto 10px; display: grid; place-items: center; }
.demo-phone-icon {
  width: 72px; height: 118px; border-radius: 18px;
  background: linear-gradient(145deg, #eef5fb, #dfeaf3);
  box-shadow: inset 0 0 0 2px rgba(8,32,43,0.18), 0 18px 35px rgba(0,0,0,0.24);
  position: relative; transform-origin: center center;
  animation: demoRotatePhoneHint 2.2s ease-in-out infinite;
}
.demo-phone-icon::before {
  content: ""; position: absolute; top: 8px; left: 50%;
  width: 24px; height: 4px; transform: translateX(-50%);
  border-radius: 999px; background: rgba(8,32,43,0.25);
}
.demo-phone-icon::after {
  content: ""; position: absolute; bottom: 7px; left: 50%;
  width: 18px; height: 18px; transform: translateX(-50%);
  border-radius: 999px; border: 2px solid rgba(8,32,43,0.18);
}
.demo-phone-screen {
  position: absolute; inset: 16px 8px 28px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 50%, var(--bright) 100%);
}
.demo-rotate-arrow {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-size: 2.2rem;
  color: rgba(255,255,255,0.88);
  animation: demoArrowPulse 1.8s ease-in-out infinite;
}
.demo-warning-status { margin: 0 auto 14px; min-height: 1.4em; color: rgba(255,255,255,0.78); font-size: .95rem; }
.demo-warning-modal.is-ready .demo-warning-status { color: #fff; font-weight: 600; }
.demo-warning-actions { margin-top: 12px; margin-bottom: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-warning-actions .btn { width: 100%; }
.demo-warning-actions .btn.is-disabled,
.demo-warning-actions .btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }
.demo-warning-dialog .btn-secondary { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.30); color: #fff; }
.demo-warning-dialog .btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.55); color: #fff; }
html.modal-open, body.modal-open { overflow: hidden; touch-action: none; }

@keyframes demoRotatePhoneHint {
  0%   { transform: rotate(0deg) scale(1); }
  18%  { transform: rotate(0deg) scale(1); }
  42%  { transform: rotate(90deg) scale(1.04); }
  58%  { transform: rotate(90deg) scale(1.04); }
  82%  { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes demoArrowPulse {
  0%, 100% { opacity: 0.45; transform: translateY(-50%) scale(1); }
  50%       { opacity: 1;    transform: translateY(-50%) scale(1.12); }
}

/* =====================================================================
   12. FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--invert-muted); padding: 70px 0 34px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10);
}
/* Brand nel footer: layout identico all'header (logo + wordmark + tagline) */
.footer-brand__mark {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 16px; text-decoration: none;
}
.footer-brand__mark img { width: 40px; height: 40px; flex: 0 0 auto; }
.footer-brand__text {
  display: flex; flex-direction: column; line-height: 1;
}
.footer-brand__text .brand-name { font-size: 1.45rem; color: #fff; letter-spacing: .01em; }
.footer-brand__text .brand-tag {
  font-size: .57rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--invert-muted); margin-top: 4px; font-weight: 400;
}
.footer-brand p { margin: 0; font-size: .92rem; max-width: 260px; }
/* Badge download nel footer — trattamento raffinato su fondo scuro */
.footer-store { margin-top: 20px; }
.footer-store__label {
  display: flex; align-items: center; gap: 11px;
  margin: 0 0 11px; font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--invert-muted);
}
.footer-store__label::after {
  content: ""; flex: 1; height: 1px; max-width: 60px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), transparent);
}
.footer-store__badges { display: flex; flex-wrap: nowrap; gap: 9px; }
.footer-store__badges a {
  display: inline-flex; border-radius: 9px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer-store__badges a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.footer-store__badges img {
  height: 32px; width: auto; display: block; border-radius: 8px;
}
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--invert-muted); font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 26px; font-size: .85rem; flex-wrap: wrap;
}
.footer-bottom a { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  transition: background .18s, border-color .18s;
}
.socials a:hover { background: var(--teal); border-color: var(--teal); }
.socials svg { width: 17px; height: 17px; }

/* =====================================================================
   13. RESPONSIVE
   ===================================================================== */

/* 1080px — layout tablet largo */
@media (max-width: 1080px) {
  .split-grid, .standard-grid { grid-template-columns: 1fr; gap: 44px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .tryon-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Hero homepage mobile */
@media (max-width: 860px) {
  #top.hero {
    flex-direction: column;
    min-height: auto;
    display: flex;
  }
  #top.hero .hero-photo { display: none; }
  #top.hero::after { display: none; }
  #top.hero .container { order: 1; position: static; padding: 70px 0 30px; }
  .hero-photo-mobile {
    display: block; order: 2; width: 100%;
    height: clamp(240px, 56vw, 360px);
    object-fit: cover; object-position: 62% center;
    box-shadow: inset 0 26px 30px -22px var(--surface);
  }
}

/* 820px — form e demo switch */
@media (max-width: 820px) {
  .form-grid { grid-template-columns: 1fr; }
  .demo-embed-wrap    { display: none; }
  .demo-mobile-fallback { display: block; }
  .demo-mobile-actions .btn { width: 100%; }
}

/* 760px — tablet stretto */
@media (max-width: 760px) {
  section { padding: 72px 0; }
  #top.hero .container { padding: 60px 0 26px; }
  .versions { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .sectors .sector-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 1rem; padding: 18px 20px; }
  .faq-item .faq-a { padding: 0 20px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

/* 640px — mobile */
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  section { padding: 54px 0; }
  .hero { padding: 56px 0 60px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .cta, .request-card, .download-box, .feature, .problem, .faq, .tier, .solution-card { padding: 26px; }
  .download-box { grid-template-columns: 1fr; gap: 28px; padding: 30px 26px; }
  .download-stores { gap: 12px; }
  .download-store-link { padding: 14px 16px; gap: 14px; }
  .store-icon { width: 28px; height: 28px; }
  .download-store-link img { height: 32px; }
  .store-links { flex-direction: column; align-items: stretch; }
  .store-link img { height: 54px; margin: 0 auto; }
  .footer { padding: 46px 0 26px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 30px; padding-bottom: 28px; }
  .footer-bottom { justify-content: flex-start; }
  .footer-store { margin-top: 16px; }
  .demo-warning-dialog { width: min(92vw, 460px); padding: 24px 20px 20px; }
  .demo-warning-dialog h3 { font-size: 1.6rem; }
  .demo-warning-anim { width: 150px; height: 120px; }
  .demo-phone-icon { width: 62px; height: 102px; border-radius: 16px; }
}

/* 560px — hero trust in colonna */
@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .hero-trust, .trust-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-trust .dot { display: none; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .contact-card { padding: 30px; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; gap: 0; }
  .hero-points .mini-card { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
  .hero-points .mini-card:first-child { border-top: 0; }
}

/* 480px — footer single col */
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Modal landscape su mobile */
@media (max-width: 820px) and (orientation: landscape) {
  .demo-warning-dialog { padding: 16px 20px 14px; }
  .demo-warning-dialog h3 { font-size: 1.4rem; margin-bottom: 4px; }
  .demo-warning-text { margin-bottom: 8px; font-size: 0.9rem; }
  .demo-warning-anim { width: 100px; height: 68px; margin-bottom: 6px; }
  .demo-phone-icon { width: 48px; height: 80px; border-radius: 12px; }
  .demo-warning-status { margin-bottom: 8px; font-size: 0.88rem; min-height: auto; }
  .demo-warning-actions { flex-direction: row; gap: 10px; }
  .demo-warning-actions .btn { flex: 1; min-height: 44px; font-size: 0.9rem; }
}
