/* Start custom CSS *//* Scheda negozio: nasconde le parti senza dati */
.ng-orario:has(.ng-val:empty) { display: none !important; }
.ng-info-row:has(.ng-val:empty) { display: none !important; }
a.ng-sito:not([href]), a.ng-sito[href=""], a.ng-social:not([href]), a.ng-social[href=""], .ng-social:not(a) { display: none !important; }
body:has(.ng-descr:empty) .ng-brand, body:has(.ng-descr:empty) .ng-btn-brand { display: none !important; }

/* Ancore: spazio per l'header fisso */
#mappa, #il-brand { scroll-margin-top: 140px; }
@media (max-width: 767px) { #mappa, #il-brand { scroll-margin-top: 80px; } }
html { scroll-behavior: smooth; }

/* Social: icona ed etichetta in base al link */
.elementor a.ng-social[href*="facebook."] > :nth-child(1),
.elementor a.ng-social[href*="fb.com"] > :nth-child(1),
.elementor a.ng-social[href*="instagram."] > :nth-child(2),
.elementor a.ng-social[href*="tiktok."] > :nth-child(3),
.elementor a.ng-social[href*="youtube."] > :nth-child(4),
.elementor a.ng-social[href*="youtu.be"] > :nth-child(4),
.elementor a.ng-social[href*="twitter."] > :nth-child(5),
.elementor a.ng-social[href*="x.com"] > :nth-child(5),
.elementor a.ng-social[href*="linkedin."] > :nth-child(6) { display: inline-block !important; }
.elementor a.ng-social::after { content: "Social"; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 25px; line-height: 1.4; color: var(--ps-navy, #13325B); }
.elementor a.ng-social[href*="facebook."]::after, .elementor a.ng-social[href*="fb.com"]::after { content: "Facebook"; }
.elementor a.ng-social[href*="instagram."]::after { content: "Instagram"; }
.elementor a.ng-social[href*="tiktok."]::after { content: "TikTok"; }
.elementor a.ng-social[href*="youtube."]::after, .elementor a.ng-social[href*="youtu.be"]::after { content: "YouTube"; }
.elementor a.ng-social[href*="twitter."]::after, .elementor a.ng-social[href*="x.com"]::after { content: "X"; }
.elementor a.ng-social[href*="linkedin."]::after { content: "LinkedIn"; }
@media (max-width: 1024px) { .elementor a.ng-social::after { font-size: 20px; } }
@media (max-width: 767px) { .elementor a.ng-social::after { font-size: 18px; } }

/* La descrizione ACF arriva con i suoi paragrafi */
.ng-descr p { margin: 0 0 1em 0; }
.ng-descr p:last-child { margin-bottom: 0; }

/* hero-norepeat: lo sfondo decorativo non si ripete */
.elementor-element-3ad7d4d7 { background-repeat: no-repeat !important; }

/* info-vuote: nasconde "Info utili" se non ci sono contatti */
.elementor-element-2cc0224d:not(:has(.ng-info-row .ng-val:not(:empty))):not(:has(a.ng-sito[href]:not([href=""]))):not(:has(a.ng-social[href]:not([href=""]))) [data-id="7caf7238"] { display: none !important; }

/* Mappa negozi */
.elementor-element-282ce8df { height: auto !important; min-height: 0 !important; display: block !important; padding: 80px 50px !important; }
.elementor-element-282ce8df .elementor-widget-shortcode { width: 100%; max-width: 1820px; margin: 0 auto; }
@media (max-width: 1024px) { .elementor-element-282ce8df { padding: 60px 30px !important; } }
@media (max-width: 767px) { .elementor-element-282ce8df { padding: 40px 20px !important; } }/* End custom CSS */