/* THE RESTART KIT — sistema visivo web (Quiet Page tradotto al browser)
   Serif: Source Serif 4 (sostituisce Constantia — non disponibile sul web)
   Sans:  Inter (sostituisce Segoe UI — non disponibile sul web)
   Colore: solo nero/bianco/grigi. Nessun accento colorato, per coerenza col PDF. */

:root{
  --ink:        #111111;
  --ink-soft:   #3a3a3a;
  --ink-faint:  #6b6b6b;
  --line:       #111111;
  --line-soft:  #cfcfcf;
  --paper:      #ffffff;
  --paper-tint: #fafaf9;
  --max-w:      680px;
  --pad:        24px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; width: 100%; height: auto; display: block; }

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap--wide{ max-width: 920px; }

/* ---------- typographic primitives ---------- */
h1,h2,h3{ font-family: var(--serif); font-weight: 700; margin: 0; }
p{ margin: 0 0 1.1em; }
p:last-child{ margin-bottom: 0; }
a{ color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--ink-soft); }
.label{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hair{
  border: none;
  border-top: 1px solid var(--line);
  width: 48px;
  margin: 16px 0 0;
}
.hair--full{ width: 100%; border-top: 1px solid var(--line-soft); margin: 0; }
.italic{ font-style: italic; color: var(--ink-soft); }
.small{ font-size: 14px; }

/* ---------- the three-loop mark ---------- */
.mark{ display:block; }
.mark circle,.mark path{ fill:none; stroke:var(--ink); stroke-linecap:round; }

/* ---------- header / nav ---------- */
.site-header{
  padding: 22px 0;
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; }
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--sans); font-weight:700; font-size:15px;
  letter-spacing:.01em; color: var(--ink); text-decoration:none;
}
.brand .mark{ width:20px; height:20px; }
.site-header nav a{
  font-family: var(--sans); font-size: 13px; color: var(--ink-faint);
  text-decoration:none; margin-left: 22px;
}
.site-header nav a:hover{ color: var(--ink); }

/* ---------- hero ---------- */
.hero{ padding: 56px 0 40px; }
.hero .mark--big{ width:64px; height:64px; margin-bottom:28px; }
.hero .label{ margin-bottom: 10px; }
.hero h1{ font-size: 40px; line-height: 1.12; letter-spacing: -.01em; }
.hero .hair{ margin: 20px 0; }
.hero .sub{ font-size: 19px; color: var(--ink-soft); margin-top: 18px; max-width: 46ch; }
.hero .format{ font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-top: 20px; font-style: italic; }

/* ---------- sections ---------- */
section{ padding: 44px 0; }
section + section{ border-top: 1px solid var(--line-soft); }
.section-label{ margin-bottom: 10px; }
h2.section-title{ font-size: 26px; line-height:1.25; margin-bottom: 18px; max-width: 22ch; }
.lede{ font-size: 18px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- loop trio (SORT/START/RESET) ---------- */
.trio{ display:grid; grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
.trio .item{ padding-top: 14px; border-top: 1px solid var(--line-soft); }
.trio .item .label{ margin-bottom: 6px; }
.trio .item p{ color: var(--ink-soft); font-size: 15.5px; }
@media(min-width: 640px){
  .trio{ grid-template-columns: repeat(3,1fr); gap: 28px; }
}

/* ---------- what you get / master sheets ---------- */
.masters{ margin-top: 26px; }
.masters .row{
  display:flex; justify-content:space-between; align-items:baseline;
  padding: 11px 0; border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 14.5px;
}
.masters .row:last-child{ border-bottom: 1px solid var(--line-soft); }
.masters .row .name{ color: var(--ink); }
.masters .row .rhythm{ color: var(--ink-faint); text-align:right; }
.masters .total{
  margin-top: 16px; font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
}
.masters .total strong{ color: var(--ink); }

/* ---------- preview gallery ---------- */
.gallery{
  display:grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 26px;
}
.gallery figure{ margin:0; }
.gallery img{
  border: 1px solid var(--line-soft);
  aspect-ratio: 1100 / 1423;   /* forza la proporzione reale della pagina, indipendente dagli attributi HTML */
  object-fit: cover;
  cursor: zoom-in;
}
.gallery figcaption{
  font-family: var(--sans); font-size: 12px; color: var(--ink-faint);
  margin-top: 8px;
}
@media(min-width: 640px){
  .gallery{ grid-template-columns: repeat(3,1fr); }
  .gallery figure:first-child{ grid-column: span 3; max-width: 340px; margin: 0 auto; }
}

/* ---------- gallery lightbox ---------- */
.lightbox{
  display:none; position:fixed; inset:0; z-index:100;
  background: rgba(17,17,17,.92);
  padding: 56px 20px;
  align-items:center; justify-content:center;
}
.lightbox.is-open{ display:flex; }
.lightbox-inner{ max-width: 520px; width:100%; text-align:center; }
.lightbox-inner img{
  width:100%; height:auto; display:block;
  border: 1px solid #3a3a3a;
}
.lightbox-inner figcaption{
  font-family: var(--sans); font-size: 13px; color: #cfcfcf; margin-top: 14px;
}
.lightbox-close{
  position:fixed; top:18px; right:22px; background:none; border:none; color:#fff;
  font-family: var(--sans); font-size: 30px; line-height:1; cursor:pointer; padding:6px 10px;
}
.lightbox-close:hover{ color:#cfcfcf; }

/* ---------- for you / not for you ---------- */
.fit{ display:grid; grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
.fit ul{ margin:0; padding:0; list-style:none; }
.fit li{
  padding: 9px 0 9px 20px; position:relative; border-top: 1px solid var(--line-soft);
  font-size: 15.5px; color: var(--ink-soft);
}
.fit li:last-child{ border-bottom: 1px solid var(--line-soft); }
.fit li::before{ content:"—"; position:absolute; left:0; color: var(--ink-faint); }
@media(min-width: 640px){ .fit{ grid-template-columns: 1fr 1fr; } }

/* ---------- price / cta block ---------- */
.price-block{
  background: var(--paper-tint);
  border: 1px solid var(--line-soft);
  padding: 34px 26px;
  text-align: center;
}
.price-block .price{ font-family: var(--serif); font-size: 46px; font-weight:700; }
.price-block .price sup{ font-size: 20px; top:-1.3em; }
.price-block .price-note{ font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

.btn{
  display:inline-block; font-family: var(--sans); font-weight:600; font-size:15px;
  padding: 15px 30px; border-radius: 3px; text-decoration:none; cursor:pointer;
  border: 1px solid var(--ink);
}
.btn--primary{ background: var(--ink); color: var(--paper); }
.btn--primary:hover{ background: #000; }
.btn--disabled{
  background: var(--paper); color: var(--ink-faint); border-color: var(--line-soft);
  cursor: not-allowed; pointer-events: none;
}
.btn-row{ margin-top: 22px; }

.guarantee{
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); max-width: 46ch;
  margin-left:auto; margin-right:auto;
}
.guarantee strong{ color: var(--ink); }

/* ---------- email capture (coming soon) ---------- */
.notify{ margin-top: 30px; }
.notify .label{ margin-bottom: 10px; }
.notify form{ display:flex; gap:8px; flex-wrap: wrap; max-width: 420px; }
.notify input[type=email]{
  flex: 1 1 220px; font-family: var(--sans); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--ink); border-radius: 3px; background: var(--paper);
  color: var(--ink);
}
.notify button{
  font-family: var(--sans); font-weight:600; font-size:14px;
  padding: 12px 20px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 3px; cursor:pointer;
}
.notify button:hover{ background:#000; }
.notify .fineprint{ font-family: var(--sans); font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.notify .success-msg{ display:none; font-family: var(--sans); font-size: 14.5px; padding-top:6px; }
.notify.is-success form{ display:none; }
.notify.is-success .success-msg{ display:block; }
/* honeypot */
.hp-field{ position:absolute; left:-9999px; top:-9999px; }

/* ---------- FAQ ---------- */
.faq-item{ padding: 18px 0; border-top: 1px solid var(--line-soft); }
.faq-item:last-child{ border-bottom: 1px solid var(--line-soft); }
.faq-item h3{ font-size: 16.5px; margin-bottom: 8px; }
.faq-item p{ color: var(--ink-soft); font-size: 15px; }

/* ---------- footer ---------- */
footer{ padding: 40px 0 60px; }
footer .mark{ width: 26px; height: 26px; margin-bottom: 16px; }
.footer-links{ font-family: var(--sans); font-size: 13px; margin-top: 18px; }
.footer-links a{ color: var(--ink-soft); text-decoration:none; margin-right: 18px; display:inline-block; margin-bottom: 8px; }
.footer-links a:hover{ color: var(--ink); }
.footer-disclaimer{
  font-family: var(--sans); font-size: 12px; color: var(--ink-faint);
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  max-width: 60ch;
}

/* ---------- legal pages ---------- */
.legal h1{ font-size: 30px; margin-bottom: 6px; }
.legal .updated{ font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-bottom: 30px; }
.legal h2{ font-size: 19px; margin: 34px 0 10px; }
.legal p, .legal li{ color: var(--ink-soft); font-size: 15.5px; }
.legal ul{ padding-left: 20px; }
.back-link{ font-family: var(--sans); font-size: 13px; display:inline-block; margin-bottom: 30px; color: var(--ink-faint); text-decoration:none; }
.back-link:hover{ color: var(--ink); }

/* ---------- responsive base ---------- */
@media(min-width: 640px){
  body{ font-size: 18px; }
  .hero{ padding: 88px 0 56px; }
  .hero h1{ font-size: 52px; }
  section{ padding: 60px 0; }
}
