/* ==========================================================================
   IDEA Multilateral — sito v2
   Palette: blu notte + oro, fondo crema. Titoli serif (Fraunces), testo Inter.
   ========================================================================== */

:root {
  --navy-900: #061430;
  --navy-800: #0a1f45;
  --navy-700: #12306a;
  --navy-600: #1d4287;
  --gold-700: #8a6a24;
  --gold-600: #a8822f;
  --gold-500: #c39a45;
  --gold-400: #d8b76a;
  --gold-200: #efe0b8;
  --gold-100: #f8f0dc;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #141b2d;
  --ink-soft: #4a5368;
  --ink-mute: #6f778a;
  --line: #e7e1d3;
  --green-it: #1f8a3c;
  --red-it: #cd2b2b;

  --grad-gold: linear-gradient(135deg, #e9cf8b 0%, #c39a45 45%, #9c7629 100%);
  --grad-navy: radial-gradient(120% 140% at 85% 0%, #1d4287 0%, #0a1f45 45%, #061430 100%);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 8px rgba(10, 31, 69, .06);
  --shadow: 0 14px 40px -12px rgba(10, 31, 69, .18);
  --shadow-l: 0 30px 80px -20px rgba(10, 31, 69, .35);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
svg.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--navy-800); font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
em.gold, .gold-text { font-style: italic; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.rule { width: 72px; height: 3px; border-radius: 3px; background: var(--grad-gold); margin: 1.2rem 0 1.4rem; border: 0; }
.center .rule { margin-left: auto; margin-right: auto; }
.note { font-size: .85rem; color: var(--ink-mute); }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn .i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: #241a05; box-shadow: 0 10px 24px -10px rgba(168, 130, 47, .8); }
.btn-gold:hover { box-shadow: 0 16px 30px -10px rgba(168, 130, 47, .9); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(10, 31, 69, .2); color: var(--navy-800); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--navy-800); background: #fff; }
.btn-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy-700); text-decoration: none; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(4px); }

/* Badge store */
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px; background: #0b0b0d; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.14); transition: transform .2s, box-shadow .2s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.store svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.store small { display: block; font-size: .66rem; letter-spacing: .04em; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.15; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--gold-400); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.topbar .flag { display: inline-flex; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; }
.topbar .flag i { flex: 1; }
@media (max-width: 760px) { .topbar .tb-left { display: none; } .topbar .wrap { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
/* la sfocatura sta su uno strato a parte: se fosse sull'header, il menu mobile (fixed) resterebbe chiuso dentro l'header */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 248, 241, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: background .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(10,31,69,.35); }
.site-header.scrolled::before { background: rgba(255,255,255,.92); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { position: relative; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--navy-800); padding: 10px 12px; border-radius: 10px; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: .35em; }
.nav a:hover { background: rgba(195, 154, 69, .12); }
.nav a[aria-current="page"] { color: var(--gold-700); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-gold); }
.nav .nav-fci { color: var(--navy-800); }
.nav .nav-fci .fci-dot { width: 14px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--green-it) 0 33%, #fff 33% 66%, var(--red-it) 66%); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.nav .nav-fci .i { font-size: .8em; opacity: .6; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { padding: .65em 1.15em; font-size: .9rem; }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; color: var(--navy-800); }
.menu-toggle .i { font-size: 22px; }

@media (max-width: 1360px) {
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: calc(var(--header-h) + 38px) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; margin: 0; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav a { font-size: 1.12rem; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-mobile-cta { display: flex !important; flex-direction: column; gap: 10px; margin-top: 20px; }
  .nav .nav-mobile-cta .btn { border-bottom: 0; padding: 1em; font-size: 1rem; border-radius: 999px; justify-content: center; }
  .nav .nav-mobile-cta .btn-ghost { border: 1.5px solid rgba(10,31,69,.2); }
  body.menu-open { overflow: hidden; }
}
.nav .nav-mobile-cta { display: none; }
@media (max-width: 760px) { .nav { inset: var(--header-h) 0 0 0; } .site-header.top-gone .nav { inset: var(--header-h) 0 0 0; } }

/* ---------- Sezioni ---------- */
section { position: relative; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--grad-navy); color: rgba(255,255,255,.86); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lead { color: rgba(255,255,255,.75); }
.bg-navy .eyebrow { color: var(--gold-400); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 20ch; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }

.wave-top::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 60px; background: var(--cream); clip-path: ellipse(70% 100% at 50% 0%); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; background: radial-gradient(circle, rgba(216, 183, 106, .32) 0%, rgba(216, 183, 106, 0) 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--navy-800); box-shadow: var(--shadow-s); margin-bottom: 1.5rem; }
.hero-kicker b { background: var(--navy-800); color: var(--gold-200); font-size: .72rem; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.8rem; font-size: .9rem; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45em; }
.hero-trust .i { color: var(--gold-600); font-size: 1.15em; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.hero-photo { position: relative; border-radius: 220px 220px var(--radius-l) var(--radius-l); overflow: hidden; aspect-ratio: 5 / 6.4; box-shadow: var(--shadow-l); background: var(--gold-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.hero-ring { position: absolute; inset: -18px; border-radius: 240px 240px 36px 36px; border: 1.5px solid rgba(195,154,69,.45); pointer-events: none; }

.float-card { position: absolute; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.3; color: var(--navy-800); animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 1.02rem; }
.float-card small { color: var(--ink-mute); }
.float-card .fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700); font-size: 20px; flex: none; }
.float-card .fc-ico img { width: 26px; height: 26px; }
.float-card.fc-1 { left: -36px; top: 18%; }
.float-card.fc-2 { right: -28px; top: 52%; animation-delay: -2s; }
.float-card.fc-3 { left: -10px; bottom: 6%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-top: 12px; }
  .float-card.fc-1 { left: -8px; }
  .float-card.fc-2 { right: -8px; }
}
@media (max-width: 480px) {
  .float-card { font-size: .78rem; padding: 9px 12px; }
  .float-card .fc-ico { width: 32px; height: 32px; font-size: 16px; }
  .float-card.fc-3 { display: none; }
}

/* Hero pagina interna */
.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero .ph-img { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4 / 4.6; position: relative; }
.page-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.page-hero .ph-img::before { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(6,20,48,.45), transparent); z-index: 1; }
.page-hero .ph-tag { position: absolute; left: 20px; bottom: 20px; z-index: 2; color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.2; max-width: 80%; }
.breadcrumb { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-700); }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .ph-img { max-width: 480px; aspect-ratio: 4 / 3.6; } }

/* ---------- Strip numeri ---------- */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; color: var(--navy-800); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3)::before { display: none; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1060px) { .g-5, .g-6 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .g-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } .g-5, .g-6 { grid-template-columns: 1fr 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-s); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .8rem; }

.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold-100), #fff); border: 1px solid var(--gold-200); color: var(--gold-700); font-size: 26px; margin-bottom: 1.1rem; }
.ico.navy { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold-400); }
.ico img { width: 30px; height: 30px; }

.feature { text-align: center; padding: 8px 6px; }
.feature .ico { margin: 0 auto 1rem; }
.feature h3 { font-size: 1.18rem; margin-bottom: .3em; }
.feature p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* Problemi */
.pain { padding: 34px 30px; }
.pain .num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold-200); font-weight: 600; position: absolute; right: 24px; top: 18px; }
.pain .who { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-700); margin-bottom: .6rem; display: block; }

/* ---------- Split immagine/testo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .img-frame { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }
.split-media .img-frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .deco { position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--gold-400); border-radius: var(--radius-l); z-index: -1; }
.split.rev .split-media .deco { inset: 22px 22px -22px -22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } .split-media { max-width: 560px; } .split-media .deco { display: none; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.checklist li .i { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); stroke-width: 2.4; margin-top: 1px; }
.checklist li b { color: var(--ink); font-weight: 600; }
.bg-navy .checklist li { color: rgba(255,255,255,.8); }
.bg-navy .checklist li b { color: #fff; }
.bg-navy .checklist li .i { background: rgba(216,183,106,.16); color: var(--gold-400); }

/* ---------- Visione: rete ---------- */
.network { position: relative; max-width: 560px; margin: 0 auto; aspect-ratio: 1; }
.network svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.network svg.lines line { stroke: var(--gold-400); stroke-width: 1.4; stroke-dasharray: 5 7; animation: dash 18s linear infinite; }
.network svg.lines circle.orbit { fill: none; stroke: rgba(195,154,69,.25); stroke-width: 1; }
@keyframes dash { to { stroke-dashoffset: -240; } }
.node { position: absolute; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; text-align: center; box-shadow: var(--shadow); min-width: 128px; }
.node .i { font-size: 26px; color: var(--gold-600); margin: 0 auto 6px; display: block; }
.node b { display: block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); }
.node.center-node { background: var(--grad-navy); border: 0; border-radius: 50%; width: 42%; aspect-ratio: 1; display: grid; place-items: center; padding: 0; box-shadow: 0 0 0 10px rgba(195,154,69,.12), 0 0 0 22px rgba(195,154,69,.06), var(--shadow-l); }
.node.center-node img { width: 44%; margin: 0 auto 6px; }
.node.center-node span { color: #fff; font-family: var(--serif); font-size: clamp(.95rem, 2vw, 1.2rem); line-height: 1.15; display: block; }
.node.center-node span em { color: var(--gold-400); }
@media (max-width: 520px) { .node { min-width: 0; padding: 10px 10px; } .node b { font-size: .66rem; letter-spacing: .08em; } .node .i { font-size: 20px; } }

/* ---------- Filiera ---------- */
.chain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; }
.chain-label { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.chain-label.bad { color: var(--ink-mute); }
.chain-label.good { color: var(--green-it); }
.chain-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chain-step { flex: 1; min-width: 110px; padding: 14px 12px; border-radius: 12px; text-align: center; font-weight: 600; font-size: .86rem; letter-spacing: .04em; background: var(--cream); border: 1px dashed var(--line); color: var(--ink-soft); }
.chain-step.mid { text-decoration: line-through; text-decoration-color: rgba(205,43,43,.6); opacity: .7; }
.chain-step.end { background: var(--navy-800); color: #fff; border: 0; }
.chain.good-chain .chain-step { background: linear-gradient(135deg, #eef8f0, #fff); border: 1px solid #cfe9d6; color: var(--green-it); }
.chain.good-chain .chain-step.end { background: var(--navy-800); color: #fff; border: 0; }
.chain-arrow { color: var(--gold-500); font-size: 20px; flex: none; }
.chain.good-chain .chain-line { flex: 3; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green-it), #fff 50%, var(--red-it)); box-shadow: 0 0 0 1px rgba(0,0,0,.05); min-width: 40px; }
@media (max-width: 560px) { .chain-arrow { display: none; } .chain-step { min-width: calc(50% - 4px); } .chain.good-chain .chain-line { display: none; } }

.fci-badge { display: flex; align-items: center; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.fci-badge:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.fci-badge img { width: 92px; height: auto; flex: none; }
.fci-badge b { display: block; color: var(--navy-800); font-size: 1.02rem; }
.fci-badge span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: calc(100% / var(--n, 3) / 2); right: calc(100% / var(--n, 3) / 2); height: 2px; background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 16px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 8px; }
.step .dot { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold-400); display: grid; place-items: center; font-size: 28px; color: var(--gold-700); box-shadow: 0 0 0 8px var(--cream); position: relative; }
.bg-paper .step .dot { box-shadow: 0 0 0 8px var(--paper); }
.bg-navy .step .dot { background: var(--navy-800); box-shadow: 0 0 0 8px var(--navy-800); color: var(--gold-400); }
.step .dot::after { counter-increment: step; content: counter(step); position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-800); color: var(--gold-200); font: 700 .75rem/24px var(--sans); }
.bg-navy .step .dot::after { background: var(--gold-500); color: var(--navy-900); }
.step h3 { font-size: 1.2rem; margin-bottom: .35em; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.bg-navy .step p { color: rgba(255,255,255,.72); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 460px; margin: 0 auto; }
  .steps::before { top: 34px; bottom: 34px; left: 34px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold-400) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 18px; text-align: left; align-items: start; padding: 0; }
  .step .dot { margin: 0; }
}

/* ---------- Calcolatore LIRE ---------- */
.calc { background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; color: var(--ink); }
.calc-in { padding: clamp(26px, 4vw, 44px); }
.calc-out { padding: clamp(26px, 4vw, 44px); background: linear-gradient(160deg, var(--gold-100), #fff 70%); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.calc h3, .bg-navy .calc h3 { margin-bottom: .2em; color: var(--navy-800); }
.calc .field { margin: 26px 0 0; }
.calc label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .95rem; color: var(--navy-800); margin-bottom: 10px; }
.calc label output { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-700); }
.calc input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gold-500) var(--p, 30%), #ece6d8 var(--p, 30%)); outline-offset: 6px; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-600); box-shadow: 0 4px 10px rgba(0,0,0,.18); cursor: grab; }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-600); cursor: grab; }
.calc .range-hint { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-mute); margin-top: 6px; }
.calc-total { font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
.calc-total b { font-family: var(--serif); font-size: 2.6rem; color: var(--navy-800); display: block; line-height: 1.05; }
.calc-bar { display: flex; height: 54px; border-radius: 14px; overflow: hidden; margin: 18px 0 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.calc-bar .eu, .calc-bar .li { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; transition: flex-basis .35s ease; white-space: nowrap; overflow: hidden; }
.calc-bar .eu { background: var(--navy-800); color: #fff; }
.calc-bar .li { background: var(--grad-gold); color: #2a1e05; }
.calc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-legend div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.calc-legend small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.calc-legend small img { width: 16px; height: 16px; }
.calc-legend b { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-800); }
.calc .note { margin-top: 16px; margin-bottom: 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-out { border-left: 0; border-top: 1px solid var(--line); } }

/* LIRA inline */
.lira { display: inline-flex; align-items: center; gap: .2em; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.lira img { width: 1.05em; height: 1.05em; }

/* Monete */
.coin-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coin { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.coin .disc { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.coin .disc.euro { border: 2px solid var(--navy-800); color: var(--navy-800); }
.coin .disc.lire { background: var(--navy-800); box-shadow: 0 0 0 3px var(--gold-200); }
.coin .disc.lire img { width: 36px; height: 36px; }
.coin h3 { margin-bottom: .2em; }
.coin p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 640px) { .coin-pair { grid-template-columns: 1fr; } }

/* ---------- Pubblico (Privati / Business) ---------- */
.aud { position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; transition: transform .8s ease; }
.aud::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6,20,48,.95) 0%, rgba(6,20,48,.65) 42%, rgba(6,20,48,0) 75%); }
.aud:hover img { transform: scale(1.04); }
.aud-body { padding: clamp(24px, 3.5vw, 40px); }
.aud-body .eyebrow { color: var(--gold-400); }
.aud-body h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.aud-body p { color: rgba(255,255,255,.82); max-width: 44ch; }
.aud-body ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px; }
.aud-body li { font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.aud-body .link-arrow { color: var(--gold-400); }
@media (max-width: 640px) { .aud { min-height: 460px; } }

/* ---------- Striscia categorie ---------- */
.cat-strip { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cat-strip img { width: 100%; height: auto; }
.cat-labels { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; margin-top: 14px; }
.cat-labels span { font-family: var(--serif); font-weight: 600; color: var(--navy-800); font-size: 1rem; padding: 0 6px; line-height: 1.2; }
@media (max-width: 640px) { .cat-labels span { font-size: .72rem; } }

/* ---------- Settori (chip) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--navy-800); }
.chip .i { color: var(--gold-600); font-size: 1.15em; }
.bg-navy .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.bg-navy .chip .i { color: var(--gold-400); }

/* ---------- Esempio (barre) ---------- */
.example { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.example-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 28px; }
.example .big { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--navy-800); line-height: 1; font-weight: 600; }
.example .big small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--ink-mute); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.split-bars { display: grid; gap: 10px; }
.split-bars div { border-radius: 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.split-bars .eu { background: var(--navy-800); color: #fff; }
.split-bars .li { background: var(--grad-gold); color: #2a1e05; }
.split-bars b { font-family: var(--serif); font-size: 1.5rem; }
@media (max-width: 560px) { .example-row { grid-template-columns: 1fr; } }

/* ---------- Citazione ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.8vw, 2.15rem); line-height: 1.35; color: #fff; font-weight: 400; font-style: italic; }
.quote blockquote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold-400); margin-bottom: 14px; font-style: normal; }
.quote figcaption { margin-top: 1.6rem; color: rgba(255,255,255,.75); }
.quote figcaption b { color: var(--gold-400); display: block; font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--gold-200); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; color: var(--navy-800); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; flex: none; transition: transform .25s, background .25s; font-size: 18px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--navy-800); color: var(--gold-200); }
.faq .ans { padding: 0 26px 22px; color: var(--ink-soft); }
.faq .ans p:last-child { margin: 0; }

/* ---------- CTA app ---------- */
.app-cta { background: var(--grad-navy); border-radius: var(--radius-l); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.app-cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(216,183,106,.35), transparent 65%); }
.app-cta h2 { color: #fff; }
.app-cta .lead { color: rgba(255,255,255,.75); }
.app-cta .btn-row { margin-top: 1.6rem; position: relative; z-index: 1; }
.phone { position: relative; z-index: 1; width: 230px; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 38px; background: linear-gradient(160deg, #d9b968, #8a6a24); padding: 7px; box-shadow: var(--shadow-l); transform: rotate(-6deg); }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: radial-gradient(120% 80% at 50% 20%, #1d4287, #0a1f45 60%, #061430); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.phone-screen::before { content: ""; position: absolute; top: 10px; width: 80px; height: 22px; border-radius: 12px; background: #000; }
.phone-screen::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: 14%; height: 60px; border-top: 2px solid rgba(216,183,106,.7); border-radius: 50%; }
.phone-screen img { width: 46%; }
.phone-screen span { font-family: var(--serif); color: var(--gold-400); font-size: 1.35rem; line-height: 1.1; text-align: center; }
@media (max-width: 860px) { .app-cta { grid-template-columns: 1fr; } .phone { width: 180px; } }

/* ---------- Form ---------- */
.form-card { background: var(--paper); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-l); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.fld label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.fld textarea { min-height: 120px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(195,154,69,.15); }
.fld .err { display: none; color: var(--red-it); font-size: .8rem; margin-top: 4px; }
.fld.invalid input, .fld.invalid select, .fld.invalid textarea { border-color: var(--red-it); }
.fld.invalid .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-600); flex: none; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok .ico { margin: 0 auto 1rem; }
.form-card.sent form { display: none; }
.form-card.sent .form-ok { display: block; }
.seg { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--navy-800); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.contact-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-item .ico { margin: 0; width: 48px; height: 48px; font-size: 22px; }
.contact-item small { display: block; color: var(--ink-mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.contact-item b { color: var(--navy-800); font-size: 1.05rem; }

/* ---------- Marchio FCI ---------- */
.laurel { width: 220px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, #fff 55%, var(--gold-100)); border: 2px solid var(--gold-400); box-shadow: 0 0 0 10px rgba(195,154,69,.1), var(--shadow); position: relative; }
.laurel div { font-family: var(--serif); color: var(--gold-700); font-weight: 600; line-height: 1.15; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.laurel div b { display: block; font-size: 2.6rem; letter-spacing: .04em; color: var(--navy-800); margin: 4px 0; }
.laurel .tri { display: flex; width: 70px; height: 5px; margin: 8px auto 0; border-radius: 3px; overflow: hidden; }
.laurel .tri i { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .2s, color .2s; }
.socials a:hover { background: var(--gold-500); color: var(--navy-900); }
.socials svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.footer-stores { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }
.footer-bottom .tricolore { display: inline-flex; width: 60px; height: 4px; border-radius: 2px; overflow: hidden; vertical-align: middle; margin-right: 10px; }
.footer-bottom .tricolore i { flex: 1; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flottante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; stroke: none; }
.wa-float .wa-tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }

/* ---------- Animazioni in entrata ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.maxw-sm { max-width: 640px; }
.disclaimer { margin-top: 28px; font-size: .84rem; color: var(--ink-mute); text-align: center; }
.bg-navy .disclaimer { color: rgba(255,255,255,.55); }

/* Logo Filiera Corta Italiana (ha il fondo bianco) */
.fci-logo { width: 150px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-s); border: 1px solid var(--line); margin-bottom: 18px; }
@media (max-width: 560px) { .topbar .tb-right a:first-child { display: none; } }

/* Niente sbordature su schermi stretti */
.split > *, .grid > *, .form-grid > *, .hero .wrap > *, .page-hero .wrap > * { min-width: 0; }
.fld input, .fld select, .fld textarea { min-width: 0; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }
  .cat-labels { display: none; }
  .hero-ring { inset: -8px; }
  .gwrap { padding-right: 0; }
  .gcard.back { inset: 20px 0 auto auto; width: 90%; }
}

/* ---------- Banner cookie ---------- */
.ck { position: fixed; z-index: 150; left: 20px; bottom: 20px; width: min(460px, calc(100% - 40px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 22px 22px 18px; font-size: .9rem; color: var(--ink-soft); }
.ck[hidden] { display: none; }
.ck h2 { font-size: 1.25rem; margin: 0 28px .4em 0; }
.ck p { margin: 0 0 14px; }
.ck p a { color: var(--navy-700); font-weight: 600; }
.ck-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream); color: var(--navy-800); display: grid; place-items: center; font-size: 16px; }
.ck-x:hover { background: var(--gold-100); }
.ck-prefs { display: grid; gap: 8px; margin-bottom: 14px; }
.ck-prefs[hidden] { display: none; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); cursor: pointer; }
.ck-row b { display: block; color: var(--navy-800); }
.ck-row small { display: block; color: var(--ink-mute); font-size: .8rem; line-height: 1.35; }
.ck-row input { width: 20px; height: 20px; accent-color: var(--navy-800); flex: none; }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ck-btns .btn { padding: .7em .6em; font-size: .86rem; white-space: normal; }
.ck-btns .btn[hidden] { display: none; }
@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: 10px; width: auto; } .ck-btns { grid-template-columns: 1fr 1fr; } .ck-btns .btn-navy { grid-column: 1 / -1; order: -1; } }
.footer-bottom button.linklike { background: none; border: 0; color: inherit; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-bottom button.linklike:hover { color: var(--gold-400); }
/* Logo che si restringe su schermi molto stretti, senza spingere fuori il menu */
.brand { min-width: 0; flex: 0 1 auto; }
.brand img { max-width: 100%; height: auto; max-height: 30px; }
.menu-toggle { flex: none; }

/* Form: trappola per bot, errore dal server, esito */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-err { grid-column: 1 / -1; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #a32020; font-size: .9rem; }
.form-err[hidden] { display: none; }
.form-ok .ok-mail { display: none; }
.form-card.via-mail .form-ok .ok-mail { display: block; }
.form-card.via-mail .form-ok .ok-srv { display: none; }
button[disabled] { opacity: .7; cursor: progress; }
.contact-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
