/* =========================================================
   Tecno Felsinea — foglio di stile (base: motore demicons.it)
   Per cambiare colori e caratteri modifica le variabili qui sotto.
   ========================================================= */
:root {
  --blue: #0a84d6;
  --blue-600: #0869ab;
  --blue-50: #e9f5fd;
  --blue-100: #cfe9fa;
  --orange: #12b3c9;
  --orange-50: #e3f8fb;
  --ink: #10163a;
  --text: #33405e;
  --muted: #6b7690;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 26, 58, .04), 0 8px 24px rgba(13, 26, 58, .06);
  --shadow-lg: 0 2px 4px rgba(13, 26, 58, .04), 0 20px 48px rgba(10, 132, 214, .14);
  --font-title: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }
.icon-lg { width: 40px; height: 40px; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(10, 132, 214, .28); }
.btn-primary:hover { background: var(--blue-600); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(53, 195, 243, .3); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.buttons p { display: contents; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(13, 26, 58, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font-size: 1.08rem; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), #5b8cff); color: #fff; font-weight: 800; font-size: .88rem; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(10, 132, 214, .3); }
.brand-text { font-weight: 800; letter-spacing: -.01em; }
.brand-text b { font-weight: 500; color: var(--muted); margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a, .dd-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 550; font-size: .97rem; background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: none !important; }
.main-nav > ul > li > a:hover, .dd-toggle:hover, .has-dd.open .dd-toggle { background: var(--bg-soft); }
.main-nav a[aria-current="page"], .has-dd.is-active .dd-toggle { color: var(--blue); }
.has-dd { position: relative; }
.dd { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 330px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .18s; }
.has-dd.open .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 961px) { .has-dd:hover .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); } .has-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.dd-item:hover { background: var(--bg-soft); }
.dd-item strong { display: block; font-weight: 650; }
.dd-item small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.dd-icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav { visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > li > a, .dd-toggle { width: 100%; justify-content: space-between; padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; }
  .dd { position: static; transform: none !important; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; }
  .has-dd.open .dd { display: block; }
  .nav-cta { padding: 16px 8px 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- testata pagine interne ---------- */
.page-hero { position: relative; padding: 72px 0 56px; background: radial-gradient(900px 380px at 85% -10%, rgba(10, 132, 214, .14), transparent 60%), radial-gradient(600px 300px at 0% 120%, rgba(53, 195, 243, .10), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 880px; font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.page-hero .lead { max-width: 760px; font-size: 1.18rem; color: var(--text); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 650; font-size: .8rem; }

.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 550; font-size: .93rem; text-decoration: none; }
.subnav a:hover { background: var(--bg-soft); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--blue); color: #fff; }

/* ---------- testo lungo (pagine e articoli) ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 0 80px; }
.layout-page .prose { max-width: 860px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.prose h3 { margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); }
.prose ul ul, .prose ol ul { margin: .4em 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 1em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--orange); background: var(--orange-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--ink); color: #e6ecff; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.post-back { max-width: 780px; margin: -40px auto 80px; }

/* ---------- blocchi riutilizzabili (usati con ::: nei file .md) ---------- */
.callout { display: flex; gap: 14px; padding: 20px 22px; margin: 1.6em 0; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--ink); }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--orange-50); border-color: #ffd9bd; }
.callout p { margin: 0 0 .5em; }
.highlight { padding: 26px 28px; margin: 1.8em 0; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), #4f7dff); color: #fff; box-shadow: var(--shadow-lg); }
.highlight h2, .highlight h3, .highlight strong { color: #fff; }
.highlight > :last-child { margin-bottom: 0; }
.faq { margin: 1.6em 0; }
.faq h3, .faq h4 { margin-top: 1.2em; padding-left: 14px; border-left: 3px solid var(--orange); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; margin: 1.6em 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.1em; }
.card .icon { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; display: block; }
.card.accent .icon { background: var(--orange-50); color: var(--orange); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .more { font-weight: 650; }

/* prezzi */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 1.6em 0 2.4em; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before { content: "Più scelto"; position: absolute; top: -13px; left: 24px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.price-card h3 { margin: 0 0 2px; font-size: 1.3rem; }
.price-card h4 { margin: 0 0 12px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.price-card .price, .price-card p.price { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 8px 0 14px; line-height: 1.1; }
.price-card .price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1em; font-size: .95rem; }
.price-card li { padding: 6px 0 6px 26px; position: relative; border-top: 1px dashed var(--line); }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.price-card p { font-size: .95rem; }
.price-card > :last-child { margin-bottom: 0; margin-top: auto; }

/* statistiche */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 2em 0; }
.stat { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat p { margin: 0; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 4px; }

/* passi numerati */
.steps ol { list-style: none; counter-reset: s; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 52px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }

/* elenco con spunte */
.checklist ul { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a84d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.checklist.cross li::before { background: #fff0f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0443e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/11px no-repeat; }

/* download */
.download { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin: 1.2em 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.download p { margin: 0; flex: 1 1 260px; }
.download p:last-child { flex: 0 0 auto; }

/* ---------- HOME ---------- */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; background: radial-gradient(1000px 500px at 90% -10%, rgba(10, 132, 214, .18), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(53, 195, 243, .13), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,.6), transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,.6), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), #35c3f3 60%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead, .hero-copy > p { font-size: 1.2rem; max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); margin-bottom: 22px; }
.hero-badge span { background: var(--orange); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
.hero-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card h3 { margin-bottom: 4px; }
.hero-card .big { font-size: 3.6rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; color: var(--blue); margin: 18px 0 6px; }
.hero-card .big small { font-size: 1.4rem; color: var(--muted); font-weight: 700; }
.hero-card .bar { height: 10px; border-radius: 999px; background: var(--blue-50); overflow: hidden; margin: 18px 0 8px; }
.hero-card .bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.hero-card ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .95rem; }
.hero-card li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.hero-card li .icon { color: var(--blue); }
.hero-float { position: absolute; right: -14px; top: -18px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 14px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg); transform: rotate(3deg); }

.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-head .eyebrow { justify-content: center; }

.product-card { display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.35rem; }
.product-card p { color: var(--text); }
.product-card .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.product-card > :last-child { margin-top: auto; padding-top: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * > :last-child { margin-bottom: 0; }

.tech { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.tech p { display: contents; }
.tech code, .chip { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: .9rem; color: var(--ink); }

.cta-band { margin: 0 auto; padding: 56px; border-radius: 28px; background: radial-gradient(600px 300px at 100% 0%, rgba(53, 195, 243, .45), transparent 60%), linear-gradient(135deg, #173fb8, var(--blue) 50%, #4f7dff); color: #dfe8ff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .buttons { justify-content: flex-end; margin: 0; }
.cta-band a:not(.btn) { color: #fff; }
.section.cta { padding: 40px 0 96px; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 1.5em 0; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border: 0; border-radius: 0; margin: 0; box-shadow: none; }
.post-card-art { aspect-ratio: 16/9; display: grid; place-items: center; color: var(--blue); background: radial-gradient(300px 150px at 80% 0%, rgba(53, 195, 243, .18), transparent 70%), linear-gradient(135deg, var(--blue-50), #fff); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .5em; }
.post-card p { font-size: .95rem; }
.post-card .post-meta { margin-bottom: 10px; font-size: .85rem; }
.link-more { margin-top: auto; color: var(--blue); font-weight: 650; font-size: .95rem; }
.layout-page .prose .post-grid { margin-left: -60px; margin-right: -60px; }

/* contatti */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 1.5em 0 2em; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-card .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 12px; display: block; }
.contact-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 650; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #aab5d1; padding: 72px 0 28px; font-size: .95rem; }
.site-footer a { color: #dfe6f7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; }
.brand-light { color: #fff; }
.brand-light .brand-text b { color: #aab5d1; }
.footer-brand p { margin: 16px 0 18px; max-width: 340px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .icon { color: var(--orange); margin-top: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-legal p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-band .buttons { justify-content: flex-start; }
  .layout-page .prose .post-grid { margin-left: 0; margin-right: 0; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float { right: 8px; }
  .page-hero { padding: 48px 0 40px; }
  .prose { padding: 40px 0 64px; }
}

/* animazione d'ingresso leggera */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* tabelle senza intestazione (es. dati aziendali) */
thead tr:has(> th:first-child:empty + th:last-child:empty) { display: none; }
.cvl-logo { float: right; width: 260px; max-width: 45% !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 0 1em 1.5em !important; }

.section > .container > .buttons { justify-content: center; }
html, body { overflow-x: clip; }
.card-logo { display: block; height: 52px; width: auto; margin: -3px 0 11px -6px; }
.price-card.nobadge::before { display: none; }
.price-card.compact > :last-child { margin-top: 0; }

/* codice nelle schede: va a capo invece di uscire dal riquadro */
.card code { display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-all; padding: 8px 10px; margin: .4em 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; font-size: .85em; }

/* ---------- pagine prodotto "presentazione" ---------- */
.shot { display: block; width: 100%; height: auto; }
.hero .shot { max-width: 100%; margin-left: auto; }
.hero-grid.wide { grid-template-columns: .9fr 1.1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 0; }
.chips p { display: contents; }
.chips code, .chip-l { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); }
.section.dark { background: radial-gradient(800px 400px at 100% 0%, rgba(53, 195, 243, .35), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(53, 195, 243, .18), transparent 60%), #0b1633; color: #c3cde6; }
.section.dark h2, .section.dark h3, .section.dark strong { color: #fff; }
.section.dark .eyebrow { color: #9fb4ff; }
.section.dark .chips code { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.section.dark .checklist li::before { background-color: rgba(255, 255, 255, .12); }
.split.reverse > :first-child { order: 2; }
.area-title { display: flex; align-items: center; gap: 12px; margin: 56px 0 18px; }
.area-title h3 { margin: 0; font-size: 1.35rem; }
.area-title .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.form-card h4 { margin: 0 0 10px; font-size: 1.05rem; }
.form-card p { margin: 0 0 6px; font-size: .94rem; line-height: 1.5; }
.form-card p:last-child { margin: 0; }
.form-card p strong { color: var(--blue); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.form-card p:last-child strong { color: var(--orange); }
.phone-shot { max-width: 340px; margin: 0 auto; }
@media (max-width: 960px) { .hero-grid.wide { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } .hero .shot { margin: 0 auto; } }
.section.hero { padding: 96px 0 88px; }
.hero-grid.wide h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); }
@media (max-width: 960px) { .section.hero { padding: 64px 0; } }

/* ---------- testimonianze (pagina Clienti) ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: 22px; margin: 0 0 48px; padding-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.testimonial > * { margin-left: 34px; margin-right: 34px; }
.testimonial > p:first-child { margin: 0 0 26px; }
.prose .t-photo { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 40%; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.testimonial.logo > p:first-child { margin: 34px 34px 10px; }
.prose .t-logo { width: 92px; height: auto; border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.prose .t-company { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.prose .testimonial blockquote { background: none; border-left: 4px solid var(--orange); padding: 2px 0 2px 20px; margin-top: 0; margin-bottom: 14px; border-radius: 0; }
.prose .testimonial blockquote p { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.35; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.prose .t-author { color: var(--muted); margin-bottom: 14px; }
.prose .t-author strong { color: var(--ink); }
.chips a { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 650; font-size: .88rem; text-decoration: none; }
.chips a:hover { background: var(--blue); color: #fff; }
.testimonial .chips { margin: 0 34px 22px; }
@media (max-width: 560px) {
  .testimonial > *, .testimonial .chips { margin-left: 20px; margin-right: 20px; }
  .testimonial.logo > p:first-child { margin: 24px 20px 8px; }
}

/* citazione cliente dentro le pagine prodotto/servizio */
.quote-card { display: flex; align-items: center; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 32px; margin: 2em 0; box-shadow: var(--shadow); }
.quote-card > p:first-child { flex-shrink: 0; margin: 0; }
.quote-card .qc-img, .prose .quote-card .qc-img { display: block; border: 0; box-shadow: none; margin: 0; }
.quote-card .qc-logo { width: 96px; height: auto; border-radius: 0; }
.quote-card .qc-photo, .prose .quote-card .qc-photo { width: 170px; height: 130px; object-fit: cover; border-radius: 16px; }
.quote-card .qc-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.quote-card blockquote, .prose .quote-card blockquote { background: none; border: 0; border-left: 4px solid var(--orange); border-radius: 0; margin: 0 0 10px; padding: 0 0 0 18px; }
.quote-card blockquote p { font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.4; font-weight: 700; color: var(--ink); margin: 0; }
.quote-card .qc-author { margin: 0; color: var(--muted); font-size: .95rem; }
.quote-card .qc-author strong { color: var(--ink); }
@media (max-width: 640px) { .quote-card { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; } }

/* =========================================================
   TECNO FELSINEA — strato grafico proprio (bolle, spettro, servizi a colori)
   ========================================================= */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --c1: #ff4f81; --c2: #ff8a3d; --c3: #f5b700; --c4: #22c38e; --c5: #2ec5ff; --c6: #7b61ff;
  --spettro: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6));
  --azz2: #35c3f3;
  --radius: 22px;
}
h1, h2, h3, h4, .brand-text, .stat strong { font-family: var(--font-title); letter-spacing: -.012em; }
h1 { font-weight: 800; }
.spettro-bar { height: 5px; background: var(--spettro); }

/* marchio a bolla */
.brand-mark.bubble { width: 36px; height: 36px; border-radius: 50%; background:
  radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 12%, transparent 13%),
  conic-gradient(from 200deg, #35c3f3, #8fa8ff, #7fe3d6, #0a84d6, #35c3f3);
  box-shadow: inset -5px -7px 12px rgba(255,255,255,.7), 0 4px 12px rgba(10,132,214,.25); }
.brand-text small { display: block; font-family: var(--font); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -3px; }
@media (max-width: 520px) { .brand-text small { display: none; } }

/* pulsanti */
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--azz2)); border-color: transparent; box-shadow: 0 8px 22px rgba(10,132,214,.28); border-radius: 999px; }
.btn-primary:hover { background: linear-gradient(90deg, var(--blue-600), var(--blue)); }
.btn-ghost { border-radius: 999px; }
.btn-light { border-radius: 999px; }

/* hero con bolle */
.hero { background: radial-gradient(1100px 520px at 85% -10%, #e6f4fd, transparent 65%), #fff; }
.hero::before { display: none; }
.hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--blue); }
.hero-badge span { background: var(--c4); }
.bolle { position: relative; height: 440px; }
.bolla { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 9%, transparent 10%),
              conic-gradient(from 120deg, rgba(53,195,243,.55), rgba(143,168,255,.45), rgba(190,160,255,.35), rgba(120,230,220,.45), rgba(10,132,214,.45), rgba(53,195,243,.55));
  box-shadow: inset 0 0 40px rgba(255,255,255,.9), inset -14px -18px 40px rgba(255,255,255,.6), 0 20px 60px rgba(10,132,214,.18);
  animation: fluttua 9s ease-in-out infinite; }
.bolla.b1 { width: 300px; height: 300px; left: 10%; top: 40px; }
.bolla.b2 { width: 150px; height: 150px; right: 6%; top: 0; animation-delay: -3s; }
.bolla.b3 { width: 110px; height: 110px; right: 14%; bottom: 20px; animation-delay: -6s; }
.bolla.b4 { width: 60px; height: 60px; left: 2%; bottom: 40px; animation-delay: -1.5s; }
@keyframes fluttua { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .bolla { animation: none; } }
.card-float { position: absolute; left: 40%; bottom: 36px; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: 0 16px 40px rgba(16,22,58,.12); font-size: .9rem; display: flex; gap: 12px; align-items: center; line-height: 1.35; }
.card-float .icon { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, var(--c4), var(--azz2)); color: #fff; }
.card-float span { color: var(--muted); }
@media (max-width: 960px) { .bolle { height: 300px; } .bolla.b1 { width: 210px; height: 210px; } .card-float { left: auto; right: 0; } }
.numeri { display: flex; gap: 34px; margin-top: 36px; }
.numeri strong { display: block; font-family: var(--font-title); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.numeri span { font-size: .85rem; color: var(--muted); }

/* striscia fiducia */
.strip { background: var(--ink); color: #fff; }
.strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; font-weight: 500; font-size: .95rem; }
.strip p { display: contents; }
.strip span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 10px; background: var(--azz2); }

/* card servizi a colori */
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .srv-grid { grid-template-columns: 1fr; } }
.srv { --c: var(--c5); position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--text); text-decoration: none !important; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.srv::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .12; transition: transform .35s; }
.srv:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(16,22,58,.1); }
.srv:hover::before { transform: scale(1.6); }
.srv .icon { width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--c); color: #fff; margin-bottom: 16px; }
.srv h3 { margin-bottom: 6px; }
.srv p { color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.srv .more { font-weight: 600; font-size: .92rem; color: var(--c); }
.c-azzurro { --c: var(--c5); } .c-viola { --c: var(--c6); } .c-arancio { --c: var(--c2); } .c-rosa { --c: var(--c1); } .c-verde { --c: var(--c4); } .c-bosco { --c: #1f9d5c; }

/* perché noi */
.section.soft-round { background: var(--bg-soft); border-radius: 48px; margin: 0 16px; }
.punti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .punti { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .punti { grid-template-columns: 1fr; } }
.punto { background: #fff; border-radius: 22px; padding: 26px; border: 1px solid var(--line); }
.punto strong { display: block; font-family: var(--font-title); font-size: 2.2rem; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.punto h3 { font-size: 1.08rem; margin-bottom: 4px; }
.punto p { color: var(--muted); font-size: .92rem; margin: 0; }

/* settori */
.settori { display: flex; flex-wrap: wrap; gap: 12px; }
.settori p { display: contents; }
.settori code { font-family: var(--font); font-size: .98rem; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; color: var(--ink); }
.settori code:nth-of-type(6n+1) { border-color: var(--c1); } .settori code:nth-of-type(6n+2) { border-color: var(--c2); } .settori code:nth-of-type(6n+3) { border-color: var(--c3); }
.settori code:nth-of-type(6n+4) { border-color: var(--c4); } .settori code:nth-of-type(6n+5) { border-color: var(--c5); } .settori code:nth-of-type(6n) { border-color: var(--c6); }

/* fascia preventivo */
.cta-band { position: relative; overflow: hidden; border-radius: 40px; padding: 60px 48px; color: #fff; background: linear-gradient(120deg, #0a5fa8, #0a84d6 45%, #35c3f3); }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.15) 60%, transparent 70%); pointer-events: none; }
.cta-band h2, .cta-band strong { color: #fff; }
.cta-band p { font-size: 1.1rem; max-width: 580px; opacity: .95; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-light { background: #fff; color: var(--ink); }
@media (max-width: 600px) { .cta-band { padding: 40px 24px; border-radius: 28px; } }

/* intestazione pagine interne: fondo azzurrino con bolla */
.page-hero { background: radial-gradient(900px 420px at 90% -20%, #e0f2fd, transparent 65%), var(--bg-soft); }
.srv-hero-mark { display: inline-flex; width: 56px; height: 56px; padding: 13px; border-radius: 18px; background: var(--c); color: #fff; margin-bottom: 12px; }
.cta-band { display: block; }
.cta-band .buttons { justify-content: flex-start; margin-top: 22px; }
.cta-band p { margin: 0 0 .4em; }
/* logo aziendale */
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-logo-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; }
.brand-logo-tile img { width: 40px; height: 40px; object-fit: contain; }
/* foto dei servizi */
.srv { padding-top: 0; }
.srv-img { display: block; width: calc(100% + 56px); max-width: none; height: 180px; object-fit: cover; margin: 0 -28px 0; }
.srv > .icon { position: relative; margin-top: -26px; border: 3px solid #fff; box-sizing: content-box; }
.srv::before { z-index: 1; }
.srv-foto { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 24px; margin: 0 0 32px; box-shadow: 0 18px 40px rgba(16,22,58,.12); }
.prodotti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 1.5em; }
.prodotti figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; }
.prodotti img { width: 100%; height: 150px; object-fit: contain; }
.prodotti figcaption { font-size: .9rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
@media (max-width: 600px) { .prodotti { grid-template-columns: 1fr 1fr; } }
