@media (max-width: 980px) {
  .ao2-container { width: min(94%, var(--ao2-max)); }
  .ao2-guide-hero-grid,
  .ao2-lead-grid,
  .ao2-guide-band-grid { grid-template-columns: 1fr; }

  .ao2-guide-visual { order: -1; }
  .ao2-guide-visual img { width: min(330px,82vw); }

  .ao2-main-story { padding-right: 0; border-right: 0; }
  .ao2-main-story-image { height: 330px; }

  .ao2-card-grid,
  .ao2-services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

  .ao2-guide-band img { max-height: 210px; }
}

@media (max-width: 680px) {
  .ao2-container { width: min(94%,var(--ao2-max)); }
  .ao2-guide-hero { padding: 38px 0 34px; }
  .ao2-guide-copy h1 { font-size: 42px !important; }
  .ao2-guide-copy h2 { font-size: 24px !important; }
  .ao2-lead { padding: 34px 0 28px; }
  .ao2-main-story-image { height: 240px; }
  .ao2-main-story h2 { font-size: 32px !important; }

  .ao2-side-item { grid-template-columns: 96px 1fr; }
  .ao2-side-image { width: 96px; height: 72px; }

  .ao2-alert-inner { align-items: flex-start; flex-direction: column; gap: 5px; }
  .ao2-card-grid,
  .ao2-services-grid { grid-template-columns: 1fr; }
  .ao2-section { padding: 36px 0; }
  .ao2-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ao2-section-head h2 { font-size: 25px !important; }
  .ao2-guide-band h2 { font-size: 28px !important; }
  .ao2-final-cta-inner { flex-direction: column; align-items: flex-start; }
  .ao2-btn { width: 100%; }
}

/* =========================================================
   AO 2.6 - RESPONSIVE TYPOGRAPHY
   ========================================================= */
@media (max-width: 980px) {
  .ao2-guide-hero { padding: 44px 0 42px; }
  .ao2-guide-copy h1 { font-size: clamp(46px, 7vw, 60px) !important; }
  .ao2-guide-copy h2 { font-size: 29px !important; }
  .ao2-guide-copy > p { font-size: 17px; }
  .ao2-main-story h2 { font-size: 43px !important; }
  .ao2-section-head h2 { font-size: 30px !important; }
  .ao2-card h3 { font-size: 20px !important; }
  .ao2-services-heading h2 { font-size: 34px !important; }
}

@media (max-width: 680px) {
  .ao2-guide-hero { padding: 34px 0 32px; }
  .ao2-guide-copy h1 { font-size: 40px !important; }
  .ao2-guide-copy h2 { font-size: 25px !important; }
  .ao2-guide-copy > p { font-size: 16px; }
  .ao2-checks li { font-size: 15px; }
  .ao2-main-story h2 { font-size: 33px !important; }
  .ao2-main-story p { font-size: 16px; }
  .ao2-side-title { font-size: 23px !important; }
  .ao2-side-item h3 { font-size: 17px !important; }
  .ao2-section { padding: 40px 0; }
  .ao2-section-head h2 { font-size: 27px !important; }
  .ao2-card h3 { font-size: 20px !important; }
  .ao2-card p { font-size: 15px; }
  .ao2-guide-band { padding: 44px 0; }
  .ao2-guide-band h2 { font-size: 30px !important; }
  .ao2-services { padding: 48px 0; }
  .ao2-services-heading h2 { font-size: 30px !important; }
  .ao2-service-card h3 { font-size: 22px !important; }
  .ao2-final-cta h2 { font-size: 28px !important; }
}

/* AO 2.7 - su tablet/mobile nessun margine negativo dell'header
   e le sezioni tornano fluide a una/due colonne. */
@media (max-width: 980px) {
  body.page-template-page-ao-fullwidth #main-content {
    margin-top: 0 !important;
  }
  .ao2-section--single .ao2-card-grid,
  .ao2-section--double .ao2-card-grid {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .ao2-section,
  .ao2-section--single,
  .ao2-section--double {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .ao2-section--single .ao2-card-grid,
  .ao2-section--double .ao2-card-grid {
    grid-template-columns: 1fr;
  }
}


/* AO 2.9 - PRO responsive */
@media (max-width: 1100px) {
  .ao2-pro-grid { grid-template-columns: 1fr 460px; gap: 34px; }
}

@media (max-width: 980px) {
  .ao2-pro { padding: 54px 0; }
  .ao2-pro-grid { grid-template-columns: 1fr; }
  .ao2-pro-copy { max-width: 850px; }
  .ao2-pro-dashboard { max-width: 720px; transform: none; }
}

@media (max-width: 680px) {
  .ao2-pro { padding: 44px 0; }
  .ao2-pro-copy h2 { font-size: 39px !important; }
  .ao2-pro-copy h3 { font-size: 25px !important; }
  .ao2-pro-copy > p { font-size: 16px; }
  .ao2-pro-benefits { grid-template-columns: 1fr; gap: 9px; }
  .ao2-pro-dashboard { border-radius: 10px; }
  .ao2-pro-screen { padding: 16px; }
  .ao2-pro-kpis { grid-template-columns: 1fr; }
  .ao2-pro-kpis div { min-height: 72px; }
  .ao2-pro-chart { height: 92px; }
}
