/*
Theme Name: Restaurante Alheira Grill
Theme URI: https://example.com/
Author: MinhaWeb Construção de Sites
Author URI: https://minhaweb.pt/
Description: Tema WordPress personalizado para Restaurante Alheira Grill.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: restaurante-alheira-grill
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root{--mw-content-width:1200px;--mw-text-color:#222;--mw-background:#fff;--mw-link-color:#1b5fa7}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--mw-text-color);background:var(--mw-background);font-family:Arial,Helvetica,sans-serif;line-height:1.6}img{max-width:100%;height:auto}a{color:var(--mw-link-color)}.mw-container{width:min(100% - 40px,var(--mw-content-width));margin-inline:auto}.mw-site-main{min-height:50vh}.mw-site-header,.mw-site-footer{width:100%}.mw-site-header{padding:18px 0;border-bottom:1px solid #e8e8e8}.mw-site-footer{padding:28px 0;border-top:1px solid #e8e8e8}.mw-branding{display:flex;align-items:center;gap:14px}.mw-site-title{margin:0;font-size:1.25rem;font-weight:700}.mw-site-title a{color:inherit;text-decoration:none}.mw-primary-menu{list-style:none;display:flex;flex-wrap:wrap;gap:20px;padding:0;margin:16px 0 0}.mw-primary-menu a{text-decoration:none}.mw-content{padding:40px 0}.mw-entry-title{margin-top:0}.elementor-page .mw-content{padding:0}.elementor-page .mw-container.elementor-container-shell{width:100%;max-width:none;margin:0}


/* Elementor: permitir páginas em largura total sem limite do tema */
.elementor-page .mw-container,
.elementor-page .elementor-container-shell,
.elementor-page main.mw-site-main,
.elementor-page .site-main,
.elementor-page #content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

.elementor-page .entry-content {
  width: 100%;
  max-width: none;
}


/* v1.0.2 - Elementor legacy Sections/Columns: full width */
body.elementor-page,
body.elementor-page #page,
body.elementor-page #content,
body.elementor-page main,
body.elementor-page .mw-site-main,
body.elementor-page .mw-container,
body.elementor-page .elementor-container-shell,
body.elementor-page article,
body.elementor-page .entry-content,
body.elementor-page .elementor,
body.elementor-page .elementor-section-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementor antigo: remove o limite de largura das Sections "Boxed" */
body.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Primeira camada de Sections/Containers do Elementor ocupa toda a viewport */
body.elementor-page .elementor > .elementor-section,
body.elementor-page .elementor > .e-con,
body.elementor-page .elementor > .e-con-full,
body.elementor-page .elementor-section-wrap > .elementor-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Evita largura herdada do tema em templates do Elementor */
body.elementor-page .site,
body.elementor-page .site-content,
body.elementor-page .content-area {
    width: 100% !important;
    max-width: none !important;
}


/* v1.0.3 - Full viewport breakout para páginas Elementor */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body.elementor-page #content,
body.elementor-page .mw-site-main,
body.elementor-page .elementor,
body.elementor-page .elementor-page,
body.elementor-page .elementor-section-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementor antigo - Sections/Columns */
body.elementor-page .elementor-section,
body.elementor-page .elementor-section.elementor-section-boxed,
body.elementor-page .elementor-section.elementor-section-full_width,
body.elementor-page .elementor-section > .elementor-container {
    width: 100% !important;
    max-width: none !important;
}

/* Elementor novo - Containers */
body.elementor-page .e-con,
body.elementor-page .e-con-inner,
body.elementor-page .e-con-full,
body.elementor-page .elementor-element.e-con {
    max-width: none !important;
}

/* A primeira camada da página pode sempre ocupar toda a viewport */
body.elementor-page .elementor > .elementor-element,
body.elementor-page .elementor-section-wrap > .elementor-section {
    width: 100% !important;
    max-width: none !important;
}
