:root {
  --ib-ink: #262626;
  --ib-copy: #3c3c3c;
  --ib-accent: #00857a;
  --ib-accent-dark: #006d64;
  --ib-paper: #ffffff;
  --ib-soft: #f4f4f4;
  --ib-line: #e5e5e5;
  --ib-muted: #7e7e7e;
  --ib-max-width: 1280px;
  --ib-section-space: 96px;
  --ib-gap: 24px;
  --ib-radius: 3px;
  --ib-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --ib-transition: 250ms ease;
  --ib-font-body: "Open Sans", Arial, sans-serif;
  --ib-font-heading: "Lora", Georgia, serif;
  --ib-font-ui: "Poppins", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ib-site {
  margin: 0;
  color: var(--ib-copy);
  background: var(--ib-paper);
  font-family: var(--ib-font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.ib-site a {
  color: inherit;
  text-decoration: none;
}

body.ib-site img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.ib-site h1,
body.ib-site h2,
body.ib-site h3,
body.ib-site h4,
body.ib-site h5,
body.ib-site h6 {
  margin: 0 0 .45em;
  color: var(--ib-ink);
  font-family: var(--ib-font-heading);
  font-weight: 400;
  line-height: 1.16;
}

body.ib-site h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

body.ib-site h2 {
  font-size: clamp(2.1rem, 4vw, 3.75rem);
}

body.ib-site h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}

body.ib-site p {
  margin: 0 0 1.15em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 18px;
  background: var(--ib-paper);
  color: var(--ib-ink);
  box-shadow: var(--ib-shadow);
}

:focus-visible {
  outline: 2px solid var(--ib-accent);
  outline-offset: 4px;
}

.ib-shell {
  width: min(calc(100% - 48px), var(--ib-max-width));
  margin-inline: auto;
}

.ib-main {
  min-height: 54vh;
}

.ib-content {
  padding-block: var(--ib-section-space);
}

.ib-eyebrow,
.ib-kicker,
.elementor .ib-eyebrow .elementor-heading-title {
  color: var(--ib-ink);
  font-family: var(--ib-font-ui);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ib-accent {
  color: var(--ib-accent);
}

.ib-button,
.elementor .ib-button .elementor-button,
.wp-element-button,
body.ib-site button[type="submit"] {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 38px;
  border: 1px solid var(--ib-ink);
  border-radius: 0;
  color: #fff;
  background: var(--ib-ink);
  font-family: var(--ib-font-ui);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--ib-transition), background var(--ib-transition), border-color var(--ib-transition), transform var(--ib-transition);
}

body.ib-site a.ib-button {
  color: #fff;
}

.ib-button:hover,
.elementor .ib-button .elementor-button:hover,
.wp-element-button:hover,
body.ib-site button[type="submit"]:hover {
  color: #fff;
  background: var(--ib-accent);
  border-color: var(--ib-accent);
  transform: translateY(-2px);
}

.ib-button.ib-button-light {
  color: var(--ib-ink);
  background: #fff;
  border-color: #fff;
}

.ib-button.ib-button-outline {
  color: var(--ib-ink);
  background: transparent;
}

body.ib-site a.ib-button.ib-button-light,
body.ib-site a.ib-button.ib-button-outline {
  color: var(--ib-ink);
}

body.ib-site a.ib-button:hover {
  color: #fff;
}

/* Header */
.ib-topbar {
  color: #fff;
  background: var(--ib-ink);
}

.ib-topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-family: var(--ib-font-heading);
  font-size: 12px;
  text-transform: uppercase;
}

.ib-topbar a:hover {
  color: #cfe7e4;
}

.ib-site-header {
  position: relative;
  z-index: 100;
  background: #fff;
}

.ib-header-main {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.ib-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.ib-logo img,
.ib-brand-logo,
.custom-logo {
  width: auto;
  max-width: 112px;
  max-height: 72px;
  object-fit: contain;
}

.ib-wordmark {
  display: inline-flex;
  flex-direction: column;
  padding: 4px 7px;
  border: 3px solid var(--ib-ink);
  color: var(--ib-ink);
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: .92;
  text-align: center;
  text-transform: lowercase;
}

.ib-wordmark small {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .5px;
}

.ib-primary-nav {
  flex: 1;
}

.ib-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.9vw, 42px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ib-nav-list a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--ib-font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.ib-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--ib-accent);
  transition: right var(--ib-transition);
}

.ib-nav-list a:hover::after,
.ib-nav-list .current-menu-item > a::after {
  right: 0;
}

.ib-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  background: transparent;
}

.ib-nav-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--ib-ink);
  transition: transform var(--ib-transition), opacity var(--ib-transition);
}

.ib-nav-toggle[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ib-nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.ib-nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Elementor global classes used by the starter templates */
.elementor .ib-section,
.ib-section {
  padding-block: var(--ib-section-space);
}

.elementor .ib-section-soft,
.ib-section-soft {
  background: var(--ib-soft);
}

.elementor .ib-section-dark,
.ib-section-dark {
  color: #fff;
  background: var(--ib-ink);
}

.elementor .ib-section-dark h1,
.elementor .ib-section-dark h2,
.elementor .ib-section-dark h3,
.ib-section-dark h1,
.ib-section-dark h2,
.ib-section-dark h3 {
  color: #fff;
}

.elementor .ib-hero {
  min-height: min(760px, calc(100vh - 130px));
  overflow: hidden;
}

.elementor .ib-hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 0 72px clamp(24px, 5vw, 88px);
}

.elementor .ib-hero-title .elementor-heading-title {
  max-width: 660px;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 1.04;
}

.elementor .ib-hero-image,
.elementor .ib-hero-image .elementor-widget-container,
.elementor .ib-hero-image img {
  min-height: 620px;
  height: 100%;
}

.elementor .ib-hero-image img {
  width: 100%;
  object-fit: cover;
}

.elementor .ib-split-image img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.elementor .ib-number .elementor-heading-title {
  color: var(--ib-accent);
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.elementor .ib-centered-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.elementor .ib-rule .elementor-divider-separator {
  width: 100px;
  border-color: var(--ib-accent);
}

.elementor .ib-image-card {
  position: relative;
  overflow: hidden;
}

.elementor .ib-image-card img {
  transition: transform var(--ib-transition);
}

.elementor .ib-image-card:hover img {
  transform: scale(1.04);
}

/* Content and footer */
.ib-archive-heading {
  max-width: 820px;
  margin-bottom: 56px;
}

.ib-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
}

.ib-post-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
}

.ib-post-card h2 {
  font-size: 2rem;
}

.ib-single-post {
  max-width: 940px;
  margin-inline: auto;
}

.ib-featured-image {
  margin: 46px 0;
}

.ib-entry-content {
  max-width: 780px;
  font-size: 17px;
}

.ib-error-page {
  max-width: 900px;
  padding-block: 150px;
  text-align: center;
}

.ib-site-footer {
  margin-top: 0;
  color: #d6d6d6;
  background: var(--ib-ink);
}

.ib-footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 60px;
  padding: 80px 0 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.ib-footer-cta h2 {
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.ib-footer-cta p {
  max-width: 720px;
}

.ib-footer-bottom {
  padding: 38px 0 52px;
  font-size: 13px;
}

.ib-footer-bottom a:hover {
  color: #fff;
}

.ib-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  list-style: none;
  font-family: var(--ib-font-ui);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

/* Elementor header/footer starter templates */
.elementor .ib-elementor-header {
  position: relative;
  z-index: 100;
}

.elementor .ib-elementor-topbar {
  min-height: 38px;
  color: #fff;
  background: var(--ib-ink);
}

.elementor .ib-elementor-header-main {
  min-height: 92px;
  background: #fff;
}

.elementor .ib-elementor-footer {
  color: #d6d6d6;
  background: var(--ib-ink);
}

@media (max-width: 1023px) {
  :root {
    --ib-section-space: 64px;
  }

  .ib-header-main {
    min-height: 78px;
  }

  .ib-nav-toggle {
    display: block;
    margin-left: auto;
  }

  .ib-primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 24px;
    background: #fff;
    box-shadow: var(--ib-shadow);
  }

  .ib-primary-nav.is-open {
    display: block;
  }

  .ib-nav-list {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .ib-nav-list a {
    width: 100%;
    min-height: 48px;
  }

  .elementor .ib-hero {
    min-height: auto;
  }

  .elementor .ib-hero-copy {
    padding: 56px 32px;
  }

  .elementor .ib-hero-image,
  .elementor .ib-hero-image .elementor-widget-container,
  .elementor .ib-hero-image img {
    min-height: 460px;
  }

  .ib-post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --ib-section-space: 48px;
    --ib-gap: 18px;
  }

  .ib-shell {
    width: min(calc(100% - 32px), var(--ib-max-width));
  }

  .ib-topbar-inner {
    min-height: 34px;
    justify-content: center;
    font-size: 9px;
    letter-spacing: .2px;
  }

  .ib-header-main {
    gap: 18px;
  }

  .ib-logo img,
  .ib-brand-logo,
  .custom-logo {
    max-width: 88px;
    max-height: 58px;
  }

  .elementor .ib-hero-copy {
    padding: 42px 22px;
  }

  .elementor .ib-hero-image,
  .elementor .ib-hero-image .elementor-widget-container,
  .elementor .ib-hero-image img {
    min-height: 340px;
  }

  .elementor .ib-split-image img {
    min-height: 340px;
  }

  .ib-post-list {
    grid-template-columns: 1fr;
  }

  .ib-footer-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 0;
  }

  .ib-footer-cta .ib-button {
    width: 100%;
  }

  .ib-footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Faithful editorial direction: inspired by the reference site while keeping
 * the catalog structure and every Elementor block independently editable. */
body.ib-site .elementor .ib-elementor-header-main {
  min-height: 118px;
  padding-inline: clamp(24px, 6vw, 96px);
  border: 0;
  box-shadow: none;
}

body.ib-site .elementor .ib-elementor-header-main .elementor-nav-menu--main {
  margin-left: auto;
}

body.ib-site .elementor .ib-elementor-header-main .elementor-nav-menu--main .elementor-item {
  min-height: 72px;
  padding-inline: clamp(12px, 1.5vw, 24px);
}

body.ib-site .elementor .ib-hero {
  min-height: min(720px, calc(100vh - 156px));
  background: #fff;
}

body.ib-site .elementor .ib-hero-copy {
  align-items: center;
  padding: 78px clamp(36px, 5vw, 92px);
  text-align: center;
}

body.ib-site .elementor .ib-hero-copy .elementor-widget-text-editor {
  max-width: 620px;
  margin-inline: auto;
}

body.ib-site .elementor .ib-hero-copy > .e-con-inner,
body.ib-site .elementor .ib-hero-copy > .elementor-element {
  width: 100%;
}

body.ib-site .elementor .ib-hero-title .elementor-heading-title {
  margin-inline: auto;
}

body.ib-site .elementor .ib-hero-copy .e-con.e-child {
  justify-content: center;
}

body.ib-site .elementor .ib-hero-media,
body.ib-site .elementor .ib-hero-image,
body.ib-site .elementor .ib-hero-image .elementor-widget-container,
body.ib-site .elementor .ib-hero-image img {
  min-height: min(720px, calc(100vh - 156px));
}

body.ib-site .elementor .ib-hero-image img {
  object-position: center center;
}

body.ib-site .elementor .ib-section {
  padding-block: clamp(78px, 8vw, 120px);
}

body.ib-site .elementor .ib-section-soft {
  background: #f6f6f6;
}

body.ib-site .elementor .ib-section > .e-con-inner {
  width: min(calc(100% - 48px), 1280px);
}

body.ib-site .elementor .ib-section h2.elementor-heading-title,
body.ib-site .elementor .ib-home-room h2.elementor-heading-title {
  font-size: clamp(42px, 4.4vw, 60px);
  line-height: 1.2;
}

body.ib-site .elementor .ib-home-style-card h3.elementor-heading-title {
  margin-top: 28px;
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.3;
}

body.ib-site .elementor .ib-home-style-card {
  padding: 0 0 64px;
  text-align: center;
}

body.ib-site .elementor .ib-home-style-card .elementor-button {
  margin-top: 16px;
}

body.ib-site .elementor .ib-home-room {
  padding-block: 0;
}

body.ib-site .elementor .ib-home-room .ib-split-image img {
  min-height: 620px;
}

body.ib-site .elementor .ib-number .elementor-heading-title {
  color: #262626;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
}

body.ib-site .elementor .ib-final-cta {
  text-align: center;
}

@media (max-width: 1023px) {
  body.ib-site .elementor .ib-elementor-header-main {
    min-height: 88px;
    padding-inline: 24px;
  }

  body.ib-site .elementor .ib-hero-copy {
    padding: 64px 34px;
  }

  body.ib-site .elementor .ib-hero,
  body.ib-site .elementor .ib-hero-media,
  body.ib-site .elementor .ib-hero-image,
  body.ib-site .elementor .ib-hero-image .elementor-widget-container,
  body.ib-site .elementor .ib-hero-image img {
    min-height: 520px;
  }
}

@media (max-width: 767px) {
  body.ib-site .elementor .ib-hero-copy {
    align-items: flex-start;
    padding: 52px 22px;
    text-align: left;
  }

  body.ib-site .elementor .ib-hero-title .elementor-heading-title {
    margin-inline: 0;
  }

  body.ib-site .elementor .ib-hero-copy .e-con.e-child {
    justify-content: flex-start;
  }

  body.ib-site .elementor .ib-section > .e-con-inner {
    width: min(calc(100% - 32px), 1280px);
  }

  body.ib-site .elementor .ib-home-room .ib-split-image img {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Visual alignment with ilborgoarredamenti.it.
 * These selectors intentionally outrank Elementor Site Settings so imported
 * content keeps the reference typography without locking Elementor editing.
 */
body.ib-site,
body.ib-site .elementor-widget-text-editor,
body.ib-site .elementor-widget-text-editor p {
  color: #3c3c3c;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}

body.ib-site .elementor .elementor-heading-title,
body.ib-site .elementor h1.elementor-heading-title,
body.ib-site .elementor h2.elementor-heading-title,
body.ib-site .elementor h3.elementor-heading-title {
  color: #262626;
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

body.ib-site .elementor .ib-hero-title .elementor-heading-title {
  max-width: 660px;
  color: #262626;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(46px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

body.ib-site .elementor .ib-eyebrow .elementor-heading-title,
body.ib-site .elementor .ib-kicker .elementor-heading-title {
  color: #262626;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

body.ib-site .elementor .elementor-button,
body.ib-site .elementor .ib-button .elementor-button {
  min-height: 54px;
  border-radius: 0;
  color: #fff;
  background: #262626;
  border-color: #262626;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

body.ib-site .elementor .ib-button-outline .elementor-button {
  color: #262626;
  background: transparent;
}

body.ib-site .elementor .elementor-nav-menu a,
body.ib-site .elementor .elementor-nav-menu--main .elementor-item,
body.ib-site .elementor .ib-elementor-header a {
  color: #262626;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

body.ib-site .elementor .ib-elementor-topbar,
body.ib-site .elementor .ib-elementor-topbar p,
body.ib-site .elementor .ib-elementor-topbar a {
  color: #fff;
  background: #262626;
  font-family: "Lora", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  body.ib-site .elementor .ib-hero-title .elementor-heading-title {
    font-size: clamp(38px, 11vw, 50px);
  }

  body.ib-site .elementor .ib-eyebrow .elementor-heading-title,
  body.ib-site .elementor .ib-kicker .elementor-heading-title {
    font-size: 12px;
  }
}
