/*
Theme Name: VIMED
Author: Giuseppe Colonna
Author URI: https://www.giuseppe-colonna.com/
Description: VIMED 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: 120px;
    --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, .has-paragraph-font-size {
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0;
}
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: 700 !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, .has-display-1-font-size {letter-spacing: clamp(-0.08em, -0.15vw, -0.03em);}
h1, .fs-1, .has-h-1-font-size {letter-spacing: clamp(-0.06em, -0.12vw, -0.025em);}
h2, .fs-2, .has-h-2-font-size {letter-spacing: clamp(-0.05em, -0.1vw, -0.02em);}
h3, .fs-3, .has-h-3-font-size {letter-spacing: clamp(-0.04em, -0.08vw, -0.015em);}
h4, .fs-4, .has-h-4-font-size {letter-spacing: clamp(-0.03em, -0.06vw, -0.01em);}
h5, .fs-5, .has-h-5-font-size {letter-spacing: clamp(-0.02em, -0.04vw, -0.005em);}
h6, .fs-6, .has-h-6-font-size {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--base);
  color: var(--wp--preset--color--contrast);
}
/* .has-border-color .wp-block-cover__inner-container.has-global-padding {
  padding-left: calc(var(--wp--style--root--padding-left) - 16px);
  padding-right: calc(var(--wp--style--root--padding-right) - 16px);
} */

/* NAVBAR */


.vimed-navbar-wrapper {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  display: inline-flex;
  max-width: calc(350px + calc(var(--wp--style--root--padding-right) * 2));
  position: fixed;
  top: 32px;
  z-index: 999;
  padding: 0px var(--wp--style--root--padding-right);
}

.logged-in.admin-bar .vimed-navbar-wrapper {
  top: calc(var(--wp-admin) + 32px);
}

@media (max-width: 580px) {.vimed-navbar-wrapper {max-width: 100%;}} 

.vimed-navbar {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  display: inline-flex;
}

.vimed-navbar .custom-logo-link img {
  width: 100%;
  height: auto;
  max-width: 215px; 
}

.offCanvasDrawer-toggle {
  position: relative;
  width: 42px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  z-index: 1001;
  background-color: transparent !important;
  border: 0 !important;
}

.h_line_top, .h_line_bottom {
  transition: all 0.3s ease;
}


button.offCanvasDrawer-toggle.hamburger[aria-expanded="true"] .h_line_top,
button.offCanvasDrawer-toggle.hamburger[aria-expanded="true"] .h_line_bottom {
  transform: rotate(135deg);
  top: 7px;
    left: 0px;
}

button.offCanvasDrawer-toggle.hamburger[aria-expanded="true"] .h_line_bottom {
  transform: rotate(-135deg);
}

/* 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.8) 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%, #8d9ea2 100%);}
.tecnicas-thumbnail::after {content:"";position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index:2;background: linear-gradient(to top, #002343b2 0%, var(--tertiary) 100%);}
.tecnicas-thumbnail-icon {display: block;width: 100%;text-align:center;}
.tecnicas-thumbnail-icon img {
  display: inline-block;
  width: 100% !important;
  margin: 2em auto;
  height: 200px !important;
  object-fit: contain;
}

.single-especialidad h2 {
  font-size: clamp(1.5rem, 1rem + 3vw, 2rem) !important;
  margin-top: 6vh;
}
@media screen and (max-width: 480px) {
  .hero-section {min-height: 45vh;}
}

.bg-vimed {background: linear-gradient(180deg, rgba(137, 137, 137, 0.04) 0%, rgba(208, 208, 208, 0.38) 100%); backdrop-filter: blur(8px);}
.vimed-navbar.bg-vimed {background: linear-gradient(180deg, rgba(255, 255, 255, 0.489) 0%, rgba(208, 208, 208, 0.38) 100%); backdrop-filter: blur(8px);}

/* 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: 997;
}

/* Drawer base */
.offCanvasDrawer {
  position: fixed;
  top: 0;
  max-width: calc(350px + calc(var(--wp--style--root--padding-right) * 2));
  width: 100%;
  height: 100%;
  background: #ffffffba;
  backdrop-filter: blur(8px);
  padding: 100px var(--wp--style--root--padding-right) 30px var(--wp--style--root--padding-left);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 998;
}

.vimed-main-navigation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0; 
  align-items: start;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}
.vimed-main-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0; 
  align-items: start;
  justify-content: start;
  width: 100%;
}
.vimed-main-navigation ul li,
.vimed-main-navigation div{
  width: 100%;
}
.vimed-main-navigation ul a {
  padding: 1rem 0; 
  border-bottom: 1px solid #7f8891;
  display: block;
  font-size: var(--wp--preset--font-size--h-5);
}

.vimed-main-navigation .navigation-cta a {
  text-align: center;
  border: 0;
  font-size: var(--wp--preset--font-size--paragraph);
}

/* 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);
  overflow: auto;
}

.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) {

}

/* TECNICAS */
.tecnica-img {
  margin: 2em auto;
  width: 100%;
  height: 100%;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

.wp-block-media-text > .wp-block-media-text__content {
  padding: 1em 7%;
}


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

form.wpcf7-form input, form.wpcf7-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.wpcf7-form input::placeholder, form.wpcf7-form textarea::placeholder {
    color: var(--secondary);
}


form.wpcf7-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.wpcf7-form input[type=checkbox] {
    width: auto;
    margin-right: .35rem;
    margin-bottom: 0 !important;
}
.wpcf7-list-item { margin: 0;}

form.wpcf7-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.wpcf7-form input[type=submit] { width: 100%;}
}



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


/* LIST STYLE */

main#content ul {
    list-style: none;
    padding-left: 2rem;
}
main#content ul.wp-block-social-links {
    list-style: none;
    padding-left: 0rem;
}

main#content ul li {
    position: relative;
}
main#content ul li::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: .4em;
    width: 15px;
    height: 8px;
    border-left: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    transform: rotate(-45deg);
}
main#content ul.wp-block-social-links li::before {
    content: "";
    border-left: 0;
    border-bottom: 0;
}