/*
Theme Name:   Santagostino Psiche - Child
Description:  Santagostino Psiche Child Theme
Author:       FPS Agency
Author URI:   http://fps.agency
Template:     santagostinopsiche
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  sap
*/

/* Globals */
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  background-color: #E0F3F4;
  border-radius: 10px;
  font-family: 'brandon-grotesque';
  color: #64C2C8;
  padding: 10px 15px;
}

/* Header */
.site-header-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  float: none;
}

/* Header search */
.site-header-searchbox {
  float: right;
  display: flex;
  width: 60%;
  position: relative;
}

.site-header-searchbox .search-input {
  border: none;
  border-radius: 20px;
  background-color: #006975;
  color: #E0F3F4;
  width: 100%;
  padding: 8px 12px;
}

.site-header-searchbox .search-input::placeholder {
  color: #E0F3F4;
}

.site-header-searchbox .search-submit {
  border: none;
  border-radius: 100%;
  line-height: 27px;
  color: #E0F3F4;
  background-color: transparent;
  font-size: 16px;
  position: absolute;
  right: 12px;
  z-index: 20;
}

/* CTA */
.content a.content-cta {
  background-color: #F8726C;
  transition: all 0.2s ease;
  margin-right: 0;
}

.content a.content-cta:hover {
  background-color: #E07258;
}

.content p:has(a.content-cta) {
  display: flex;
  justify-content: center;
}

/* Tag posts */
.article-end .sidebar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

/* Related posts */
.related {
  margin-top: 20px;
}

.related .article-list figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}

.related .article-list figure img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.related .article-list .article-list-title * {
  font-size: 16px;
  display: inline-block;
}

.related .article-list .article-authors {
  margin-top: 3px;
  font-size: 16px;
}

/* RESPONSIVE */

@media only screen and (max-width: 800px) {
  .site-header-searchbox {
    display: none;
  }

  .responsive-search {
    padding: 15px;
  }

  #menu-responsive .site-header-searchbox {
    display: block;
    float: none;
    width: 100%;
  }

  #menu-responsive {
    top: 60px;
  }
}


/* SANTAGOSTINO PSICHE HEADER */


.page {
  margin-top: 0;
}


.sa-header button,
.sa-header .button,
.sa-header div,
.sa-header section,
span {
  font-family: Lato;
  line-height: normal !important
}

.padded-responsive {
  padding-left: 2rem;
  padding-right: 2rem;
}

.search-and-action,
header.inside-header .top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex
}

header.inside-header .menu li a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

header.inside-header .menu li a {
  font-size: 1.25rem;
  font-weight: 400 !important;
  color: #000 !important;
  display: block;
}

header.inside-header .menu ul.main li .menu-sublevel li a {
  padding: 8px 16px;
}


.width-xl,
.width-xxl {
  margin-left: auto;
  margin-right: auto;
}

.width-l,
.width-m,
.width-s,
.width-xl {
  max-width: 1920px;
}

i.fas {
  color: rgb(2 105 117);
}


header.inside-header {
  -webkit-box-shadow: 0 0 0 1px #d0edee;
  box-shadow: 0 0 0 1px #d0edee;
  background-color: hsla(0, 0%, 100%, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

header.inside-header {

  top: 0 !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #fff;
  -webkit-box-shadow: none;
  box-shadow: none
}

header.inside-header .top {
  height: auto;
  padding: 16px 0;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

header.inside-header .menu {
  position: absolute;
  width: 100%;
  top: unset;
  left: 0;
  z-index: 1;
  -webkit-transition: opacity .3s ease-in-out;
  transition: opacity .3s ease-in-out;
  opacity: 1;
  background-color: var(--light-green);
  color: var(--inside-dark-green);
  font-size: 1rem;
  font-weight: 600;
  font-family: Grotesque;
  text-transform: uppercase
}

header.inside-header .menu {
  position: relative;
  background-color: transparent;
  width: auto
}

header.inside-header .menu li a {
  font-size: 1.25rem;
  font-weight: 400 !important;
  color: #000 !important
}

header.inside-header .menu li .fa-chevron-circle-down {
  -webkit-transition: -webkit-transform .3s ease-in-out;
  transition: -webkit-transform .3s ease-in-out;
  transition: transform .3s ease-in-out;
  transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

header.inside-header .menu li .fa-chevron-circle-down:before {
  content: "\F078";
}

header.inside-header .menu li:hover .fa-chevron-circle-down {
  -webkit-transform: scaleY(-1) translateY(2px);
  transform: scaleY(-1) translateY(2px);
}

header.inside-header .menu li a:hover {
  text-decoration: underline;
  text-underline-offset: .3rem
}

header.inside-header .inside-logo {
  background-image: url(https://www.santagostino.it/storage/documents/129446.svg);
  height: 3.6rem;
  background-size: contain;
  width: 10.5rem;
  background-repeat: no-repeat;
}

header.inside-header.down .inside-logo {
  background-position: 0 0;
  height: 3.6rem
}

.menu ul.main {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

header.inside-header .menu ul.main {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 2rem;
  border: none;
  margin-top: 0;
  padding: 0;
}

header.inside-header .menu ul.main li {
  position: relative;
  margin: 0;
  padding: 1rem 0;
  color: rgb(2 105 117);
}

header.inside-header .menu ul.main>li:nth-child(2)>a {
  pointer-events: none
}

header button#accedi,
header .button {
  font-weight: 400 !important;
  background-color: var(--inside-dark-green) !important
}

header.inside-header .menu ul.main li .menu-sublevel-cntn {
  background-color: var(--bg-gray);
  overflow-y: auto;
  top: 100% !important;
  left: 0;
  padding: 16px;
}

header.inside-header .menu ul.main li .menu-sublevel-cntn li {
  padding: .5rem 0;
  border-radius: .5rem;
  text-decoration: none
}



header.inside-header .menu ul.main li .menu-sublevel-cntn li:hover {
  background-color: rgb(243 244 246);
}


.menu ul.main li .menu-sublevel-cntn {
  position: absolute;
  top: -10000px;
  left: 0;
  width: 100%;
  padding-top: 10px;
  -webkit-transform: rotateX(90deg);
  transform: rotateX(90deg);
  opacity: 0;
  -webkit-transition: opacity .3s, -webkit-transform .3s;
  transition: opacity .3s, -webkit-transform .3s;
  transition: transform .3s, opacity .3s;
  transition: transform .3s, opacity .3s, -webkit-transform .3s;
}

header.inside-header .menu ul.main li .menu-sublevel-cntn {
  opacity: 0;
  pointer-events: none;
  padding-top: 1rem;
  -webkit-transform: none;
  transform: none;
  top: unset;
  left: -1rem;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  background-color: var(--light-green);
  border-radius: 10px;
  overflow-y: scroll;
}

header.inside-header .menu ul.main li .menu-sublevel-cntn {
  background-color: rgb(249 250 251);
  overflow-y: auto;
  top: 100% !important;
  left: 0;
  padding: 1rem;
}

header.inside-header .menu ul.main li:hover .menu-sublevel-cntn {
  opacity: 1;
  top: unset;
  pointer-events: all;
}

.search-and-action {
  -webkit-box-pack: right;
  -ms-flex-pack: right;
  justify-content: right;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1rem;
}

.search-and-action .hide-m:not(.start-reservation-btn) {
  display: unset !important
}

.search-and-action .hide-m[style*=none] {
  display: none !important
}

button.headerSearch {
  border: none;
  background-color: #d0edee;
  height: auto;
  display: block;
  border-radius: 10px;
  font-size: 20px;
}

button.headerSearch {
  color: #026975;
}

.button-only-icon {
  -ms-flex-negative: 1;
  flex-shrink: 1;
  aspect-ratio: 1;
  width: 48px;
}

.button.accedi-btn,
.button.logged-btn {
  background-color: var(--inside-green) !important;
  color: white !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 0.6rem !important;
  line-height: normal !important;
  font-weight: 600 !important;
}

.button.button-secondary {
  border: none;
  font-size: 20px;
  font-family: 'Lato';
  text-transform: uppercase;
}

.button.button-secondary::after {
  content: "";
  display: none;
}

.button.accedi-btn i {
  display: none;
}

.button:hover,
button:hover {
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transform: scale(.97);
  transform: scale(.97);
}



header .button#accedi {
  font-weight: 400 !important;
  background-color: #026975 !important;
}

.search-and-action .hide-m:not(.start-reservation-btn) {
  display: unset !important;
}

#user-account .userbutton-menu {
  top: 65px;
  left: unset;
  right: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content
}

@media only screen and (min-width: 841px) {
  .show-m {
    display: none !important;
  }

}

.padded {
  padding-left: 32px;
  padding-right: 32px;
}

.site-nav {
  top: 89px;
  position: absolute;
  z-index: 1;
}

.icon-hamb {
  width: 30px;
  height: 21px;
  position: relative;
  cursor: pointer;
  display: none;
}

.icon-hamb,
.icon-hamb li {
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

.icon-hamb li {
  list-style: none;
  width: 100%;
  height: 3px;
  border-radius: 50px;
  background-color: #026975;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}



.icon-xxs {
  font-size: .875rem;
}




.site-content {
  margin-top: 54px;
}

@media screen and (max-width: 800px) {
  .site-content{
    margin-top: 0px;
  }
}


.site-nav .site-header-searchbox {
  float: right;
  display: flex;
  width: 320px;
  position: relative;
}


.menu-mobile{
  display: none !important;
}

.menu-desktop{
  display: inline !important;
}

/* RESPONSIVE HEADER */

@media screen and (max-width: 1200px) {

  header .menu.padded-responsive .main li > div.menu-sublevel-cntn.menu-mobile-offerta-list{
    display: none;
  }

  header.inside-header .menu li a:hover {
    text-decoration: none;
    text-underline-offset: 0.3rem;
}

  .menu-mobile{
    display: inline !important;
  }
  
  .menu-desktop{
    display: none !important;
  }

  header .menu.padded-responsive {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    display: block;
    text-align: left;
    
    opacity: 0;
    pointer-events: none;
    padding: 0 !important;
    background-color: rgb(249 250 251);
  }

  header .menu.padded-responsive .width-xl .main {
    display: block;
    background-color: rgb(249 250 251);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
  }

  header .menu.padded-responsive .main>li {
    padding: 1rem !important;
    border-radius: 0.5rem;
  }

  /*header.inside-header .menu .main>li:nth-child(2)>a {
    display: none;
  }*/

  header.inside-header .menu ul.main li .menu-sublevel-cntn {
    width: 100%;
  }

  header .menu.padded-responsive .main li .menu-sublevel-cntn {
    position: relative;
    display: block;
    opacity: 1 !important;
    /*padding: 0 !important;*/
    right: 0;
  }

  header.inside-header .menu ul.main li .menu-sublevel-cntn {
    background-color: rgb(249 250 251);
    overflow-y: auto;
    top: 100% !important;
    left: 0;
    padding: 1rem;
  }

  .icon-hamb {
    display: block;
  }

  .icon-hamb:after,
  .icon-hamb:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    width: 100%;
    border-radius: 50px;
    background-color: #026975;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
  }

  .icon-hamb:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    width: 100%;
    border-radius: 50px;
    background-color: #026975;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
  }

  .icon-hamb:after {
    top: unset;
    bottom: 0;
    width: 60%;
  }

  .icon-hamb.open:after {
    width: 100%;
    -webkit-transform: rotate(45deg) translate(-7px, -7px);
    transform: rotate(45deg) translate(-7px, -7px);
  }

  .icon-hamb.open:before {
    width: 100%;
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  .icon-hamb.open li {
    opacity: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }

  header .menu.padded-responsive.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-site-nav{
    display: none;
  }

  .mobile-site-nav ul {
    float: none;
    padding: 1.5rem 1rem;
    padding-top: 0;
    display: block;
    background-color: rgb(249 250 251);
    border-radius: 1rem;
  }


  .mobile-site-nav ul li {

    padding: 1rem !important;
    border-radius: 0.5rem;
    position: relative;
    margin: 0;
    padding: 1rem 2rem !important;
    color: rgb(2 105 117);
    display: block;
  }


  .mobile-site-nav ul li:first-child {
    padding-top: 0 !important;
  }

  .mobile-site-nav ul li:last-child {
    padding-bottom: 0 !important;
  }

  .mobile-site-nav ul.site-nav-main li.menu-item-has-children>a:before,
  .mobile-site-nav ul.site-nav-main li ul li a:before {

    display: none;
  }

  .mobile-site-nav .sub-menu {
    padding: 0;
    position: relative;
  }

  .mobile-site-nav .sub-menu li {
    padding-left: 1rem !important;
  }

  header.inside-header .mobile-site-nav .menu-item-has-children>a {
    display: none;
  }

  .mobile-site-nav ul.site-nav-main li ul {
    display: block;
    background-color: rgb(249 250 251);
  }

  .mobile-site-nav .site-header-searchbox{
    display: block;
    float: none;
    padding: 0 2rem 2rem 2rem;
    background-color: rgb(249 250 251);
    position: relative;
    
  }

  .mobile-site-nav .site-header-searchbox .search-submit{
    right:40px;
  }


}




@media screen and (max-width: 660px) {

  header.inside-header.down .inside-logo,
  header .inside-logo {
    width: 108px !important;
    height: 36px !important;
  }

  header .button,
  header .button.accedi-btn {
    font-size: .8rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    height: 3rem !important;
    line-height: 1.3rem !important;
  }


  



  .padded,
  .padded-responsive {
    padding-left: 1rem;
    padding-right: 1rem;
    
  }


}