/* PaperMaker.it — sito statico (2026-10). Palette «carta e inchiostro» ricavata dal logo. */
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --card: #fffdf8;
  --ink: #2b1f1b;
  --ink-soft: #5d4e47;
  --brown: #563a33;
  --brown-deep: #2a1d19;
  --burgundy: #7d1e22;
  --burgundy-dark: #61161a;
  --khaki: #c5bc94;
  --line: #e0d5c0;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(43 31 27 / .06), 0 8px 28px rgb(43 31 27 / .08);
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-dark); }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }
em.accent, .accent { font-style: italic; color: var(--burgundy); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 242 232 / .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 40px; flex: none; }
.brand-name { font: 500 1.5rem/1 var(--serif); letter-spacing: .02em; }
.brand-name span { color: var(--burgundy); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: .5em .8em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--burgundy); }
.nav .btn { margin-left: 10px; padding: .65em 1.1em; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav-wrap { position: relative; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; background: var(--card); color: var(--ink); }
  .menu-toggle svg { width: 22px; height: 22px; }
  .js .nav-wrap:not(.open) .nav { display: none; }
  .js .nav { position: absolute; right: 0; top: 54px; flex-direction: column; align-items: stretch; width: min(280px, calc(100vw - 32px)); padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .js .nav a { padding: .8em 1em; }
  .js .nav .btn { margin: 6px 0 0; justify-content: center; }
  html:not(.js) .nav .btn { display: none; }
  html:not(.js) .nav a { padding: .4em .5em; font-size: .85rem; }
}

/* Sezioni */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--burgundy); }
.hero .lead { margin-bottom: 2rem; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }
.hero-figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--khaki); border-radius: 18px; z-index: -1; }
.hero-badge { position: absolute; left: -22px; bottom: 28px; background: var(--card); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 270px; }
.hero-badge b { font: 600 1.6rem/1 var(--serif); color: var(--burgundy); }
.hero-badge span { font-size: .85rem; line-height: 1.35; color: var(--ink-soft); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-badge { left: 12px; } }

.facts { border-block: 1px solid var(--line); padding: 22px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.facts svg { width: 20px; height: 20px; color: var(--burgundy); flex: none; }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: italic 500 2.6rem/1 var(--serif); color: var(--burgundy); margin-bottom: 12px; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Schede servizi */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plans.two { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--burgundy); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--burgundy); color: #fff; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.plan h3 { margin-bottom: .3em; }
.plan .price { font: 500 2.2rem/1 var(--serif); color: var(--ink); margin: 10px 0 4px; }
.plan .price small { font: 500 .9rem var(--sans); color: var(--ink-soft); }
.plan .price-note { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.plan p { color: var(--ink-soft); font-size: .97rem; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 18px; }
.plan li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.plan li b { font-weight: 600; white-space: nowrap; }
.plan .rights { margin-top: auto; font-size: .85rem; color: var(--brown); display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; }
.plan .rights svg { width: 18px; height: 18px; flex: none; color: var(--burgundy); margin-top: 2px; }
.plan .more { margin-top: auto; font-weight: 600; text-decoration: none; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans, .plans.two { grid-template-columns: 1fr; } }

/* Fascia scura pubblicazioni */
.shelf { background: var(--brown-deep); color: #efe6d4; overflow: hidden; }
.shelf h2, .shelf h3 { color: #fbf6ec; }
.shelf .eyebrow { color: var(--khaki); }
.shelf .lead { color: #cfc3ad; }
.shelf .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.covers { display: flex; gap: 18px; align-items: flex-end; justify-content: center; }
.covers img { width: 30%; border-radius: 4px 8px 8px 4px; box-shadow: -6px 10px 24px rgb(0 0 0 / .45); transition: transform .25s; }
.covers img:nth-child(2) { width: 34%; }
.covers img:hover { transform: translateY(-6px) rotate(-1deg); }
@media (max-width: 860px) { .shelf .wrap { grid-template-columns: 1fr; } }

/* Riquadro a due colonne con foto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cta-band { background: var(--burgundy); color: #fff; border-radius: 22px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #f3dcdc; margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Intestazione pagine interne */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin: 0; }

/* Prodotti */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-cover { background: var(--paper-2); padding: 30px 30px 26px; display: flex; justify-content: center; position: relative; }
.product-cover img { height: 250px; width: auto; border-radius: 3px 6px 6px 3px; box-shadow: -5px 8px 18px rgb(43 31 27 / .25); }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--ink-soft); font-size: .95rem; }
.product .kind { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 8px; }
.product .badge { position: absolute; top: 14px; right: 14px; background: var(--ink); color: var(--paper); font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.product .btns { margin-top: auto; }
.product .btn { padding: .7em 1.1em; font-size: .88rem; }

/* Chi siamo */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.person div { padding: 26px 28px 30px; }
.person .role { font: 600 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 10px; }
.person p { color: var(--ink-soft); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* Contatti */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item svg { width: 24px; height: 24px; color: var(--burgundy); flex: none; margin-top: 3px; }
.contact-item h3 { font-size: 1.2rem; margin-bottom: .2em; }
.contact-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em; }
input:focus, textarea:focus { outline: none; border-color: var(--burgundy); background: #fff; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 16px 0 0; }
.form-error { color: var(--burgundy); font-weight: 600; font-size: .9rem; min-height: 1.4em; margin: 10px 0 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* Galleria contenuti HD */
.book-head { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; }
.book-head img { border-radius: 3px 6px 6px 3px; box-shadow: -6px 10px 24px rgb(43 31 27 / .3); }
@media (max-width: 600px) { .book-head { grid-template-columns: 120px 1fr; gap: 20px; } }
.chapter { margin-top: 48px; }
.chapter h2 { font-size: 1.7rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery a { display: block; text-decoration: none; color: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; transition: transform .2s, box-shadow .2s; }
.gallery a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery span { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgb(20 14 12 / .88); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 8px; }
dialog.lightbox p { color: #f1e8d8; text-align: center; margin: 10px 0 0; font-size: .95rem; }
dialog.lightbox button { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Testi lunghi (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.prose li { margin-bottom: .4em; }

/* Piè di pagina */
.site-footer { background: var(--brown-deep); color: #cfc3ad; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #f3ead9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { color: #fbf6ec; font-size: 1.2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fbf6ec; margin-bottom: 16px; }
.site-footer .brand-name span { color: var(--khaki); }
.dw { margin-top: 18px; display: inline-block; }
.dw img { width: 170px; opacity: .85; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
