/* Download Area - stili della home (solo index.php) */

.home { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-title { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin-bottom: clamp(36px, 5vw, 64px); text-wrap: balance; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #5d5952; }
.btn-ghost:hover { background: #2a2826; color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

/* comparsa: solo con JavaScript e senza "riduci movimento" */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s cubic-bezier(.16,1,.3,1) var(--d, 0s), transform .45s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- apertura ---------- */
.hero { padding-top: clamp(56px, 9vh, 104px); text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; font-variation-settings: "wdth" 104; }
.hero h1 .hl { color: var(--accent); }
.hero h1 span { display: block; }
@media (min-width: 760px) { .hero h1 span { white-space: nowrap; } }
.hero-line { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ink-soft); margin: 24px auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.adv-strip { list-style: none; padding: 0; margin: clamp(40px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; text-align: left; }
.adv-strip a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 18px 20px; border-radius: 16px; background: linear-gradient(180deg, #2a2826, #222120); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); color: var(--ink-soft); text-decoration: none; font-size: 1rem; line-height: 1.4; transition: transform .25s ease, box-shadow .25s ease; }
.adv-strip a:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.adv-strip .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-on); font-weight: 800; font-size: 1.0625rem; }
.adv-strip b { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 750; line-height: 1.25; margin-bottom: 4px; }
.hero-stage { position: relative; margin-top: clamp(48px, 7vw, 88px); perspective: 1600px; }
.hero-glow { position: absolute; left: 10%; right: 10%; top: 8%; bottom: -6%; background: radial-gradient(60% 60% at 50% 40%, rgba(242,176,30,.28), transparent 70%); filter: blur(30px); pointer-events: none; }
.hero-shot { position: relative; border-radius: 18px; border: 1px solid #45423e; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transform-origin: 50% 0; will-change: transform; }
.shot { overflow: hidden; background: #f4f1ec; }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.dark-shot { background: #161514; }

/* ---------- 6 vantaggi: elenco fisso a sinistra, passi a destra ---------- */
.story { margin-top: clamp(120px, 15vw, 200px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 72px); }
.story-rail { position: sticky; top: 104px; align-self: start; }
.story-rail ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; border-left: 2px solid #34322f; }
.story-rail a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; transition: color .25s, border-color .25s; }
.story-rail .n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #4a4743; font-size: .9375rem; font-weight: 800; transition: background-color .25s, color .25s, border-color .25s; }
.story-rail a:hover { color: var(--ink); }
.story-rail a.is-active { color: var(--ink); border-left-color: var(--accent); }
.story-rail a.is-active .n { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.step { scroll-margin-top: 100px; }
.step + .step { margin-top: clamp(96px, 12vw, 160px); }
.step-head { position: relative; max-width: 720px; margin-bottom: 32px; }
.step-head h3 { position: relative; z-index: 1; font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.step-head p { position: relative; z-index: 1; margin-top: 14px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-soft); }
.step-media { will-change: transform; }
.step-media .shot { border-radius: 16px; border: 1px solid #3d3a36; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

/* link e QR sempre validi */
.swap { aspect-ratio: 16 / 9; border-radius: 16px; background: radial-gradient(80% 80% at 50% 30%, #34302a, #201f1d); display: grid; place-content: center; justify-items: center; gap: 22px; padding: 28px; border: 1px solid #3d3a36; }
.swap-link { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; background: #3a3631; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); font-weight: 650; }
.swap-link .ic-line { width: 24px; height: 24px; color: var(--accent); flex: none; }
.swap-arrow { width: 32px; height: 32px; color: var(--accent); }
.swap-file { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 12px; background: #f4f1ec; color: #1f1d1b; box-shadow: 0 16px 40px rgba(0,0,0,.4); min-width: min(100%, 380px); }
.swap-file .pdf { width: 30px; height: 30px; color: #c2412d; flex: none; }
.swap-file .names { display: grid; font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 700; }
.swap-file .names > span { grid-area: 1 / 1; transition: opacity .5s ease, transform .5s ease; }
.swap-file .new { opacity: 0; transform: translateY(10px); }
.swap-file .badge { margin-left: auto; font-size: .875rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fdf0cf; color: #6b4a00; opacity: 0; transition: opacity .4s ease .3s; }
.swap.is-swapped .old { opacity: 0; transform: translateY(-10px); }
.swap.is-swapped .new { opacity: 1; transform: none; }
.swap.is-swapped .badge { opacity: 1; }
.swap-qr { color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- confronto ---------- */
.cmp { margin-top: clamp(120px, 15vw, 200px); }
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1.125rem; }
.cmp-table th, .cmp-table td { padding: 18px 14px; text-align: center; border-bottom: 1px solid #312f2c; vertical-align: middle; }
.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--ink); padding-left: 4px; min-width: 15em; }
.cmp-table thead th { border-bottom: 0; padding-bottom: 22px; vertical-align: bottom; font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.cmp-table thead .c-what { width: 26%; }
.col-name { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; line-height: 1.2; }
.col-name sup { font-size: .6em; margin-left: 1px; }
.brand-logo { width: 34px; height: 34px; color: #d9d4cb; }
.cmp-table .c-us { border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.cmp-table thead .c-us { border-top: 2px solid var(--accent); border-radius: 16px 16px 0 0; color: var(--ink); font-size: 1.125rem; }
.cmp-table tbody tr:last-child .c-us { border-bottom: 2px solid var(--accent); border-radius: 0 0 16px 16px; }
.cmp-table tbody tr:last-child > * { border-bottom-color: transparent; }
.cmp-table tbody tr:last-child .c-us { border-bottom-color: var(--accent); }
.cmp-table tbody tr:hover th, .cmp-table tbody tr:hover td:not(.c-us) { background: rgba(255,255,255,.025); }
.mk { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; }
.mk svg { width: 18px; height: 18px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-yes { background: rgba(60,207,122,.16); box-shadow: inset 0 0 0 1.5px rgba(60,207,122,.55); }
.mk-yes svg { stroke: var(--ok); }
.mk-no { background: rgba(240,84,74,.12); box-shadow: inset 0 0 0 1.5px rgba(240,84,74,.45); }
.mk-no svg { stroke: var(--ko); }
.mk-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 4px; background: #f5b301; color: #1f1600; font-size: .75rem; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.mk-wrap { position: relative; display: inline-block; vertical-align: middle; line-height: 0; }
.mk-side { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); margin: 0; line-height: 1.4; }
.mk-pill { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.mk-paid { background: rgba(242,176,30,.14); color: var(--accent-ink); box-shadow: inset 0 0 0 1px rgba(242,176,30,.4); }
.mk-part { background: #2e2c29; color: var(--ink-soft); }
.cmp-note { margin-top: 22px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.cmp-note .mk-tag { margin: 0 4px 0 0; }
.cmp-note .mk-pill { margin: 0 4px 0 8px; }

/* ---------- dove la usi ---------- */
.where { margin-top: clamp(120px, 15vw, 200px); }
.where-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.where-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3vw, 40px); border-radius: 20px; background: linear-gradient(180deg, #2a2826, #211f1e); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.where-card.is-key { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 60px -30px rgba(242,176,30,.35); }
.where-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #34312d; margin-bottom: 10px; }
.wp-logo { width: 38px; height: 38px; color: #f4f1ec; }
.ic-big { width: 34px; height: 34px; color: var(--accent); }
.where-card h3 { font-size: clamp(1.5rem, 2vw, 1.875rem); font-weight: 800; letter-spacing: -.015em; }
.where-card p { color: var(--ink-soft); font-size: 1.1875rem; line-height: 1.5; }
.where-card .sub { color: var(--muted); font-size: 1.0625rem; }
.chip { align-self: flex-start; margin-top: auto; padding: 8px 14px; border-radius: 999px; background: #34312d; color: var(--ink); font-weight: 700; font-size: 1rem; }
.where-card.is-key .chip { background: var(--accent); color: var(--accent-on); }

/* ---------- prezzi ---------- */
.pricing { margin-top: clamp(120px, 15vw, 200px); scroll-margin-top: 80px; }
.mode-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 18px; background: #232120; box-shadow: inset 0 0 0 1px #34322f; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch label { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px; border-radius: 13px; font-size: 1.1875rem; font-weight: 750; color: var(--ink-soft); cursor: pointer; transition: background-color .2s, color .2s; text-align: center; }
.mode-switch label:hover { color: var(--ink); background: #2c2a27; }
.mode-switch input:checked + label { background: #fff; color: #1d2327; box-shadow: 0 1px 3px rgba(0,0,0,.35); } /* grigio con cursore bianco, come su licenze: il giallo resta a pulsante principale e PRO (_PRODOTTI.md §11) */
.mode-switch input:focus-visible + label { outline: 2px solid #fff; outline-offset: 3px; }
.sw-logo, .sw-ic { width: 24px; height: 24px; flex: none; }
.mode-intro { display: none; margin: 26px 0 30px; padding-left: 18px; border-left: 3px solid #4a4641; }
.mode-intro p { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); color: var(--ink-soft); line-height: 1.5; max-width: 70ch; }
.mode-intro p b { color: var(--ink); }
.mode-intro .sub { color: var(--muted); font-size: 1.0625rem; margin-top: 4px; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3vw, 40px); border-radius: 20px; background: linear-gradient(180deg, #2a2826, #211f1e); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.price-card.is-pro { background: linear-gradient(180deg, #33302b, #262420); box-shadow: inset 0 0 0 2px #5a554e, 0 30px 70px -30px rgba(0,0,0,.6); }
.ribbon { position: absolute; top: -14px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: .875rem; font-weight: 800; }
.pc-mode { display: none; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 10px; border-radius: 999px; background: #3a3632; color: var(--ink); font-size: 1rem; font-weight: 700; }
.pc-logo, .pc-ic { width: 20px; height: 20px; }
.pc-ic { color: var(--accent); }
.price-card h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.price-card.is-pro h3 { color: var(--accent); }
.price { display: none; flex-direction: column; gap: 4px; }
.amount-row { display: flex; align-items: baseline; gap: 6px; }
.amount { font-size: clamp(2.75rem, 4.4vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.amount-text { font-size: clamp(2.25rem, 3.4vw, 2.875rem); }
.unit { font-size: 1.25rem; color: var(--muted); }
.under { color: var(--ink-soft); font-size: 1.0625rem; font-weight: 600; min-height: 1.5em; }
.pc-line { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.45; padding-bottom: 14px; border-bottom: 1px solid #3a3733; }
.pc-feats { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; flex: 1; align-content: start; }
.pc-feats li { position: relative; padding-left: 30px; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }
.pc-feats li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(60,207,122,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%233ccf7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pc-feats li.lead-in { padding-left: 0; color: var(--muted); font-weight: 700; }
.pc-feats li.lead-in::before { display: none; }
.price-card .btn { display: none; justify-content: center; margin-top: auto; }
.price-note { display: none; color: var(--muted); font-size: 1.0625rem; margin-top: 18px; }
.price-note:not([data-mode]) { display: block; }
.pricing:has(#m-wp:checked) [data-mode="wp"], .pricing:has(#m-hosting:checked) [data-mode="hosting"], .pricing:has(#m-server:checked) [data-mode="server"] { display: flex; }
.pricing:has(#m-wp:checked) .mode-intro[data-mode="wp"], .pricing:has(#m-hosting:checked) .mode-intro[data-mode="hosting"], .pricing:has(#m-server:checked) .mode-intro[data-mode="server"],
.pricing:has(#m-server:checked) .price-note[data-mode="server"] { display: block; }
.plans-more { margin-top: 40px; border-radius: 20px; background: #211f1e; box-shadow: inset 0 0 0 1px #34322f; }
.plans-more summary { cursor: pointer; list-style: none; padding: 22px 28px; font-size: 1.25rem; font-weight: 750; display: flex; justify-content: space-between; align-items: center; }
.plans-more summary::-webkit-details-marker { display: none; }
.plans-more summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.plans-more[open] summary::after { transform: rotate(225deg); }
.plans-more .cmp-scroll { padding: 0 28px 24px; }
.plans-table thead .c-what { width: 50%; }
.soon { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #2e2c29; color: var(--ink-soft); font-size: .8125rem; font-weight: 650; vertical-align: 2px; white-space: nowrap; }

/* ---------- domande ---------- */
.faq-sec { margin-top: clamp(120px, 15vw, 200px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .sec-title { position: sticky; top: 104px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #232120; border-radius: 16px; padding: 0 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: background-color .2s; }
.faq details[open] { background: #2a2826; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-size: 1.25rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); font-size: 1.1875rem; line-height: 1.55; }

/* ---------- chiusura in giallo ambra ---------- */
.end-band { margin-top: clamp(120px, 15vw, 200px); background: var(--accent); color: var(--accent-on); }
.end-in { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.end-band h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; max-width: 16ch; }
.end-band .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.btn-dark { background: var(--accent-on); color: var(--accent); }
.btn-dark:hover { background: #000; color: var(--accent-hover); }
.link-dark { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-on); font-weight: 750; font-size: 1.25rem; text-decoration: none; }
.link-dark svg { width: 20px; height: 20px; }
.link-dark:hover { text-decoration: underline; }
.tm-note { margin-top: 32px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* ---------- schermi più stretti ---------- */
@media (max-width: 1200px) {
  .adv-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-rail { display: none; }
  .price-cards, .where-grid { grid-template-columns: 1fr; max-width: 620px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-title { position: static; }
}
@media (max-width: 700px) {
  .adv-strip { grid-template-columns: 1fr 1fr; }
  .mode-switch label { flex-direction: column; gap: 6px; font-size: 1rem; padding: 12px 6px; }
  .cmp-table { font-size: 1rem; }
  .cmp-table th, .cmp-table td { padding: 14px 8px; }
  .cmp-table tbody th { min-width: 10em; position: sticky; left: 0; background: var(--ground); z-index: 1; }
  .cmp-table thead .c-what { position: sticky; left: 0; background: var(--ground); z-index: 1; }
  .end-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .adv-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .adv-strip a, .story-rail a, .story-rail .n { transition: none; }
  .adv-strip a:hover { transform: none; }
}
