/*
Theme Name: Company
Theme URI: https://www.parafarmaciabiogalenica.it/
Description: Tema child personalizzato basato su Divi per il sito della Parafarmacia BioGalenica di Giarre.
Author: Parafarmacia BioGalenica
Author URI: https://www.parafarmaciabiogalenica.it/
Template: Divi
Version: 4.9.4
Text Domain: company
*/

/* ---- Personalizzazioni tema child ---- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Leggibilità del contenuto delle pagine */
.entry-content h1 { margin-bottom: .5em; line-height: 1.25; }
.entry-content h2 { margin-top: 1.3em; margin-bottom: .5em; line-height: 1.3; }
.entry-content h3 { margin-top: 1em; margin-bottom: .4em; }
.entry-content p { line-height: 1.75; margin-bottom: 1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.5em; line-height: 1.7; }
.entry-content li { margin-bottom: .35em; }
.entry-content a { transition: color .2s ease; }
.entry-content strong { font-weight: 600; }

/* ---- Divi Theme Builder header fix ---- */
/* The header had TWO menu sections (a duplicate) both rendering at once, plus an unconstrained logo
   that displayed at full size. Keep ONE clean header (section 0, white bg = readable green logo),
   hide the duplicate (section 1), and constrain the logo to a normal header size. */
/* The header section contains TWO fullwidth-menu modules: module 0 (menu only, logo hidden) and
   module 1 (logo + menu). Keep ONE clean header = module 1; hide the duplicate menu-only module 0
   and the separate empty section 1. */
.et-l--header .et_pb_section_1_tb_header,
.et-l--header .et_pb_fullwidth_menu_0_tb_header { display: none !important; }
.et-l--header .et_pb_section_0_tb_header { background:#ffffff !important; }
.et-l--header .et_pb_fullwidth_menu_1_tb_header .et_pb_menu__logo-wrap { align-items:center !important; justify-content:center !important; text-align:center !important; }
.et-l--header .et_pb_fullwidth_menu_1_tb_header .et_pb_menu__menu { justify-content:center !important; }
.et-l--header .et_pb_menu__logo img,
.et-l--header .et_pb_fullwidth_menu .et_pb_menu__logo img { max-height: 56px !important; width: auto !important; height: auto !important; }
.et-l--header .et_pb_menu__logo a { display: inline-block; line-height: 0; }
.et-l--header .et_pb_section_0_tb_header { padding-top: 10px !important; padding-bottom: 10px !important; }
/* Responsive menu: desktop shows the horizontal menu, mobile shows the hamburger (one, not both). */
@media (min-width: 981px) {
  .et-l--header .et_mobile_nav_menu { display: none !important; }
}
@media (max-width: 980px) {
  .et-l--header .et_pb_menu__menu { display: none !important; }
  .et-l--header .et_mobile_nav_menu { display: block !important; }
}
