/* Il Gioiello LAB, landing vendita oro. Font ospitato qui: nessuna chiamata a Google. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans.woff2') format('woff2');
}

:root {
  /* Layout: pagina bianca, una colonna su telefono; su computer titolo di sezione a sinistra e contenuto a destra.
     Tutto allineato a sinistra. Un solo riquadro in tutta la pagina: il modulo.
     Colore: solo bianco, nero e grigi neutri. L'oro è l'unico accento e segna dove si agisce. */
  --bg: #FFFFFF;
  --bg-soft: #F5F4F1;
  --ink: #171614;
  --ink-soft: #5C5952;
  --line: #DEDBD4;
  --field: #8E8A80;
  --gold: #D2A154;
  --gold-hover: #BF8D3F;
  --display: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 30; padding: 12px 16px; background: var(--ink); color: #FFFFFF; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Testo: un solo carattere, Instrument Sans, in due pesi (400 per il testo, 600 per titoli, etichette e pulsanti) */
.h1, .h2, .h3, .say {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.022em;
}
.h1 { font-size: clamp(30px, 11vw, 64px); line-height: 1.04; }
.h2 { font-size: clamp(30px, 7.2vw, 46px); line-height: 1.08; text-wrap: balance; }
.h3 { font-size: clamp(24px, 5.8vw, 30px); line-height: 1.15; }
.say { font-size: clamp(26px, 6.2vw, 36px); line-height: 1.16; max-width: 20em; text-wrap: balance; }
.note { font-size: 16px; color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.measure { max-width: 34em; }

.wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 8px 26px;
  border: 1px solid transparent; border-radius: 4px;
  font-family: var(--body); font-weight: 600; font-size: 18px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--plain { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--plain:hover { background: var(--ink); color: #FFFFFF; }
.btn--full { width: 100%; }

/* Testata */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.logo { display: block; height: 30px; width: auto; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }

/* Apertura */
.hero { padding: 20px 0 64px; }
.hero__grid { display: grid; gap: 32px; grid-template-areas: "head" "form" "checks" "photo"; }
.hero__head { grid-area: head; display: flex; flex-direction: column; gap: 20px; }
.hero__form { grid-area: form; scroll-margin-top: 16px; }
.hero__checks { grid-area: checks; }
.hero__photo { grid-area: photo; }
.h1__line { display: block; }
.slot { display: block; height: 1.3em; margin-bottom: -0.26em; overflow: hidden; white-space: nowrap; line-height: 1.04; }
.slot__w { position: relative; display: inline-block; }
.slot__w::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.06em; background: var(--gold); transform-origin: left center; }
.slot__w.is-in::after { animation: grow-x 0.5s var(--ease) 0.12s both; }
.slot__w.is-out { animation: slot-out 0.26s ease-in forwards; }
.slot__w.is-in { animation: slot-in 0.5s var(--ease) both; }
@keyframes slot-out { to { transform: translateY(-55%); opacity: 0; } }
@keyframes slot-in { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }

.checks { display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: var(--gold); color: var(--ink); }

/* Modulo: l'unico riquadro della pagina */
.panel { padding: 24px; border-radius: 6px; background: var(--bg-soft); }
.form { display: grid; gap: 20px; }
.form__head { display: grid; gap: 8px; }
.fld { display: grid; gap: 8px; }
.fld label { font-weight: 600; font-size: 17px; }
.inp {
  width: 100%; height: 56px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 4px;
  background: #FFFFFF; color: var(--ink);
  font-family: var(--body); font-weight: 400; font-size: 19px;
}
.inp:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
select.inp {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23171614' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.err { display: none; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 600; }
.err svg { flex: none; margin-top: 3px; }
.is-bad .err { display: flex; }
.is-bad .inp { border: 2px solid var(--ink); }
.agree { display: grid; gap: 8px; }
.agree__row { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; }
.agree__row input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }
.done { display: grid; gap: 16px; }
.done[hidden], .form[hidden] { display: none; }

/* Sezioni */
.sec { padding: 64px 0; }
.sec--soft { background: var(--bg-soft); }
.sec__grid { display: grid; gap: 28px; }
.sec__head { display: flex; flex-direction: column; gap: 14px; }

/* Passi: la linea oro si riempie mentre scorri */
.steps { position: relative; display: grid; gap: 36px; padding-left: 52px; }
.steps::before, .steps::after { content: ""; position: absolute; z-index: 0; left: 13px; top: 6px; width: 2px; }
.steps::before { bottom: 6px; background: var(--line); }
.steps::after { height: calc((100% - 12px) * var(--p, 1)); background: var(--gold); }
.step { position: relative; z-index: 1; display: grid; gap: 6px; }
.step__n { position: absolute; z-index: 1; left: -52px; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-weight: 600; font-size: 15px; line-height: 1; }
.bring { display: grid; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Elenchi a righe */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.say { margin-top: 40px; }
.say::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: 20px; background: var(--gold); }

/* Spazi per le foto: qui andranno immagini vere, il testo dice quale */
.shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 10; padding: 20px; border-radius: 6px; background: #E8E6E0; color: var(--ink-soft); font-size: 16px; line-height: 1.35; text-align: center; }
.shot--wide { aspect-ratio: 16 / 9; }
.shot--round { flex: none; width: 64px; height: 64px; aspect-ratio: auto; padding: 0; border-radius: 50%; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.shot--img { padding: 0; overflow: hidden; background: #E8E6E0; }
.shot--img img { object-position: 50% 50%; }
.shot--store img { object-position: 0% 50%; }

/* Cosa puoi vendere: tre riquadri foto */
.tiles { display: grid; gap: 32px; margin-top: 32px; }
.tile { display: grid; gap: 6px; align-content: start; }
.tile .shot { margin-bottom: 10px; }

/* Chi siamo */
.who { display: flex; align-items: center; gap: 16px; }
.about { display: grid; gap: 28px; }
.stars { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.quotes { display: grid; gap: 24px; }
.quote { display: grid; gap: 8px; }
.quote cite { font-style: normal; }

/* Domande */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 16px 0; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 0 22px; max-width: 34em; animation: answer 0.35s var(--ease) both; }
@keyframes answer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Dove siamo */
.where { display: grid; gap: 28px; }
.where__lines { display: grid; gap: 6px; }
.where__logo { margin-bottom: 6px; }
.logo--where { height: 34px; }
.hours { display: grid; grid-template-columns: max-content 1fr; column-gap: 24px; row-gap: 6px; margin: 6px 0 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours dt, .hours dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { padding: 28px 0 104px; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Barra fissa su telefono */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px; padding: 10px 16px;
  background: #FFFFFF; border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.bar.is-on { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
.bar .btn { min-height: 52px; padding: 8px 16px; font-size: 17px; }
.bar .btn--gold { flex: 1; }

/* Animazioni. Lo stato di riposo è sempre visibile: partono al caricamento o quando un blocco sta per entrare nello schermo. */
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(440%) skewX(-18deg); } }
@keyframes sheen-again { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(440%) skewX(-18deg); } }

/* Apertura, in sequenza */
.top { animation: fade-down 0.6s var(--ease) both; }
.h1__line, .slot { animation: rise-in 0.8s var(--ease) both; }
.slot { animation-delay: 0.07s; }
.h1__line:last-child { animation-delay: 0.14s; }
.hero__head > p { animation: rise-in 0.8s var(--ease) 0.24s both; }
.hero__form { animation: rise-in 0.8s var(--ease) 0.34s both; }
.hero__photo { animation: rise-in 0.8s var(--ease) 0.7s both; }
.hero__checks li { animation: rise-in 0.6s var(--ease) both; animation-delay: calc(0.5s + var(--n, 0) * 0.08s); }
.hero__checks li:nth-child(2) { --n: 1; }
.hero__checks li:nth-child(3) { --n: 2; }
.hero__checks li:nth-child(4) { --n: 3; }
.hero__checks li:nth-child(5) { --n: 4; }
.hero__checks .tick { animation: pop 0.45s var(--ease) both; animation-delay: calc(0.62s + var(--n, 0) * 0.08s); }

/* Riflesso sul pulsante oro: una volta all'apertura, poi al passaggio */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); transform: translateX(-130%) skewX(-18deg); pointer-events: none; }
#lead-form .btn--gold::after { animation: sheen 1.1s var(--ease) 1.6s 1; }
.btn--gold:hover::after, .btn--gold:focus-visible::after { animation: sheen-again 0.9s var(--ease) 1; }

/* Comparsa mentre scorri */
.in { animation: rise-in 0.8s var(--ease) both; animation-delay: var(--d, 0s); }
.say::before { transform-origin: left center; }
.say.in::before { animation: grow-x 0.7s var(--ease) 0.35s both; }
.stars.in polygon { animation: appear 0.4s ease both; }
.stars.in polygon:nth-child(1) { animation-delay: 0.2s; }
.stars.in polygon:nth-child(2) { animation-delay: 0.32s; }
.stars.in polygon:nth-child(3) { animation-delay: 0.44s; }
.stars.in polygon:nth-child(4) { animation-delay: 0.56s; }
.stars.in polygon:nth-child(5) { animation-delay: 0.68s; }

/* Passi: il numero diventa oro quando la linea lo raggiunge */
.step__n { transition: background 0.35s, color 0.35s; }
.step.is-on .step__n { background: var(--gold); color: var(--ink); }

/* Conferma del modulo */
.tick--big { width: 44px; height: 44px; margin: 0; }
.done:not([hidden]) { animation: rise-in 0.5s var(--ease) both; }
.done:not([hidden]) .tick--big { animation: pop 0.5s var(--ease) 0.15s both; }

@media (min-width: 640px) {
  .row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 32px; align-items: baseline; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .tile .shot { aspect-ratio: 4 / 3; }
  .bar { display: none; }
  .foot { padding-bottom: 28px; }
}
@media (min-width: 900px) {
  body { font-size: 20px; }
  .h1 { font-size: clamp(40px, 6vw, 78px); }
  .logo { height: 38px; }
  .hero { padding: 40px 0 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: 72px; row-gap: 36px; grid-template-rows: auto auto 1fr; grid-template-areas: "head form" "checks form" "photo form"; align-items: start; }
  .hero__head { gap: 24px; padding-top: 24px; }
  .panel { padding: 36px; }
  .sec { padding: 104px 0; }
  .sec__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 72px; }
  .sec__head--sticky { position: sticky; top: 32px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Invio del modulo */
.btn[disabled] { opacity: 0.7; cursor: progress; }
.send-err { display: grid; gap: 12px; padding: 16px; border-left: 3px solid var(--ink); background: #FFFFFF; font-size: 17px; }
.send-err[hidden] { display: none; }
.send-err strong { font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Banner cookie: Accetta e Rifiuta hanno lo stesso peso */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23, 22, 20, 0.08); }
.cc[hidden] { display: none; }
.cc__in { display: grid; gap: 16px; }
.cc p { font-size: 16px; line-height: 1.5; max-width: 68ch; }
.cc__btns { display: flex; gap: 12px; }
.cc__btns .btn { flex: 1; min-height: 48px; padding: 8px 18px; font-size: 17px; }
@media (min-width: 900px) {
  .cc__in { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .cc__btns .btn { flex: none; min-width: 140px; }
}
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Pagine di testo: grazie, privacy, cookie */
.page { padding: 32px 0 64px; }
.page .wrap > * { max-width: 68ch; }
.legal { display: grid; gap: 14px; }
.legal h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.08; letter-spacing: -0.022em; font-weight: 600; margin-bottom: 8px; }
.legal h2 { font-size: 22px; line-height: 1.2; font-weight: 600; margin-top: 18px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.thanks { display: grid; gap: 18px; }
.thanks .tick--big { animation: pop 0.5s var(--ease) 0.15s both; }
.thanks .hours { margin-top: 4px; }

.thanks .bring { margin-top: 8px; }
.legal td:first-child { white-space: nowrap; padding-right: 16px; }
