/*
Theme Name: JustMOBI
Author: Giuseppe Colonna
Author URI: https://www.giuseppe-colonna.com/
Description: JustMOBI 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;
}

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

#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: 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%);}

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



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


