/*
Theme Name:   Sutera Scolastica (Bookory child)
Theme URI:    https://suterascolastica.it
Description:  Tema child di Bookory per Sutera Scolastica: home, header, footer e scheda prodotto con l'identità del brand, senza Elementor.
Author:       EduAdv
Template:     bookory
Version:      1.0.17
Text Domain:  sutera-bookory
*/

/* ==========================================================
   1. Token del brand
   ========================================================== */
:root {
  --sh-blue: #195D7E;
  --sh-blue-dark: #0F4660;
  --sh-white: #FFFFFF;
  --sh-sky: #DCEAF0;
  --sh-yellow: #F2C45A;
  --sh-coral: #E9826B;
  --sh-coral-dark: #DD6E55;
  --sh-cream: #F8F3E8;
  --sh-graphite: #2C3336;
  --sh-ink: #1B2022;
  --sh-muted: #566166;
  --sh-line: #E3E8EA;
  --sh-radius: 16px;
  --sh-wrap: 1280px;
  --sh-font-head: "Bitter", Georgia, serif;
  --sh-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Variabili di Bookory riportate sul brand */
  --primary: #195D7E;
  --primary_hover: #0F4660;
  --text: #2C3336;
  --accent: #1B2022;
  --light: #566166;
  --border: #E3E8EA;
  --background: #FFFFFF;
  --e-global-typography-text-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --e-global-typography-accent-font-family: "Bitter", Georgia, serif;
}

body,
button,
input,
textarea,
select {
  font-family: var(--sh-font-body);
  color: var(--sh-graphite);
}

body {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.product_title,
.woocommerce-loop-product__title,
.related > h2,
.upsells > h2 {
  font-family: var(--sh-font-head);
  color: var(--sh-blue);
  font-weight: 700;
}

a { color: var(--sh-blue); }
a:hover { color: var(--sh-blue-dark); }

:focus-visible {
  outline: 3px solid var(--sh-yellow);
  outline-offset: 2px;
}

.sh-wrap {
  max-width: var(--sh-wrap);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.sh-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.sh-ico { display: inline-flex; flex: none; }
.sh-ico svg { display: block; }

/* ==========================================================
   2. Pulsanti
   ========================================================== */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--sh-font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
  box-sizing: border-box;
}
.sh-btn--coral { background: var(--sh-coral); border-color: var(--sh-coral); color: var(--sh-ink); }
.sh-btn--coral:hover { background: var(--sh-coral-dark); border-color: var(--sh-coral-dark); color: var(--sh-ink); }
.sh-btn--blue { background: var(--sh-blue); border-color: var(--sh-blue); color: #fff; }
.sh-btn--blue:hover { background: var(--sh-blue-dark); border-color: var(--sh-blue-dark); color: #fff; }
.sh-btn--outline { background: #fff; border-color: var(--sh-blue); color: var(--sh-blue); }
.sh-btn--outline:hover { background: var(--sh-blue); color: #fff; }
.sh-btn--white { background: #fff; border-color: #fff; color: var(--sh-blue); }
.sh-btn--white:hover { background: var(--sh-sky); border-color: var(--sh-sky); color: var(--sh-blue-dark); }

.sh-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sh-yellow);
  color: var(--sh-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.sh-badge--white { background: #fff; color: var(--sh-blue); }

/* ==========================================================
   3. Header
   ========================================================== */
.sh-topbar {
  background: var(--sh-blue);
  color: #fff;
  font-size: 14px;
}
.sh-topbar .sh-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.sh-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sh-topbar a:hover { color: var(--sh-yellow); }
.sh-topbar__right { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.sh-header {
  background: #fff;
  border-bottom: 1px solid var(--sh-line);
  position: relative;
  z-index: 50;
}
.sh-header__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.sh-logo { flex: none; display: block; line-height: 0; }
.sh-logo img { height: 56px; width: auto; display: block; }

.sh-search {
  flex: 1 1 380px;
  display: flex;
  align-items: stretch;
  min-height: 52px;
  margin: 0;
  border: 2px solid var(--sh-blue);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.sh-search select {
  flex: 0 0 auto;
  width: auto !important;
  max-width: 200px;
  border: 0;
  border-right: 1px solid var(--sh-line);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232C3336' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  padding: 0 36px 0 20px;
  margin: 0;
  height: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-graphite);
  box-shadow: none;
}
.sh-search input[type="search"] {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0 16px;
  height: auto;
  font-size: 15px;
  background: transparent;
  box-shadow: none;
  color: var(--sh-graphite);
}
.sh-search input[type="search"]::placeholder { color: var(--sh-muted); opacity: 1; }
.sh-search button {
  flex: none;
  width: 58px;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  background: var(--sh-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sh-search button:hover { background: var(--sh-blue-dark); }

.sh-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sh-actions .site-header-account,
.sh-actions .site-header-wishlist,
.sh-actions .site-header-cart {
  margin: 0;
  position: relative;
}
.sh-actions .site-header-account > a,
.sh-actions .site-header-wishlist > a,
.sh-actions .site-header-cart > a.cart-contents {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  border: 1px solid var(--sh-line);
  border-radius: 999px;
  color: var(--sh-blue);
  font-size: 20px;
  text-decoration: none;
  box-sizing: border-box;
}
.sh-actions .site-header-cart > a.cart-contents {
  width: auto;
  padding: 0 16px 0 14px;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sh-graphite);
}
.sh-actions .site-header-cart > a.cart-contents::before {
  position: static;
  color: var(--sh-blue);
  font-size: 20px;
  margin: 0;
}
.sh-actions .site-header-cart .count,
.sh-actions .site-header-wishlist .count {
  position: absolute;
  top: -5px;
  left: 30px;
  right: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sh-yellow);
  color: var(--sh-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-sizing: border-box;
}
.sh-actions .site-header-wishlist .count { left: 28px; }
.sh-actions .site-header-account > a:hover,
.sh-actions .site-header-wishlist > a:hover,
.sh-actions .site-header-cart > a.cart-contents:hover { border-color: var(--sh-blue); }

.sh-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-bottom: 14px;
}

.sh-catmenu { position: relative; }
.sh-catmenu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--sh-sky);
  color: var(--sh-blue);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.sh-catmenu > summary::-webkit-details-marker { display: none; }
.sh-catmenu[open] > summary { background: var(--sh-blue); color: #fff; }
.sh-catmenu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(720px, 90vw);
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  box-shadow: 0 18px 40px rgba(25, 93, 126, .14);
  padding: 22px 24px;
  z-index: 60;
}
.sh-catmenu__panel ul { list-style: none; margin: 0; padding: 0; }
.sh-catmenu__panel > ul {
  columns: 2 260px;
  column-gap: 32px;
}
.sh-catmenu__panel > ul > li { break-inside: avoid; margin-bottom: 14px; }
.sh-catmenu__panel > ul > li > a {
  font-family: var(--sh-font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--sh-blue);
}
.sh-catmenu__panel .children { margin: 6px 0 0; }
.sh-catmenu__panel .children a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--sh-graphite);
  text-decoration: none;
}
.sh-catmenu__panel .children a:hover { color: var(--sh-blue); text-decoration: underline; }
.sh-catmenu__panel .children .children { display: none; }

.sh-nav { flex: 1 1 auto; }
.sh-nav ul.menu,
.sh-nav .menu > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
}
.sh-nav .menu li { position: relative; margin: 0; }
.sh-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  color: var(--sh-graphite);
  text-decoration: none;
}
.sh-nav .menu > li > a:hover,
.sh-nav .menu > li.current-menu-item > a { color: var(--sh-blue); text-decoration: underline; text-underline-offset: 6px; }
.sh-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(25, 93, 126, .12);
  z-index: 60;
}
.sh-nav .menu li:hover > .sub-menu,
.sh-nav .menu li:focus-within > .sub-menu { display: block; }
.sh-nav .sub-menu a { display: block; padding: 8px 18px; color: var(--sh-graphite); text-decoration: none; font-size: 14px; }
.sh-nav .sub-menu a:hover { background: var(--sh-sky); color: var(--sh-blue); }

.sh-special {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sh-graphite);
  text-decoration: none;
}
.sh-special .sh-badge { font-size: 12px; padding: 4px 10px; }
.sh-special:hover { color: var(--sh-blue); }

/* Bottone menu mobile di Bookory */
.sh-header .menu-mobile-nav-button { display: none; }

/* ==========================================================
   4. Layout generale e home a tutta larghezza
   ========================================================== */
.sh-front #content > .col-full,
.sh-front .site-content > .col-full {
  max-width: none;
  padding: 0;
  margin: 0;
}
.sh-front #content { padding-top: 0; padding-bottom: 0; margin: 0; }
.sh-front .woocommerce-notices-wrapper:empty { display: none; }

.sh-section { padding: 64px 0; }
.sh-section--tight { padding: 32px 0; }
.sh-section--cream { background: var(--sh-cream); }
.sh-section--sky { background: var(--sh-sky); }

.sh-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.sh-head h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
}
.sh-head p { margin: 0; font-size: 16px; color: var(--sh-muted); max-width: 640px; }
.sh-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.sh-more:hover { text-decoration: underline; }

/* Hero */
.sh-hero { background: var(--sh-cream); }
.sh-hero .sh-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.sh-hero__text {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.sh-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--sh-blue);
}
.sh-hero__lead { margin: 0; font-size: 19px; max-width: 520px; color: var(--sh-graphite); }
.sh-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.sh-hero__note { margin: 0; font-size: 14px; color: var(--sh-muted); }
.sh-hero__covers {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.sh-hero__covers a { grid-row: 1; display: block; border-radius: 18px; overflow: hidden; }
.sh-hero__covers img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sh-hero__covers a:nth-child(1) { grid-column: 1 / span 5; transform: rotate(-5deg); }
.sh-hero__covers a:nth-child(2) { grid-column: 4 / span 6; position: relative; z-index: 2; border: 6px solid var(--sh-cream); }
.sh-hero__covers a:nth-child(3) { grid-column: 8 / span 5; transform: rotate(5deg); }

/* Vantaggi */
.sh-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 28px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--sh-line);
}
.sh-feature { display: flex; align-items: center; gap: 14px; }
.sh-feature__icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--sh-cream);
  color: var(--sh-blue);
  display: flex; align-items: center; justify-content: center;
}
.sh-feature strong { display: block; font-size: 15px; color: var(--sh-graphite); }
.sh-feature span { font-size: 14px; color: var(--sh-muted); }

/* Categorie */
.sh-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sh-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--sh-radius);
  background: var(--sh-sky);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.sh-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(25, 93, 126, .14); }
.sh-cat__icon {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #fff;
  color: var(--sh-blue);
  display: flex; align-items: center; justify-content: center;
}
.sh-cat__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-cat__name { font-family: var(--sh-font-head); font-size: 16px; font-weight: 700; color: var(--sh-graphite); line-height: 1.25; }
.sh-cat__count { font-size: 13px; color: var(--sh-muted); }
@media (max-width: 1100px) {
  .sh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Card prodotto della home */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.sh-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  padding: 14px;
  transition: box-shadow .15s, border-color .15s;
}
.sh-card:hover { border-color: #c9d8df; box-shadow: 0 12px 28px rgba(25, 93, 126, .10); }
.sh-card__media { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--sh-blue); }
.sh-card__media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sh-card__media .sh-badge { position: absolute; top: 12px; left: 12px; font-size: 12px; padding: 4px 10px; }
.sh-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-muted); }
.sh-card__title { margin: 0; font-family: var(--sh-font-head); font-size: 17px; line-height: 1.3; font-weight: 700; }
.sh-card__title a { color: var(--sh-graphite); text-decoration: none; }
.sh-card__title a:hover { color: var(--sh-blue); }
.sh-card__foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 4px; }
.sh-card__price { font-size: 19px; font-weight: 700; color: var(--sh-blue); line-height: 1.2; }
.sh-card__price del { display: block; font-size: 13px; font-weight: 500; color: var(--sh-muted); }
.sh-card__price ins { text-decoration: none; }
.sh-card .sh-addcart {
  flex: none;
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 999px;
  background: var(--sh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  text-decoration: none;
  font-size: 0;
}
.sh-card .sh-addcart:hover { background: var(--sh-blue-dark); color: #fff; }
.sh-card .sh-addcart.loading { opacity: .6; }
.sh-card .sh-addcart.added { background: var(--sh-coral); color: var(--sh-ink); }
.sh-card .added_to_cart { display: none; }

/* Banner doppio */
.sh-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.sh-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-radius: 20px;
  padding: 40px;
}
.sh-banner h3 { margin: 0; font-size: 30px; line-height: 1.15; }
.sh-banner p { margin: 0; font-size: 16px; max-width: 420px; }
.sh-banner--blue { background: var(--sh-blue); color: #fff; }
.sh-banner--blue h3 { color: #fff; }
.sh-banner--sky { background: var(--sh-sky); color: var(--sh-graphite); }

/* Blocco collana */
.sh-series .sh-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.sh-series__covers {
  flex: 1 1 400px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sh-series__covers a { display: block; border-radius: 14px; overflow: hidden; }
.sh-series__covers img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sh-series__text { flex: 1 1 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sh-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); }
.sh-series__text h2 { margin: 0; font-size: 36px; line-height: 1.15; }
.sh-series__text p { margin: 0; font-size: 17px; max-width: 520px; }
.sh-series__price { font-weight: 700; }

/* Storia */
.sh-story .sh-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.sh-story__year { flex: 1 1 280px; }
.sh-story__year strong { display: block; font-family: var(--sh-font-head); font-size: 120px; line-height: 1; font-weight: 800; color: var(--sh-blue); }
.sh-story__year span { font-size: 17px; color: var(--sh-muted); }
.sh-story__text { flex: 2 1 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sh-story__text h2 { margin: 0; font-size: 34px; line-height: 1.2; }
.sh-story__text p { margin: 0; font-size: 17px; max-width: 640px; }

/* Newsletter */
.sh-newsletter .sh-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.sh-newsletter__text { flex: 1 1 380px; }
.sh-newsletter__text h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.sh-newsletter__text p { margin: 0; }
.sh-newsletter__form { flex: 1 1 380px; }
.sh-newsletter__form form,
.sh-newsletter__form .tnp-subscription-minimal form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.sh-newsletter__form input[type="email"],
.sh-newsletter__form .tnp-email {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--sh-blue);
  border-radius: 999px;
  padding: 0 22px;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
.sh-newsletter__form input[type="submit"],
.sh-newsletter__form .tnp-submit {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  background: var(--sh-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.sh-newsletter__form input[type="submit"]:hover,
.sh-newsletter__form .tnp-submit:hover { background: var(--sh-blue-dark); }

/* ==========================================================
   5. Footer
   ========================================================== */
#colophon.site-footer { padding: 0; margin: 0; border: 0; background: var(--sh-blue); }
.sh-footer { background: var(--sh-blue); color: #fff; }
.sh-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.sh-footer__brand img { height: 58px; width: auto; display: block; margin-bottom: 14px; }
.sh-footer__brand p { margin: 0; font-size: 15px; max-width: 280px; color: #fff; }
.sh-footer h3 {
  margin: 0 0 10px;
  font-family: var(--sh-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sh-yellow);
}
.sh-footer ul { list-style: none; margin: 0; padding: 0; }
.sh-footer li { margin: 0; }
.sh-footer a { display: inline-flex; align-items: center; min-height: 34px; color: #fff; text-decoration: none; font-size: 15px; }
.sh-footer a:hover { color: var(--sh-yellow); text-decoration: underline; }
.sh-footer address { font-style: normal; font-size: 15px; line-height: 1.7; margin: 0 0 6px; }
.sh-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); }
.sh-footer__bottom .sh-wrap { padding-top: 18px; padding-bottom: 18px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* L'avviso del negozio è già nella barra in alto */
.woocommerce-store-notice,
p.demo_store { display: none !important; }

/* Barra fissa su mobile */
.sh-tabbar { display: none; }

/* ==========================================================
   6. Catalogo (negozio e categorie)
   ========================================================== */
ul.products li.product .product-block {
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  padding: 14px;
  background: #fff;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow .15s, border-color .15s;
}
ul.products li.product .product-block:hover { border-color: #c9d8df; box-shadow: 0 12px 28px rgba(25, 93, 126, .10); }
ul.products li.product .product-transition { border-radius: 10px; overflow: hidden; }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h3 {
  font-family: var(--sh-font-head);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
  height: auto !important;
  max-height: none !important;
}
ul.products li.product .woocommerce-loop-product__title a { color: var(--sh-graphite); }
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--sh-blue); }
ul.products li.product .price { color: var(--sh-blue); font-weight: 700; font-size: 18px; }
ul.products li.product .price del { color: var(--sh-muted); font-weight: 500; font-size: 14px; }
ul.products li.product .price ins { color: var(--sh-blue); text-decoration: none; }
.onsale, span.onsale {
  background: var(--sh-yellow) !important;
  color: var(--sh-ink) !important;
  border-radius: 999px !important;
  font-weight: 700;
}
.woocommerce-products-header__title,
.page-title { font-family: var(--sh-font-head); color: var(--sh-blue); }
.term-description { font-size: 16px; max-width: 820px; color: var(--sh-graphite); }

/* ==========================================================
   7. Scheda prodotto
   ========================================================== */
.single-product div.product .product_title {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--sh-blue);
}
.sh-single-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-muted);
}
.sh-single-kicker a { color: var(--sh-muted); text-decoration: none; }
.sh-single-kicker a:hover { color: var(--sh-blue); text-decoration: underline; }
.single-product .product_after_title .sku_wrapper { display: none; }
.single-product div.product .summary .price {
  font-family: var(--sh-font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--sh-graphite);
}
.single-product div.product .summary .price del { font-size: 20px; font-weight: 600; color: var(--sh-muted); }
.single-product div.product .summary .price ins { color: var(--sh-graphite); text-decoration: none; }
.single-product div.product .woocommerce-product-details__short-description { font-size: 17px; line-height: 1.6; }
.single-product div.product form.cart .single_add_to_cart_button,
.single-product div.product .single_add_to_cart_button {
  background: var(--sh-coral) !important;
  border-color: var(--sh-coral) !important;
  color: var(--sh-ink) !important;
  border-radius: 999px !important;
  font-weight: 700;
  font-size: 16px;
  min-height: 52px;
}
.single-product div.product .single_add_to_cart_button:hover {
  background: var(--sh-coral-dark) !important;
  border-color: var(--sh-coral-dark) !important;
}
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__image img { border-radius: 20px; }
.single-product .content-single-wrapper,
.single-product .summary.entry-summary { border-radius: 20px; }

.sh-service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 6px;
  padding: 20px 22px;
  border-radius: var(--sh-radius);
  background: var(--sh-cream);
}
.sh-service__row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--sh-graphite); }
.sh-service__row .sh-ico { color: var(--sh-blue); margin-top: 1px; }
.sh-service__row a { font-weight: 600; }

.woocommerce-tabs ul.tabs li a {
  font-family: var(--sh-font-head);
  font-weight: 700;
  font-size: 19px;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--sh-blue); }
.woocommerce-tabs .panel { font-size: 17px; line-height: 1.65; }
.woocommerce-tabs .panel ul li::marker { color: var(--sh-blue); }
.woocommerce-tabs .shop_attributes {
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  border-collapse: separate;
  overflow: hidden;
  max-width: 640px;
}
.woocommerce-tabs .shop_attributes th,
.woocommerce-tabs .shop_attributes td { padding: 12px 18px; font-size: 15px; border-bottom: 1px solid var(--sh-line); }
.woocommerce-tabs .shop_attributes th { color: var(--sh-muted); font-weight: 600; width: 40%; }
.woocommerce-tabs .shop_attributes tr:last-child th,
.woocommerce-tabs .shop_attributes tr:last-child td { border-bottom: 0; }

/* ==========================================================
   8. Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .sh-header__main { gap: 14px 20px; }
  .sh-special { margin-left: 0; }
}

@media (max-width: 767px) {
  .sh-wrap { padding-left: 20px; padding-right: 20px; }

  .sh-topbar .sh-wrap { justify-content: center; text-align: center; }
  .sh-topbar__right { display: none; }

  .sh-header__main { padding-top: 12px; padding-bottom: 14px; gap: 12px; justify-content: space-between; }
  .sh-header .menu-mobile-nav-button {
    display: flex;
    order: 0;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--sh-line);
    border-radius: 999px;
  }
  .sh-logo { order: 1; }
  .sh-logo img { height: 44px; }
  .sh-actions { order: 2; gap: 6px; }
  .sh-actions .site-header-account,
  .sh-actions .site-header-wishlist { display: none; }
  .sh-actions .site-header-cart > a.cart-contents { padding: 0; width: 44px; min-width: 44px; height: 44px; font-size: 0; }
  .sh-actions .site-header-cart > a.cart-contents .woocommerce-Price-amount { display: none; }
  .sh-actions .site-header-cart .count { left: 26px; font-size: 12px; }
  .sh-search { order: 3; flex: 1 1 100%; min-height: 48px; }
  .sh-search select { display: none; }

  .sh-header__nav { display: none; }

  .sh-section { padding: 36px 0; }
  .sh-head { margin-bottom: 16px; flex-wrap: nowrap; align-items: center; }
  .sh-head h2 { font-size: 24px; margin: 0; }
  .sh-head p { display: none; }

  .sh-hero .sh-wrap { padding-top: 32px; padding-bottom: 36px; gap: 20px; }
  .sh-hero__text { gap: 16px; }
  .sh-hero h1 { font-size: 34px; }
  .sh-hero__lead { font-size: 16px; }
  .sh-hero__ctas { width: 100%; flex-direction: column; }
  .sh-hero__ctas .sh-btn { width: 100%; }
  .sh-hero__note { display: none; }
  .sh-hero__covers { order: -1; }

  .sh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding-top: 24px; padding-bottom: 0; }
  .sh-feature { flex-direction: column; align-items: flex-start; gap: 6px; background: var(--sh-cream); border-radius: 14px; padding: 14px; }
  .sh-feature__icon { width: auto; height: auto; background: none; }

  .sh-cats { display: flex; overflow-x: auto; gap: 8px; margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x mandatory; }
  .sh-cat { flex: none; width: 112px; padding: 0; background: none; scroll-snap-align: start; flex-direction: column; gap: 8px; text-align: center; }
  .sh-cat__text { align-items: center; }
  .sh-cat:hover { transform: none; box-shadow: none; }
  .sh-cat__icon { width: 68px; height: 68px; background: var(--sh-sky); }
  .sh-cat__name { font-family: var(--sh-font-body); font-size: 13px; font-weight: 600; }
  .sh-cat__count { display: none; }

  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sh-card { padding: 10px; gap: 8px; border-radius: 14px; }
  .sh-card__cat { display: none; }
  .sh-card__title { font-size: 15px; }
  .sh-card__price { font-size: 16px; }
  .sh-card .sh-addcart { width: 44px; height: 44px; }

  .sh-banners { grid-template-columns: 1fr; gap: 12px; }
  .sh-banner { padding: 26px 24px; border-radius: 18px; }
  .sh-banner h3 { font-size: 24px; }

  .sh-series .sh-wrap { gap: 16px; }
  .sh-series__text h2 { font-size: 26px; }
  .sh-series__text .sh-btn { width: 100%; }

  .sh-story__year strong { font-size: 72px; }
  .sh-story__text h2 { font-size: 24px; }
  .sh-story__text .sh-btn { width: 100%; }

  .sh-newsletter__text h2 { font-size: 24px; }
  .sh-newsletter__form input[type="submit"],
  .sh-newsletter__form .tnp-submit { width: 100%; }

  .sh-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 24px; }
  .sh-footer__brand,
  .sh-footer__contacts { grid-column: 1 / -1; }
  .sh-footer a { min-height: 44px; }

  .sh-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--sh-line);
    padding: 0 8px env(safe-area-inset-bottom);
  }
  .sh-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 60px;
    color: var(--sh-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  .sh-tabbar a.is-active,
  .sh-tabbar a:hover { color: var(--sh-blue); }
  body.sh-theme { padding-bottom: 64px; }

  .single-product div.product .product_title { font-size: 28px; }
  .single-product div.product .summary .price { font-size: 28px; }
}

/* Intestazione di negozio e categorie */
.sh-archive-head { padding: 28px 0 8px; }
.sh-archive-head h1 { margin: 6px 0 4px; font-size: 38px; line-height: 1.15; font-weight: 800; }
.sh-archive-count { margin: 0; color: var(--sh-muted); font-size: 15px; }
.sh-breadcrumb { font-size: 14px; color: var(--sh-muted); }
.sh-breadcrumb a { color: var(--sh-muted); text-decoration: none; }
.sh-breadcrumb a:hover { color: var(--sh-blue); text-decoration: underline; }
@media (max-width: 767px) {
  .sh-archive-head { padding-top: 16px; }
  .sh-archive-head h1 { font-size: 28px; }
}

/* Filtri del catalogo */
.sh-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px 16px;
  margin: 20px 0 6px;
  padding: 18px 20px;
  border-radius: var(--sh-radius);
  background: var(--sh-sky);
}
.sh-filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-filter label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sh-blue); }
.sh-filter select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 40px 0 16px;
  border: 1px solid #b9cfd9;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23195D7E' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none;
  appearance: none;
  font-size: 15px;
  color: var(--sh-graphite);
  box-shadow: none;
}
.sh-filter select:focus { border-color: var(--sh-blue); }
.sh-filter--actions { flex-direction: row; align-items: center; gap: 14px; }
.sh-filter--actions .sh-btn { min-height: 48px; }
.sh-filter-reset { font-size: 14px; font-weight: 600; white-space: nowrap; }
.sh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.sh-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sh-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sh-chips a span { font-size: 18px; line-height: 1; }
.sh-chips a:hover { background: var(--sh-blue-dark); color: #fff; }
@media (max-width: 900px) {
  .sh-filters { grid-template-columns: 1fr 1fr; }
  .sh-filter--actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sh-filters { grid-template-columns: 1fr; padding: 16px; }
  .sh-filter--actions .sh-btn { flex: 1; }
}

/* Sfogliabile */
.sh-flipbook__intro { margin: 0 0 16px; color: var(--sh-muted); font-size: 16px; }
.sh-flipbook ._df_book { min-height: 560px; }
@media (max-width: 767px) { .sh-flipbook ._df_book { min-height: 420px; } }
.sh-flip-embed { position: relative; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; border-radius: 14px; overflow: hidden; background: var(--sh-sky); }
.sh-flip-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sh-flip-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.sh-flip-links li { margin: 0; }
.sh-flip-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--sh-line);
  border-radius: 14px;
  background: #fff;
  color: var(--sh-graphite);
  text-decoration: none;
}
.sh-flip-link:hover { border-color: var(--sh-blue); background: var(--sh-sky); color: var(--sh-blue); }
.sh-flip-link > .sh-ico:first-child { color: var(--sh-blue); }
.sh-flip-link > span:not(.sh-ico) { flex: 1; display: flex; flex-direction: column; }
.sh-flip-link strong { font-size: 16px; }
.sh-flip-link small { font-size: 13px; color: var(--sh-muted); }
@media (max-width: 767px) { .sh-flip-embed { aspect-ratio: 3 / 4; } }

/* Video recensioni (reel Instagram) */
.sh-reels__intro { margin: 0 0 16px; color: var(--sh-muted); font-size: 16px; }
.sh-reels__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.sh-reels__item { flex: 0 0 340px; max-width: 86vw; scroll-snap-align: start; }
.sh-reels__item .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 16px !important;
  border: 1px solid var(--sh-line) !important;
  box-shadow: none !important;
}
.sh-reels__item blockquote.sh-ig-pending,
.sh-reels__item blockquote.instagram-media:not([style]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: var(--sh-sky);
}
@media (max-width: 767px) {
  .sh-reels__item { flex-basis: 300px; }
}

/* Pulsante carrello (icona) nelle griglie */
.sh-add {
  flex: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--sh-blue) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background-color .15s, transform .15s;
}
.sh-add::before, .sh-add::after { display: none !important; }
.sh-add:hover { background: var(--sh-blue-dark) !important; color: #fff !important; transform: scale(1.05); }
.sh-add.loading { opacity: .65; pointer-events: none; }
.sh-add .sh-add__icon { display: inline-flex; }
.sh-add .sh-add__icon--done { display: none; }
.sh-add.added { background: var(--sh-coral) !important; color: var(--sh-ink) !important; }
.sh-add.added .sh-add__icon--cart { display: none; }
.sh-add.added .sh-add__icon--done { display: inline-flex; }
.sh-add--more { background: #fff !important; color: var(--sh-blue) !important; border: 2px solid var(--sh-blue) !important; }
.sh-add--more:hover { background: var(--sh-sky) !important; color: var(--sh-blue-dark) !important; }
a.added_to_cart { display: none !important; }

.sh-card__foot { flex-direction: row !important; align-items: center !important; justify-content: space-between; }
.sh-loop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.sh-loop-foot .price { margin: 0 !important; }
ul.products li.product .product-block { display: flex; flex-direction: column; }
ul.products li.product .product-caption { display: flex; flex-direction: column; flex: 1; }
/* Il pulsante nascosto al passaggio del mouse di Bookory non serve più */
ul.products li.product .opal-add-to-cart-button { display: none !important; }
.sh-card .sh-addcart { display: none; }
ul.products li.product .product-transition img { width: 100%; height: auto; }
@media (max-width: 767px) {
  ul.products li.product .product-block { padding: 10px; }
  ul.products li.product .product-transition,
  ul.products li.product .product-img-wrap,
  ul.products li.product .product-image { width: 100% !important; max-width: none !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
  ul.products li.product .price { font-size: 16px; }
}

/* Titoli di sezione cliccabili */
.sh-head-link { color: inherit; text-decoration: none; }
.sh-head-link:hover { color: var(--sh-blue-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
