:root {
  --radius: .25rem;
  --background: #fbf6ee;
  --foreground: #251712;
  --card: #fdfaf4;
  --card-foreground: #251712;
  --popover: #fdfaf4;
  --popover-foreground: #251712;
  --primario: #a94524;
  --primario-foreground: #fdfaf4;
  --secondary: #425430;
  --secondary-foreground: #fdfaf4;
  --muted: #f1eae0;
  --muted-foreground: #584a40;
  --accent: #dc9242;
  --accent-foreground: #251712;
  --destructive: #d40924;
  --destructive-foreground: #fdfaf4;
  --border: #e0d6ca;
  --input: #ebe3da;
  --ring: #a94524;
  --terracotta: #a94524;
  --olive: #425430;
  --cream: #f8f1e5;
  --stone-warm: #d5c8b9;
  --ink: #251712;
  --gradient-warm: linear-gradient(135deg, #a94524 0%, #cf630d 100%);
  --gradient-hero: linear-gradient(180deg, rgba(37, 23, 18, 0.1) 0%, rgba(37, 23, 18, 0.65) 100%);
  --shadow-soft: 0 2px 20px -8px rgba(37, 23, 18, 0.15);
  --shadow-elegant: 0 24px 60px -24px rgba(37, 23, 18, 0.35);
  --spacing: .25rem;
}

.radius {
  border-radius: var(--radius);
}

.background {
  background-color: var(--background);
}

.foreground {
  color: var(--foreground);
}

.card {
  background-color: var(--card);
}

.card-foreground {
  color: var(--card-foreground);
}

.popover {
  background-color: var(--popover);
}

.popover-foreground {
  color: var(--popover-foreground);
}

.primario {
  color: var(--primario);
}

.bg-primario {
  background-color: var(--primario);
}

.primario-foreground {
  color: var(--primario-foreground);
}

.secondary {
  background-color: var(--secondary);
}

.secondary-foreground {
  color: var(--secondary-foreground);
}

.muted {
  color: var(--muted);
}

.bg-muted {
  background-color: var(--muted);
}

.muted-foreground {
  color: var(--muted-foreground);
}

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

.bg-accent {
  background-color: var(--accent);
}

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

.destructive {
  background-color: var(--destructive);
}

.destructive-foreground {
  color: var(--destructive-foreground);
}

.border {
  border-color: var(--border);
}

.input {
  background-color: var(--input);
}

.ring {
  box-shadow: 0 0 0 3px var(--ring);
}

.terracotta {
  color: var(--terracotta);
}

.olive {
  color: var(--olive);
}

.cream {
  color: var(--cream);
}

.cream50 {
  color: color-mix(in srgb, var(--background) 90%, transparent);
}

.bgcream {
  background-color: var(--cream);
}

.stone-warm {
  color: var(--stone-warm);
}

.ink {
  color: var(--ink);
}

.gradient-warm {
  background-image: var(--gradient-warm);
}

.gradient-hero {
  background-image: var(--gradient-hero);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-elegant {
  box-shadow: var(--shadow-elegant);
}

#sp-main-body {
  padding: 0px 0;
}

.article-can-edit {
  display: none !important;
}

a:hover {
  color: var(--primario);
}

.fs-7 {
  font-size: 0.8rem;
}

.ls18 {
  letter-spacing: .18em;
}

.w-10 {
  width: calc(var(--spacing) * 10);
}

.h-px {
  height: 1px;
}

.font1 {
  font-family: 'Fraunces', serif;
}

.font2 {
  font-family: 'Inter', sans-serif;
}

.aziona:hover .rotate-45 {
  rotate: 45deg;
  stroke: var(--primario);
}

.rotate-45 {
  transition: rotate 0.3s ease;
}

.opacity60 {
  opacity: 60%
}

.opacity70 {
  opacity: 70%
}

#sp-header {
  height: 104px;
  box-shadow: 0px 0px;
  background: transparent !important;
}

#sp-header a {
  color: var(--cream);
}

#sp-header a:hover {
  color: var(--primario);
}

#sp-top1,
#sp-top2,
#sp-top2 a {
  color: var(--cream);
}

#sp-header.header-sticky #sp-top1,
#sp-header.header-sticky #sp-top2,
#sp-header.header-sticky #sp-top2 a {
  color: var(--muted-foreground);
}

#sp-header.header-sticky {
  background: rgba(251, 246, 238, 0.88) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-soft) !important;
  border-bottom: 1px solid;
  border-color: #e0d6ca;
}

#sp-header:not(.header-sticky) .logo-image {
  display: none !important;
}

.sp-megamenu-wrapper.d-flex {
  margin: 0 auto;
}

#sp-menu .sp-megamenu-parent {
  margin: 0 auto;
}

#sp-header .sp-megamenu-parent>li a {
  color: var(--cream);
}

#sp-header .sp-megamenu-parent>li.active>a,
#sp-header .sp-megamenu-parent>li a:hover,
#sp-header .sp-megamenu-parent>li.active:hover>a {
  color: var(--primario);
}

#sp-header.header-sticky .sp-megamenu-parent>li a {
  color: var(--muted-foreground);
}

#sp-header.header-sticky .sp-megamenu-parent>li.active>a,
#sp-header.header-sticky .sp-megamenu-parent>li a:hover,
#sp-header.header-sticky .sp-megamenu-parent>li.active:hover>a {
  color: var(--primario);
}

#sp-header #mod-custom114 a.border:hover {
  border-color: var(--primario) !important;
  border: 1px solid;
}

#sp-header #mod-custom114 a.prenota:hover {
  color: #ffffff;
}

#sp-header.header-sticky #mod-custom114 a.prenota:hover {
  color: #ffffff;
}

#sp-header.header-sticky #mod-custom114 a.prezzi,
#sp-header.header-sticky #mod-custom114 a.offerte {
  color: var(--foreground) !important;
}

#sp-header.header-sticky #mod-custom114 a.prezzi.border,
#sp-header.header-sticky #mod-custom114 a.offerte.border {
  border-color: var(--foreground) !important;
  border: 1px solid;
}

#sp-header.header-sticky #mod-custom114 a.prezzi.border:hover,
#sp-header.header-sticky #mod-custom114 a.prezzi.border:hover {
  border-color: var(--foreground) !important;
  border: 1px solid;
}

.sppb-sp-slider-button .sp-slider-btn-text {
  background: var(--terracotta);
}

#sp-header:not(.header-sticky) .logo {
  background-image: url(../../../images/logo-borgooffidarooms-bianco.png) !important;
  width: 256.80px;
  background-repeat: no-repeat;
  background-position: center center;
  margin-top: 5px;
  background-size: contain;
}

#sp-header .logo a img {
  height: 60px;
}

.topbarra {
  color: #e9e9e9b0;
  margin: 0px;
}

#sp-header.header-sticky .topbarra {
  color: #b7ada7;
}

#hero.slideshow {
  margin-top: -105px !important;
  z-index: 1;
}

.sp-page-builder .page-content #hero {
  width: 100vw;
  transform: scale(1.05);
}

.sp-page-builder .page-content #hero>.sppb-row-overlay {
  inset: calc(var(--spacing) * 0);
}

.sp-page-builder .page-content #hero>.sppb-row-overlay::after {
  background-image: radial-gradient(at bottom, #251712b3, #0000 70%);
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: calc(var(--spacing) * 0);
}

body {
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--background);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Fraunces', serif;
}

h1 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;

}

h3 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
}


#hero .sppb-sp-slider-title h1 {
  font-family: 'Fraunces', serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.02 !important;
  color: var(--cream) !important;
}

#hero .sppb-sp-slider-text:not(:has(p)):not(:has(a)) {
  font-family: 'Inter', sans-serif;
  font-size: 11px !important;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

#hero .sppb-sp-slider-text p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.625 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 36rem;
  margin-top: 1.5rem;
}

#hero .sppb-sp-slider-text:has(a) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

#hero .sppb-sp-slider-text a {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border-radius: 0 !important;
  cursor: pointer;
}

#hero .sppb-sp-slider-text a:first-child {
  background-color: var(--terracotta) !important;
  color: var(--cream) !important;
  border: 1px solid transparent !important;
}

#hero .sppb-sp-slider-text a:first-child:hover {
  background-color: #8a3519 !important;
  color: var(--cream) !important;
}

#hero .sppb-sp-slider-text a:nth-child(2) {
  background-color: transparent !important;
  color: var(--cream) !important;
  border: 1px solid rgba(248, 241, 229, 0.45) !important;
}

#hero .sppb-sp-slider-text a:nth-child(2):hover {
  background-color: rgba(248, 241, 229, 0.12) !important;
  border-color: rgba(248, 241, 229, 0.7) !important;
}

/* SEZIONE PERCHE BORGO OFFIDA */

.box-perche:hover,
.box-servizi:hover {
  background: transparent !important;
}

/* SEZIONE CAMERE */
#camere .overlay-image-title .sppb-addon-title,
#pacchetti .overlay-image-title .sppb-addon-title {
  background: color-mix(in srgb, var(--background) 90%, transparent);
  padding: 5px 10px 5px 10px;
  font-size: 0.75rem;
}

/* CONTATTI */
#contatti a {
  color: var(--foreground)
}

/* FORM */
#form-borgo .form-label {
  font-size: 0.85rem;
}

#form-borgo .form-control {
  border-radius: 0px;
  border-color: var(--border);
  background-color: var(--secondary-foreground);
}

#form-borgo .form-select {
  border-radius: 0px;

  background-color: var(--secondary-foreground);
  border-color: var(--border);
  color: var(--foreground);
  font-size: 0.85rem;
}

#form-borgo .form-control::placeholder {
  color: var(--sppb-muted-foreground);
  opacity: 1;
}

#form-borgo label a {
  color: var(--foreground);
}

#form-borgo .rsform-submit-button.btn {
  border-radius: 0px;
}

#form-borgo .rsform-submit-button.btn:hover {
  color: var(--cream);
  background-color: var(--primario);
  border-color: var(--border);
}

/* SEZIONE FAQ */
.faq .sppb-panel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
}

#faq.centrato .sppb-row {
  justify-content: center;
}

#sp-footer .container-inner {
  padding: 0px 0;
  border-top: 0px;
}

/* FOOTER */
#sp-footer ul.menu {
  display: block;
  line-height: 2rem;
}

#sp-footer ul.menu li {
  display: block;
}

#sp-footer ul.menu li a {
  display: block;
  color: #fff;
}

#sp-footer ul.menu li a:hover {
  color: var(--accent);
}

/* MEDIA GENERALI */
@media (min-width: 1340px) {
  .sppb-row-container {
    max-width: 1290px;
  }
}

@media (max-width: 1399.98px) {

  .sp-megamenu-parent>li>a,
  .sp-megamenu-parent>li>span {
    padding: 0 10px;
  }

  #sp-header .sp-module {
    margin-left: 5px;
  }
}

@media (min-width: 1200px) {
  .sp-megamenu-wrapper.d-flex {
    order: \  !important;
  }
}

@media (max-width: 1199px) {
  #offcanvas-toggler {
    display: flex !important;
  }

  .sp-megamenu-parent {
    display: none !important;
  }

  .sp-megamenu-wrapper.d-flex {
    order: 2 !important;
  }

  .sp-module:has(> .sp-module-content > ul.menu) {
    order: 2 !important;
  }

  .offcanvas-menu .offcanvas-inner ul.menu>li>a,
  .offcanvas-menu .offcanvas-inner ul.menu>li>span {
    color: #fff;
  }

  .offcanvas-menu .logo-image-phone, .offcanvas-menu .logo-image {
    content: url("../../../images/logo-borgooffidarooms-bianco.png");
  }
}

@media (max-width: 767.98px) {
  #hero .sppb-sp-slider-title h1 {
    font-size: 3rem;
  }

  .logo-image-phone {
    height: 40px !important;
  }

  #sp-header:not(.header-sticky) .logo {
    width: 171.8px;
  }

  #offcanvas-toggler {
    height: 30px;
    line-height: 30px;
  }
}