/* Grafica condivisa dei minisiti e contenuti della Scheda dell’opera. */
/* Nelle pagine personalizzate e secondarie, il contenuto editoriale mantiene i propri caratteri e le proprie variabili. */
body.edisco-opera-completa,
body.edisco-opera-personalizzata :is(#page > .cover-image-minisito-box, #right-sidebar, #minisito_side_menu_mobile, #wrapper-footer-full) {
  font-family: system-ui, sans-serif;
  --itw-blue: #3157a4;
  --itw-dark: #203e7b;
  --itw-light: #eef3ff;
  --itw-accent: #f0a544;
  --itw-priority-bg: #fff1ba;
  --itw-text: #253044;
  --itw-muted: #596579;
  --itw-line: #e3e7ef;
  --itw-bg: #f5f7fb;
}
body.edisco-opera-completa {
  background: var(--itw-bg);
}
body.edisco-opera-completa,
body.edisco-opera-personalizzata #right-sidebar > .card {
  color: var(--itw-text);
}

/* Barra superiore più compatta, con i controlli del tema a misura piena. */
body.edisco-opera-completa #wrapper-navbar #main-nav {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}
body.edisco-opera-completa #wrapper-navbar .navbar-brand.custom-logo-link {
  padding-top: 2px;
  padding-bottom: 2px;
}
@media (min-width: 768px) {
  body.edisco-opera-completa #main-nav .navbar-brand.custom-logo-link img {
    width: 100px;
    height: auto;
  }
}

/* Testata: più spazio all'illustrazione, con una sovrapposizione ridotta. */
body.edisco-opera-completa #page > .cover-image-minisito {
  height: clamp(280px, 26vw, 360px);
  background-position: center 44%;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box {
  position: relative;
  margin-top: -24px;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box > div { padding: 0 !important; }
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box article.card {
  overflow: hidden;
  border: 1px solid #ffffff3d;
  border-radius: 24px;
  background: radial-gradient(circle at 92% 8%, #ffffff1f, transparent 45%),
    linear-gradient(135deg, var(--itw-dark), var(--itw-blue));
  box-shadow: 0 16px 36px #203e7b26 !important;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box article > .row {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 30px;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box article > .row > div {
  width: auto;
  min-width: 0;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .cover-book-container.cover-book-container-minisito {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 245px;
  margin: 0 !important;
  padding: 0;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .cover-book-container-minisito img {
  position: static;
  display: block;
  width: 183px;
  height: auto;
  max-width: 100%;
  margin: 0;
  outline: 0;
  box-shadow: 0 12px 24px #0717364d !important;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .card-body,
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .card-body > header {
  margin: 0;
  padding: 0 !important;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box h3.card-title {
  margin: 0 0 14px;
  color: white !important;
  font-family: inherit;
  font-size: clamp(30px, 3.7vw, 46px) !important;
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .card-body p {
  margin: 0 0 12px;
  color: #edf2ff;
  font-size: 18px !important;
  line-height: 1.5;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .card-body p.fst-italic {
  color: #d8e4ff;
  font-size: 15px !important;
  font-style: normal !important;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .breadcrumb {
  gap: 7px 10px;
  margin: 20px 0 0;
  padding: 0;
  font-size: 13px !important;
  line-height: 1.6;
  text-decoration: none !important;
}
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .breadcrumb-item { padding: 0; border: 0; }
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .breadcrumb-item::before { display: none; }
body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .breadcrumb a {
  display: inline-block;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid #ffffff45;
  border-radius: 999px;
  background: #ffffff0d;
  color: white !important;
  text-decoration: none;
  transform: none !important;
  white-space: normal;
}

/* Larghezza della colonna destra: resta quella del tema, senza espansioni. */
body.edisco-opera-completa #full-width-page-wrapper { padding: 25px 0 60px; }
body.edisco-opera-completa #content > .row { align-items: flex-start; }
body.edisco-opera-completa #primary,
body.edisco-opera-layout #right-sidebar { min-width: 0; }
body.edisco-opera-completa #primary > header.page-header { margin: 0 0 22px; }
body.edisco-opera-completa #primary > header.page-header h2 {
  margin: 0;
  color: var(--itw-dark) !important;
  font-family: inherit;
  font-size: 25px !important;
  font-weight: 700;
  line-height: 1.3;
}
body.page-template-scheda_opera #primary > header.page-header h2 {
  font-size: 28px !important;
}

/* Contenuti della home: gli elementi sono ricavati dai testi originali. */
body.page-template-scheda_opera .itw-home {
  display: grid;
  gap: 22px;
  color: var(--itw-text);
  font-size: 16px;
  line-height: 1.7;
}
body.page-template-scheda_opera .itw-home,
body.page-template-scheda_opera .itw-home * { box-sizing: border-box; }
body.page-template-scheda_opera .itw-section {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--itw-line);
  border-radius: 20px;
  background: white;
}
body.page-template-scheda_opera .itw-section__title {
  margin: 0 0 18px;
  padding: 0 0 0 13px;
  border: 0;
  border-left: 4px solid var(--itw-accent);
  color: var(--itw-dark);
  font-family: inherit;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  scroll-margin-top: 100px;
}
body.page-template-scheda_opera .itw-home p { margin: 0 0 16px; }
body.page-template-scheda_opera .itw-home p:last-child { margin-bottom: 0; }
body.page-template-scheda_opera .itw-home ul { margin: 0 0 18px; padding-left: 21px; list-style: disc; }
body.page-template-scheda_opera .itw-home ul:last-child { margin-bottom: 0; }
body.page-template-scheda_opera .itw-home li { margin: 0 0 10px; padding: 0; border: 0; }
body.page-template-scheda_opera .itw-home li:last-child { margin-bottom: 0; }
body.page-template-scheda_opera .itw-home li::marker { color: var(--itw-blue); }
body.page-template-scheda_opera .itw-section--objectives > p:first-of-type { font-size: 18px; line-height: 1.65; }
body.page-template-scheda_opera .itw-section--structure > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
body.page-template-scheda_opera .itw-section--structure > ul > li {
  margin: 0;
  padding: 17px;
  border: 1px solid #dce5f6;
  border-radius: 13px;
  background: #f5f8ff;
  font-size: 15px;
  line-height: 1.6;
}
body.page-template-scheda_opera .itw-section--structure li strong { color: var(--itw-dark); }
body.page-template-scheda_opera .itw-section-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.page-template-scheda_opera .itw-section--digital { background: #eef3ff; border-color: #d7e1f3; }
body.page-template-scheda_opera .itw-section--teacher { background: #fff8ec; border-color: #f1dfc0; }
body.page-template-scheda_opera .itw-adoption {
  padding: 24px 28px;
  border: 1px solid #e7c785;
  border-left: 5px solid #b67a18;
  border-radius: 20px;
  background: var(--itw-priority-bg);
}
body.page-template-scheda_opera .itw-adoption h3 { margin: 0 0 8px; color: var(--itw-dark); font: inherit; font-size: 23px; font-weight: 700; }
body.page-template-scheda_opera .itw-adoption p { color: var(--itw-muted); font-size: 15px; }
body.page-template-scheda_opera .itw-downloads { display: flex; flex-wrap: wrap; gap: 10px; }
body.page-template-scheda_opera a.itw-download {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 17px;
  border: 1px solid var(--itw-blue);
  border-radius: 12px;
  background: var(--itw-blue);
  color: white !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
  transform: none !important;
}
body.page-template-scheda_opera a.itw-download + a.itw-download {
  border-color: #899bbd;
  background: white;
  color: var(--itw-dark) !important;
}

/* TUTTA la colonna laterale: menu, account e ricerca. Solo CSS. */
body.edisco-opera-layout #right-sidebar > .card,
body.edisco-opera-layout #minisito_side_menu,
body.edisco-opera-layout #minisito_side_menu_mobile {
  box-sizing: border-box;
  margin-bottom: 22px !important;
  border: 1px solid var(--itw-line);
  border-radius: 18px;
  background: white !important;
  box-shadow: 0 5px 18px #203e7b08;
}
body.edisco-opera-layout #minisito_side_menu { padding: 12px 16px; }
body.edisco-opera-layout #minisito_side_menu_mobile { margin-top: 22px; padding: 12px 20px !important; }
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 0 !important;
  border-bottom: 1px solid #edf0f5;
}
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) > div:last-child { border-bottom: 0; }
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) > div > img {
  flex: 0 0 29px;
  width: 29px;
  height: 32px;
  padding: 0 !important;
  object-fit: contain;
}
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) > div > a {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  padding: 5px 4px;
  border-radius: 8px;
}
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) h2 {
  margin: 0;
  color: var(--itw-dark) !important;
  font-family: inherit;
  font-size: 15px !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) .fw-bold {
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--itw-light);
}
body.edisco-opera-layout #right-sidebar > .card > .card-body { padding: 22px !important; }
body.edisco-opera-layout #right-sidebar .card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--itw-light);
  color: var(--itw-dark) !important;
  font-family: inherit;
  font-size: 23px !important;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body.edisco-opera-layout #right-sidebar .bg-dusty-orange-10-edisco .card-title { border-color: var(--itw-accent); }
body.edisco-opera-layout #right-sidebar > .card.bg-light2-blue-10-edisco {
  background: #f4f8e1 !important;
}
body.edisco-opera-layout #right-sidebar > .card.bg-light2-blue-10-edisco .card-title {
  border-color: #99d638;
}
body.edisco-opera-layout #right-sidebar .card-title img { flex: 0 0 27px; width: 27px; height: 29px; object-fit: contain; }
body.edisco-opera-layout #right-sidebar label {
  display: block;
  margin-bottom: 7px;
  color: var(--itw-text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
}
body.edisco-opera-layout #right-sidebar input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #becbdf;
  border-radius: 11px !important;
  background: #fbfcff;
  color: var(--itw-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
body.edisco-opera-layout #right-sidebar .btn,
body.edisco-opera-layout #right-sidebar input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--itw-blue);
  border-radius: 11px !important;
  background: var(--itw-blue);
  color: white !important;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
body.edisco-opera-layout #right-sidebar .card-body > a > .btn {
  margin-top: 10px;
  border-color: #c6d2eb;
  background: var(--itw-light);
  color: var(--itw-dark) !important;
}
body.edisco-opera-layout #right-sidebar a,
body.edisco-opera-layout #right-sidebar a:visited,
body.edisco-opera-layout #minisito_side_menu_mobile a {
  color: var(--itw-dark) !important;
  text-decoration: none;
  transform: none !important;
}
body.edisco-opera-layout #right-sidebar .form-text { margin-top: 5px; font-size: 13px; line-height: 1.5; }
body.edisco-opera-layout #right-sidebar .form-text a { text-decoration: underline; text-underline-offset: 3px; }
body.edisco-opera-layout #right-sidebar p { overflow-wrap: anywhere; }
body.edisco-opera-layout #right-sidebar .bg-dusty-orange-10-edisco ul { margin: 0 0 16px; padding: 0; list-style: none; }
body.edisco-opera-layout #right-sidebar .bg-dusty-orange-10-edisco li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--itw-line); overflow-wrap: anywhere; }
body.edisco-opera-layout #right-sidebar .bg-dusty-orange-10-edisco li .text-primary { color: var(--itw-dark) !important; font-size: 15px !important; }
body.edisco-opera-layout #right-sidebar .bg-dusty-orange-10-edisco .btn-secondary { border-color: #c6d2eb; background: var(--itw-light); color: var(--itw-dark) !important; }
body.edisco-opera-layout #right-sidebar a.btn { color: white !important; }

body.edisco-opera-completa :is(.cover-image-minisito-box, #primary, #right-sidebar, #minisito_side_menu_mobile) :is(a, button, input, select):focus-visible,
body.edisco-opera-personalizzata :is(#page > .cover-image-minisito-box, #minisito_side_menu_mobile) a:focus-visible,
body.edisco-opera-personalizzata #right-sidebar :is(a, button, input, select):focus-visible {
  outline: 3px solid #b76700;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) a:hover { background: var(--itw-light); }
  body.edisco-opera-layout #right-sidebar .btn:hover,
  body.edisco-opera-layout #right-sidebar input[type="submit"]:hover { filter: brightness(.94); }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body.page-template-scheda_opera .itw-section-pair { grid-template-columns: minmax(0, 1fr); }
  body.edisco-opera-layout #right-sidebar > .card > .card-body { padding: 16px !important; }
  body.edisco-opera-layout #minisito_side_menu { padding: 10px 12px; }
}
@media (max-width: 767px) {
  body.edisco-opera-completa #page > .cover-image-minisito { height: 220px; }
  body.edisco-opera-layout :where(#page) > .cover-image-minisito-box { margin-top: -16px; }
  body.edisco-opera-layout :where(#page) > .cover-image-minisito-box article > .row { grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 25px; }
  body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .cover-book-container.cover-book-container-minisito { min-height: 0; }
  body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .cover-book-container-minisito img { width: 150px; }
  body.edisco-opera-layout :where(#page) > .cover-image-minisito-box .card-body p { font-size: 16px !important; }
  body.page-template-scheda_opera .itw-section-pair { grid-template-columns: minmax(0, 1fr); }
  body.page-template-scheda_opera .itw-section,
  body.page-template-scheda_opera .itw-adoption { padding: 22px; }
}

/* Footer: collegamenti istituzionali e dati della casa editrice. */
body.edisco-opera-layout #wrapper-footer-full {
  position: relative;
  display: block;
  margin: 0;
  padding: 48px 0 25px;
  border-top: 4px solid var(--itw-accent);
  background: radial-gradient(ellipse at 8% 0%, #3157a455, transparent 55%), #182f5f;
  color: #e7edfa;
}
body.edisco-opera-layout #footer-full-content > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 0;
}
body.edisco-opera-layout #wrapper-footer-full .row :is(#block-7, .footer-widget),
body.edisco-opera-layout #wrapper-footer-full .row #block-8 {
  position: static;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}
body.edisco-opera-layout #wrapper-footer-full .footer-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px 34px;
  margin: 0;
  padding: 0;
}
body.edisco-opera-layout #wrapper-footer-full .wp-block-column {
  min-width: 0;
  margin: 0 !important;
  padding: 0;
}
body.edisco-opera-layout #wrapper-footer-full .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 176px;
  max-width: 100%;
  padding: 14px 19px;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 17px;
}
body.edisco-opera-layout #wrapper-footer-full .footer-logo img {
  display: block;
  width: 138px;
  height: auto;
  max-width: 100%;
  margin: 0;
}
body.edisco-opera-layout #wrapper-footer-full .footer-payoff {
  max-width: 23ch;
  margin: 0;
  color: #d7e2f8;
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.65;
}
body.edisco-opera-layout #wrapper-footer-full .footer-image-secondary {
  display: none;
}
body.edisco-opera-layout #wrapper-footer-full .itw-footer-title {
  margin: 0 0 13px;
  padding: 0;
  color: #ffc77c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}
body.edisco-opera-layout #wrapper-footer-full .widget_nav_menu,
body.edisco-opera-layout #wrapper-footer-full .widget_nav_menu > div {
  margin: 0;
}
body.edisco-opera-layout #wrapper-footer-full ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.edisco-opera-layout #wrapper-footer-full #footer-full-content .footer-main .menu-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
body.edisco-opera-layout #wrapper-footer-full a,
body.edisco-opera-layout #wrapper-footer-full a:visited {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 0;
  color: #f2f5ff !important;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transform: none !important;
  overflow-wrap: anywhere;
}
body.edisco-opera-layout #wrapper-footer-full #block-8 > .wp-block-columns {
  display: block;
  margin: 0;
}
body.edisco-opera-layout #wrapper-footer-full div#footer-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 24px;
  width: 100%;
  padding: 22px 0 0;
  border-top: 1px solid #ffffff2e;
  background: transparent !important;
}
body.edisco-opera-layout #wrapper-footer-full #footer-secondary p {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  color: #d7e2f8 !important;
  font-family: inherit;
  font-size: 12px !important;
  line-height: 1.6;
  text-align: left !important;
  overflow-wrap: anywhere;
}
body.edisco-opera-layout #wrapper-footer-full #footer-secondary p:first-child {
  color: #fff !important;
  font-weight: 650;
}
body.edisco-opera-layout #wrapper-footer-full #footer-secondary .footer-ball {
  display: none;
}
body.edisco-opera-layout #wrapper-footer-full a.itw-footer-top {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #ffffff45;
  border-radius: 999px;
  background: #ffffff0d;
  font-size: 12px;
  font-weight: 600;
}
body.edisco-opera-layout #wrapper-footer-full a.itw-footer-top::after {
  content: "↑";
  color: #ffc77c;
  font-size: 18px;
  line-height: 1;
}
body.edisco-opera-layout #wrapper-footer-full a:focus-visible {
  outline: 3px solid #ffc77c;
  outline-offset: 4px;
  border-radius: 4px;
}
@media (hover: hover) and (pointer: fine) {
  body.edisco-opera-layout #wrapper-footer-full a:hover {
    color: #ffd79f !important;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  body.edisco-opera-layout #wrapper-footer-full a.itw-footer-top:hover {
    background: #ffffff1c;
    text-decoration: none;
  }
}
@media (max-width: 991px) {
  body.edisco-opera-layout #wrapper-footer-full .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}
@media (max-width: 575px) {
  body.edisco-opera-layout #wrapper-footer-full {
    padding: 32px 8px 24px;
  }
  body.edisco-opera-layout #wrapper-footer-full .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  body.edisco-opera-layout #wrapper-footer-full .itw-footer-title {
    margin-bottom: 8px;
  }
  body.edisco-opera-layout #wrapper-footer-full div#footer-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  body.edisco-opera-layout #wrapper-footer-full a.itw-footer-top {
    margin: 12px 0 0;
  }
}

/* Presentazione sintetica e scheda completa */
body.page-template-scheda_opera #primary .itw-intro {
  background: white; border: 1px solid var(--itw-line); border-radius: 18px;
  padding: clamp(20px, 3vw, 30px); color: var(--itw-text);
}
body.page-template-scheda_opera #primary .itw-intro > p {
  font-size: clamp(17px, 1.42vw, 20px); line-height: 1.58;
  margin: 0 0 11px; max-width: 76ch;
}
body.page-template-scheda_opera #primary .itw-full summary {
  list-style: none; display: flex; align-items: center; gap: 10px; width: fit-content;
  padding: 6px 2px; min-height: 44px; color: var(--itw-dark); font-size: 13px;
  font-weight: 750; letter-spacing: .045em; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer;
}
body.page-template-scheda_opera #primary .itw-full summary::-webkit-details-marker { display: none; }
body.page-template-scheda_opera #primary .itw-full summary::after {
  content: ''; width: 9px; height: 9px; box-sizing: border-box;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
body.page-template-scheda_opera #primary .itw-full[open] summary::after { transform: translateY(2px) rotate(225deg); }
body.page-template-scheda_opera #primary .itw-full .itw-when-open,
body.page-template-scheda_opera #primary .itw-full[open] .itw-when-closed { display: none; }
body.page-template-scheda_opera #primary .itw-full[open] .itw-when-open { display: inline; }
body.page-template-scheda_opera #primary .itw-full summary:focus-visible { outline: 3px solid #9a5b00; outline-offset: 3px; border-radius: 3px; }
body.page-template-scheda_opera #primary .itw-full summary:hover { color: #193366; text-decoration-thickness: 2px; }
body.page-template-scheda_opera #primary .itw-full-text { display: grid; gap: 20px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--itw-line); }
body.page-template-scheda_opera #primary .itw-intro > .itw-full-text { margin-top: 0; padding-top: 0; border-top: 0; }
body.page-template-scheda_opera #primary .itw-full-text > .itw-section { padding: 0; border: 0; border-radius: 0; }
body.page-template-scheda_opera #primary .itw-full-text .itw-section-pair .itw-section { padding: 20px; }

/* I due accessi prioritari del menu del volume, anche in versione mobile */
body.edisco-opera-layout :is([id="minisito_side_menu"], [id="minisito_side_menu_mobile"]) > .itw-priority {
  padding: 0 !important; margin: 7px 0 0; border: 0; background: transparent;
}
body.edisco-opera-layout :is(#minisito_side_menu, #minisito_side_menu_mobile) a[data-edisco-priority] {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 8px 10px; border-radius: 9px; border: 1px solid #e8ca6a; border-left: 4px solid #c58a15;
  background: var(--itw-priority-bg); text-decoration: none;
}
body.edisco-opera-layout :is(#minisito_side_menu, #minisito_side_menu_mobile) a[data-edisco-priority] > img { width: 25px; height: 27px; flex: none; object-fit: contain; }
body.edisco-opera-layout :is(#minisito_side_menu, #minisito_side_menu_mobile) a[data-edisco-priority] h2 {
  color: #3f3419 !important; font-weight: 700 !important; font-size: 14.5px !important;
}
body.edisco-opera-layout :is(#minisito_side_menu, #minisito_side_menu_mobile) a[data-edisco-priority]:hover,
body.edisco-opera-layout :is(#minisito_side_menu, #minisito_side_menu_mobile) a[data-edisco-priority]:focus-visible { background: #ffe69a; }
body.edisco-opera-layout :is(#minisito_side_menu, #minisito_side_menu_mobile) a[data-edisco-priority]:hover h2 { text-decoration: underline; text-underline-offset: 3px; }

/* Esempi dei contenuti digitali associati al volume */
body.page-template-scheda_opera #primary .itw-examples { min-width: 0; margin: 2px 0 0; }
body.page-template-scheda_opera #primary .itw-examples > h3 {
  font: inherit; font-size: clamp(22px, 2.2vw, 27px); color: var(--itw-dark);
  font-weight: 700; line-height: 1.25; margin: 0 0 16px;
}
body.page-template-scheda_opera #primary .itw-sample-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
body.page-template-scheda_opera #primary .itw-sample {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #d7e0ec; border-radius: 14px; background: white;
}
body.page-template-scheda_opera #primary .itw-sample-image {
  display: block; width: 100%; height: clamp(110px,10.8vw,144px); object-fit: cover;
  border: 1px solid var(--itw-line); border-radius: 13px 13px 0 0; background: #eef3f7;
  box-shadow: 0 2px 6px rgb(32 62 123 / 9%);
}
body.page-template-scheda_opera #primary .itw-sample--pdf .itw-sample-image,
body.page-template-scheda_opera #primary .itw-sample--map .itw-sample-image,
body.page-template-scheda_opera #primary .itw-sample--exercise .itw-sample-image { object-fit: contain; background: #fff; }
/* Media Library attachments have no kind; a linked or extracted illustration uses "resource". */
body.page-template-scheda_opera #primary :is(.itw-sample--pdf, .itw-sample--analysis-interactive)
  .itw-sample-image:where(:not([data-image-kind]), [data-image-kind="resource"]) {
  object-fit: cover;
}
body.page-template-scheda_opera #primary .itw-sample--exercise .itw-sample-image[data-image-kind="type"] {
  object-fit: cover;
}
/* Portrait book covers used as fallback should be readable at every screen size. */
body.page-template-scheda_opera #primary .itw-sample .itw-sample-image[data-image-kind="cover"] {
  object-fit: contain; background: #eef3f7;
}
/* Keep both time markers of the complete recorded track inside its frame. */
body.page-template-scheda_opera #primary .itw-sample--audio img[src*="/assets/images-and-messages-3/track-1.webp"] {
  object-fit: contain; background-color: #ecf3f5;
}
/* Extend the background of the bundled Types of CAD artwork up to its frame. */
body.page-template-scheda_opera #primary .itw-sample--exercise .itw-sample-image:is(
  [src$="/assets/it-works-2/exercise.webp"],
  [src*="/assets/it-works-2/exercise.webp?"],
  [src*="/assets/it-works-2/exercise.webp#"]
) {
  background-color: #e8f0f7;
}
body.page-template-scheda_opera #primary .itw-sample-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 17px 17px; }
body.page-template-scheda_opera #primary .itw-sample-type { margin: 0 0 6px; font-size: 12px; font-weight: 750; color: #415b77; line-height: 1.35; }
body.page-template-scheda_opera #primary .itw-sample h4 {
  margin: 0; color: var(--itw-dark); font: inherit; font-weight: 700;
  font-size: clamp(18px,1.52vw,22px); line-height: 1.22; overflow-wrap: anywhere;
}
body.page-template-scheda_opera #primary .itw-sample-ref { margin: 7px 0 0; color: #4e5e70; font-size: 12px; line-height: 1.4; }
body.page-template-scheda_opera #primary .itw-sample-desc { margin: 10px 0 13px; color: #324456; font-size: 14px; line-height: 1.5; }
body.page-template-scheda_opera #primary .itw-sample-action, body.page-template-scheda_opera #primary .itw-sample-action:visited {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; min-height: 40px;
  padding: 7px 13px; background: #264781; border: 1px solid #264781; border-radius: 22px;
  color: white !important; text-decoration: none; font-weight: 650; font-size: 13px; line-height: 1.3;
  transform: none !important;
}
body.page-template-scheda_opera #primary .itw-sample-action:hover { background: #182f57; text-decoration: underline; text-underline-offset: 3px; }
body.page-template-scheda_opera #primary .itw-sample-action svg { display: block; width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; }
@media (max-width: 1199px) {
  body.page-template-scheda_opera #primary .itw-sample-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px) {
  body.page-template-scheda_opera #primary .itw-sample-grid { grid-template-columns: minmax(0,1fr); gap: 11px; }
  body.page-template-scheda_opera #primary .itw-sample {
    display: grid; grid-template-columns: minmax(0,1fr) 29%; align-items: start; grid-column: auto;
  }
  body.page-template-scheda_opera #primary .itw-sample-image {
    grid-column: 2; grid-row: 1; width: 100%; height: 80px; margin: 14px 0 0;
    object-fit: contain; border-radius: 4px;
  }
  body.page-template-scheda_opera #primary .itw-sample-image[src*="/tipi-risorse/ascolto-studio.webp"] {
    object-fit: cover; object-position: 46% center;
  }
  body.page-template-scheda_opera #primary .itw-sample-copy { grid-column: 1; grid-row: 1; padding: 14px 10px 14px 15px; }
  body.page-template-scheda_opera #primary .itw-sample-desc { margin: 7px 0 10px; }
  body.page-template-scheda_opera #primary .itw-sample-action { min-height: 44px; }
  body.page-template-scheda_opera #primary .itw-full-text .itw-section-pair .itw-section { padding: 14px; }
}

/* Spaziatura del footer dei minisiti. */
body.edisco-opera-layout #wrapper-footer-full {
  padding: 36px 0 20px;
}
body.edisco-opera-layout #footer-full-content > .row {
  gap: 20px;
}
body.edisco-opera-layout #wrapper-footer-full .footer-logo {
  margin-bottom: 12px;
}
body.edisco-opera-layout #wrapper-footer-full .itw-footer-title {
  margin-bottom: 7px;
}
body.edisco-opera-layout #wrapper-footer-full .menu a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 4px 0;
  line-height: 1.35;
}
body.edisco-opera-layout #wrapper-footer-full div#footer-secondary {
  padding-top: 15px;
}
body.edisco-opera-layout #wrapper-footer-full a.itw-footer-top {
  min-height: 34px;
  padding: 5px 12px;
}
@media (max-width: 767px) {
  body.edisco-opera-layout #wrapper-footer-full {
    padding: 18px 2px 14px;
  }
  body.edisco-opera-layout #footer-full-content > .row {
    gap: 12px;
  }
  body.edisco-opera-layout #wrapper-footer-full .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  body.edisco-opera-layout #wrapper-footer-full .footer-main > .wp-block-column:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  body.edisco-opera-layout #wrapper-footer-full .footer-logo {
    flex: 0 0 94px;
    width: 94px;
    padding: 6px 9px;
    margin: 0;
    border-radius: 6px;
  }
  body.edisco-opera-layout #wrapper-footer-full .footer-payoff {
    max-width: none;
    font-size: 13px !important;
    line-height: 1.3;
  }
  body.edisco-opera-layout #wrapper-footer-full .itw-footer-title {
    margin-bottom: 2px;
    line-height: 1.3;
  }
  body.edisco-opera-layout #wrapper-footer-full .menu a {
    min-height: 28px;
    padding: 3px 0;
    line-height: 1.25;
  }
  body.edisco-opera-layout #wrapper-footer-full .footer-main > .wp-block-column:last-child {
    grid-column: 1 / -1;
  }
  body.edisco-opera-layout #wrapper-footer-full #menu-menu-principale-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }
  body.edisco-opera-layout #wrapper-footer-full div#footer-secondary {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 3px 10px;
    padding-top: 9px;
  }
  body.edisco-opera-layout #wrapper-footer-full #footer-secondary p {
    line-height: 1.35;
  }
  body.edisco-opera-layout #wrapper-footer-full a.itw-footer-top {
    min-height: 28px;
    margin: 0 0 0 auto;
    padding: 3px 9px;
  }
}

body.page-template-scheda_opera #primary .itw-sample-placeholder {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--itw-light);
  color: var(--itw-dark);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
body.page-template-scheda_opera #primary .itw-full-text :is(img, video, iframe) {
  max-width: 100%;
}
@media (max-width: 575px) {
  body.page-template-scheda_opera #primary .itw-sample-copy:only-child { grid-column: 1 / -1; }
}
