/*
Theme Name: EndoBES
Author: Giuseppe Colonna
Author URI: https://www.giuseppe-colonna.com/
Description: EndoBES responsive theme
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
    --navbar-height: 90px;
    --btn-height: 55px;
}

/**/
.skip-link:focus:not(:focus-visible) {
    display: none;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--dark);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.4s ease;
}

.skip-link:focus {
    top: 0;
}
/**/


.is-position-sticky {top: var(--navbar-height)}

.hero-text {
  font-size: clamp(3.5rem, 2rem + 6vw, 8.75rem) !important;
  letter-spacing: clamp(-2px, -0.25vw, -0.5rem);
}

.z-1 {z-index: 1;}
.z-2 {z-index: 2;}

#masthead {height: var(--navbar-height);}
.brand-footer svg {
    width: 100%;
    height: auto;
}


.footer-navigation.fs-6 * {line-height: 1.6rem;}

body, p, .fs-p {
    font-display: swap;
    -webkit-font-smoothing: antialiased;
}
strong, b,
h1 strong, .fs-1 strong,
h2 strong, .fs-2 strong,
h3 strong, .fs-3 strong,
h4 strong, .fs-4 strong,
h5 strong, .fs-5 strong,
h6 strong, .fs-6 strong {
    -webkit-font-smoothing: antialiased;
    font-weight: 800 !important;
}

p strong, p b {
    font-weight: 700 !important;
}

h1, .fs-1,
h2, .fs-2,
h3, .fs-3,
h4, .fs-4,
h5, .fs-5,
h6, .fs-6 {
    -webkit-font-smoothing: antialiased;
}

.display-1 {letter-spacing: clamp(-0.08em, -0.15vw, -0.03em);}
h1, .fs-1 {letter-spacing: clamp(-0.06em, -0.12vw, -0.025em);}
h2, .fs-2 {letter-spacing: clamp(-0.05em, -0.1vw, -0.02em);}
h3, .fs-3 {letter-spacing: clamp(-0.04em, -0.08vw, -0.015em);}
h4, .fs-4 {letter-spacing: clamp(-0.03em, -0.06vw, -0.01em);}
h5, .fs-5 {letter-spacing: clamp(-0.02em, -0.04vw, -0.005em);}
h6, .fs-6 {letter-spacing: clamp(-0.01em, -0.02vw, 0);}



/* Default link style */
a {text-decoration: none;}
p a {text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 25%;
    color: currentColor;
    opacity: .8;
}

/* Hover style */
p a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
}

p.has-regular-font-size a {
    padding-bottom: calc(0.26rem - 2px);
}

.icon-in {
    width: 22px !important;
    height: 22px !important;
    border-radius: 0 !important;
}

.wp-block-button__link,
.navigation-cta a {
  transition: all 300ms ease-in-out;
}
.wp-block-button__link:hover,
.navigation-cta a:hover {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
}

/* HERO SECTION */
.hero-section {position: relative; min-height: 65vh;background-color: var(--dark);}
.hero-section-content {position: relative;z-index:3; padding:calc(var(--navbar-height)*2) 0}
.hero-img,.hero-section::after {position: absolute;top: 0;left: 0;width: 100%;height: 100%;object-fit: cover;z-index:1}
.hero-section::after {content:"";z-index:2;background: linear-gradient(to bottom, transparent 0%, var(--base) 100%);}
.justmobi-deco {
    position: absolute;top: 0;right: 0;
    width: 70%;
    height: 50vh;object-fit: contain;object-position: top right;
}

@media screen and (max-width: 480px) {
  .hero-section {min-height: 45vh;}
}

/* POST CONTENT */
@media screen and (min-width: 480px) {
  .post--inner-content > *:not(.wp-block-image) {
    padding-left: 6rem;
}
}

/* BUTTON */
.advanced-btn {display: flex;align-items: center;justify-content: start;cursor: pointer;}
.advanced-btn--button {display: inline-block;height: var(--btn-height);border-radius: 0vw;padding: 0 calc(var(--btn-height)/2);line-height: calc(var(--btn-height)/1);} 
.advanced-btn--arrow {display: flex;align-items: center;justify-content: center;width: var(--btn-height);height: var(--btn-height);border-radius: 50%;transition: all 250ms ease-in-out;}
.advanced-btn--arrow::before {content: "";display: inline-block;width: 19px;height: 18px;background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 18'>\<polygon fill='currentColor' points='10.6 17.8 9.9 17.2 17.1 9.5 .8 9.5 .8 8.5 17.1 8.5 9.9 .8 10.6 .2 18.9 9 10.6 17.8'/>\</svg>");background-repeat: no-repeat;background-size: contain;}
.btn-arrow-end {scale: 0;width: 0;}
.btn-arrow-start {scale: 1;}

.advanced-btn:hover .btn-arrow-end,
a:hover .advanced-btn .btn-arrow-end {scale: 1;width: var(--btn-height);}
.advanced-btn:hover .btn-arrow-start,
a:hover .advanced-btn .btn-arrow-start {scale: 0;width: 0;}

/* GENERAL STYLE */
.partners-logos img.w-100 {
  max-width: 85% !important;
  width: 85% !important;
}

/* DRAWER */
/* Overlay */
.offCanvasDrawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Drawer base */
.offCanvasDrawer {
  position: fixed;
  top: 0;
  max-width: 600px;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
}

/* Left drawer */
.offCanvasDrawer-left {
  left: 0;
  transform: translateX(-100%);
}

/* Right drawer */
.offCanvasDrawer-right {
  right: 0;
  transform: translateX(100%);
}

/* Active states */
.offCanvasDrawer.active {
  transform: translateX(0);
}

.offCanvasDrawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.offCanvasDrawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

/* SWIPER NAV */
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {content: '';}
.swiper-button-next .arrow {transform: rotate(-90deg);}
.swiper-button-prev .arrow {transform: rotate(90deg);}

@media screen and (min-width: 782px) {

}


/* CONTACT FORM */
form p {margin-bottom: 0 !important;}
form label, form input, form textarea {
    width: 100%;
    max-height: 120px;
}

form input, form textarea {
    width: 100%;
    font-size: var(--wp--preset--font-size--paragraph);
    font-family: var(--wp--preset--font-family--sans-serif);
    margin-bottom: .75rem;
    padding: .75rem 0;
    background-color: transparent;
    border: 0px solid transparent;
    border-bottom: 1px solid var(--secondary);
    color: var(--dark);
}

form input::placeholder, form textarea::placeholder {
    color: var(--secondary);
}


form input:-webkit-autofill {
    -webkit-text-fill-color: var(--secondary) !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s; /* hack to suppress yellow bg */
}

form input[type=checkbox] {
    width: auto;
    margin-right: .35rem;
    margin-bottom: 0 !important;
}
.wpcf7-list-item { margin: 0;}

form input[type=submit] {
    background-color: var(--primary) !important;
    color: white !important;
    border: 0 solid transparent !important;
    width: auto;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0px;
    width: 100%;
}
.wpcf7-spinner {display: block;background-color: var(--secondary);}

@media screen and (max-width: 781px) {
  form input[type=submit] { width: 100%;}
}



*:focus-visible {
    outline: 2px dotted var(--tertiary);
    outline-offset: 2px;
}


