/*
Theme Name: Astra Child MR Start Code
Theme URI: https://mrstartcode.it
Description: Tema child di Astra sviluppato da MR Start Code per Spiaggia91. Personalizzazioni grafiche e funzionali aggiuntive rispetto al tema padre Astra.
Author: MR Start Code
Author URI: https://mrstartcode.it
Template: astra
Version: 1.0.0
Requires at least: 5.3
Requires PHP: 5.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child-mr-start-code
Tags: custom-menu, custom-colors, custom-logo, featured-images, full-width-template, translation-ready
*/

/* ============================================================
   Astra Child MR Start Code - promo.spiaggia91.it
   Sviluppato da: MR Start Code (https://mrstartcode.it)
   ============================================================ */

/* Gli stili personalizzati vanno qui sotto */

/* ─── Nasconde titolo su tutte le pagine ─── */
.page .entry-header,
.page .entry-title {
  display: none !important;
}


/* ════════════════════════════════════════
   GLOBAL PAGE RESET — tutte le pagine
   ════════════════════════════════════════ */

/* ─── Fix gap header → contenuto ─── */
.page .site-content,
.page #primary,
.page .content-area,
.page #main,
.page .ast-article-single,
.page .entry-content,
.page .entry-header {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page #main {
  padding: 0 !important;
  margin: 0 !important;
}

/* Rimuove padding Astra */
.page .ast-separate-container .ast-article-single,
.page .site-content .ast-container {
  padding-top: 0 !important;
}

/* ─── Full width contenuto ─── */
.page .entry-content,
.page #primary,
.page .content-area,
.page .ast-article-single,
.page .site-content .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.page .site-content {
  padding: 0 !important;
}

/* ─── Hero full width ─── */
.page .sp91-lp-hero {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: none !important;
  padding-top: 100px !important;
}

/* ─── Evita scrollbar orizzontale ─── */
.page {
  overflow-x: hidden;
}

/* ─── Wrap margin reset ─── */
.page .sp91-lp-wrap {
  margin-top: 0 !important;
}

/* ─── Footer mobile centrato ─── */
@media (max-width: 768px) {
  .sp91-footer-inner,
  .sp91-footer-inner *,
  .sp91-footer-col,
  .sp91-footer-heading,
  .sp91-footer-links,
  .sp91-footer-links li,
  .sp91-footer-address {
    text-align: center !important;
  }

  .sp91-footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
  }

  .sp91-footer-links li {
    width: 100% !important;
    justify-content: center !important;
  }

  .sp91-footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* ─── Fix lista vantaggi mobile ─── */
@media (max-width: 600px) {
  .sp91-lp-list {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .sp91-lp-list li {
    font-size: .9rem !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  .sp91-lp-list li::before {
    font-size: .9rem !important;
    flex-shrink: 0 !important;
    min-width: 16px !important;
  }

  .sp91-lp-card {
    padding: 20px 16px !important;
    overflow: hidden !important;
  }

  .sp91-lp-section-title {
    font-size: 1.2rem !important;
    word-break: break-word !important;
  }
}

@media (max-width: 380px) {
  .sp91-lp-card {
    padding: 16px 12px !important;
  }

  .sp91-lp-list li {
    font-size: .82rem !important;
  }
}