/* ============================================================
   Elea Digital — brochure stampabile (A4)
   Pensata per "Stampa → Salva come PDF" con risultato pulito.
   ============================================================ */

:root {
  --forest: #1f3b30; --olive: #4d6b4f; --sage: #8aa07f;
  --terra: #c56a3f; --terra-dk: #a8552f; --ochre: #cf9a45;
  --sand: #f3ead8; --cream: #fbf6ec; --ink: #23302a; --muted: #5d6b60;
  --line: rgba(31,59,48,.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #cdc4b2; font-family: var(--sans); color: var(--ink); line-height: 1.6; }

/* barra strumenti (solo a schermo) */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--forest); color: var(--sand);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; gap: 16px;
}
.toolbar .t-left { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.05rem; }
.toolbar .t-logo { height: 30px; width: auto; border-radius: 6px; display: block; }
.toolbar .t-actions { display: flex; gap: 10px; flex: none; }
.toolbar a, .toolbar button {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; line-height: 1;
  padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
  white-space: nowrap;
}
.toolbar svg { width: 17px; height: 17px; flex: none; }
.toolbar .b-print { background: var(--terra); color: #fff; }
.toolbar .b-back { background: transparent; border-color: rgba(255,255,255,.4); color: var(--sand); }

/* impaginazione "fogli" A4 */
.sheet {
  width: 210mm; min-height: 297mm;
  margin: 22px auto; padding: 18mm 16mm;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}

h1,h2,h3,h4 { font-family: var(--serif); margin: 0 0 .4em; color: var(--forest); line-height: 1.12; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.accent { color: var(--terra-dk); }

.kicker { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-dk); margin-bottom: .6rem; }

/* COPERTINA */
.cover {
  color: var(--sand);
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(207,154,69,.35), transparent 60%),
    radial-gradient(600px 380px at 0% 100%, rgba(197,106,63,.4), transparent 55%),
    linear-gradient(160deg, #234034, var(--forest) 60%, #16291f);
  display: flex; flex-direction: column;
  padding: 24mm 18mm;
}
.cover * { color: var(--sand); }
.cover .c-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.5rem; }
.cover .c-brand .c-logo { height: 46px; width: auto; border-radius: 9px; display: block; }
.cover .c-mid { margin-top: auto; }
.cover h1 { color: #fff; font-size: 40pt; line-height: 1.05; }
.cover h1 em { color: var(--ochre); font-style: italic; }
.cover .c-tag { font-size: 14pt; max-width: 130mm; color: rgba(243,234,216,.9); }
.cover .c-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 9pt; border-top: 1px solid rgba(255,255,255,.2); padding-top: 10px; color: rgba(243,234,216,.8); }
.cover .c-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cover .c-pills span { font-size: 8.5pt; border: 1px solid rgba(255,255,255,.3); padding: 4px 10px; border-radius: 999px; }

/* intestazione foglio */
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--terra); padding-bottom: 8px; margin-bottom: 22px; }
.sheet-head .sh-name { font-family: var(--serif); color: var(--forest); font-size: 12pt; }
.sheet-head .sh-page { font-size: 8.5pt; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }

h2.block { font-size: 22pt; margin-bottom: .15em; }
.lead-row { color: var(--muted); margin-bottom: 18px; max-width: 150mm; }

/* griglia servizi nella brochure */
.b-services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b-serv { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--cream); break-inside: avoid; }
.b-serv h3 { font-size: 12.5pt; display: flex; align-items: center; gap: 8px; }
.b-serv h3 .bi { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(150deg, var(--olive), var(--forest)); color: var(--sand); display: grid; place-items: center; flex: none; }
.b-serv h3 .bi svg { width: 17px; height: 17px; }
.b-serv .b-lead { color: var(--terra-dk); font-weight: 600; font-size: 9pt; margin: 0 0 4px; }
.b-serv .b-desc { font-size: 9pt; color: var(--muted); margin: 0 0 6px; }
.b-serv ul { margin: 0; padding-left: 16px; }
.b-serv li { font-size: 8.6pt; margin-bottom: 2px; }
.b-serv .b-tag { display: inline-block; margin-top: 8px; font-size: 7.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.b-tag.progetto { background: rgba(207,154,69,.2); color: #8a6315; }
.b-tag.abbonamento { background: rgba(77,107,79,.18); color: var(--olive); }

/* modelli prezzo */
.b-billing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.b-bill { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; break-inside: avoid; }
.b-bill .bb-badge { display: inline-block; font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--ochre); color: var(--forest); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.b-bill h3 { font-size: 14pt; }
.b-bill p { font-size: 9.5pt; color: var(--muted); }
.b-bill ul { margin: 8px 0 0; padding-left: 16px; }
.b-bill li { font-size: 9pt; margin-bottom: 3px; }

/* settori */
.b-sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.b-sec { border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; text-align: center; background: var(--cream); }
.b-sec .si { color: var(--olive); display: grid; place-items: center; margin-bottom: 6px; }
.b-sec .si svg { width: 24px; height: 24px; }
.b-sec span { font-size: 8.5pt; font-weight: 600; }

/* processo */
.b-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.b-step { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--cream); break-inside: avoid; }
.b-step .bn { font-family: var(--serif); font-size: 20pt; color: rgba(197,106,63,.35); line-height: 1; }
.b-step h3 { font-size: 11pt; margin: 2px 0; }
.b-step p { font-size: 8.6pt; color: var(--muted); margin: 0; }

/* faq */
.b-faq { margin-top: 8px; }
.b-faq .qa { border-bottom: 1px solid var(--line); padding: 10px 0; break-inside: avoid; }
.b-faq .qa h3 { font-size: 11pt; color: var(--forest); margin-bottom: 3px; }
.b-faq .qa p { font-size: 9pt; color: var(--muted); margin: 0; }

/* blocco contatti finale */
.b-contact { margin-top: auto; background: var(--forest); color: var(--sand); border-radius: 14px; padding: 22px 26px; }
.b-contact * { color: var(--sand); }
.b-contact h2 { color: #fff; font-size: 18pt; }
.b-contact .rows { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; font-size: 10pt; }
.b-contact .rows b { color: var(--ochre); display: block; font-size: 8pt; text-transform: uppercase; letter-spacing: .12em; }

/* ============================================================
   STAMPA
   ============================================================ */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .toolbar { display: none !important; }
  .sheet { width: auto; min-height: auto; height: 297mm; margin: 0; box-shadow: none; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
  .cover { height: 297mm; }
  a { color: inherit; text-decoration: none; }
  .b-serv, .b-bill, .b-step, .b-sec { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
