/* Ottima domanda: intelligenza artificiale in parole semplici
   Foglio di stile unico. Palette presa dalla copertina e dai reel della pagina. */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-var.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --cream: #FBF4E4;
  --cream-2: #F5EBD3;
  --paper: #FFFCF4;
  --navy: #0F2340;
  --navy-2: #173356;
  --ink: #0F2340;
  --ink-soft: #3C4C64;
  --ink-mute: #5F6B7D;
  --yellow: #F6C343;
  --yellow-soft: #FCE7A6;
  --teal: #217F7C;
  --teal-soft: #D3ECEA;
  --orange: #E2622F;
  --purple: #6C55D9;
  --spark: linear-gradient(135deg, #FF9A4D 0%, #F57FB8 42%, #9C8CFF 72%, #2FA8F2 100%);
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 0 rgba(15,35,64,.06), 0 14px 34px -14px rgba(15,35,64,.28);
  --shadow-lg: 0 2px 0 rgba(15,35,64,.05), 0 30px 60px -24px rgba(15,35,64,.38);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(17px, 1.05rem + .2vw, 19.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Pezzi ricorrenti ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.kicker::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(246,195,67,.28); }
.on-dark .kicker { color: var(--yellow); }

.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .02em; height: .42em;
  background: var(--yellow); border-radius: .2em .5em .3em .45em; transform: rotate(-1.2deg);
  transform-origin: left;
}
.hero .hl::after { animation: swipe .9s .35s cubic-bezier(.2,.8,.2,1) both; }
.on-dark .hl { color: var(--navy); padding: 0 .08em; }
.on-dark .hl::after { top: .1em; bottom: -.04em; height: auto; left: -.06em; right: -.06em; border-radius: .18em .3em .22em .28em; }
.dot { color: var(--orange); }
.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; }
@keyframes swipe { from { transform: rotate(-1.2deg) scaleX(0); } to { transform: rotate(-1.2deg) scaleX(1); } }

.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 0 rgba(15,35,64,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(15,35,64,.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(15,35,64,.18); }
.btn--yellow { --bg: var(--yellow); --fg: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: rgba(15,35,64,.22); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; border-color: var(--navy); }
.on-dark .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.65); }
.on-dark .btn--ghost:hover { border-color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); margin: .35em 0 .35em; }
.section-head p { font-size: 1.12em; color: var(--ink-soft); margin: 0; }
.on-dark { background: var(--navy); color: #F4EEDF; }
.on-dark .section-head p { color: #C5CEDB; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,244,228,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: rgba(15,35,64,.08); box-shadow: 0 8px 24px -18px rgba(15,35,64,.35); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.24rem; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: .72rem; letter-spacing: 0; color: var(--ink-mute); margin-top: 1px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { white-space: nowrap; padding: .55em .8em; border-radius: 999px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav a:not(.btn):hover { background: rgba(15,35,64,.06); color: var(--navy); }
.nav .btn { min-height: 46px; padding: .55em 1.15em; font-size: .95rem; margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 2px solid rgba(15,35,64,.15); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--navy); position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(246,195,67,.38), rgba(246,195,67,0)); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 1.6rem + 7.6vw, 7.4rem); line-height: .92; letter-spacing: -.035em; margin: .22em 0 .28em; }
.hero h1 .line { display: block; }
.hero .lead { font-size: clamp(1.12rem, 1rem + .5vw, 1.38rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 1.6em; }
.hero .lead strong { color: var(--navy); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--ink-mute); font-size: .95rem; }
.hero-note .ticks { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-note .ticks span { padding: .25em .7em; background: var(--paper); border: 1px solid rgba(15,35,64,.1); border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: .86rem; color: var(--ink-soft); }

/* finta chat */
.chat-wrap { position: relative; }
.chat-wrap::before { content: ""; position: absolute; inset: 18px -14px -16px 16px; border-radius: var(--radius-lg); background: var(--teal-soft); transform: rotate(-2deg); }
.chat {
  position: relative; z-index: 1; background: var(--paper); border-radius: var(--radius-lg); padding: 22px 20px 26px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(15,35,64,.06); transform: rotate(1.4deg);
}
.chat-top { display: flex; align-items: center; gap: 10px; padding: 0 4px 16px; border-bottom: 1px dashed rgba(15,35,64,.14); margin-bottom: 18px; }
.chat-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--spark); display: grid; place-items: center; }
.chat-top .av svg { width: 18px; height: 18px; }
.chat-top b { font-family: var(--display); font-weight: 800; font-size: .98rem; }
.chat-top small { display: block; color: var(--ink-mute); font-size: .78rem; line-height: 1.2; }
.chat-top .lbl { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); background: var(--cream); padding: .4em .7em; border-radius: 999px; }
.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 250px; }
.bubble { max-width: 86%; padding: 13px 17px; border-radius: 20px; font-size: 1.04rem; line-height: 1.42; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s, transform .35s; }
.bubble.show { opacity: 1; transform: none; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--cream-2); border-bottom-left-radius: 6px; font-family: var(--display); font-weight: 800; font-size: 1.12rem; }
.bubble.ai .spk { display: inline-block; width: .9em; height: .9em; vertical-align: -.08em; margin-left: .2em; }
.bubble.real { align-self: flex-start; background: var(--yellow-soft); border-bottom-left-radius: 6px; }
.bubble.real b { font-family: var(--display); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: currentColor; vertical-align: -.2em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); opacity: .4; animation: bop 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bop { 0%,60%,100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: .9; } }
.scribble {
  position: absolute; z-index: 2; right: -6px; top: -64px; transform: rotate(-4deg);
  font-family: var(--hand); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--orange); text-align: right;
  opacity: 0; transition: opacity .4s;
}
.scribble.show { opacity: 1; }
.scribble svg { width: 54px; height: 44px; margin: 2px 40px 0 auto; }

/* ---------- Striscia nome ---------- */
.why { padding: clamp(64px, 8vw, 104px) 0; }
.why .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.why-mark { width: clamp(120px, 16vw, 190px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(246,195,67,.18); transform: rotate(-6deg); }
.why-mark img { width: 66%; }
.why h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); margin-bottom: .45em; }
.why p { font-size: 1.12em; color: #D5DCE6; max-width: 44em; }
.why p strong { color: #fff; }
.why .quote { font-family: var(--hand); font-size: 1.7em; color: var(--yellow); line-height: 1.1; margin: .2em 0 0; }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px 28px 30px; box-shadow: var(--shadow); border: 1px solid rgba(15,35,64,.05); }
.step .n { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--navy); opacity: .9; }
.step:nth-child(1) .n { -webkit-text-stroke-color: var(--teal); }
.step:nth-child(2) .n { -webkit-text-stroke-color: var(--orange); }
.step:nth-child(3) .n { -webkit-text-stroke-color: var(--purple); }
.step h3 { font-size: 1.45rem; margin: .5em 0 .45em; }
.step p { color: var(--ink-soft); margin: 0; }
.step .ic { position: absolute; top: 26px; right: 24px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.step .ic svg { width: 24px; height: 24px; }
.step:nth-child(1) .ic { background: var(--teal-soft); color: var(--teal); }
.step:nth-child(2) .ic { background: #FBE0D3; color: var(--orange); }
.step:nth-child(3) .ic { background: #E6E0FB; color: var(--purple); }
.honest { margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius); background: var(--yellow-soft); border: 2px dashed rgba(15,35,64,.18); }
.honest svg { flex: none; width: 28px; height: 28px; color: var(--navy); margin-top: 2px; }
.honest p { margin: 0; }

/* ---------- Argomenti ---------- */
.topics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.topic { grid-column: span 2; position: relative; border-radius: var(--radius); padding: 28px 26px 26px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(15,35,64,.05); transition: transform .25s; }
.topic:hover { transform: translateY(-4px); }
.topic:nth-child(4), .topic:nth-child(5) { grid-column: span 3; }
.topic .badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.topic .badge svg { width: 28px; height: 28px; }
.topic h3 { font-size: 1.4rem; margin-bottom: .45em; }
.topic p { color: var(--ink-soft); margin: 0 0 .9em; }
.topic .eg { font-size: .94rem; color: var(--ink-mute); margin: 0; padding-top: .9em; border-top: 1px dashed rgba(15,35,64,.14); }
.topic .eg b { font-family: var(--display); color: var(--ink-soft); }
.t1 .badge { background: var(--teal); } .t2 .badge { background: var(--orange); } .t3 .badge { background: var(--purple); }
.t4 .badge { background: var(--navy); } .t5 .badge { background: var(--spark); }

/* ---------- Reel ---------- */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.reel { display: flex; flex-direction: column; }
.reel-media { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #0A1830; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.reel-media img, .reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(10,24,48,0) 45%, rgba(10,24,48,.82) 100%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; color: #fff; text-align: left; font: inherit;
}
.reel-play .pl { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s; }
.reel-play:hover .pl { transform: scale(1.08); }
.reel-play .pl svg { width: 30px; height: 30px; margin-left: 4px; }
.reel-play .dur { margin: 0 0 16px 16px; font-family: var(--display); font-weight: 800; font-size: .85rem; background: rgba(0,0,0,.45); padding: .3em .7em; border-radius: 999px; }
.reel h3 { font-size: 1.32rem; margin: 22px 0 .45em; line-height: 1.15; }
.reel p { color: #C5CEDB; font-size: 1rem; margin-bottom: 1em; }
.reel .fb { margin-top: auto; display: inline-flex; align-items: center; gap: .45em; color: var(--yellow); font-family: var(--display); font-weight: 800; text-decoration: none; }
.reel .fb:hover { text-decoration: underline; text-underline-offset: 4px; }
.reel .fb svg { width: 1em; height: 1em; }
.reels-foot { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: #C5CEDB; }

/* ---------- Prova tu ---------- */
.try { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.switch { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 5px; margin-bottom: 20px; }
.switch button { border: 0; background: none; padding: .7em 1.25em; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: .98rem; color: var(--ink-soft); min-height: 46px; transition: background .25s, color .25s, box-shadow .25s; }
.switch button[aria-selected="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 3px 10px -4px rgba(15,35,64,.3); }
.prompt-card { position: relative; border-radius: var(--radius-lg); padding: 30px 30px 34px; min-height: 250px; transition: background .35s; }
.prompt-card[data-mode="vaga"] { background: var(--teal-soft); }
.prompt-card[data-mode="dettagli"] { background: var(--yellow-soft); }
.prompt-card .tag { display: inline-block; font-family: var(--display); font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .5em 1em; border-radius: 999px; color: #fff; background: var(--teal); margin-bottom: 18px; }
.prompt-card[data-mode="dettagli"] .tag { background: var(--yellow); color: var(--navy); }
.prompt-card .q { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; }
.prompt-card .q mark { background: none; color: inherit; font-weight: 900; box-shadow: inset 0 -.36em 0 rgba(246,195,67,.75); }
.prompt-card .verdict { margin: 18px 0 0; font-size: 1rem; color: var(--ink-soft); }
.chips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 0 0 22px; }
.chips li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); font-size: .98rem; line-height: 1.35; }
.chips li b { display: block; font-family: var(--display); font-size: 1.02rem; }
.chips .e { font-size: 1.3rem; line-height: 1; }
.big-line { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.12; margin: 0 0 22px; }
.template { position: relative; background: var(--navy); color: #F4EEDF; border-radius: var(--radius); padding: 22px 22px 18px; }
.template .t-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.template .t-h > span { font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.template pre { margin: 0; white-space: pre-wrap; font-family: var(--body); font-size: 1rem; line-height: 1.55; color: #E8EDF4; }
.template pre i { color: var(--yellow); font-style: normal; }
.copy { border: 0; cursor: pointer; background: var(--yellow); color: var(--navy); font-family: var(--display); font-weight: 800; font-size: .9rem; padding: .55em 1em; border-radius: 999px; min-height: 40px; display: inline-flex; gap: .4em; align-items: center; }
.copy svg { width: 1em; height: 1em; }

/* ---------- Tre cose ---------- */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(56px, 7vw, 88px); }
.tip { border-radius: var(--radius); padding: 28px; background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tip h3 { font-size: 1.36rem; margin: .4em 0 .5em; }
.tip p { color: var(--ink-soft); }
.tip .kicker { color: var(--orange); }
.postit { margin: 6px 0 18px; background: #FDE9A0; padding: 20px 20px 26px; transform: rotate(-2deg); box-shadow: 0 12px 22px -12px rgba(15,35,64,.4); font-family: var(--hand); font-size: 1.55rem; line-height: 1.15; }
.postit .ln { display: block; border-bottom: 2px solid rgba(15,35,64,.5); height: 1.1em; width: 70%; margin-top: .3em; }
.phone-card { margin: 6px 0 18px; background: var(--navy); border-radius: 18px; padding: 16px; color: #fff; }
.phone-card small { font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .14em; color: #9FB0C6; text-transform: uppercase; }
.phone-card b { display: block; font-family: var(--display); font-size: 1.25rem; margin: 2px 0 12px; }
.phone-card .call { display: flex; justify-content: center; align-items: center; gap: .4em; background: var(--teal); border-radius: 999px; padding: .55em; font-family: var(--display); font-weight: 800; }
.phone-card .call svg { width: 1em; height: 1em; }
.quote-card { margin: 6px 0 18px; background: var(--teal-soft); border-radius: 18px; padding: 18px 18px 18px 20px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.4; border-left: 5px solid var(--teal); }
.tip .src { margin-top: auto; font-size: .9rem; color: var(--ink-mute); }
.tip .src a { color: var(--teal); font-weight: 700; }

/* ---------- Glossario ---------- */
.glossary { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.glossary .section-head { position: sticky; top: 110px; margin: 0; }
.terms { display: flex; flex-direction: column; gap: 10px; }
.terms details { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(15,35,64,.05); overflow: hidden; }
.terms summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; min-height: 64px; font-family: var(--display); font-weight: 900; font-size: 1.22rem; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary .en { font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--ink-mute); }
.terms summary::after { content: ""; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2340' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s, background-color .25s; }
.terms details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.terms .def { padding: 0 22px 20px; color: var(--ink-soft); }
.terms .def p:last-child { margin-bottom: 0; }
.terms .def .ex { font-size: .95rem; background: var(--cream); border-radius: 12px; padding: 10px 14px; color: var(--ink-soft); }

/* ---------- Chi risponde ---------- */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-visual { grid-column: 1 / -1; margin-bottom: clamp(36px, 4vw, 56px); }
.about-side { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 8px; }
.side-title { font-family: var(--display); font-weight: 900; font-size: 1.3rem; margin: 0 0 .2em; }
.about-side .promises { margin-top: 12px; gap: 14px; }
.about-visual { position: relative; }
.about-visual .cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-.6deg); }
.about-visual .cover img { width: 100%; height: auto; }
.mug { position: absolute; right: 4%; bottom: -34px; background: var(--paper); border-radius: 18px; padding: 14px 22px; box-shadow: var(--shadow); transform: rotate(3deg); font-family: var(--hand); font-size: 1.65rem; line-height: 1.05; }
.mug::after { content: ""; display: block; height: 3px; width: 70%; background: var(--yellow); border-radius: 3px; margin-top: 6px; }
.about h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); margin: .35em 0 .5em; }
.about p { font-size: 1.08em; color: var(--ink-soft); }
.about p strong { color: var(--navy); }
.promises { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.promises li { display: flex; gap: 12px; align-items: flex-start; }
.promises svg { flex: none; width: 26px; height: 26px; margin-top: 1px; color: var(--teal); }

/* ---------- Domanda ---------- */
.ask { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ask .section-head { margin-bottom: 0; }
.ask-alt { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ask-alt p { margin: 0 0 14px; color: #C5CEDB; }
.ask-alt .btn { --bg: #fff; --fg: var(--navy); }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 800; font-size: 1.02rem; margin-bottom: 7px; }
.field label small { font-family: var(--body); font-weight: 400; color: var(--ink-mute); font-size: .9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--cream); border: 2px solid rgba(15,35,64,.12);
  border-radius: 14px; padding: 13px 16px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field .help { font-size: .88rem; color: var(--ink-mute); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); margin: 6px 0 22px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--teal); }
.check a { color: var(--teal); font-weight: 700; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .98rem; min-height: 1.4em; }
.form-status.err { color: #B3361A; }
.form-done { text-align: center; padding: 30px 6px; }
.form-done .ok { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.form-done .ok svg { width: 36px; height: 36px; color: var(--navy); }
.form-done h3 { font-size: 1.9rem; margin-bottom: .4em; }
.form-done p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0A1830; color: #B7C2D2; padding: 56px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 40px; align-items: start; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8E9BB0; }
.foot-hand { font-family: var(--hand); font-size: 1.7rem; color: var(--yellow); margin: 18px 0 0; line-height: 1.1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-links a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; }
.foot-links a:hover { color: var(--yellow); }
.foot-small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; color: #8E9BB0; }

/* ---------- Pagine semplici (privacy, grazie, 404) ---------- */
.page { padding: clamp(48px, 7vw, 96px) 0; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); margin: .3em 0 .5em; }
.page h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.page .updated { font-size: .92rem; color: var(--ink-mute); }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.center-page img { width: 110px; margin: 0 auto 24px; }
.center-page h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); margin-bottom: .4em; }
.center-page p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 1.6em; }

.linkish { border: 0; padding: 0; background: none; font: inherit; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Comparsa allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 22px; background: var(--cream); border-bottom: 1px solid rgba(15,35,64,.1); box-shadow: 0 20px 30px -20px rgba(15,35,64,.4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .85em .6em; font-size: 1.1rem; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; min-height: 54px; }
  .menu-btn { display: inline-flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .chat-wrap { max-width: 520px; margin: 64px auto 0; width: 100%; }
  .steps, .reels, .tips { grid-template-columns: 1fr; }
  .reels { max-width: 440px; margin: 0 auto; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topic, .topic:nth-child(4), .topic:nth-child(5) { grid-column: span 1; }
  .topic:nth-child(5) { grid-column: 1 / -1; }
  .try, .glossary, .about, .ask { grid-template-columns: 1fr; }
  .glossary .section-head { position: static; }
  .about-visual { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .brand small { display: none; }
  .brand { font-size: 1.12rem; }
  .why .wrap { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr; }
  .topic:nth-child(5) { grid-column: auto; }
  .chips { grid-template-columns: 1fr; }
  .switch button { font-size: .86rem; padding: .6em .85em; white-space: nowrap; }
  .reels { display: flex; max-width: none; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 76%; scroll-snap-align: center; }
  .reel h3 { font-size: 1.15rem; }
  .row2 { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .chat { transform: none; }
  .chat-wrap::before { inset: 10px -6px -10px 6px; }
  .scribble { right: 4px; top: -40px; font-size: 1.3rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .mug { right: 6px; bottom: -36px; font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .hl::after { animation: none; }
}
