/* Artiko: foglio di stile comune dell'hub.
   Palette e font sono gli stessi di hosting.artiko.ai e duo.artiko.ai. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f5f7fa;
  --card: #ffffff;
  --ink: #101827;
  --text: #1a2233;
  --muted: #5b6472;
  --line: #dce1e8;
  --lime: #c5f778;
  --lime-deep: #9fdc3f;
  --on-lime: #101827;
  --band: #101827;
  --band-text: #f5f7fa;
  --band-muted: #b7bfcc;
  --focus: #2f6fed;
  --shadow: 0 10px 30px rgba(16, 24, 39, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1020;
    --card: #141a2a;
    --ink: #f1f3f7;
    --text: #e8ebf1;
    --muted: #a5adbb;
    --line: #273043;
    --band: #0b1020;
    --band-text: #f1f3f7;
    --band-muted: #a5adbb;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: normal; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--muted); font-size: 19px; max-width: 60ch; }
.muted { color: var(--muted); }

/* Barra in alto */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--band);
  background: color-mix(in srgb, var(--band) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--band-text);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--band-muted); }
.top nav a:hover, .top nav a.on { color: var(--band-text); }
@media (max-width: 720px) { .top nav { display: none; } .top .wrap { gap: 12px; } .top .btn-sm { margin-left: auto; } }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--band-text); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--text); }

/* Bande e sezioni */
.band { background: var(--band); color: var(--band-text); }
.band .kicker { color: var(--lime); }
.band .lead { color: var(--band-muted); }
.hero { padding: 72px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero .lead { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--band-muted); }
.hero-side { display: grid; gap: 14px; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
}
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row p { color: var(--muted); }

/* Griglie e schede */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  padding: 26px 24px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  min-width: 0;
}
.card.lift { box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--line); background: color-mix(in srgb, var(--lime) 28%, var(--card));
  color: var(--ink); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

/* Tile prodotto (riusa il tile del marchio) */
.tile { width: 56px; height: 56px; border-radius: 15px; background: #101827; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.tile svg { width: 32px; height: 32px; }
.tile.lg { width: 72px; height: 72px; border-radius: 19px; }
.tile.lg svg { width: 40px; height: 40px; }

/* Scheda app in home */
.app {
  display: grid; gap: 12px; align-content: start;
  padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: inherit; min-width: 0;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.app:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.app h3 { font-size: 19px; }
.app p { color: var(--muted); font-size: 15px; }
.app .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.app .price { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--lime); color: var(--on-lime); }
.app .price.soon { background: var(--line); color: var(--text); }
.app .go { font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--lime); }
.app.soon { border-style: dashed; }
.app.soon .tile { background: var(--muted); }

/* Pagina prodotto */
.product-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.product-hero .wrap > * { min-width: 0; }
.product-hero .title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.product-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.product-hero .lead { margin-top: 0; }
.product-hero .price-line { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 15px; color: var(--band-muted); }
.product-hero .price-line b { color: var(--band-text); font-size: 17px; }
@media (max-width: 860px) { .product-hero .wrap { grid-template-columns: 1fr; gap: 28px; } }
figure { margin: 0; }
figure.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
figure.shot img { width: 100%; }
figure.shot figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.band figure.shot { border-color: rgba(255,255,255,.14); background: #141a2a; }
.band figure.shot figcaption { color: var(--band-muted); border-color: rgba(255,255,255,.1); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 9px; height: 5px;
  border-left: 2.5px solid var(--on-lime); border-bottom: 2.5px solid var(--on-lime); transform: rotate(-45deg);
}
.price-box { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.price-box .amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-box .amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-box p { color: var(--muted); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.plan { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 4px; }
.plan .n { font-weight: 700; }
.plan .a { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.plan .a small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan p { color: var(--muted); font-size: 14px; }
.plan.hi { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Testo lungo (chi siamo, legali) */
.prose { display: grid; gap: 18px; font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose p, .prose li { color: var(--text); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose .note { padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); }
.page-head .lead { margin-top: 14px; }

/* Riga di chiusura */
.cta-band { padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); }

/* Piè di pagina */
.foot { padding: 44px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand p { margin-top: 12px; max-width: 34ch; }
.foot .logo { color: var(--text); font-size: 18px; }
.foot .logo svg rect { fill: #101827; }
@media (prefers-color-scheme: dark) { .foot .logo svg rect { fill: #c5f778; } .foot .logo svg path, .foot .logo svg circle { stroke: #101827; fill: none; } .foot .logo svg circle { fill: #101827; } }
.foot-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .app { transition: none; } }
