

/* Reset
------------------------------------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}


/* Document
------------------------------------------------------------ */

:root {
  --primary: #4a6860;
  --bg: #f5eeea;  
  --bg-dark: #efe8df;
}
html, body {
    font-family: "Courier Prime", monospace;
    font-weight: 400;
    font-style: normal;
    color: var(--primary);
    background-color: var(--bg);
    font-size: 14px;
    line-height: 1.4;
}

a {
    color: var(--primary);
    text-decoration: none;
}

p.spaced {
  margin: 2rem 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Button */
.btn {
  display: inline-block;
  position: relative;
  border: 1px solid var(--primary);
  padding: 15px 30px;
  max-width: 100%;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  color: var(--primary);
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 100%;
  background-color: var(--primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
html.no-touch .btn:hover {
  color: var(--bg);
}
html.no-touch .btn:hover::before {
  width: 100%;
}

.btn-text {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--primary);
}
html.no-touch .btn-text:hover {
    text-decoration: underline;
}

/* Dialog */
.bee-dialog.bee-dialog-in {
    background-color: transparent;
}
.bee-dialog .bee-dialog-inner {
    padding: 40px;
    border-radius: 0;
    background-color: var(--bg);
    box-shadow: none;
    border: 1px solid var(--primary);
}
.bee-dialog.bee-dialog-size-xs .bee-dialog-inner {
    max-width: 320px;
}
.bee-dialog .bee-dialog-inner .bee-dialog-close {
    width: 24px;    
    height: 24px;
}
.bee-dialog .bee-dialog-inner .bee-dialog-close:before,
.bee-dialog .bee-dialog-inner .bee-dialog-close:after {
    background-color: var(--primary);
}

/* Scroll to Top */
[data-bee-scroll-top]{
    border-radius: 0;
    background-color: var(--bg);
    border: 1px solid var(--primary);
    box-shadow: none;
}
html.no-touch [data-bee-scroll-top]:hover {
    background-color: var(--primary);
    color: var(--bg);
}

@media (max-width: 991px) {
    html, body {
        font-size: 14px;
    }
}


/* Components
------------------------------------------------------------ */

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 5px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../images/icon-villa-ercolina.svg);
}
@media (max-width: 991px) {
  .brand-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 5px;
  }
}


/* Header
------------------------------------------------------------ */

header {
  z-index: 999;
  background-color: var(--bg);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
header .brand {
    width: 80px;
    height: 70px;
    background-image: url(../images/logo-villa-ercolina.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 100px;
    text-indent: -9999px;
}
header nav {
    display: flex;
    align-items: center;
    flex: 1;
}
header nav:first-child {
    justify-content: flex-end;
}
header nav:last-child {
    justify-content: flex-start;
}
header nav a {
    display: block;
    position: relative;
    margin: 0 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
}
header nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
html.no-touch header nav a:hover::after,
header nav a.active::after{
  width: 100%;
}
header .btn-menu {
    display: none;
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
header .btn-menu span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--primary);
    margin: 6px auto;
}
header .btn-menu span:first-child,
header .btn-menu span:last-child {
    width: 24px;
}
header .btn-menu.open {
    width: 30px;
    height: 30px;
}
header .btn-menu.open span {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    margin: 0;
}
header .btn-menu.open span:nth-child(1) {
  display: block;
  transform: rotate(-45deg);
}
header .btn-menu.open span:nth-child(3) {
  display: block;
  transform: rotate(45deg);
}

/* Sticky Header Clone */
.bee-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.bee-sticky-header .container {
  height: auto !important;
}
.bee-sticky-header .brand {
    width: 120px;
    height: 36px !important;
    background-image: url(../images/logo-villa-ercolina-text.svg) !important;
}
.bee-sticky-header.bee-sticky-in {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav */ 
nav.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background-color: var(--bg);
  z-index: 998;
}
nav.mobile-nav a{
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 14px 12px 12px;
  border-top: 1px solid var(--primary);
  text-align: center;
}
nav.mobile-nav.open {
  display: block;
}

@media (max-width: 1399px) {
  header .brand {
    margin: 0 20px;
  }
  header nav a {
      margin: 0 15px;
      font-size: 1rem;
  }
}

@media (max-width: 991px) {
  header .container {
    height: auto !important;
    justify-content: space-between;
    padding: 10px 20px;
  }
  header .brand {
    width: 80px;
    height: 70px;
    margin: 0;
  }
  .bee-sticky-header .brand {
    width: 100px;
    height: 36px !important;
    background-image: url(../images/logo-villa-ercolina-text.svg) !important;
  }
  header nav {
    display: none;
  }
  header .btn-menu {
    display: block;
  }
}

/* Bee Offcanvas
------------------------------------------------------------ */
.bee-offcanvas  nav.main {
    flex-direction: column;
    align-items: center;
}
.bee-offcanvas .bee-offcanvas-bar {
    background-color: var(--bg);
}
.bee-offcanvas .bee-offcanvas-content {
    padding: 60px 20px;
}
.bee-offcanvas   nav.main a {
    margin: 15px 0;
    font-size: 1.2rem;
}


.bee-offcanvas  nav.main a {
    display: block;
    position: relative;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.bee-offcanvas  nav.main a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
html.no-touch .bee-offcanvas  nav.main a:hover::after,
.bee-offcanvas  nav.main a.bee-active::after{
  width: 100%;
}


/* Slideshow
------------------------------------------------------------ */

section.slideshow {
  position: relative;
  z-index: 40;
}
section.slideshow img {
  display: block;
  width: 100%;
  margin: auto;
  object-fit: cover;
  background-color: var(--bg-dark);
  transform: scale(1);
  transition: transform 15s linear;
}
section.slideshow .slide.active img,
section.slideshow .owl-item.active img {
  transform: scale(1.1);
}
html.no-touch section.slideshow:hover .slide.active img,
html.no-touch section.slideshow:hover .owl-item.active img {
  transform: scale(1);
}

section.slideshow .bee-fade-carousel-dots,
section.slideshow .owl-dots {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 0 20px 40px;
}
section.slideshow .bee-fade-carousel-dots .bee-fade-carousel-dot + .bee-fade-carousel-dot,
.owl-carousel .owl-dots button + button {
    margin-left: 16px;
}
section.slideshow .bee-fade-carousel-dots .bee-fade-carousel-dot,
.owl-carousel .owl-dots button span {
    width: 8px;
    height: 8px;
    background-color: var(--bg);
    box-shadow: 1px 1px 3px rgba(0,0,0,.15);
}
section.slideshow .bee-fade-carousel-dots .bee-fade-carousel-dot.active,
.owl-carousel .owl-dots button.active span {
    background-color: var(--primary);
}

@media (max-width: 991px) {
  section.slideshow img {
    aspect-ratio: 1.3 / 1;
  }
  section.slideshow .bee-fade-carousel-dots,
  section.slideshow .owl-dots {
      padding-bottom: 30px;
  }
  section.slideshow .bee-fade-carousel-dots .bee-fade-carousel-dot + .bee-fade-carousel-dot,
  .owl-carousel .owl-dots button + button {
      margin-left: 16px;
  }
  section.slideshow .bee-fade-carousel-dots .bee-fade-carousel-dot,
  .owl-carousel .owl-dots button span {
      width: 8px;
      height: 8px;
  }
}


/* Text
------------------------------------------------------------ */

section.text {
  padding-top: 120px;
  padding-bottom: 120px;
  font-size: 1rem;
  text-align: center;
}
section.text.ending {
  padding-top: 40px;
}
section.text p {
  margin: 0 0 30px
}
section.text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  section.text {
    font-size: 1rem;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  section.text br {
    display: none !important;
  }
}


/* Services
------------------------------------------------------------ */

section.services {
  background-color: var(--bg-dark);
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}
section.services .section-title {
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
section.services .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
}
section.services.condensed .items {
  gap: 0;
  padding-bottom: 20px;
}
section.services .items .item {
  flex: 1 1;
  text-align: center;
  margin-top: 80px;
  max-width: 33.333%;
}
section.services.condensed .items .item {
  margin-top: 40px;
}
section.services .items .item p.title {
  border-top: 1px solid var(--primary);
  padding-top: 15px;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 15px;
}
section.services .items .item p.subtitle {
  font-style: italic;
  font-size: 1rem;
  margin: 1rem 0 0;
}
section.services .items .item .content p {
  font-size: .9rem
}

@media (max-width: 991px) {
  section.services {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  section.services .section-title {
    font-size: 1rem;
  }
  section.services .items {
    gap: 40px;
    flex-wrap: nowrap;
    overflow: hidden;
    overflow-x: auto;
    margin-top: 40px;
    justify-content: flex-start;
  }
  /*
  section.services .items {
    gap: 0;
    flex-direction: column;
    margin-top: 40px;
  }
  section.services .items .item {
    margin-top: 0;
  }
  */
  section.services .items .item {
    min-width: 200px;
    margin-top: 0;
  }
  section.services .items .item p {
    font-size: .9rem;
  }
  section.services .items .item p.title {
    font-size: 1.1rem;
    line-height: 1.2;
    padding: 10px 20px;
    margin: 0;
    cursor: pointer;
    /* border: none; */
  }
  /*
  section.services .items .item p.title::after {
    content: '+';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 20px;
    color: var(--primary);
  }
  section.services .items .item.active p.title::after {
    content: '-';
  }
  */
  section.services .items .item p.subtitle {
    font-size: 1rem;
  }
  /*
  section.services .items .item .content {
    display: none;
    margin-bottom: 20px;
  }
  */
  section.services .items .item.active .content {
    display: block;
  }
}


/* Tabs
------------------------------------------------------------ */
section.tabs {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 50;
}
section.tabs .item {
  position: relative;
  flex: 1 1;
  padding: 20px;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.2;
  cursor: pointer;
}
html.no-touch section.tabs .item:hover {
  color: var(--primary-light);
}
section.tabs .item::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 1px;
  height: 0;
  background-color: var(--primary);
  transition: height 1s ease .5s;
}
section.tabs .item + .item.bee-ani-in::before {
  height: 60%;
}
section.tabs .item.w-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border: 25px solid transparent;
  position: absolute;
  left: 50%;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
section.tabs:first-child .item.w-arrow::after {
  top: 99%;
  border-top-color: var(--bg);
  transform: translateX(-50%) translateY(-20px);
}
section.tabs:not(:first-child) .item.w-arrow::after {
  bottom: 99%;
  border-bottom-color: var(--bg);
  transform: translateX(-50%) translateY(20px);
}
section.tabs .item.w-arrow.active::after {
  opacity: 1;
  transform: translateX(-50%);
}
section.tabs .item .label {
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
  text-transform: uppercase;
}
section.tabs .item .label::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
html.no-touch section.tabs a.item:hover .label::after {
  width: 100%;
}
@media (max-width: 991px) {
  section.tabs .item {
    padding: 20px 5px;
    font-size: 1rem;
  }
  section.tabs .item + .item.bee-ani-in::before {
    height: 40%;
  }
  section.tabs .item::after {
    border-width: 15px;
  }
  section.tabs .item .label::after {
    border-width: 1px;
  }
}


/* Map
------------------------------------------------------------ */

section.map {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
}
section.map .map-desktop .controls {
  position: absolute;
  right: 40px;
  bottom: 40px;
}
section.map .map-desktop .controls button {
  display: block;
  position: relative;
  width: 45px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  padding: 0;
  border: none;
  border: 1px solid var(--primary);
  background-color: var(--bg);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 2;
}
section.map .map-desktop .controls button[disabled] {
  cursor: default;
  opacity: 0.7;
  z-index: 1;
}
html.no-touch section.map .map-desktop .controls button:not([disabled]):hover {
  background-color: var(--primary);
  color: var(--bg);
}
section.map .map-desktop .controls button.zoom-in {
  border-bottom: 1px solid var(--primary);
  border-radius: 4px 4px 0 0;
}
section.map .map-desktop .controls button.zoom-out {
  border-top: 1px solid var(--primary);
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}
section.map .map-mobile {
  display: none;
}
section.map img {
  display: block;
  max-width: 100%;
  margin: auto;
}

@media (max-width: 991px) {
  section.map .map-desktop {
    display: none;
  }
  section.map .map-mobile {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
  }
}


/* Contacts
------------------------------------------------------------ */

section.contacts {
  padding-top: 48px;
  padding-bottom: 75px;
  text-align: center;
}
section.contacts .title{
  font-size: 1.3rem;
  line-height: 1.2;
  text-transform: uppercase;
}
section.contacts .title .label {
  display: inline-block;
  position: relative;
}
section.contacts .info {
  margin: 38px 0 0;
}
section.contacts .btn {
  width: 400px;
  margin: 20px auto 70px;
}
section.contacts .indications {
  margin: 20px 0 0;
}

@media (max-width: 991px) {
  section.contacts {
    padding-top: 80px;
    padding-bottom: 0;
  }
  section.contacts .title{
    font-size: 1rem;
  }
  section.contacts .info {
    margin-top: 30px;
  }
  section.contacts .btn {
    margin: 10px 0 30px;
  }
  section.contacts .indications {
    margin-top: 20px;
  }
}


/* Rooms
------------------------------------------------------------ */

section.rooms {
  background-color: var(--bg);
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}
section.rooms .rooms-head {
  padding-top: 60px;
  padding-bottom: 30px;
}
section.rooms .rooms-head .section-title {
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
section.rooms .rooms-head .rooms-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  flex-wrap: wrap;
}
section.rooms .rooms-head .rooms-nav .item {
  display: block;
  text-align: center;
  margin: 20px 20px 0;
  flex: 0 0 auto;
  cursor: pointer;
}
section.rooms .rooms-head .rooms-nav .item .thumb {
  display: block;
  margin: auto;
  width: 120px;
  height: 120px;
  padding: 5px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid transparent;
  transition: opacity 0.3s ease, border 0.3s ease;
}
html.no-touch section.rooms .rooms-head .rooms-nav .item:hover .thumb {
  opacity: .7;
}
section.rooms .rooms-head .rooms-nav .item.current .thumb {
  opacity: .5;
  border-color: var(--primary);
}
section.rooms .rooms-head .rooms-nav .item .thumb img {
  display: block;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section.rooms .rooms-head .rooms-nav .item .label {
  margin-top: 10px;
}
section.rooms .rooms-carousel .slide {
  margin: 0 5px;
}
section.rooms .rooms-carousel .slide img {
  width: auto !important;
  height: 600px;
}
section.rooms .rooms-carousel .slide .description {
  margin: 30px 0 0;
  font-size: 1.3rem;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  section.rooms .rooms-head {
    padding-top: 80px;
  }
  section.rooms .rooms-head .section-title {
    font-size: 1rem;
  }
  section.rooms .rooms-head .rooms-nav {
    max-width: 400px;
  }
  section.rooms .rooms-head .rooms-nav .item {
    margin: 20px 10px 0;
  }
  section.rooms .rooms-head .rooms-nav .item .thumb {
    width: 90px;
    height: 90px;
    padding: 5px;
  }
  section.rooms .rooms-carousel .slide img {
    width: auto !important;
    height: 300px;
  }
  section.rooms .rooms-carousel .slide .description {
    /* font-size: 1rem !important; */
    font-size: 14px !important;
  }
}


/* Protected Page
------------------------------------------------------------ */

section.protected-page {
    padding-top: 120px;
    padding-bottom: 120px;
    font-size: 1rem;
    text-align: center;
}
section.protected-page .section-title {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 15px;
}
.protected-page-form {
    text-align: center;
}
.protected-page-form p {
  margin: 0;
}
.protected-page-form a {
  text-decoration: underline;
}
html.no-touch .protected-page-form a:hover {
  text-decoration: none;
}
.protected-page-form .control {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 20px auto;
}
.protected-page-form .control input {
  flex: 1 1 auto;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 15px;
  border-right: none;
  outline: none;
  min-width: 0;
  background-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0 !important;
}
.protected-page-form .control .btn {
  flex: 0 0 auto;
  padding: 10px 15px;
}