/* CriptoTasse — landing. Palette/typografia dal Brand Guide v0.2. */
:root {
  --navy: #122A45;
  --teal: #0E9E8E;
  --teal-bright: #16C2A3;
  --light: #EAF3F2;
  --ink: #1B2A3A;
  --grey: #5A6472;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1080px;
  --font: 'Hanken Grotesk', 'Segoe UI', system-ui, Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .98rem; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: rgba(18,42,69,.3); }
.btn-outline-dark:hover { border-color: var(--navy); background: rgba(18,42,69,.05); }
.btn-ghost { background: var(--light); color: var(--navy); }
.btn-ghost:hover { background: #dcebe9; background: #d7eae7; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #e8eef0;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--grey); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--navy); }
.site-header .btn-ghost { margin-left: 8px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(680px 420px at 88% 0%, rgba(22,194,163,.12), transparent 62%),
    var(--navy);
  color: #fff; padding: 96px 0 104px;
}
.hero-inner { max-width: 820px; }
.hero-mark { width: 92px; height: 92px; display: block; margin: 0 0 26px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.28)); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 600; color: var(--teal-bright); margin: 0 0 18px; background: rgba(22,194,163,.12);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 22px; }
.hero h1 .accent { color: var(--teal-bright); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; color: #cdd9e5; max-width: 640px; margin: 0 0 32px; }
.lead strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.center-cta { justify-content: center; }
.hero-note { margin-top: 22px; color: #a7b6c6; font-size: .92rem; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--light); }
.section-lead { font-size: 1.12rem; color: var(--grey); }
.narrow.center .section-lead { margin-left: auto; margin-right: auto; }
h2.center { margin-bottom: 40px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: #fff; border: 1px solid #e3ecec; border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(18,42,69,.04);
}
/* Icona piccola e nuda (niente box arrotondato sopra l'heading = tell template). */
.card-ico { color: var(--teal); margin-bottom: 14px; }
.card-ico svg { width: 28px; height: 28px; }
.card p { color: var(--grey); margin: 0; }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid #e3ecec; border-radius: var(--radius); padding: 28px; position: relative; }
.step-n {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step p { color: var(--grey); margin: 0; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq-item { background: #fff; border: 1px solid #e3ecec; border-radius: var(--radius); padding: 18px 22px; }
.faq-item summary {
  font-family: var(--font-display); font-weight: 700; color: var(--navy); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; font-weight: 600; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--grey); margin: 14px 0 0; }

/* ===== Trust ===== */
.trust { background: var(--navy); color: #fff; padding: 40px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { color: var(--teal-bright); font-size: 1.05rem; }
.trust-item span { color: #b9c6d4; font-size: .95rem; }

/* ===== CTA ===== */
.cta { padding: 90px 0; background: var(--light); }
.cta h2 { margin-bottom: 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #fff; padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-tag { color: var(--teal-bright); font-weight: 500; margin: 6px 0 0; }
.footer-legal { color: #93a6b8; font-size: .85rem; margin: 8px 0 0; }

/* ===== Motion: ingresso hero orchestrato (non fade-on-scroll su ogni sezione) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero-cta, .hero-note {
  animation: rise .7s cubic-bezier(.22, 1, .36, 1) both;
}
.hero h1 { animation-delay: .04s; }
.hero .lead { animation-delay: .15s; }
.hero-cta { animation-delay: .26s; }
.hero-note { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero-cta, .hero-note { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; z-index: 100;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); /* notch iPhone */
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid #e3ecec; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(18,42,69,.18);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
/* L'attributo hidden DEVE vincere su display:flex (altrimenti il banner non si chiude
   al tap "Accetta"/"Rifiuta" — sembra non cliccabile, soprattutto su iPhone). */
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: 13.5px; color: var(--grey); flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-actions .btn { padding: 9px 18px; }

/* ===== Bottone disattivato (feature non ancora live, es. area documenti) ===== */
.btn-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(.3); }

/* ===== Callout (icona + testo, riquadro chiaro) ===== */
.callout { display: flex; align-items: center; gap: 20px; }
.callout .card-ico { margin-bottom: 0; flex: 0 0 auto; }
.callout .card-ico svg { width: 34px; height: 34px; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--grey); }
@media (max-width: 760px) { .callout { flex-direction: column; align-items: flex-start; text-align: left; } }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--grey); }
.breadcrumb a { color: var(--grey); text-decoration: underline; text-decoration-color: #ccd6dc; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 6px; color: #c3cdd4; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ===== Card variants ===== */
.card-highlight {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--light); border: 1.5px solid var(--teal);
}
.card-highlight .card-ico { margin-bottom: 0; flex: 0 0 auto; }
.card-highlight .tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle;
}

/* ===== Steps list (variante verticale, per elenchi lunghi) ===== */
.steps-list { list-style: none; padding: 0; margin: 0 0 26px; }
.steps-list .step-row { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #e8eef0; }
.steps-list .step-row:last-child { border-bottom: none; }
.steps-list .step-n {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.steps-list h3 { margin-bottom: 4px; font-size: 1.05rem; }
.steps-list p { color: var(--grey); margin: 0; }
.steps-list p i { color: var(--ink); font-style: italic; }

/* ===== Comparison table ===== */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #e3ecec; }
table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.compare th { text-align: left; padding: 14px 18px; font-weight: 700; color: #fff; background: var(--navy); font-family: var(--font-display); }
table.compare th.col-win { background: var(--teal); }
table.compare td { padding: 13px 18px; border-top: 1px solid #eef1f5; vertical-align: top; }
table.compare tbody tr:nth-child(odd) { background: #f7fafa; }
table.compare td.asp { font-weight: 700; color: var(--navy); }
table.compare td.win { background: #eaf7f5; color: #1c463e; font-weight: 600; }
table.compare tbody tr:nth-child(odd) td.win { background: #e2f3f0; }
table.compare .mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: .68rem; font-weight: 800; margin-right: 8px; }
table.compare .mark.no { background: #fbe7e7; color: #b23a3a; }
table.compare .mark.yes { background: var(--teal); color: #fff; }

/* ===== Prose / articoli lunghi (es. guida DAC8) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #384656; font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--navy); }
.byline { color: var(--grey); font-size: .88rem; margin: -8px 0 28px; }

.callout-note {
  background: var(--light); border: 1px solid #d7e6e4; border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 18px 22px; margin: 24px 0; font-size: .95rem; color: #2c463f;
}
.callout-note strong { color: var(--navy); }

.disclaimer {
  font-size: .85rem; color: var(--grey); background: #f4f7f9; border-radius: 10px;
  padding: 14px 18px; margin: 32px 0 0;
}

.badge-soft {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy); background: var(--light); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}

/* ===== Responsive ===== */
.only-mobile { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .cards, .steps, .trust-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
  .header-inner { gap: 12px; }
  .hide-mobile { display: none; }
  .only-mobile { display: inline; }
  .card-highlight { flex-direction: column; }
  .steps-list .step-row { gap: 14px; }
}
