/*
 Theme Name:   Astra Child
 Theme URI:    https://buonaforchettasd.com/
 Description:  Child theme for Astra (Buona Forchetta)
 Author:       EcomBack
 Author URI:   https://ecomback.com/
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* Add your custom CSS below this line */

picture.site-icon {
    width: 0px !important;
}

/* EcomBack a11y: click-based submenus for UAEL horizontal menu */
div#wp-toolbar ul#wp-admin-bar-root-default picture.site-icon {
    width: 0% !important;
}
.eb-click-submenu.uael-nav-menu__layout-horizontal .uael-nav-menu .menu-item-has-children:hover > .sub-menu,
.eb-click-submenu.uael-nav-menu__layout-horizontal .uael-nav-menu .menu-item-has-children:focus > .sub-menu,
.eb-click-submenu.uael-nav-menu__layout-horizontal .uael-nav-menu .menu-item-has-children.focus > .sub-menu {
  visibility: hidden;
  opacity: 0;
}
.eb-click-submenu.uael-nav-menu__layout-horizontal .uael-nav-menu .menu-item-has-children.eb-open > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}
/* Restore visible focus (UAEL sets outline:0) */
.eb-click-submenu .uael-nav-menu a.uael-menu-item:focus-visible,
.eb-click-submenu .uael-nav-menu a.uael-sub-menu-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* Pizza oven image: always full width, no side gaps */
.elementor-element-2a8acd5 img {
  width: 100%;
  height: auto;
  display: block;
}
/* GIF play/pause buttons (site-wide) */
.gif-pp-wrap { position: relative; display: inline-block; max-width: 100%; }
.gif-pp-wrap img { aspect-ratio: 1 / 1; object-fit: cover; }   /* still and GIF keep the same size */
/* !important: the theme styles every <button> (red fill, padding) */
.gif-pp-wrap .gif-pp-btn {
  position: absolute !important; right: 20px; bottom: 20px; z-index: 2;
  width: 44px !important; height: 44px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; line-height: 1 !important;
  border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center;
  background: #fff !important; color: #222 !important; border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25) !important; cursor: pointer;
}
.gif-pp-wrap .gif-pp-btn:hover { background: #f2f2f2 !important; color: #222 !important; }
.gif-pp-wrap .gif-pp-btn:focus-visible { outline: 3px solid #222 !important; outline-offset: 2px; }
.gif-pp-wrap .gif-pp-btn svg { width: 18px; height: 18px; fill: #222 !important; display: block; }

 /* GIF play/pause button (spaghetti animation) */
.gif-pp-wrap { position: relative; display: inline-block; max-width: 100%; }
.gif-pp-wrap img { aspect-ratio: 1 / 1; object-fit: cover; }   /* still and GIF keep the same size */
/* !important: the theme styles every <button> (red fill, padding) */
.gif-pp-wrap .gif-pp-btn {
  position: absolute !important; right: 20px; bottom: 20px; z-index: 2;
  width: 44px !important; height: 44px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; line-height: 1 !important;
  border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center;
  background: #fff !important; color: #222 !important; border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25) !important; cursor: pointer;
}
.gif-pp-wrap .gif-pp-btn:hover { background: #f2f2f2 !important; color: #222 !important; }
.gif-pp-wrap .gif-pp-btn:focus-visible { outline: 3px solid #222 !important; outline-offset: 2px; }
.gif-pp-wrap .gif-pp-btn svg { width: 18px; height: 18px; fill: #222 !important; display: block; }

/* Press page: link colour #BF340D (passes WCAG AA contrast) */
.elementor-element-d5ab3a6 a,
.elementor-element-d5ab3a6 a:visited {
  color: #BF340D;
}
.elementor-element-d5ab3a6 a:hover,
.elementor-element-d5ab3a6 a:focus {
  color: #BF340D;
  text-decoration: underline;
}

/* Buona Forchetta – color contrast fixes (WCAG 1.4.3)
   Add in: Elementor > Site Settings > Custom CSS  (or Appearance > Customize > Additional CSS) */

/* 1) Brand red #D2360C -> #C2320B (4.05:1 -> 4.61:1 on #EDE9DD)
      Links, addresses, "DOWNLOAD HERE", footer links, OpenTable, etc. on 12+ pages.
      Better: change the Elementor global colors Primary / Accent / #D2360C custom color to #C2320B
      in Site Settings > Global Colors - then this block is not needed. */
.elementor-kit-2396 {
  --e-global-color-primary: #C2320B;
  --e-global-color-accent: #C2320B;
  --e-global-color-bd8a0ce: #C2320B;
}

/* 2) Orange headings #F5703E -> #D46136 (2.38:1 -> 3.11:1, large text needs 3:1)
      Dinner Menu + Drinks pages */
.elementor-52 .elementor-element.elementor-element-c5c1859 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-9181f7f .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-b0280ad .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-290ee28 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-00a8f62 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-6a4b5c1 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-90e89b0 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-df39d65 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-a980c09 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-fecdaa7 .elementor-heading-title,
.elementor-1652 .elementor-element.elementor-element-0a224aa .elementor-heading-title {
  color: #D46136 !important;
}

/* 3) Reservations heading #C24323 -> #B73F21 (4.20:1 -> 4.62:1; 13.5pt bold is not "large") */
.elementor-2045 .elementor-element.elementor-element-122dddf .elementor-heading-title {
  color: #B73F21 !important;
}

/* 4) Locations page "Click here" buttons: white text on photos -> add a dark backing */
.elementor-element.elementor-element-86a165f .elementor-button {
  background-color: rgba(13, 13, 13, 0.8) !important;
}

/* 5) Dinner Menu "CHEF'S SPECIALS": wrapper is #0D0D0D on black (scanner hit);
      the visible text is already white - make the wrapper match */
.elementor-element.elementor-element-1588cd2 .elementor-headline-dynamic-wrapper {
  color: #FFFFFF !important;
}

/* 6) Text over photos with only a 30% overlay: raise the overlay to 60%
      Holidays hero ("Thanksgiving") + homepage hero ("Welcome to Buona Forchetta", tablet/mobile) */
.elementor-element.elementor-element-ec0c69d,
.elementor-element.elementor-element-62b5d18 {
  --overlay-opacity: 0.6 !important;
}
.elementor-element.elementor-element-ec0c69d::before,
.elementor-element.elementor-element-62b5d18::before {
  opacity: 0.6 !important;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #0D0D0D !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 7px #FFFFFF !important;
}

/* Red header: white outline + dark halo */
.elementor-348 a:focus-visible,
.elementor-348 button:focus-visible,
.elementor-348 [role="button"]:focus-visible {
  outline-color: #FFFFFF !important;
  box-shadow: 0 0 0 7px #0D0D0D !important;
}

/* Hidden screen-reader text: black on white so automated tools don't flag contrast */
.screen-reader-text {
	color: #000000 !important;
	background-color: #ffffff !important;
}

.screen-reader-text:focus,
.skip-link.screen-reader-text:focus {
	color: #000000 !important;
	background-color: #ffffff !important;
	outline: 2px solid #000000 !important;
	outline-offset: 2px;
	padding: 12px 20px !important;
	font-size: 16px !important;
	font-weight: 600;
	text-decoration: underline;
	z-index: 100000 !important;
}
.visually-hidden.external-warning {
  color: #000 !important;
  background-color: #fff !important;
}