/*
Theme Name: Royal Elementor Kit – SBR Child
Theme URI: https://horecasbr.it
Description: Child theme Horeca SBR. Header globale gestibile da Aspetto → Menu (posizione «Menu principale SBR») e da Personalizza → Header SBR.
Author: Horeca SBR
Template: royal-elementor-kit
Version: 1.0.6
Text Domain: sbr-child
*/

:root{--sbr-bg:#F6F0E6;--sbr-ink:#1B1613;--sbr-accent:#7A1F2B;--sbr-line:#DDD2C2;--sbr-panel:#FBF8F2;--sbr-hover:#EADFCF;--sbr-muted:#5A4F47}

/* ---- Header vecchio del tema / Theme Builder: nascosto ----
   Nasconde ogni <header> che non sia il nostro e che non sia dentro il contenuto (main, article, pagine Elementor),
   più i nomi di classe/ID più comuni dei temi. */
body header:not([data-sbr-header]):not(main header):not(article header):not([data-elementor-type="wp-page"] header):not([data-elementor-type="wp-post"] header):not(.sbr header),
/* Header vecchio = template Elementor/Royal Addons "Nature v1 Header" (ID 236) */
body .elementor-236,
body [data-elementor-id="236"],
body .elementor-location-header,
body [data-elementor-type="header"],
body [data-elementor-type="wpr-header"],
body [data-elementor-type^="wpr-header"],
body #masthead,
body #site-header,
body .site-header,
body [id^="wpr-header"],
body [class*="wpr-header"]:not([data-sbr-header]):not(.sbr-header *),
body .wpr-site-header,
body #header:not(.sbr-header),
body .main-header,
body .header-wrapper{display:none !important}

/* ---- Regole per le sezioni HTML delle pagine (classe .sbr) ---- */
.sbr,.sbr *{box-sizing:content-box}
.sbr{font-family:'Inter',system-ui,sans-serif;color:var(--sbr-ink)}
.sbr a{color:inherit;text-decoration:none}
.sbr h1,.sbr h2{color:inherit}
.sbr button{box-shadow:none;text-transform:none;letter-spacing:normal}
.sbr .row:hover{opacity:.7}
.sbr .cta:hover{opacity:.88}
.sbr [hidden]{display:none !important}

/* ---- Header SBR ---- */
.sbr-header{position:relative;z-index:100;background:var(--sbr-bg);color:var(--sbr-ink);border-bottom:1px solid var(--sbr-line);font-family:'Inter',system-ui,sans-serif}
.sbr-header,.sbr-header *{box-sizing:border-box}
.sbr-header__bar{max-width:1360px;margin:0 auto;padding:12px 40px;display:flex;align-items:center;justify-content:space-between;gap:12px 32px}
.sbr-header__logo{display:block;line-height:0}
.sbr-logo{display:block;width:auto;max-width:none;mix-blend-mode:multiply}
.sbr-nav{display:flex;align-items:center;gap:4px}
.sbr-nav__list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px}
.sbr-nav__item{list-style:none;margin:0;padding:0}
.sbr-header .sbr-nav__btn,.sbr-header .sbr-nav__link{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;height:auto;padding:0 14px;margin:0;background:transparent !important;border:0 !important;border-radius:4px !important;font:500 15px/1 'Inter',system-ui,sans-serif !important;color:var(--sbr-ink) !important;cursor:pointer;text-decoration:none !important;box-shadow:none !important;text-transform:none !important;letter-spacing:normal !important;white-space:nowrap}
.sbr-header .sbr-nav__btn:hover,.sbr-header .sbr-nav__link:hover,.sbr-header .sbr-nav__btn:focus,.sbr-header .sbr-nav__link:focus,.sbr-header .sbr-nav__btn:active,.sbr-header .sbr-nav__btn[aria-expanded="true"]{background:var(--sbr-hover) !important;color:var(--sbr-ink) !important;outline:none}
.sbr-header .sbr-nav__btn:focus-visible,.sbr-header .sbr-nav__link:focus-visible,.sbr-header .sbr-burger:focus-visible,.sbr-header .sbr-cta:focus-visible{outline:2px solid var(--sbr-accent) !important;outline-offset:2px}
.sbr-nav__btn svg{transition:transform .15s}
.sbr-nav__btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.sbr-nav__btn[aria-expanded="true"]::after{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:2px;background:var(--sbr-accent)}
.sbr-header .sbr-cta{margin-left:12px;display:inline-flex;align-items:center;min-height:44px;padding:0 22px;background:var(--sbr-accent) !important;color:#F6F0E6 !important;border:0 !important;border-radius:999px;font:600 15px/1 'Inter',system-ui,sans-serif;text-decoration:none !important;white-space:nowrap}
.sbr-header .sbr-cta:hover,.sbr-header .sbr-cta:focus{color:#F6F0E6 !important;opacity:.88}
.sbr-header .sbr-burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:transparent;background:transparent !important;border:0 !important;border-radius:4px;color:var(--sbr-ink) !important;cursor:pointer;box-shadow:none !important}
.sbr-panel{position:absolute;top:100%;left:0;right:0;background:var(--sbr-panel);border-bottom:1px solid var(--sbr-line);box-shadow:0 24px 40px rgba(27,22,19,.12)}
.sbr-panel[hidden]{display:none}
.sbr-panel__inner{max-width:1360px;margin:0 auto;padding:40px;display:flex;flex-wrap:wrap;gap:32px 80px}
.sbr-panel__head{flex:1 1 280px}
.sbr-eyebrow{font:600 12px/1.2 'Inter',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--sbr-muted)}
.sbr-panel__title{margin-top:10px;font:500 40px/1.1 'Fraunces',Georgia,serif;letter-spacing:-.01em}
.sbr-header .sbr-panel__all{display:inline-block;margin-top:18px;font:600 15px/1.3 'Inter',sans-serif;color:var(--sbr-accent) !important;text-decoration:none !important}
.sbr-panel__list{flex:2 1 400px;list-style:none;margin:0;padding:0;border-bottom:1px solid var(--sbr-line)}
.sbr-panel__list li{list-style:none;margin:0;padding:0}
.sbr-header .sbr-row{display:flex;justify-content:space-between;align-items:center;min-height:60px;border-top:1px solid var(--sbr-line);color:var(--sbr-ink) !important;text-decoration:none !important;font:500 20px/1.3 'Inter',sans-serif}
.sbr-header .sbr-row:hover{opacity:.7}
.sbr-admin-note{background:#FFF3CD;color:#5A4500;padding:8px 40px;font:500 14px/1.4 'Inter',sans-serif}

@media (max-width:960px){
  .sbr-header__bar{flex-wrap:wrap;padding:10px 20px}
  .sbr-burger{display:inline-flex}
  .sbr-nav{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;gap:8px;padding-bottom:12px}
  .sbr-header.is-menu-open .sbr-nav{display:flex}
  .sbr-header .sbr-nav__btn,.sbr-header .sbr-nav__link{width:100%}
  .sbr-nav__list{flex-direction:column;align-items:stretch;gap:0}
  .sbr-nav__btn,.sbr-nav__link{width:100%;justify-content:space-between;padding:0 8px}
  .sbr-nav__btn[aria-expanded="true"]::after{display:none}
  .sbr-panel{position:static;box-shadow:none;border-bottom:0;background:transparent}
  .sbr-panel__inner{padding:4px 8px 12px;gap:4px}
  .sbr-eyebrow,.sbr-panel__title{display:none}
  .sbr-panel__head{flex:1 1 100%}
  .sbr-panel__all{margin-top:0}
  .sbr-panel__list{flex:1 1 100%}
  .sbr-row{min-height:48px;font-size:17px}
  .sbr-cta{margin:0;justify-content:center}
  .sbr-admin-note{padding:8px 20px}
}
