/* Bussola — sito. Palette MCS Project. Mobile-first, nessuna dipendenza. */
:root {
  --teal: #007476; --teal-2: #009b9b; --deep: #004556; --ink: #1d242d; --text: #323232;
  --muted: #5d6670; --soft: #e8f4f4; --soft-2: #f4fafa; --line: #cfe3e3; --coral: #f2665e;
  --amber: #e0a526; --amber-bg: #fff6e0; --amber-ink: #6f4a00; --ok: #2f9e6a; --ok-ink: #1f6f4a; --bad-ink: #a8322b;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(0, 69, 86, .10); --shadow-sm: 0 2px 10px rgba(0, 69, 86, .08);
  --maxw: 1160px; --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: #fff; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.25rem); font-weight: 800; color: var(--teal); }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; color: var(--deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0 0 .45em; }
b, strong { color: var(--ink); font-weight: 700; }
em { font-style: normal; color: var(--teal); font-weight: 600; }
.dot { color: var(--coral); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 62ch; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .cta-band :focus-visible { outline-color: #fff; }
.wrap { width: min(calc(100% - 32px), var(--maxw)); margin-inline: auto; }
svg.mi, svg.i-arrow { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Salta al contenuto */
.skip { position: absolute; left: 12px; top: -60px; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; z-index: 100; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 0; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hbar { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand .wordmark { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--teal); line-height: 1; padding-left: 12px; border-left: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--deep); cursor: pointer; }
.js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars i { top: 5px; } .nav-toggle .bars::after { bottom: 0; }
.nav { display: block; width: 100%; padding: 8px 0 16px; }
.js .nav { display: none; }
.js .nav.open { display: block; }
.hbar { flex-wrap: wrap; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a, .nav .sub-btn { display: block; padding: 11px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--soft); background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; font-size: 1rem; width: 100%; text-align: left; cursor: pointer; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.sub-btn::after { content: none; }
.nav .sub { padding-left: 14px; }
.nav .sub a { font-weight: 500; }
.nav a.cta { display: inline-block; margin-top: 12px; width: auto; background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 999px; padding: 10px 20px; text-decoration: none; }
.nav a.cta:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.nav a.app-link { color: var(--teal); }
@media (min-width: 1200px) { .nav a.app-link { border: 2px solid var(--teal); border-radius: 999px; padding: 8px 16px; border-bottom-width: 2px; width: auto; white-space: nowrap; } .nav a.app-link:hover { background: var(--soft); } }
@media (min-width: 1200px) {
  .js .nav-toggle, .nav-toggle { display: none; }
  .hbar { flex-wrap: nowrap; }
  .nav, .js .nav { display: block !important; width: auto; padding: 0; }
  .nav > ul { display: flex; align-items: center; gap: 4px; }
  .nav a, .nav .sub-btn { border: 0; padding: 10px 10px; width: auto; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
  .nav a:hover, .nav .sub-btn:hover { background: var(--soft-2); }
  .has-sub { position: relative; }
  .sub-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; }
  .nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 290px; z-index: 5; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
  .nav .sub a { border-radius: 8px; padding: 9px 12px; white-space: normal; }
  .nav a.cta { margin: 0 0 0 8px; padding: 10px 18px; border: 2px solid var(--teal); }
  .nav a.cta:hover { background: var(--deep); }
}

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn .i-arrow { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--soft); color: var(--deep); border-color: var(--teal); }
.btn-light { background: #fff; color: var(--deep); border-color: #fff; }
.btn-light:hover { background: var(--soft); color: var(--deep); border-color: var(--soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* Sezioni */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--soft-2); border-block: 1px solid var(--soft); }
.section.teal { background: var(--teal); color: #fff; }
.section.teal h2, .section.teal h3, .section.teal b { color: #fff; }
.section.teal a:not(.btn) { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head p.eyebrow, .section.teal .section-head p.eyebrow { color: var(--teal); font-size: .78rem; margin: 0 0 .9rem; }
.section.teal .section-head p { color: #e8f4f4; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--soft-2), #fff); overflow: hidden; }
.hero .grid { display: grid; gap: 40px; align-items: center; }
.hero h1 .brandword { color: var(--teal); }
.hero .sub { font-size: 1.15rem; max-width: 56ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.pills li { margin: 0; background: var(--soft); color: var(--deep); font-weight: 600; font-size: .86rem; padding: 6px 14px; border-radius: 999px; }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 380px; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.05fr .95fr; } }
.page-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--soft-2), #fff); border-bottom: 1px solid var(--soft); }
.page-hero h1 { max-width: 20ch; font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero.wide h1 { max-width: 26ch; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Griglie e carte */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } .cards.c5 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card > :last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal-2); color: inherit; }
.card h3 { margin-bottom: .45em; }
.card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; margin-top: .4rem; }
.card .more svg { width: 16px; height: 16px; }
.ico { width: 46px; height: 46px; border-radius: 50%; background: var(--soft); color: var(--teal); padding: 11px; flex: none; display: inline-block; }
.ico.lg { width: 56px; height: 56px; padding: 14px; }
.card .ico { margin-bottom: 14px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--soft); color: var(--teal); border-radius: 999px; padding: 3px 11px; vertical-align: middle; }
.badge.entry { background: var(--teal); color: #fff; }

/* Prima / dopo */
.ba { display: grid; gap: 18px; }
@media (min-width: 800px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba > div { border-radius: var(--radius); padding: 24px; }
.ba .oggi { background: #fff; border: 1px solid var(--line); }
.ba .con { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.ba h3 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
.ba .oggi h3 { color: var(--muted); }
.ba .con h3 { color: #cfeeee; }
.ba ul { list-style: none; padding: 0; margin: 0; }
.ba li { position: relative; padding-left: 32px; margin-bottom: .8em; }
.ba li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; }
.ba .oggi li::before { border: 2px solid var(--line); background: #fff; }
.ba .oggi li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 6px); width: 8px; height: 2px; background: var(--muted); }
.ba .con li { color: #fff; font-weight: 500; }
.ba .con li::before { background: #fff; }
.ba .con li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 6px; height: 10px; border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.8); }

/* Elenchi con spunta */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.28em + 3.5px); width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.arrows { list-style: none; padding: 0; }
.arrows li { position: relative; padding-left: 30px; }
.arrows li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); }
.arrows li::after { content: ""; position: absolute; left: 6px; top: calc(.28em + 6px); width: 8px; height: 8px; border: solid var(--teal); border-width: 2px 2px 0 0; transform: rotate(45deg) scale(.75); }

/* Passi */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps.s4 { grid-template-columns: repeat(4, 1fr); } .steps.s3 { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.steps > li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin-bottom: .5em; }
.steps .when { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

/* Avvertenze */
.note { background: var(--amber-bg); border-left: 5px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 1.4rem 0; color: #4a3500; font-size: .95rem; }
.note > :last-child { margin-bottom: 0; }
.note b { color: #4a3500; }
.note.info { background: var(--soft); border-left-color: var(--teal-2); color: var(--deep); }
.note.info b { color: var(--deep); }
.callout { background: var(--soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.callout > :last-child { margin-bottom: 0; }
.quote { border-left: 4px solid var(--teal-2); background: var(--soft-2); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.05rem; color: var(--ink); max-width: 70ch; }

/* Mock (schermate illustrative) */
.mock-fig { margin: 0; }
.mock-fig figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; font-size: .86rem; line-height: 1.35; max-width: 380px; margin-inline: auto; }
.mock-h { margin-bottom: 12px; }
.phone { font-size: .86rem; line-height: 1.35; }
.mock-h b, .phone .mock-h b { display: block; color: var(--ink); font-size: .98rem; }
.mock-h span { color: var(--muted); font-size: .78rem; }
.mock ul, .phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mock li, .phone li { margin: 0; display: flex; align-items: center; gap: 9px; background: var(--soft-2); border: 1px solid var(--soft); border-radius: 10px; padding: 8px 10px; color: var(--text); }
.mock li .mi, .phone li .mi { width: 22px; height: 22px; color: var(--teal); flex: none; }
.mock li .t, .phone li .t { flex: 1; min-width: 0; }
.mock li .v, .phone li .v { font-weight: 700; color: var(--ink); white-space: nowrap; }
.st { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: #dff3ea; color: var(--ok-ink); }
.st.warn { background: #fff1d6; color: var(--amber-ink); }
.st.bad { background: #fdeceb; color: var(--bad-ink); }
.st.na { background: #eceff1; color: var(--muted); }
.dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ok); }
.dotc.warn { background: var(--amber); } .dotc.bad { background: var(--coral); } .dotc.na { background: #b9c3c8; }
.mock .chip { display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 600; background: var(--soft); color: var(--deep); border-radius: 999px; padding: 3px 11px; }
.bars { display: grid; gap: 10px; }
.bars .r { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; }
.bars .bar { height: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bars .bar i { display: block; height: 100%; border-radius: 99px; background: var(--teal); width: var(--w); transform-origin: left; animation: grow 1.1s ease-out both; }
.bars .bar i.lt { background: #9fcfd0; } .bars .bar i.co { background: var(--coral); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gantt { display: grid; gap: 8px; }
.gantt .r { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; font-size: .78rem; }
.gantt .track { position: relative; height: 16px; background: var(--soft-2); border-radius: 6px; border: 1px solid var(--soft); }
.gantt .track i { position: absolute; top: 2px; bottom: 2px; left: var(--l); width: var(--w); background: var(--teal); border-radius: 4px; }
.gantt .track i.co { background: var(--coral); } .gantt .track i.lt { background: #7fbfc0; }
.cols { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.cols i { flex: 1; background: var(--teal); border-radius: 5px 5px 0 0; height: var(--h); animation: rise 1s ease-out both; }
.cols i.lt { background: #9fcfd0; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.mock .btnmock, .phone .btnmock { display: block; text-align: center; background: var(--teal); color: #fff; font-weight: 700; border-radius: 999px; padding: 9px; margin-top: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.thumbs i { aspect-ratio: 1.3; background: linear-gradient(135deg, #bfe0e0, #e8f4f4); border-radius: 8px; }
.hyp { margin: 10px 0 5px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.hyp:first-child { margin-top: 0; }
.qa { display: grid; gap: 8px; }
.qa p { margin: 0; padding: 8px 11px; font-size: .84rem; line-height: 1.35; }
.qa .q { justify-self: end; max-width: 88%; background: var(--teal); color: #fff; border-radius: 14px 14px 4px 14px; font-weight: 600; }
.qa .a { justify-self: start; max-width: 94%; background: var(--soft-2); border: 1px solid var(--soft); border-radius: 14px 14px 14px 4px; color: var(--text); }
.qa .a small { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); }
/* telefono hero */
.phone { width: 260px; background: #fff; border: 8px solid var(--ink); border-radius: 36px; padding: 16px 12px 14px; box-shadow: var(--shadow); position: relative; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.phone::before { content: ""; display: block; width: 70px; height: 6px; border-radius: 6px; background: var(--ink); margin: -6px auto 12px; opacity: .85; }
.phone .mock-h { margin-bottom: 10px; }
.phone ul { gap: 6px; }
.hero-art .side { display: none; }
.hero-art .side .mock { padding: 14px; }
.hero-art .cap { position: absolute; left: 0; right: 0; bottom: -38px; text-align: center; font-size: .8rem; color: var(--muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1099px) { .hero-art { min-height: 0; flex-direction: column; align-items: center; gap: 12px; } .hero-art .cap { position: static; } .phone { width: 250px; } }
@media (min-width: 1100px) { .hero-art { justify-content: flex-start; padding-left: 20px; } .hero-art .side { display: block; position: absolute; right: 0; bottom: 36px; width: 250px; z-index: 3; animation: floaty 8s ease-in-out infinite reverse; } }

/* Modulo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem; color: var(--deep); }
.chips a:hover { border-color: var(--teal); background: var(--soft); }
.chips a .n { color: var(--muted); font-weight: 500; }
.module { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--soft); }
.module:last-of-type { border-bottom: 0; }
.module .m-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.module .m-head h2 { margin-bottom: .15em; }
.module .m-num { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin: 0 0 4px; }
.module .m-q { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 700; color: var(--ink); margin: 14px 0 6px; }
.module .m-tag { font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 70ch; }
.module .m-grid { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 900px) { .module .m-grid { grid-template-columns: 1.35fr .85fr; align-items: start; } }
.module h3.sh { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 1.4rem 0 .7rem; }
.module h3.sh:first-child { margin-top: 0; }
.linkbox { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 700px) { .linkbox { grid-template-columns: repeat(3, 1fr); } }
.linkbox > div { background: var(--soft-2); border: 1px solid var(--soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.linkbox b { display: block; color: var(--teal); }
.try { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: .95rem; }
.try b { color: #fff; display: block; margin-bottom: 4px; letter-spacing: .02em; }

/* Settori */
.sector-card h3 { color: var(--teal); }
.q-card h3 { font-size: 1.08rem; color: var(--ink); }
.q-card p { color: var(--text); font-size: .98rem; }
.pr-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pr-list li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 4px; }
.pr-list li b { color: var(--teal); }
@media (min-width: 760px) { .pr-list li { grid-template-columns: 220px 1fr; gap: 24px; align-items: start; } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 52px 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] { border-color: var(--teal-2); }
.faq .ans { padding: 0 20px 18px; }
.faq .ans > :last-child { margin-bottom: 0; }
.faq h2.fg { font-size: 1.3rem; margin: 2.2rem 0 1rem; }
.faq h2.fg:first-child { margin-top: 0; }

/* Tabelle */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tbl th { background: var(--teal); color: #fff; text-align: left; padding: 10px 14px; font-size: .86rem; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:nth-child(even) td { background: var(--soft-2); }
@media (max-width: 639px) {
  .tbl.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { border-top: 1px solid var(--line); padding: 6px 0; }
  .tbl.stack tr:first-child { border-top: 0; }
  .tbl.stack td { border: 0; padding: 4px 14px; background: transparent !important; }
  .tbl.stack td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
}

/* Calendario 30 giorni */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.timeline li { margin: 0; display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius-sm); padding: 14px 18px; }
.timeline .days { font-weight: 800; color: var(--teal); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 170px 1fr; gap: 20px; align-items: baseline; } }

/* Modulo di richiesta */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label, .lbl { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--bad-ink); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9db8b8; border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--deep); outline-offset: 1px; border-color: var(--deep); }
fieldset { border: 1.5px solid #9db8b8; border-radius: 12px; padding: 14px 16px 6px; margin: 0; min-width: 0; }
legend { font-weight: 600; color: var(--ink); padding: 0 8px; font-size: .95rem; }
.checkgrid { display: grid; gap: 4px 18px; }
@media (min-width: 700px) { .checkgrid { grid-template-columns: 1fr 1fr; } }
.chk { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin-bottom: 10px; cursor: pointer; line-height: 1.4; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.compose { margin-top: 18px; }
.compose[hidden] { display: none; }
.compose textarea { min-height: 200px; font-size: .9rem; }

/* CTA finale */
.cta-band { background: var(--teal); color: #fff; padding: clamp(40px, 7vw, 72px) 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band p { color: #e8f4f4; max-width: 56ch; margin-inline: auto; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .94rem; color: var(--deep); }
.fgrid { display: grid; gap: 28px; }
@media (min-width: 760px) { .fgrid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img { height: 44px; width: auto; display: block; margin-bottom: 12px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: var(--deep); }
.site-footer a:hover { color: var(--teal); }
.fsmall { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); display: grid; gap: 4px; }

/* Download */
.dl { display: flex; flex-direction: column; }
.dl .meta { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.dl .btn { margin-top: auto; align-self: flex-start; }

/* Contatti */
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin: 0; }
.contact-list a { font-weight: 700; font-size: 1.1rem; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .cta-band, .site-footer, .skip { display: none; } }
