/* ==========================================================================
   Hilton Molino Stucky Venice: brand update (Hilton Brand Guidelines HHR V3)
   Scope: GM-56355. Logo, typography, text colour, CTA buttons, footer, dropdown menus.

   Production: paste this file into Appearance > Customize > Additional CSS.
   Before pasting, replace the 5 font URLs and the logo URL marked [URL] with the
   Media Library addresses of the uploaded files.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts
   -------------------------------------------------------------------------- */
@font-face { font-family: "Hilton Serif"; src: url("/_brand/fonts/HiltonSerif-Medium.woff2") format("woff2"); /* [URL] */ font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hilton Sans";  src: url("/_brand/fonts/HiltonSans-Regular.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hilton Sans";  src: url("/_brand/fonts/HiltonSans-Medium.woff2") format("woff2");  /* [URL] */ font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hilton Sans";  src: url("/_brand/fonts/HiltonSans-SemiBold.woff2") format("woff2"); /* [URL] */ font-weight: 600 700; font-style: normal; font-display: swap; }

/* Old theme fonts (Loew, Proxima Nova, Stag) are bundled in the parent theme
   and cannot be removed from wp-admin. Re-declaring the same family names here
   (later rule wins) points them to the Hilton files, so the old font files are
   never downloaded and any theme element we did not target still renders on brand. */
@font-face { font-family: "Loew-Bold";            src: url("/_brand/fonts/HiltonSerif-Medium.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Loew-Heavy";           src: url("/_brand/fonts/HiltonSerif-Medium.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Loew-Black";           src: url("/_brand/fonts/HiltonSerif-Medium.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Stag-Bold";            src: url("/_brand/fonts/HiltonSans-Medium.woff2") format("woff2");  /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Stag-SemiBold";        src: url("/_brand/fonts/HiltonSans-Medium.woff2") format("woff2");  /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Stag-BookItalic";      src: url("/_brand/fonts/HiltonSans-Regular.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ProximaNova-Regular";  src: url("/_brand/fonts/HiltonSans-Regular.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ProximaNova-SemiBold"; src: url("/_brand/fonts/HiltonSans-SemiBold.woff2") format("woff2"); /* [URL] */ font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --hh-blue: #002F61;          /* Hilton Blue: primary CTA, footer */
  --hh-blue-hover: #00264E;    /* primary CTA hover */
  --hh-teal: #06937E;          /* Hilton Teal: secondary CTA */
  --hh-teal-hover: #036E5A;    /* secondary CTA hover */
  --hh-serif: "Hilton Serif", Tenor, Georgia, serif;
  --hh-sans: "Hilton Sans", Inter, Helvetica, Arial, sans-serif;
  --hh-logo-white: url("/_brand/logo/logo-white.svg"); /* [URL] white property logo (footer) */
}

/* No faux bold: Hilton Serif has no bold weight (bold headlines are not allowed). */
html { font-synthesis-weight: none; }

/* --------------------------------------------------------------------------
   1. Typography: body copy (Hilton Sans Regular, >=16px, tracking 0, leading 120%)
   -------------------------------------------------------------------------- */
body.brand-hi {
  font-family: var(--hh-sans);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  color: #000;
}
.brand-hi .l-content-wrapper p,
.brand-hi .l-content-wrapper ul,
.brand-hi .l-content-wrapper ol,
.brand-hi .cp-home-reasons__item {
  font-family: var(--hh-sans);
  letter-spacing: 0;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   2. Typography: headlines (Hilton Serif Medium, sentence case, no bold,
      tracking -20, leading 110%, about 3x body copy)
   -------------------------------------------------------------------------- */
.brand-hi h1,
.brand-hi h2,
.brand-hi .cp-juicer__instagram-title .ig-user {
  font-family: var(--hh-serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-hi h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); }
.brand-hi h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
/* Hero slider title (text over image) = headline; subtitle = subhead */
.brand-hi .cp-masthead__overlay-title {
  font-family: var(--hh-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
}
.brand-hi .cp-masthead__overlay-subtitle {
  font-family: var(--hh-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}
/* Image tiles: same serif headline, scaled to the tile */
.brand-hi .cp-home-four-staggered-blocks .cp-tile .cp-tile__title h2 { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }

/* Subheads (Hilton Sans Medium, about 1.5x body copy) */
.brand-hi h3,
.brand-hi h4,
.brand-hi h5,
.brand-hi h6,
.brand-hi .cp-home-reasons h3,
.brand-hi .cp-three-tile__tile h4,
.brand-hi .cp-gallery__tile-text h3,
.brand-hi .cp-footer__address h4,
.brand-hi .cp-footer__custom-list h4 {
  font-family: var(--hh-sans);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-hi h3 { font-size: 1.6875rem; }
.brand-hi h4 { font-size: 1.5rem; }
.brand-hi h5 { font-size: 1.25rem; }
.brand-hi h6 { font-size: 1.125rem; }
.brand-hi .cp-home-reasons h3 { font-size: 1.6875rem; }
.brand-hi .cp-footer__address h4,
.brand-hi .cp-footer__custom-list h4 { font-size: 1.25rem; }

/* Other theme labels that used the old display fonts / ALL CAPS */
.brand-hi .cp-header__hamburger--text,
.brand-hi .cp-home-gallery__pause-text,
.brand-hi .cp-content-box__sidebar-list-item--line-1,
.brand-hi .cp-content-box-with-sidebar__sidebar-list-item--line-1,
.brand-hi .cp-three-tile__tile a,
.brand-hi .cp-three-column .l-content-wrapper__button-wrapper a.mfp-inline,
.brand-hi .cp-three-column-slider .l-content-wrapper__button-wrapper a.mfp-inline,
.brand-hi .mfp-title,
.brand-hi .mfp-counter,
.brand-hi .cp-masthead__caption,
.brand-hi .cp-masthead__overlay-controls,
.brand-hi .cp-booking-widget__column-title,
.brand-hi .cp-booking-widget__column-content--month,
.brand-hi .booking-widget__input--checkbox-label,
.brand-hi .cp-booking-widget__row-flex-dates fieldset,
.brand-hi .calendar-date,
.brand-hi .cp-juicer__follow-text,
.brand-hi .cp-contact__form-field label,
.brand-hi .cp-contact__input label,
.brand-hi .cp-contact .wpcf7-not-valid-tip,
.brand-hi .cp-room__filter .cp-filters__list li .cp-filter-action,
.brand-hi .cp-sitemap ul li a {
  font-family: var(--hh-sans);
  text-transform: none;
  letter-spacing: 0;
}
.brand-hi .cp-booking-widget__column-title { font-weight: 500; }
.brand-hi .cp-booking-widget__column-content--figure,
.brand-hi .cp-booking-widget__figure-scroller {
  font-family: var(--hh-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   3. Text colour: black on light backgrounds, white on dark backgrounds only
   -------------------------------------------------------------------------- */
.brand-hi .l-content-wrapper p,
.brand-hi .l-content-wrapper ul,
.brand-hi .cp-home-reasons__item,
.brand-hi .cp-home-reasons h3,
.brand-hi .cp-three-column .l-content-wrapper__button-wrapper a.mfp-inline,
.brand-hi .cp-three-column-slider .l-content-wrapper__button-wrapper a.mfp-inline,
.brand-hi .cp-three-column-slider-controls,
.brand-hi .cp-three-column-slider-controls--arrow span,
.brand-hi .cp-venue-carousel__navigation-controls,
.brand-hi .cp-venue-carousel__navigation-controls--arrow span,
.brand-hi .cp-two-column-hover-overlay__button-row .cp-button--no-bg,
.brand-hi .cp-contact__input label,
.brand-hi .cp-contact__input textarea,
.brand-hi .cp-home-gallery__button-wrapper a,
.brand-hi .mfp-content button {
  color: #000 !important;
}
@media only screen and (max-width: 1023px) {
  .brand-hi .cp-home-tiles-with-hover__tile h3,
  .brand-hi .cp-home-tiles-with-hover__tile p { color: #000; }
}
.brand-hi .cp-interactive-map__form-wrapper input::placeholder,
.brand-hi .cp-contact__input input::placeholder,
.brand-hi .cp-contact__input select::placeholder { color: #000; }
.brand-hi .cp-contact__input input,
.brand-hi .cp-contact__input select,
.brand-hi .cp-contact__input textarea,
.brand-hi .cp-three-column-slider-controls,
.brand-hi .cp-venue-carousel__navigation-controls,
.brand-hi .cp-home-gallery__button-wrapper a,
.brand-hi .cp-header__hamburger { border-color: #000; }

/* Hover states that turned text teal (#489FA3) */
.brand-hi .cp-three-column .l-content-wrapper__button-wrapper a.mfp-inline:hover,
.brand-hi .cp-three-column-slider .l-content-wrapper__button-wrapper a.mfp-inline:hover,
.brand-hi .cp-three-tile__tile a:hover { color: inherit !important; text-decoration: underline; }

/* Text links in content: were WordPress blue #1E73BE, now black/white + underline */
.brand-hi .l-content-wrapper a:not(.cp-button),
.brand-hi .l-content-wrapper a:not(.cp-button):hover,
.brand-hi .l-content-wrapper a:not(.cp-button):focus {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.brand-hi .l-content-wrapper a:not(.cp-button):hover,
.brand-hi .l-content-wrapper a:not(.cp-button):focus { text-decoration-thickness: 2px; }

/* "Opens in a new tab" tooltip */
.brand-hi a[target="_blank"]:focus:after,
.brand-hi a[target="_blank"]:hover:after {
  background-color: var(--hh-blue) !important;
  color: #fff !important;
  font-family: var(--hh-sans);
}
.brand-hi a[target="_blank"]:focus:before,
.brand-hi a[target="_blank"]:hover:before { border-bottom-color: var(--hh-blue) !important; }

/* --------------------------------------------------------------------------
   4. CTA buttons (p. 43)
      Primary  : #002F61, hover #00264E, white text
      Secondary: #06937E, hover #036E5A, white text
      Hilton Sans Bold (SemiBold file supplied), >=19px, sentence case, no tracking,
      rounded corners. Proportions: x = cap height, padding 2x / 4x, radius 0.75x.
      Some buttons carry an inline "background-color: #1E73BE !important", which a
      stylesheet cannot override, so the brand colour is painted with background-image.
   -------------------------------------------------------------------------- */
.brand-hi .cp-button,
.brand-hi .cp-masthead__overlay-button,
.brand-hi .cp-booking-widget__row-submit,
.brand-hi .cp-header__booking-cta a.cp-header__booking-cta--toggle,
.brand-hi .cp-header__nav ul li.mainNav-cta a {
  --btn-bg: var(--hh-blue);
  --btn-bg-hover: var(--hh-blue-hover);
  font-family: var(--hh-sans) !important;
  font-weight: 600 !important;
  font-size: 1.1875rem !important;      /* 19px */
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  color: #fff !important;
  background-color: var(--btn-bg) !important;
  background-image: linear-gradient(var(--btn-bg), var(--btn-bg)) !important;
  border: 0 !important;
  border-radius: 0.55em !important;     /* 0.75x */
  padding: 1.1em 2.5em !important;      /* 2x top/bottom, 4x left/right (measured from p. 43) */
  height: auto !important;
  width: auto;
  box-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}
.brand-hi .cp-button:hover,
.brand-hi .cp-button:focus-visible,
.brand-hi .cp-masthead__overlay-button:hover,
.brand-hi .cp-masthead__overlay-button:focus-visible,
.brand-hi .cp-booking-widget__row-submit:hover,
.brand-hi .cp-booking-widget__row-submit:focus-visible,
.brand-hi .cp-header__booking-cta a.cp-header__booking-cta--toggle:hover,
.brand-hi .cp-header__booking-cta a.cp-header__booking-cta--toggle:focus-visible,
.brand-hi .cp-header__nav ul li.mainNav-cta a:hover,
.brand-hi .cp-header__nav ul li.mainNav-cta a:focus-visible {
  --btn-bg: var(--btn-bg-hover);
  color: #fff !important;
}
.brand-hi .cp-button:focus-visible,
.brand-hi .cp-masthead__overlay-button:focus-visible,
.brand-hi .cp-booking-widget__row-submit:focus-visible,
.brand-hi .cp-header__booking-cta a.cp-header__booking-cta--toggle:focus-visible,
.brand-hi .cp-header__nav ul li.mainNav-cta a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* The old "sliding fill" hover effect */
.brand-hi .cp-button span,
.brand-hi .cp-booking-widget__row-submit span { display: none !important; }

/* Secondary CTA (Hilton Teal): header voucher button, footer buttons (they sit on Hilton Blue) */
.brand-hi .cp-header__nav ul li.mainNav-cta a,
.brand-hi .cp-button.cp-button--outline,
.brand-hi .cp-footer .cp-button {
  --btn-bg: var(--hh-teal);
  --btn-bg-hover: var(--hh-teal-hover);
}

/* Header CTAs stay on one line */
.brand-hi .cp-header__booking-cta a.cp-header__booking-cta--toggle,
.brand-hi .cp-header__nav ul li.mainNav-cta a { white-space: nowrap; max-width: none !important; }

/* Header "Prenota ora": keep room for the close (x) icon when the widget is open */
.brand-hi .cp-header__booking-cta a.cp-header__booking-cta--toggle-on { padding-right: 2.9em !important; }
.brand-hi .cp-header__booking-cta--toggle i { right: 1em; font-size: 0.8em; }
.brand-hi .cp-header__nav ul li.mainNav-cta { margin-right: 0.75rem; }

/* Booking widget submit button: fixed width removed so the padding fits */
.brand-hi .cp-booking-widget__row-submit { width: auto !important; min-width: 10.9375rem; justify-content: center; }

/* Space between buttons placed side by side */
@media only screen and (min-width: 560px) {
  .brand-hi .l-content-wrapper__button-wrapper a.cp-button { margin: 0 0.75rem 0.75rem 0; }
}

/* Hero "Scopri di più" + slide counter */
.brand-hi .cp-masthead__overlay-button { margin-right: 0.75rem; }
.brand-hi .cp-masthead__overlay-controls { border-radius: 0.5rem; font-size: 1rem; }

/* Footer buttons: spacing between the two */
.brand-hi .cp-footer__buttons-wrapper ul { gap: 0.75rem; flex-wrap: wrap; }
.brand-hi .cp-footer__buttons-wrapper a,
.brand-hi .cp-footer__buttons-wrapper a:last-child { left: 0; margin: 0; max-width: none; }

/* Slider / gallery controls that used the old light blue #009CDE */
.brand-hi .slick-dots li button,
.brand-hi .cp-home-gallery__pause,
.brand-hi .cp-masthead__mobile-controls--arrow:hover,
.brand-hi .cp-home-reasons__wrapper .slick-next,
.brand-hi .cp-home-reasons__wrapper .slick-prev { background: var(--hh-blue) !important; }
.brand-hi .cp-home-gallery__pause:hover,
.brand-hi .cp-home-reasons__wrapper .slick-next:hover,
.brand-hi .cp-home-reasons__wrapper .slick-next:focus,
.brand-hi .cp-home-reasons__wrapper .slick-prev:hover,
.brand-hi .cp-home-reasons__wrapper .slick-prev:focus { background: var(--hh-blue-hover) !important; }
.brand-hi .slick-dots li button { border-color: var(--hh-blue) !important; }
.brand-hi .cp-masthead__mobile-controls--arrow span { color: var(--hh-blue); }
.brand-hi .cp-home-reasons__item.slick-current + .slick-slide { border-color: var(--hh-blue); }
.brand-hi .cp-home-reasons__wrapper .slick-next:before,
.brand-hi .cp-home-reasons__wrapper .slick-prev:before { color: #fff; }

/* --------------------------------------------------------------------------
   5. Header navigation and dropdown menus
   -------------------------------------------------------------------------- */
.brand-hi .cp-header__nav ul li a {
  font-family: var(--hh-sans);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.brand-hi .cp-header__nav ul li a:hover,
.brand-hi .cp-header__nav ul li a:focus { color: #000 !important; }

@media only screen and (min-width: 1301px) {
  .brand-hi .cp-header__nav > ul > li:not(.mainNav-cta):not([class*="icon-"]) > a { text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
  .brand-hi .cp-header__nav > ul > li:not(.mainNav-cta):not([class*="icon-"]) > a:hover,
  .brand-hi .cp-header__nav > ul > li:not(.mainNav-cta):not([class*="icon-"]) > a:focus,
  .brand-hi .cp-header__nav > ul > li.current-menu-ancestor > a,
  .brand-hi .cp-header__nav > ul > li.current-page-ancestor > a,
  .brand-hi .cp-header__nav > ul > li.current_page_item:not(.mainNav-cta) > a { color: #000 !important; text-decoration: underline; }
  .brand-hi .cp-header__nav ul li.has-focus:before,
  .brand-hi .cp-header__nav ul li:hover:before { color: var(--hh-blue); }

  /* Dropdown panel */
  .brand-hi .cp-header__nav ul li ul {
    background-color: #fff !important;
    border-top: 3px solid var(--hh-blue);
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
    width: 15rem;
  }
  .brand-hi .cp-header__nav ul li ul li { padding: 0.625rem 1rem; }
  .brand-hi .cp-header__nav ul li ul li a {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2 !important;
    color: #000 !important;
    text-decoration: none;
  }
  .brand-hi .cp-header__nav ul li ul li a:hover,
  .brand-hi .cp-header__nav ul li ul li a:focus {
    color: #000 !important;
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

/* Mobile / tablet menu (the child theme switches to the slide-in menu at 1300px) */
@media screen and (max-width: 1300px) {
  .brand-hi .cp-header__nav { background: var(--hh-blue) !important; }
  .brand-hi .cp-header__nav ul li ul { background-color: transparent !important; }
  .brand-hi .cp-header__nav ul li a,
  .brand-hi .cp-header__nav ul li ul li a,
  .brand-hi .cp-header__nav ul li a:hover,
  .brand-hi .cp-header__nav ul li a:focus { color: #fff !important; }
  .brand-hi .cp-header__nav ul li ul li a { font-weight: 400; padding-left: 2.25rem; }
  .brand-hi .cp-header__nav ul li .menu-item-has-children--toggle { color: #fff; }
  .brand-hi .cp-header__nav ul li.mainNav-cta { margin: 1rem 0; padding: 0 1.25rem !important; box-sizing: border-box; }
  .brand-hi .cp-header__nav ul li.mainNav-cta a {
    width: 100% !important; height: auto; justify-content: center; text-align: center;
    padding-left: 1em !important; padding-right: 1em !important;
  }
}

/* Header logo: 105px desktop / 80px mobile (theme setting), minimum 45px (p. 23) */
.brand-hi .cp-header__logo img { min-width: 45px; height: auto; }

/* --------------------------------------------------------------------------
   6. Footer: Hilton Blue, white text >= 14px, white logo
   -------------------------------------------------------------------------- */
.brand-hi .cp-footer {
  background: var(--hh-blue) !important;
  color: #fff;
}
.brand-hi .cp-footer__address--line,
.brand-hi .cp-footer__custom-list--line { font-family: var(--hh-sans); font-size: 0.9375rem; line-height: 1.5; color: #fff; }
.brand-hi .cp-footer__nav ul li,
.brand-hi .cp-footer .menu-copyright { font-family: var(--hh-sans); font-size: 0.875rem; color: #fff; }
.brand-hi .cp-footer a { color: #fff; }
.brand-hi .cp-footer__logos svg { fill: #fff; }

/* Footer brand logo: new white logo instead of the theme's built-in file */
.brand-hi .cp-footer__logos--brand .cp-footer__logos--brand-link {
  display: block;
  width: 140px;
  aspect-ratio: 246.13 / 115.75;
  margin: 0 1.5625rem;
  background: var(--hh-logo-white) center / contain no-repeat;
}
.brand-hi .cp-footer__logos--brand .cp-footer__logos--brand-link img { display: none; }

/* Social section above the footer (#hiltonvenice): old navy #0D273F replaced by Hilton Blue */
.brand-hi .cp-juicer { background: var(--hh-blue); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.brand-hi .cp-juicer__social-icon:hover { color: var(--hh-blue) !important; }
