/* ==========================================================================
   families/store-shared.css
   Base comune delle pagine-negozio.
   Caricato da 2 pagine.
   ========================================================================== */

:root {
  --mu: #6b4caf;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  flex-direction: column;
}

h1 {
  text-align: center;
}

p {
  color: #444;
  text-align: center;
  margin-bottom: 0.8rem;
}

img {
  display: block;
  margin: 0 auto 14px;
}

.storebar {
  flex-direction: column;
}

.btn-store {
  transition: transform .15s,box-shadow .15s;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: .6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom-right-radius: 4px;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

:root {
  --blu: var(--blu-notte);
  --acc: var(--blu-accent);
}

:root {
  --store-navy: var(--blu-notte);
  --store-navy-3: #16355c;
  --store-ink: #13263d;
  --store-ink-soft: #4a607a;
  --store-shadow: 0 20px 48px rgba(2,12,24,.22);
}

body.store-hub-page .store-hub-hero {
  gap: 1.35rem;
}

body.store-hub-page .store-hub-cover {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

body.store-hub-page .book-card-meta,
body.store-hub-page .book-card-text,
body.store-hub-page .book-card-note,
body.store-hub-page .related-strip .rel-card-link {
  color: var(--store-ink-soft);
}

body.store-hub-page .book-badge.stamp {
  background: rgba(200,168,75,.16);
  color: #75571a;
}

body.store-hub-page .book-badge.floating {
  background: linear-gradient(135deg,#d9b766,#b88c28);
  color: #13263d;
}

body.store-hub-page .book-action {
  box-shadow: var(--shadow);
}

body.store-hub-page .book-action.dark {
  background: linear-gradient(135deg,var(--store-navy),var(--store-navy-3));
}

body.store-hub-page .book-action.outline {
  background: #eef4fb;
  color: #153b66;
  border: 1px solid #c7d7eb;
}

body.store-hub-page .storebar {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: .9rem;
}

body.store-hub-page .btn-store {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

body.store-hub-page .btn-store:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow);
}

body.store-hub-page .btn-store::after {
  content: "↗";
  margin-left: .45rem;
  opacity: .85;
  font-size: .95em;
}

body.store-hub-page .store-ibs {
  background: linear-gradient(135deg,#0060a0,#004a7e);
}

body.store-hub-page .store-fel {
  background: linear-gradient(135deg,#e31b23,#b71218);
}

body.store-hub-page .store-hoepli {
  background: linear-gradient(135deg,#1b3f8b,#132f68);
}

body.store-hub-page .store-amazon {
  background: linear-gradient(135deg,#ffb84d,#ff9900);
}

body.store-hub-page .store-unilibro {
  background: linear-gradient(135deg,#073b75,#052d5a);
}

body.store-hub-page .related-strip .rel-card-clean {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(200,168,75,.16);
}

body.store-hub-page .related-strip .rel-card-kicker {
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.store-hub-page .related-strip .rel-card-title {
  color: #0f2238;
}

body.store-hub-page .related-strip .rel-card-link {
  color: #153b66;
  font-weight: 800;
}

body.store-hub-page .related-strip .rel-card-clean:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

body.store-hub-page .cta-box__actions a {
  box-shadow: none;
}

body.store-hub-page .cta-box-section {
  text-align: center;
}

body.store-hub-page .cta-box {
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
}

body.store-hub-page .cta-box p {
  margin: 0 auto;
}

body.store-hub-page .cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

body.store-hub-page .cta-box__actions .btn-w {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}

body.store-hub-page .cta-box__actions .btn-w {
  background: #fff;
  color: var(--blu-notte);
  border: 2px solid #fff;
}

body.store-hub-page .related-strip .rel-card-clean {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .45rem;
  height: 100%;
}

body.store-hub-page .related-strip .rel-card-link {
  margin-top: auto;
}

.totalita-store-page .totalita-store-note {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0 0 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dce4ee;
  border-left: 4px solid var(--oro);
  border-radius: 0 14px 14px 0;
  background: #f8fafc;
}

.totalita-store-page .totalita-store-note strong {
  color: var(--blu-notte);
}

.totalita-store-page .totalita-store-note span {
  color: #4b5563;
  line-height: 1.6;
}

body.store-hub-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-corpo,Inter,Arial,sans-serif);
}

body.store-hub-page>header,
body.store-hub-page>footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.store-hub-page .nav .logo,
body.store-hub-page .nav .logo img {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

body.store-hub-page .store-hub-hero .store-hub-lead {
  color: #c7d3e3;
}

@media (max-width: 767px) {
  body.store-hub-page .storebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.store-hub-page .cta-box {
    padding: 24px 18px;
  }
  body.store-hub-page .cta-box__actions {
    flex-direction: column;
  }
  body.store-hub-page .cta-box__actions .btn-w {
    width: 100%;
    max-width: 320px;
  }
}
/* R4E: con sei store su quattro colonne, la seconda riga (2 elementi) va centrata. */
@media (min-width: 1000px) {
  body.totalita-store-page .storebar {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  body.totalita-store-page .storebar > .btn-store {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  body.totalita-store-page .storebar > :nth-child(5) {
    grid-column: 2;
  }
  body.totalita-store-page .storebar > :nth-child(6) {
    grid-column: 3;
  }
}

