/* Landing del Cassetto Doganale. Colori, font e misure sono quelli di soluzionedogane.com. */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-900: #073B33;
  --brand-700: #0B6B5B;
  --brand-500: #00A887;
  --brand-400: #18C79E;
  --ink: #0B1B18;
  --coral: #FF6B5E;
  --paper: #F7FAF9;
  --mist: #E7F0EF;
  --line: #D7E3DF;
  --muted: #5C6E69;
  --white: #FFFFFF;
  --error: #B4372C;
  --grad: linear-gradient(135deg, #0B6B5B 0%, #00A887 55%, #18C79E 100%);
  --grad-soft: linear-gradient(135deg, rgba(11,107,91,.08), rgba(24,199,158,.08));
  --shadow-sm: 0 1px 2px rgba(7,59,51,.06), 0 2px 8px rgba(7,59,51,.06);
  --shadow-md: 0 8px 24px rgba(7,59,51,.10), 0 2px 6px rgba(7,59,51,.06);
  --shadow-lg: 0 24px 60px rgba(7,59,51,.16);
  --ring: 0 0 0 4px rgba(0,168,135,.22);
  --font-display: "Sora", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
p + p { margin-top: 14px; }
a { color: var(--brand-700); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin-top: 18px; max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section h2 + p, .section h2 + .lead { margin-top: 18px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 22px rgba(0,168,135,.32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,168,135,.42); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: var(--white); color: var(--brand-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-500); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Intestazione */
.header { position: sticky; top: 0; z-index: 10; background: rgba(247,250,249,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand .mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand b { color: var(--ink); }
.brand span span { color: var(--brand-500); }

/* Apertura */
.hero { padding: 64px 0 88px; background: var(--grad-soft); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; column-gap: 56px; align-items: start;
  grid-template-areas: "testo modulo" "punti modulo";
  grid-template-rows: auto 1fr;
}
.hero-text { grid-area: testo; }
.hero-points { grid-area: punti; }
.form-card { grid-area: modulo; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Schede */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 + p { margin-top: 10px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Modulo */
.form-card { box-shadow: var(--shadow-lg); padding: 32px; }
.form-card h2 { font-size: 1.6rem; }
.form-card > p { margin-top: 8px; }
form { margin-top: 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: .92rem; }
input, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, select:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .86rem; }
.field-error:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { font-size: .82rem; color: var(--muted); }
.fineprint.center { margin-top: 18px; }
.or { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .95rem; }
.or span { color: var(--muted); }
.or a { font-weight: 600; }

/* Video */
.video-section { display: none; }
body[data-stato="video"] .video-section { display: block; }
body[data-stato="video"] .hero { display: none; }
body[data-stato="video"] [data-solo-modulo],
body[data-stato="modulo"] [data-solo-video] { display: none; }
.video-section h2 { margin-bottom: 26px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--brand-900); box-shadow: var(--shadow-lg); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: #cfe; padding: 24px; }
.player-placeholder b { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.after-video { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.after-video .btn { flex: 0 0 auto; }

/* Passi */
.steps { list-style: none; counter-reset: passo; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.steps li { counter-increment: passo; position: relative; padding: 18px 20px 18px 68px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before {
  content: counter(passo); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center;
  background: var(--grad); color: var(--white); font-family: var(--font-display); font-weight: 700;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Piede */
.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer b { color: var(--ink); }

/* Banner cookie */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 760px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 18px; font-size: .9rem;
}
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* Informativa */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.doc h2 { font-size: 1.25rem; margin-top: 36px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc .note { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: #FFF4E0; border: 1px solid #E8C37E; font-size: .92rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "testo" "modulo" "punti"; grid-template-rows: auto; row-gap: 28px; }
  .ticks { margin-top: 0; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .grid2 { grid-template-columns: 1fr; }
  .after-video { flex-direction: column; align-items: stretch; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .form-card { padding: 24px 20px; }
  .header .btn-sm { padding: 8px 12px; font-size: .84rem; }
  .brand { font-size: 1.02rem; gap: 9px; }
  .brand .mark { width: 32px; height: 32px; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Versione senza video: riquadro della demo, schema illustrativo, prezzi */
.trust { margin-top: 24px; font-size: .95rem; color: var(--muted); }
.cta-calendario { margin-top: 22px; }
.form-card [data-passo] > .fineprint { margin-top: 14px; }
.features { margin-bottom: 28px; }
.plain { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.plain li { padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.prices { margin: 26px 0 18px; }
.card .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.price small { font-family: var(--font-text); font-size: .95rem; font-weight: 500; color: var(--muted); }
.card .price + p:not(.price) { margin-top: 8px; color: var(--muted); }
.steps + .cta-row + .fineprint { margin-top: 18px; }

.mock { margin: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.mock figcaption { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.mock figcaption b { color: var(--ink); }
.mock-row { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .95rem; align-items: center; }
.mock-head { border-top: 0; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot.ok { background: #1E9E6A; }
.dot.warn { background: #E0A100; }
.dot.bad { background: #C8402F; }
@media (max-width: 640px) {
  .mock { padding: 16px; }
  .mock-row { grid-template-columns: 1fr 1fr; }
  .mock-row span:nth-child(2) { display: none; }
}

/* Confronto tra vecchio modo e Cassetto */
.compare { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: .8fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row > span { padding: 16px 20px; }
.compare-head { border-top: 0; font-family: var(--font-display); font-weight: 700; }
.compare-head > span:nth-child(2) { color: var(--error); }
.compare-head > span:nth-child(3), .compare-row .yes { background: rgba(0,168,135,.07); }
.compare-head > span:nth-child(3) { color: var(--brand-700); }
.compare-what { font-weight: 600; }
.compare-row .no, .compare-row .yes { position: relative; padding-left: 52px; }
.compare-row .no { color: var(--muted); }
.compare-row .no::before, .compare-row .yes::before {
  content: ""; position: absolute; left: 20px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}
.compare-row .no::before { background-color: var(--error); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.compare-row .yes::before { background-color: var(--brand-500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.compare + .cta-row { margin-top: 28px; }
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-head { display: none; }
  .compare-what { padding-bottom: 4px !important; }
  .compare-row .no, .compare-row .yes { padding-top: 10px; padding-bottom: 10px; }
  .compare-row .no::before, .compare-row .yes::before { top: 11px; }
}

/* Offerta */
.offer-badge { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: .9rem; line-height: 1.45; }
.offer-badge b { color: var(--brand-400); }
.offer-band { margin-top: 26px; padding: 16px 20px; border-radius: 14px; background: var(--ink); color: var(--white); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.offer-band b { font-family: var(--font-display); font-size: 1.15rem; color: var(--brand-400); }
.offer-band + .prices { margin-top: 14px; }
.card .price-offer { color: var(--brand-700); font-size: 2.4rem; }
.price-offer s { font-size: 1.2rem; font-weight: 500; color: var(--muted); margin-right: 6px; }
#chi-siamo .ticks { margin-top: 22px; }
