/* Banner orizzontale a fine categoria (728x90 su desktop largo, 320x100 su mobile) */
.idh-ad-end[hidden] { display: none; }
.idh-ad-end { box-sizing: border-box; width: 100%; max-width: 1280px; margin: 40px auto; padding: 0 24px; }
.idh-ad-end-pager { max-width: none; margin: 32px 0 0; padding: 0; }
.idh-ad-wide { width: 100%; }
.idh-ad-wide .idh-ad-tag { align-self: center; }
.idh-ad-wide .idh-ad-ph { max-width: 970px; padding: 8px 16px; }
@media (max-width: 767px) {
  .idh-ad-end { margin: 28px auto; padding: 0 16px; }
  .idh-ad-wide .idh-ad-ph { max-width: 320px; aspect-ratio: 320 / 100 !important; }
}

/* Torna su: pulsante tondo in basso a destra, compare dopo aver scorso la pagina */
.idh-totop { position: fixed; z-index: 900; right: 24px; bottom: 24px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--igdp-ink, #0F1D2D); color: #fff; box-shadow: 0 6px 20px rgba(15, 29, 45, .28);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background-color .2s ease; }
.idh-totop[hidden] { display: none; }
.idh-totop.on { opacity: 1; transform: none; pointer-events: auto; }
.idh-totop:hover { background: var(--igdp-lava, #C4521F); }
.idh-totop:focus-visible { outline: 2px solid var(--igdp-lava, #C4521F); outline-offset: 3px; }
@media (max-width: 767px) { .idh-totop { right: 16px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .idh-totop { transition: opacity .1s linear; transform: none; } }

/* Contenuti delle pagine interne allineati a header e footer. */
body:not(.home) main > .bde-section > .section-container { box-sizing: border-box; width: 100%; max-width: 1280px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 767px) { body:not(.home) main > .bde-section > .section-container { padding-left: 16px; padding-right: 16px; } }
