/* Tuttle Edizioni - sito pubblico */
:root {
  --line: #d9d9d4;
  --page: #ffffff;
  --ink: #000000;
  --ink-2: #5c5c5c;
  --accent: #b3261e;
  --blowup-red: #D20300; /* il rosso di blowupmagazine.com (barra del menu del vecchio sito) */
  --menu-hi: #000000;    /* voci del menu al passaggio del mouse e pagina attiva (bianco vivo con il tema scuro) */
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "P052", Georgia, serif;
  --head-h: 98px;       /* altezza della testata intera: la ricalcola lo script in layout.php */
  --head-compact: 54px; /* altezza della testata ridotta, quando si scorre la pagina */
  --head-gap: 28px;     /* spazio tra la testata e la pagina */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --menu-hi: #ffffff; --page: #171717; --ink: #f2f2f0; --ink-2: #a8a8a4; --accent: #ef6b62; --line: #3a3a37; }
}
:root[data-theme="dark"] { --menu-hi: #ffffff; --page: #171717; --ink: #f2f2f0; --ink-2: #a8a8a4; --accent: #ef6b62; --line: #3a3a37; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 17px/1.5 var(--serif); -webkit-font-smoothing: antialiased; cursor: default; }
/* la manina solo dove si può cliccare */
a[href], button, select, label[for], summary { cursor: pointer; }
input[type=search], input[type=text], textarea { cursor: text; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* testata: la riga rossa è larga quanto il contenuto della pagina.
   È sempre fissa in alto; scorrendo la pagina diventa una riga sola più bassa (classe .is-compact, messa dallo script
   in layout.php). Lo spazio della testata intera resta riservato in cima alla pagina, così il contenuto non salta. */
html { scroll-padding-top: calc(var(--head-compact) + 16px); }
body { padding-top: calc(var(--head-h) + var(--head-gap)); }
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--page); transition: padding-bottom .25s ease; }
.site-head { position: relative; max-width: 1360px; margin: 0 auto; padding: 22px 32px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px;
  transition: padding .25s ease; }
.site-head::after { content: ""; position: absolute; left: 32px; right: 32px; bottom: 0; height: 4px; background: var(--blowup-red); transition: height .25s ease; }
.logo { display: block; flex: none; line-height: 0; text-decoration: none; font-size: 1.9rem; }
.logo img { display: block; height: 52px; width: auto; transition: height .25s ease; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; flex: 1 1 auto; font-size: 1.05rem; transition: font-size .25s ease; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a { transition: color .15s ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--menu-hi); text-decoration: none; } /* senza sottolineatura */
.head-tools { display: flex; align-items: center; gap: 10px 26px; margin-left: auto; }
.account-link { text-decoration: none; color: var(--ink-2); font-size: 1rem; }
.account-link:hover, .account-link[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.account-link + .account-link { margin-left: -12px; padding-left: 14px; border-left: 1px solid var(--line); }
.langs { display: flex; gap: 12px; font-size: .95rem; }
.langs a { text-decoration: none; color: var(--ink-2); }
.langs a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; font: inherit; font-size: 1rem; color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: 3px; padding: .3rem .8rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { filter: invert(1); } }
:root[data-theme="dark"] .logo img { filter: invert(1); }

/* testata ridotta: una riga sola */
.site-top.is-compact { padding-bottom: 4px; } /* fascia bianca sotto la riga rossa, sopra il testo che scorre */
.site-top.is-compact .site-head { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 10px; }
.site-top.is-compact .site-head::after { height: 3px; }
.site-top.is-compact .logo img { height: 30px; }
.site-top.is-compact .site-nav { flex-wrap: nowrap; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: .98rem; }
.site-top.is-compact .site-nav::-webkit-scrollbar { display: none; }
.site-top.is-compact .head-tools { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .site-top, .site-head, .site-head::after, .logo img, .site-nav { transition: none; }
}

/* griglia della home: le regole dei riquadri sono in tiles.css */
.home-tiles { max-width: 1360px; margin: 0 auto; padding: 0 32px 56px; }

/* sezioni di articoli (Live! e simili) */
.posts-page { max-width: 1360px; margin: 0 auto; padding: 24px 32px 48px; }
.posts-rail { margin-bottom: 40px; }
.posts-title { margin: 0; font-weight: normal; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.posts-intro { margin: .8rem 0 0; color: var(--ink-2); font-size: 1.1rem; max-width: 32ch; }
.posts-search { display: flex; margin-top: 1.6rem; max-width: 420px; border-bottom: 1px solid var(--ink); }
.posts-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.05rem; color: inherit; background: transparent; border: 0; padding: .45rem 0; }
.posts-search input::placeholder { color: var(--ink-2); opacity: .8; }
.posts-search input:focus { outline: none; }
.posts-search:focus-within { box-shadow: 0 1px 0 0 var(--ink); }
.posts-search button { font: inherit; font-size: 1rem; color: var(--ink); background: none; border: 0; padding: .45rem 0 .45rem 1rem; cursor: pointer; font-style: italic; }
.posts-found { margin: .9rem 0 0; color: var(--ink-2); max-width: 36ch; }
.posts-found a { color: var(--ink); white-space: nowrap; }
.posts-list, .posts-next, .posts-page--single .post, .posts-back { max-width: 680px; }
.posts-empty { color: var(--ink-2); font-size: 1.2rem; }
@media (min-width: 1000px) {
  .posts-page:not(.posts-page--single) { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 680px); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .posts-rail { position: sticky; top: calc(var(--head-compact) + var(--head-gap)); grid-row: 1 / span 3; margin: 0; }
  .posts-page--single { padding-left: calc(32px + 320px + clamp(48px, 7vw, 120px)); }
}

.post { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.post__date { margin: 0 0 .5rem; color: var(--ink-2); font-size: .98rem; }
.post__title { margin: 0; font-weight: normal; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.post__sub { margin: .45rem 0 0; font-style: italic; color: var(--ink-2); font-size: 1.15rem; line-height: 1.35; }
.post__photo { margin: 1.6rem 0; }
.post__photo img { display: block; width: 100%; height: auto; }
.post__photo figcaption { margin-top: .5rem; color: var(--ink-2); font-size: .92rem; font-style: italic; line-height: 1.4; }
.post__body { margin-top: 1.4rem; font-size: 1.12rem; line-height: 1.65; overflow-wrap: break-word; }
.post__photo + .post__body { margin-top: 0; }
.post__body p { margin: 0 0 1em; }
.post__body > :last-child { margin-bottom: 0; }
.post__body img { max-width: 100%; height: auto; }
.post__body blockquote { margin: 1.2em 0; padding-left: 1.2em; border-left: 2px solid var(--ink); font-style: italic; }
.post__body h2, .post__body h3 { font-weight: normal; font-size: 1.35rem; margin: 1.4em 0 .4em; }
/* tabelle nel testo (es. pagina Privacy): su telefono scorrono di lato */
.post__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; line-height: 1.45; }
.post__body th, .post__body td { text-align: left; vertical-align: top; padding: .55rem .9rem .55rem 0; border-bottom: 1px solid var(--line); min-width: 9rem; }
.post__body thead th { color: var(--ink-2); font-size: .9rem; border-bottom-color: var(--ink); }
.post__body ul { margin: 0 0 1em; padding-left: 1.2em; }
.post__body li { margin-bottom: .35em; }
.info-page .posts-title + .info-page__body { margin-top: 1.6rem; }
/* pagina Abbonamenti: le offerte da comprare, sotto il testo */
.subs { margin-top: 3rem; padding-top: 2rem; border-top: 4px solid var(--blowup-red); }
.subs__title { margin: 0; font-weight: normal; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; }
.subs__start { margin: .5rem 0 0; color: var(--ink-2); }
.subs__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.subs__item { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line); }
.subs__zone { margin: 0 0 .4rem; color: var(--blowup-red); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.subs__name { margin: 0; font-weight: normal; font-size: 1.3rem; line-height: 1.2; }
.subs__what { margin: .35rem 0 0; color: var(--ink-2); }
.subs__text { margin-top: .8rem; font-size: .98rem; line-height: 1.5; }
.subs__text p { margin: 0 0 .6em; }
.subs__price { margin: auto 0 0; padding-top: 1rem; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.subs__item form { margin-top: .8rem; }
.subs__month { display: block; margin: 0 0 .7rem; font-size: .9rem; color: var(--ink-2); }
.subs__month span { display: block; margin-bottom: .25rem; }
.subs__month select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .4rem .5rem; }
.cart-row__start select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .15rem .3rem; margin-left: .2rem; }
/* più foto in un articolo: una alla volta, a scorrimento, con i puntini sotto (assets/posts.js) */
.post__slides { margin: 1.6rem 0; }
.post__track { display: flex; align-items: flex-start; transition: height .3s ease; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; cursor: pointer; }
.post__track::-webkit-scrollbar { display: none; }
.post__track .post__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.post__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: .7rem; }
.post__dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.post__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s; }
.post__dot:hover::before { background: var(--ink-2); }
.post__dot[aria-current]::before { background: var(--blowup-red); }
.post__slides + .post__body { margin-top: 0; }
.post__more-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 1.6rem; }
.post__more-photos .post__photo { margin: 0; }
.posts-next { margin: 0; }
.posts-next a { display: inline-block; padding: .6rem 0; font-style: italic; font-size: 1.1rem; }
.posts-next a[aria-busy] { opacity: .5; pointer-events: none; }
.posts-back { margin: 0 0 2rem; }
.posts-back a { color: var(--ink-2); }
.posts-page--single .post { border-bottom: 0; }
.posts-page--single .post__title { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* articoli: presentazione gratuita, articolo completo a pagamento */
.article__author { margin: .6rem 0 0; font-size: 1.05rem; }
.article__owned { margin: 1.4rem 0 0; color: var(--ink-2); font-style: italic; }
.article__intro { position: relative; }
.article-buy { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article-buy form { margin: 0; }
.article-buy__note { margin: .9rem 0 0; color: var(--ink-2); font-size: .98rem; line-height: 1.5; max-width: 52ch; }
.article-buy__note a { color: var(--ink); }
.article-item.post { padding-bottom: 0; margin-bottom: 0; }
.article-item__link { display: flex; gap: 24px; align-items: flex-start; padding: 1.6rem 0; color: inherit; text-decoration: none; }
.article-item:first-child .article-item__link { padding-top: 0; }
.article-item__link .post__date, .article-item__link .post__title, .article-item__link .post__sub, .article-item__teaser { display: block; }
.article-item__link:hover .post__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.article-item__link:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.article-item__text { flex: 1 1 auto; min-width: 0; }
.article-item__photo { flex: 0 0 160px; }
.article-item__photo img { display: block; width: 100%; height: auto; }
.article-item__teaser { margin-top: .9rem; font-size: 1.05rem; line-height: 1.6; }
@media (max-width: 600px) {
  .article-item__link { gap: 14px; }
  .article-item__photo { flex-basis: 96px; }
}
.article-pager { display: flex; gap: 1.6rem; align-items: baseline; max-width: 680px; font-size: 1.05rem; }
.article-pager span { color: var(--ink-2); }
.article-pager a { font-style: italic; }
.more-mark { min-height: 1.5em; margin: 1.5rem 0 0; color: var(--ink-2); font-style: italic; }  /* in fondo agli arretrati: "Caricamento…" mentre arrivano gli altri (assets/more.js) */
@media (min-width: 1000px) { .article-pager, .more-mark { grid-column: 2; } }
.order-table__read { margin-left: .5rem; font-size: .92rem; white-space: nowrap; }

/* collane di libri (I Libri di Harry, Director's Cut): elenco e scheda */
.shelf-page { max-width: 1360px; margin: 0 auto; padding: 24px 32px 72px; }
.shelf-rail { margin-bottom: 40px; }
.shelf-title { margin: 0; font-weight: normal; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.shelf-intro { margin: .9rem 0 0; color: var(--ink-2); font-size: 1.1rem; max-width: 32ch; }
.shelf-count { margin: 1.4rem 0 0; color: var(--ink-2); font-size: .98rem; }
.shelf-filter { display: flex; gap: 18px; margin-top: .5rem; font-size: .98rem; }
.shelf-filter a { color: var(--ink-2); text-decoration: none; }
.shelf-filter a:hover, .shelf-filter a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 48px 32px; }
.shelf-item__link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.shelf-item .book-cover { margin-bottom: 1rem; }
.shelf-item__num { color: var(--blowup-red); font-size: 1.05rem; font-variant-numeric: lining-nums; }
.shelf-item__title { font-size: 1.3rem; line-height: 1.15; text-wrap: balance; }
.shelf-item__link:hover .shelf-item__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.shelf-item__author { margin-top: .25rem; color: var(--ink-2); font-style: italic; }
.shelf-item__price { margin-top: .45rem; font-variant-numeric: tabular-nums; }
.shelf-item.is-out .shelf-item__price { color: var(--ink-2); }
.shelf-item.is-out .book-cover img { filter: grayscale(.85); opacity: .8; }
@media (min-width: 1000px) {
  .shelf-page--list { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .shelf-rail { position: sticky; top: calc(var(--head-compact) + var(--head-gap)); margin: 0; }
}

/* copertina: il libro intero, appoggiato in basso, mai tagliato */
.book-cover { display: flex; align-items: flex-end; aspect-ratio: 2 / 3; margin: 0; overflow: hidden; }
.book-cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: left bottom; }
.book-cover__none { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 18px; background: #ebe9e4; color: #000; font-size: 1.35rem; line-height: 1.1; text-wrap: balance; }
.book-cover--large { aspect-ratio: auto; overflow: visible; }
.book-cover--large img { height: auto; }
.book-cover--large .book-cover__none { aspect-ratio: 2 / 3; font-size: 2rem; padding: 28px; }

.shelf-back { margin: 0 0 1.6rem; }
.shelf-back a { color: var(--ink-2); }
.book { display: grid; gap: 36px; }
.book__media { max-width: 420px; }
.book__num { margin: 0 0 .6rem; color: var(--ink-2); font-size: 1.05rem; }
.book__num span { color: var(--blowup-red); }
.book__title { margin: 0; font-weight: normal; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.book__sub { margin: .5rem 0 0; font-size: 1.25rem; font-style: italic; color: var(--ink-2); }
.book__author { margin: .9rem 0 0; font-size: 1.3rem; }
.book__meta { margin: .3rem 0 0; color: var(--ink-2); }
.book__buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 1.6rem 0 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book__price { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.book__state { color: var(--ink-2); }
.book__state--out { color: var(--ink); font-size: 1.15rem; }
.book__note { margin: 1.6rem 0 0; color: var(--ink-2); font-style: italic; }
.book__body { margin-top: 1.8rem; font-size: 1.12rem; line-height: 1.65; max-width: 68ch; overflow-wrap: break-word; }
.book__body p { margin: 0 0 1em; }
.book__body img { max-width: 100%; height: auto; }
.book__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 2rem; }
.book__photos figure { margin: 0; }
.book__photos img { display: block; width: 100%; height: auto; }
.book__photos figcaption { margin-top: .4rem; color: var(--ink-2); font-size: .92rem; font-style: italic; }
@media (min-width: 900px) {
  .book { grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .book__media { position: sticky; top: calc(var(--head-compact) + var(--head-gap)); }
}
.book-pager { display: flex; justify-content: flex-end; align-items: stretch; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); }
.book-pager a { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; text-decoration: none; max-width: 50%; }
.book-pager a.book-pager__prev { align-items: flex-start; text-align: left; }
.book-pager a + a { margin-left: 24px; padding-left: 24px; border-left: 1px solid var(--ink-2); }
.book-pager__label { color: var(--ink-2); font-size: .95rem; }
.book-pager__num { color: var(--blowup-red); }
.book-pager__title { font-size: 1.2rem; }
.book-pager a:hover .book-pager__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

/* area clienti */
.account-page { max-width: 1360px; margin: 0 auto; padding: 24px 32px 72px; }
.account-title { margin: 0 0 .4em; font-weight: normal; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -.015em; }
.account-lead { margin: 0 0 1.6rem; color: var(--ink-2); font-size: 1.1rem; }
.account-lead a, .account-aside a:not(.button) { color: var(--ink); }
.account-sub { margin: 2.4rem 0 .6rem; font-weight: normal; font-size: 1.35rem; }
.account-note { margin-top: 2rem; color: var(--ink-2); font-size: .95rem; font-style: italic; max-width: 60ch; }
.account-box { max-width: 440px; }
.account-box--wide { max-width: 560px; }
.account-split { display: grid; gap: 48px; }
.account-aside { max-width: 440px; color: var(--ink-2); }
.account-aside h2 { margin: 0 0 .4rem; font-weight: normal; font-size: 1.35rem; color: var(--ink); }
.account-aside h2:not(:first-child) { margin-top: 2.2rem; }
.account-aside p { margin: 0 0 1rem; }
@media (min-width: 900px) {
  .account-split { grid-template-columns: minmax(0, 440px) minmax(0, 400px); column-gap: clamp(56px, 9vw, 140px); }
  .account-aside { padding-top: 1.1rem; }
  .account-page--in { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 760px); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .account-rail { position: sticky; top: calc(var(--head-compact) + var(--head-gap)); }
}
.account-hello { margin: 0 0 1rem; font-size: 1.25rem; }
.account-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; margin-bottom: 2.4rem; }
.account-nav a, .account-nav .linklike { padding: .3rem 0; color: var(--ink-2); text-decoration: none; font-size: 1.05rem; }
.account-nav a:hover, .account-nav a[aria-current], .account-nav .linklike:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.account-nav a[aria-current] { color: var(--ink); }
.account-nav form { margin: .8rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); align-self: stretch; }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.account-back { margin: 0 0 1.4rem; }
.account-back a { color: var(--ink-2); }
.account-address { font-style: normal; line-height: 1.55; }

/* moduli */
.account-form { display: grid; gap: 1.15rem; }
.account-form--wide { max-width: 560px; }
.field { display: grid; gap: .3rem; align-content: start; } /* con un errore sotto un solo campo i campi affiancati restano allineati */
.field label, .field__label { font-size: .98rem; }
.field__opt { color: var(--ink-2); font-style: italic; font-size: .92rem; }
.field input { width: 100%; font: inherit; font-size: 1.08rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .55rem .7rem; }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field__static { margin: 0; font-size: 1.08rem; }
.field__hint { color: var(--ink-2); font-size: .9rem; }
.field__error { color: var(--blowup-red); font-size: .95rem; }
.has-error input { border-color: var(--blowup-red); }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.fieldset { border: 0; padding: 0; margin: .4rem 0 0; display: grid; gap: 1.15rem; }
.fieldset legend { padding: 0; margin-bottom: .6rem; font-size: 1.15rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; font-size: .98rem; line-height: 1.45; }
.check input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--ink); }
.check .field__error { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: .5rem; }
.form-actions a:not(.button) { color: var(--ink-2); }
.button { display: inline-block; font: inherit; font-size: 1.05rem; color: var(--page); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px; padding: .6rem 1.4rem; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blowup-red); border-color: var(--blowup-red); color: #fff; }
.button--ghost { color: var(--ink); background: transparent; }
.notice { margin: 0 0 1.4rem; padding: .7rem .9rem; border-left: 3px solid var(--ink); background: color-mix(in srgb, var(--ink) 5%, var(--page)); }
.notice--error { border-left-color: var(--blowup-red); }

/* ordini del cliente */
.order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order-row { border-bottom: 1px solid var(--line); }
.order-row__link { display: grid; grid-template-columns: 9.5rem 1fr auto auto; gap: .2rem 1.6rem; align-items: baseline; padding: .95rem 0; text-decoration: none; }
.order-row__link:hover .order-row__what { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.order-row__date, .order-row__status { color: var(--ink-2); }
.order-row__count { display: block; color: var(--ink-2); font-size: .92rem; }
.order-row__total { text-align: right; font-variant-numeric: tabular-nums; min-width: 6rem; }
@media (max-width: 640px) {
  .order-row__link { grid-template-columns: 1fr auto; }
  .order-row__date { grid-column: 1 / -1; font-size: .92rem; }
  .order-row__status { grid-column: 1; grid-row: 3; font-size: .95rem; }
}
.order-table { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.order-table th, .order-table td { text-align: left; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-table thead th { font-weight: normal; color: var(--ink-2); font-size: .92rem; }
.order-table .num { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-table tfoot th { font-weight: normal; }
.order-table__total th, .order-table__total td { font-size: 1.15rem; border-bottom: 0; }
.muted { color: var(--ink-2); }

/* sito vuoto e piede */
.home-empty { max-width: 1360px; margin: 0 auto; padding: 12vh 32px; font-size: 1.4rem; color: var(--ink-2); }
.site-foot { max-width: 1360px; margin: 48px auto 0; padding: 0 32px 40px; color: var(--ink-2); font-size: .92rem; }
.site-foot__cols { display: flex; flex-wrap: wrap; gap: 24px 96px; padding: 28px 0 24px; border-top: 4px solid var(--blowup-red); }
.site-foot p { margin: 0 0 .25rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 .3rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-foot__col { min-width: 180px; }
.site-foot__name { color: var(--ink); font-size: 1.05rem; line-height: 1.2; margin-bottom: .5rem !important; }
.site-foot__title { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: .6rem !important; }
.site-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; }
.site-foot__social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot__social li { margin: 0; }

@media (max-width: 640px) {
  :root { --head-gap: 16px; --head-compact: 52px; }
  .site-top.is-compact .site-head { padding: 7px 16px 8px; flex-wrap: wrap; }
  .site-top.is-compact .logo img { height: 28px; }
  .site-top.is-compact .menu-toggle { padding: .12rem .7rem; font-size: .95rem; }
  .site-top.is-compact .site-nav { flex-wrap: nowrap; overflow: visible; white-space: normal; }
  .site-head::after { left: 16px; right: 16px; height: 3px; }
  .site-head { padding: 14px 16px 15px; gap: 10px 16px; }
  .logo img { height: 40px; }
  .menu-toggle { display: block; order: 3; }
  .head-tools { order: 2; margin-left: auto; gap: 8px 16px; }
  .account-link { font-size: .95rem; }
  .account-link + .account-link { margin-left: -8px; padding-left: 9px; }
  .langs { gap: 9px; }
  .account-page { padding: 8px 16px 48px; }
  .shelf-page { padding: 8px 16px 48px; }
  .shelf { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .shelf-item__title { font-size: 1.12rem; }
  .book__media { max-width: 300px; }
  .site-nav { order: 4; flex-basis: 100%; display: none; flex-direction: column; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .55rem 0; font-size: 1.15rem; }
  .posts-page { padding: 12px 16px 40px; }
  .post__body { font-size: 1.06rem; }
  .home-tiles { padding: 0 16px 40px; }
  .tiles { --t-gap: 8px; }
  .site-foot, .home-empty { padding-left: 16px; padding-right: 16px; }
  .site-foot__cols { border-top-width: 3px; }
}

/* carrello: link nell'header e pagina carrello.php */
.cart-link { text-decoration: none; color: var(--ink-2); font-size: 1rem; white-space: nowrap; }
.cart-link:hover, .cart-link[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cart-link__count { display: inline-block; min-width: 1.45em; padding: 0 .35em; border-radius: 1em; background: var(--blowup-red); color: #fff; font-size: .82rem; line-height: 1.45em; text-align: center; font-variant-numeric: tabular-nums; }
.book__add { margin: 0 0 0 auto; }
.cart-page { max-width: 1360px; margin: 0 auto; padding: 24px 32px 72px; }
.cart, .cart-summary { max-width: 860px; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 7rem; gap: .4rem 1.4rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart-row__cover { display: block; width: 72px; aspect-ratio: 2 / 3; line-height: 0; }
.cart-row__cover img { width: 100%; height: 100%; object-fit: contain; object-position: left top; }
.cart-row__cover .book-cover__none { font-size: .7rem; padding: 6px; line-height: 1.1; }
.cart-row__what { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-row__cat { color: var(--ink-2); font-size: .9rem; }
.cart-row__title { font-size: 1.2rem; line-height: 1.2; text-decoration: none; text-wrap: balance; }
a.cart-row__title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.cart-row__variant, .cart-row__unit { color: var(--ink-2); font-size: .95rem; }
.cart-row__out { color: var(--blowup-red); font-size: .95rem; }
.cart-row.is-out .cart-row__cover img { filter: grayscale(.85); opacity: .7; }
.cart-row__qty { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.cart-row__qty input { width: 4.2rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .3rem .4rem; text-align: right; font-variant-numeric: tabular-nums; }
.cart-row__remove { color: var(--ink-2); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-row__remove:hover { color: var(--ink); }
.cart-row__total { text-align: right; font-size: 1.1rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.cart-refresh { margin: 1rem 0 0; }
.cart-summary { margin-top: 1.4rem; display: grid; justify-items: end; text-align: right; }
.cart-summary__line { display: flex; gap: 1.6rem; align-items: baseline; margin: 0; font-size: 1.2rem; }
.cart-summary__amount { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.cart-summary__note { margin: .4rem 0 1rem; color: var(--ink-2); font-size: .95rem; max-width: 46ch; }
@media (max-width: 640px) {
  .cart-page { padding: 8px 16px 48px; }
  .cart-link { font-size: .95rem; }
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: .5rem .9rem; }
  .cart-row__cover { width: 56px; }
  .cart-row__qty { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; }
  .cart-row__total { grid-column: 3; grid-row: 1 / span 2; }
  .book__add { margin-left: 0; flex-basis: 100%; }
  .cart-summary { justify-items: stretch; text-align: left; }
  .cart-summary__line { justify-content: space-between; }
}
.account-credit { margin: -.4rem 0 1.6rem; }
.account-credit strong { font-weight: normal; font-variant-numeric: tabular-nums; }
.account-credit__note { display: block; color: var(--ink-2); font-size: .9rem; font-style: italic; }
.cart-ship { margin: 1rem 0 .4rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; max-width: 460px; display: grid; justify-items: end; }
.cart-ship__country { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; }
.cart-ship__country select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .3rem .4rem; max-width: 16rem; }
.cart-ship__list { list-style: none; margin: .8rem 0 0; padding: 0; width: 100%; }
.cart-ship__list li { display: flex; justify-content: space-between; gap: 1.2rem; padding: .25rem 0; }
.cart-ship__cost { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-summary__line--total { margin-top: .8rem; }
@media (max-width: 640px) {
  .cart-ship { justify-items: stretch; max-width: none; }
  .cart-ship__country { justify-content: flex-start; }
}

/* checkout */
.cart-summary .form-actions { flex-direction: row-reverse; }
.checkout__grid { display: grid; gap: 40px; }
.checkout__main { max-width: 600px; }
.checkout__main .fieldset { margin-bottom: 1.4rem; }
.checkout__main select, .checkout__main textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .5rem .6rem; }
.checkout__addr { padding: .3rem 0; }
.checkout__new { margin-top: .4rem; padding-left: 1.8rem; }
.checkout__side .order-table { margin-top: 0; }
.checkout__side .button[disabled] { opacity: .45; cursor: not-allowed; }
@media (min-width: 960px) {
  .checkout__grid { grid-template-columns: minmax(0, 600px) minmax(280px, 400px); column-gap: clamp(48px, 7vw, 110px); align-items: start; }
  .checkout__side { position: sticky; top: calc(var(--head-compact) + var(--head-gap)); }
}
@media (max-width: 640px) { .checkout__new { padding-left: 0; } }
.order-pay { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 1.4rem 0; }
.order-pay .muted { font-size: .95rem; }

/* sottomenu di sezione (Libri): sotto la riga rossa, fisso con la testata */
.sub-nav { background: var(--page); }
.sub-nav__in { max-width: 1360px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; transition: padding .25s ease; }
.sub-nav__links { display: flex; flex-wrap: wrap; gap: 6px 26px; flex: 1 1 auto; font-size: 1rem; }
.sub-nav__links a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.sub-nav__links a:hover, .sub-nav__links a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.sub-nav__search { display: flex; flex: 0 1 300px; min-width: 200px; margin-left: auto; border-bottom: 1px solid var(--ink-2); }
.sub-nav__search:focus-within { border-bottom-color: var(--ink); }
.sub-nav__search--off { visibility: hidden; height: 34px; } /* pagine senza ricerca: stessa altezza, i menu non si spostano */
.sub-nav__search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: .98rem; color: var(--ink); background: transparent; border: 0; padding: .3rem 0; }
.sub-nav__search input::placeholder { color: var(--ink-2); opacity: .8; }
.sub-nav__search input:focus { outline: none; }
.sub-nav__search button { font: inherit; font-size: .95rem; font-style: italic; color: var(--ink); background: none; border: 0; padding: .3rem 0 .3rem .8rem; cursor: pointer; }
.site-top.is-compact .sub-nav__in { padding-top: 6px; padding-bottom: 6px; }
.shelf-item__series { color: var(--ink-2); font-size: .95rem; }
.shelf-item__series .shelf-item__num { font-size: inherit; }
.shelf-found { margin: 1rem 0 0; color: var(--ink-2); }
.shelf-found a { color: var(--ink); }
@media (max-width: 640px) {
  .sub-nav__in { padding: 8px 16px; gap: 6px 18px; }
  .sub-nav__links { gap: 4px 18px; font-size: .95rem; }
  .sub-nav__search { flex-basis: 100%; margin-left: 0; }
  .site-top.is-compact .sub-nav__search { display: none; } /* scorrendo, sul telefono resta solo la riga delle collane */
}

/* tendina dei suggerimenti (provincia, comune, CAP) */
.suggest-wrap { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; max-height: 18rem; overflow-y: auto;
  background: var(--page); border: 1px solid var(--ink); border-radius: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.suggest li { padding: .45rem .7rem; cursor: pointer; font-size: 1.02rem; }
.suggest li:hover, .suggest li.is-on { background: var(--ink); color: var(--page); }

/* Dati personali: indirizzi di spedizione */
.account-address-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 1rem 0; border-top: 1px solid var(--line); }
.account-address-row:last-of-type { border-bottom: 1px solid var(--line); }
.account-address__main { margin-left: .4rem; color: var(--ink-2); font-size: .9rem; font-style: italic; }
.account-address__actions { display: flex; gap: 18px; align-items: baseline; }
.account-address__actions form { margin: 0; }
.account-address__actions a, .account-address__actions .linklike { color: var(--ink-2); }
.account-address-add { margin-top: 1.2rem; }
.account-form select { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .55rem .6rem; }
.account-address__actions .linklike { text-decoration: underline; text-underline-offset: .15em; }
.account-address-add a { color: var(--ink); }

/* Contatti: a sinistra i contatti, a destra il modulo */
.contact-page { max-width: 1360px; margin: 0 auto; padding: 24px 32px 72px; display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-page { grid-template-columns: minmax(240px, 420px) minmax(0, 620px); column-gap: clamp(48px, 7vw, 120px); align-items: start; } }
.contact-info__body { margin-top: 1.6rem; }
.contact-info__body a { color: var(--ink); }
.contact-form__title { margin: 0 0 1.2rem; font-weight: normal; font-size: 1.6rem; }
.contact-form textarea { width: 100%; font: inherit; font-size: 1.05rem; line-height: 1.5; color: var(--ink); background: var(--page); border: 1px solid var(--ink-2); border-radius: 2px; padding: .55rem .7rem; resize: vertical; }
.contact-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.has-error textarea { border-color: var(--blowup-red); }
.contact-form .field--short input { max-width: 8rem; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact-page { padding: 16px 16px 56px; } }

/* I tuoi acquisti: ordini da completare */
.orders-pending__title { margin-top: 3rem; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -.015em; } /* stessa misura del titolo "I tuoi acquisti" */
.order-row--pending { padding-bottom: 1rem; }
.order-row--pending .order-row__link { padding-bottom: .6rem; }
.order-row__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.order-row__actions form { margin: 0; }
.order-cancel { margin: 1rem 0 0; }

/* Blow Up → Info (/blowup/): testo libero con foto; posizione e grandezza delle foto scelte nell'editor del pannello */
.info-page { max-width: 1360px; margin: 0 auto; padding: 24px 32px 72px; }
.info-page__body { margin-top: 0; max-width: 860px; display: flow-root; }
.post__body img.img-left { float: left; margin: .3em 1.6em 1em 0; }
.post__body img.img-right { float: right; margin: .3em 0 1em 1.6em; }
.post__body img.img-center { display: block; margin: 1.4em auto; }
.post__body img.img-s { width: 33%; }
.post__body img.img-m { width: 50%; }
.post__body h2:first-child, .post__body h3:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .info-page { padding: 16px 16px 56px; }
  .post__body img.img-left, .post__body img.img-right { float: none; display: block; margin: 1.2em auto; }
  .post__body img.img-m { width: 100%; }
  .post__body img.img-s { width: 60%; }
}

/* Blow Up → Arretrati: copertine della rivista (più larghe dei libri) e mese di uscita accanto al numero */
.book-cover--issue { aspect-ratio: 3 / 4; }
.issue__month { color: var(--ink-2); font-size: .92em; }
