/* Overrides specifici per WordPress / layout.
   Obiettivo: usare le larghezze container di Bootstrap 5.
*/

.container {
  max-width: 100%;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Gutenberg wide/full alignment support (classic theme frontend).
   NOTE: Non usiamo wrapper custom tipo .entry-content perché su Homepage/PagePiling
   romperebbe la struttura (le section devono rimanere figli diretti).
*/

/* Constrain normal post content inside the standard templates (.container pages). */


.alignwide {
  position: relative;
  width: min(
    var(--wp--style--global--wide-size, 1320px),
    calc(100vw - (100vw - 100%))
  );
  max-width: none;
  margin: 0 auto;
}