/* Giannini Software - stile del sito. Nessun font o libreria esterna. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #1b2230;
  --muted: #566074;
  --line: #e6e3dc;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --pit: #0e6e5c;
  --pit-soft: #e1f3ee;
  --video: #2563eb;
  --video-soft: #e6eefe;
  --clean: #0b7a75;
  --clean-soft: #dff3f1;
  --play: #b7791f;
  --play-soft: #fbf0d9;
  --shadow: 0 1px 2px rgba(20, 24, 36, .06), 0 8px 24px rgba(20, 24, 36, .07);
  --radius: 16px;
  --maxw: 1080px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1117;
  --surface: #161b24;
  --surface-2: #1c2230;
  --ink: #e8eaf0;
  --muted: #9aa4b5;
  --line: #262d3a;
  --accent: #8b87ff;
  --accent-ink: #0e1117;
  --pit: #3fc3a5;
  --pit-soft: #12302a;
  --video: #6ea0ff;
  --video-soft: #16243f;
  --clean: #4fd1c8;
  --clean-soft: #10302e;
  --play: #f0b955;
  --play-soft: #3a2f14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1117; --surface: #161b24; --surface-2: #1c2230; --ink: #e8eaf0; --muted: #9aa4b5;
    --line: #262d3a; --accent: #8b87ff; --accent-ink: #0e1117; --pit: #3fc3a5; --pit-soft: #12302a;
    --video: #6ea0ff; --video-soft: #16243f; --clean: #4fd1c8; --clean-soft: #10302e;
    --play: #f0b955; --play-soft: #3a2f14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
/* colonne strette allineate a sinistra con il resto della pagina */
.wrap.narrow, .wrap.prose { margin-left: max(20px, calc((100% - var(--maxw)) / 2)); margin-right: auto; }
.wrap.narrow { max-width: var(--nw, 820px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a, .nav button { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px;
  font: inherit; font-size: 15px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
.nav .lang { border: 1px solid var(--line); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; }
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; background: var(--surface-2); border: 0; border-radius: 10px;
    padding: 9px 14px; color: var(--ink); font: inherit; cursor: pointer; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .nav.open { display: flex; }
  .nav a, .nav button { padding: 12px; }
}

/* ---------- tipografia ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent);
  margin-bottom: 14px; display: block; }
.muted { color: var(--muted); }
section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--accent); }
.sky-card { max-width: 300px; margin-inline: auto; width: 100%; }
.sky { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 1 / 1; background: #0b1026; }
.sky svg { display: block; width: 100%; height: 100%; }
.sky-cap { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; font-style: italic; }

/* ---------- carte prodotto ---------- */
.cards { display: grid; gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards.two, .cards.three { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); }
.card ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--muted); }
.card ul li { margin-bottom: 6px; }
.card .btn-row { margin-top: auto; padding-top: 6px; }
.card.pit { border-top: 4px solid var(--pit); }
.card.video { border-top: 4px solid var(--video); }
.card.clean { border-top: 4px solid var(--clean); }
.card.play { border-top: 4px solid var(--play); }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .03em; }
.badge.pit { background: var(--pit-soft); color: var(--pit); }
.badge.video { background: var(--video-soft); color: var(--video); }
.badge.clean { background: var(--clean-soft); color: var(--clean); }
.badge.play { background: var(--play-soft); color: var(--play); }
.icon-tile { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 22px; }
.icon-tile.pit { background: linear-gradient(135deg, #0e6e5c, #2aa88c); }
.icon-tile.video { background: linear-gradient(135deg, #0ea5e9, #6d28d9); }
.icon-tile.clean { background: linear-gradient(135deg, #0b7a75, #34c4b8); }
.icon-tile.play { background: linear-gradient(135deg, #b7791f, #f0b955); }
.icon-tile img { width: 56px; height: 56px; border-radius: 14px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
  background: var(--play-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px;
  margin-top: 22px; }
.strip p { margin: 0; }

/* ---------- IA ---------- */
.ai { background: linear-gradient(160deg, #11162a 0%, #1d1b4b 60%, #2a2370 100%); color: #eef0ff; }
.ai .eyebrow { color: #a5b4fc; }
.ai .lead { color: #c9cff3; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 10px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 22px; }
.step .n { font-weight: 800; font-size: 14px; letter-spacing: .1em; color: #a5b4fc; }
.step h3 { margin: 6px 0 8px; }
.step p { color: #c9cff3; margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 26px; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; color: #fff; }
.stat span { color: #c9cff3; font-size: 15px; }
.ai .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }

/* ---------- eccomi: storia ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 10px; }
.timeline { position: relative; margin: 20px 0 0; padding-left: 34px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); }
.timeline li.big::before { background: var(--accent); width: 18px; height: 18px; left: -33px; top: 5px; }
.timeline h3 { margin: 0 0 2px; }
.timeline .era { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.timeline p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; font-size: 15px; }
.skills h3 { margin-top: 24px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow); }
.callout h3 { margin-top: 0; }

/* ---------- pagine prodotto ---------- */
.product-hero { padding: clamp(36px, 6vw, 70px) 0 20px; }
.product-hero .head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; }
@media (max-width: 700px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price.pro { border: 2px solid var(--video); }
.price .amount { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 8px 0 14px; }
.price ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--muted); }
.notice { background: var(--video-soft); color: var(--ink); border-radius: 12px; padding: 14px 18px; font-size: 15.5px; }
.notice.pit { background: var(--pit-soft); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.phone { max-width: 260px; margin-inline: auto; }
code, .code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
pre.code { background: #11162a; color: #e6e9ff; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 15px;
  line-height: 1.55; margin: 0; }
.kw { color: #ffb86b; } .st { color: #8be9a8; } .cm { color: #8892b8; }

/* ---------- testo legale ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }

/* ---------- piede ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 38px 0 46px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 28px 60px; justify-content: space-between; }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin-top: 26px; font-size: 14px; }

/* ---------- animazione del cielo: tempi e movimenti dell'originale ----------
   Sole e cielo: 80 s. Luna: 60 s. Cicli INDIPENDENTI (non sincroni), come nel sito originale:
   a volte sole e luna sono insieme in cielo. Misure originali in px su un riquadro di 300 (1vw = 12px). */
@keyframes skycolor {
  0%   { fill: #0b1026; }
  15%  { fill: #2b4a9c; }
  23%  { fill: #9ad0ff; }
  78%  { fill: #9ad0ff; }
  80%  { fill: #960050; }
  82%  { fill: #0b1026; }
  100% { fill: #0b1026; }
}
@keyframes sunkey {
  0%   { transform: translate(-72px, 360px); }
  18%  { transform: translate(-72px, 360px); }
  35%  { transform: translate(72px, -240px); }
  100% { transform: translate(72px, -240px); }
}
@keyframes moonkey {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(840px, -600px); }
}
@keyframes nightonly {
  0%   { opacity: 1; }
  12%  { opacity: 1; }
  20%  { opacity: 0; }
  76%  { opacity: 0; }
  82%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes twinkle { from { transform: scale(.45); } to { transform: scale(1); } }
@keyframes windowglow {
  0%   { opacity: 1; }
  14%  { opacity: 1; }
  22%  { opacity: .15; }
  72%  { opacity: .15; }
  82%  { opacity: 1; }
  100% { opacity: 1; }
}
.sky-bg  { animation: skycolor 80s linear infinite; }
.sun     { animation: sunkey 80s linear infinite; }
.moon    { animation: moonkey 60s linear infinite; }
.stars   { animation: nightonly 80s linear infinite; }
.window  { animation: windowglow 80s linear infinite; }
.star    { transform-box: fill-box; transform-origin: center; animation: twinkle .6s ease-in-out infinite alternate; }
.star:nth-child(3n)   { animation-delay: .15s; }
.star:nth-child(3n+1) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .sky-bg, .sun, .moon, .stars, .window, .star { animation: none; }
  .sky-bg { fill: #2b4a9c; }
  .sun { transform: translate(0, 60px); }
  .moon { transform: translate(252px, -180px); }
  .stars { opacity: .5; }
}
