/*
 Theme Name: HYGEIA Theme
 Author:     Vasileios Kastanos
 Template:    generatepress
 Version:     1.0.0
*/

/* Import parent styles (kept minimal; functions.php also enqueues parent) */
/* Custom overrides placed below */

/* menu styles */
.site-header {
    position: relative;
    z-index: 2;
}

#primary-menu ul li {
    font-family: 'Roboto Condensed';
}

#primary-menu ul li a {
    font-weight: 900;
    font-size: 1rem;
    position: relative;
    padding: 45px 1rem 0;
    line-height: 1;
}

#primary-menu ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    height: 40px;
    width: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

#primary-menu ul li.who-we-are a:before {
    background: url(/wp-content/uploads/about-us-icon.png) no-repeat center #719ebc;
    background-size: 20px;
}

#primary-menu ul li.what-we-do a:before {
    background: url(/wp-content/uploads/who-we-are-icon.png) no-repeat center #719ebc;
    background-size: 20px;
}
#primary-menu ul li.contact a:before {
    background: url(/wp-content/uploads/contact-icon.png) no-repeat center #719ebc;
    background-size: 20px;
}

#primary-menu ul li.current-menu-item a:before,
#primary-menu ul li a:hover:before {
    background-color: #000;
}

#primary-menu ul li.current-menu-item a {
    color: #000;
	pointer-events: none;
}

#primary-menu ul li {
    font-family: 'Roboto Condensed';
}

#primary-menu ul li a {
    font-weight: 900;
    font-size: 1rem;
    position: relative;
    padding: 45px 1rem 0;
    line-height: 1;
    color: #000;
}

#primary-menu ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    height: 40px;
    width: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

#primary-menu ul li.who-we-are a:before {
    background: url(/wp-content/uploads/about-us-icon.png) no-repeat center #719ebc;
    background-size: 20px;
}

#primary-menu ul li.what-we-do a:before {
    background: url(/wp-content/uploads/who-we-are-icon.png) no-repeat center #719ebc;
    background-size: 20px;
}
#primary-menu ul li.contact a:before {
    background: url(/wp-content/uploads/contact-icon.png) no-repeat center #719ebc;
    background-size: 20px;
}

#primary-menu ul li.current-menu-item a:before,
#primary-menu ul li a:hover:before {
    background-color: #000;
}

#primary-menu ul li a:hover {
    color: #000;
}

#primary-menu ul li.lang-item a:before {
    display: none;
}

#primary-menu ul li.lang-item a {
    text-decoration: underline;
    color: #719ebc;
    opacity: .6;
    font-family: 'Roboto';
    font-weight: 500;
}

#primary-menu ul li.lang-item a:hover {
    opacity: 1;
}

/* page styles */

.entry-content > * {
    position: relative;
    z-index: 2;
}

article .entry-content h1 {
    font-family: 'Cinzel';
    font-weight: 700;
    font-size: 3rem;
    color: #719ebc;
}

article .entry-content h1.who-we-are {
    padding-left: 6rem;
    position: relative;
}

article .entry-content h1.who-we-are:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(/wp-content/uploads/about-us-icon.png) no-repeat center #719ebc;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background-size: 2rem;
}

article .entry-content h1.what-we-do {
    padding-left: 6rem;
    position: relative;
}

article .entry-content h1.what-we-do:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(/wp-content/uploads/who-we-are-icon.png) no-repeat center #719ebc;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background-size: 2rem;
}

article .entry-content h1.contact {
    padding-left: 6rem;
    position: relative;
}

article .entry-content h1.contact:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(/wp-content/uploads/contact-icon.png) no-repeat center #719ebc;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background-size: 2rem;
}

section.fixed-bg {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* default bottom for parallax pseudo-element (starts slightly off-screen) */
    --parallax-bottom: -50px;
}

section.fixed-bg > div {
    position: relative;
    z-index: 2;
}

section.fixed-bg:after {
    background: url(/wp-content/uploads/main-bg.png) no-repeat bottom right transparent;
    background-size: 50vw;
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    bottom: var(--parallax-bottom, 0);
    opacity: .5;
    will-change: bottom;
}

section.fixed-bg.who:after {
    background: url(/wp-content/uploads/who-we-are-bg.jpg) no-repeat bottom right transparent;
    background-size: 80vw;
}

section.fixed-bg.what:after {
    background: url(/wp-content/uploads/what-we-do-bg.jpg) no-repeat bottom right transparent;
    background-size: 70vw;
}

section.fixed-bg.contact:after {
    background: url(/wp-content/uploads/contact-bg.png) no-repeat bottom left transparent;
    background-size: 50vw;
}

.wp-block-column.contact-left > * {
    padding-left: 6rem;
    padding-right: 3rem;
    font-family: 'Roboto';
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
    color: #000;
}

.wp-block-column.contact-left .contact-details {
    margin-top: 2rem;
}

.wp-block-column.contact-left .contact-details a {
    text-decoration: none;
    color: #000;
}

.wp-block-column.contact-left .contact-details a:hover {
    text-decoration: underline;
}

.wp-block-column.contact-right .frm_forms form {
    background-color: #719ebc;
    padding: 1rem 2rem;
    font-family: 'Roboto';
    font-size: .875rem;
    box-shadow: 6px 7px 35px #000;
}

.wp-block-column.contact-right .frm_forms form h3 {
    font-family: 'Cinzel';
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 2rem;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container input,
.wp-block-column.contact-right .frm_forms form .frm_fields_container textarea {
    border-radius: 0;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin-left: .5rem;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container > div {
    margin-bottom: 0;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container > div label {
    font-size: .75rem;
    color: #FFF;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_primary_label {
    color: #FFF;
    font-size: .85rem;
    line-height: 1rem;
    padding: 0;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container > div label input {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    margin-top: -2px;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container > div label input[type=radio]:checked:before {
    margin: 1px;
}

.wp-block-column.contact-right .frm_forms form .frm_fields_container .frm_submit button {
    border: none;
    background: #da0000;
    border-radius: 0;
    min-width: 200px;
    box-shadow: 4px 6px 11px #000;
    text-transform: uppercase;
    margin: -123px 0 0;
    height: 50px;
    padding: 0;
}

/* Homepage styles */
.hygeia-homepage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0 !important;
    overflow: hidden;
    background: url(/wp-content/uploads/main-home-image.png) no-repeat center 100px #FFFFFF;
    background-size: auto 120vh;
}
.admin-bar .hygeia-homepage {
    height: calc(100vh - 32px);
}

.hygeia-homepage .hygeia-hero {
    position: relative;
    width: 100%;
    z-index: 1;
    margin: 0;
    height: 60vh;
}

.hygeia-homepage .hygeia-hero .hygeia-hero-container {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.hygeia-homepage .hygeia-hero .hygeia-hero-container .hygeia-illustration-link img {
    height: 400px;
}

.hygeia-homepage .hygeia-footer-section {
    position: relative;
    z-index: 2;
    padding: 0;
    height: 40vh;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content {
    display: inline-flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-language-nav {
    margin: 0;
    padding: 0;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-language-nav .hygeia-language-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-language-nav .hygeia-language-list .hygeia-lang-link {
    text-decoration: none;
    background: #719ebc;
    font-family: 'Roboto', sans-serif;
    font-size: .875rem;
    font-weight: 300;
    color: #FFF;
    width: 40px;
    height: 40px;
    display: block;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-language-nav .hygeia-language-list .hygeia-lang-link:hover {
    opacity: 0.7;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4rem;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-logo {
    display: inline-flex;
    justify-content: end;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-logo img {
    height: 80px;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-brand-text {
    display: inline-flex;
    justify-content: end;
}

.hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-brand-text img {
    height: 50px;
}


/* footer styles */

.site-footer {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.footer-widgets .footer-widgets-container {
    padding: 1.5rem 4rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 {
    flex-grow: 3;
    display: inline-flex;
    gap: 0 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside {
    margin: 0;
    padding: 0;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:first-of-type {
    position: relative;
    top: 12px;
    left: 10px;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:last-of-type {
    flex-basis: 100%;
    width: 100%;
    margin: -5px 0 0 5rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul {
    display: flex;
    gap: .5rem;
    margin: 0 0 0 -1.5rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:last-of-type ul {
    margin: 0;
    gap: 1rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li {
    position: relative;
    padding-left: .5rem;
    margin: 0;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:last-of-type ul li {
    padding: 0;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li:before {
    content: '/';
    position: absolute;
    left: -0.25rem;
    font-size: .875rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:last-of-type ul li:before {
    display: none;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li.telefono:before {
    content: '/ Tel: ';
    display: block;
    position: absolute;
    left: 0;
    font-size: .875rem;
    line-height: 1.6rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li.telefono {
    padding-left: 2.25rem;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside a {
    text-decoration: none;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside a:hover {
    text-decoration: underline;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 aside {
    margin: 0;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 figure {
    margin: 0;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 aside .hygeia-theme-toggle__label {
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 figure {
    margin: 0;
}

footer.site-info {
    display: none;
}

a.generate-back-to-top {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border-radius: 50%;
    padding: 0;
    transition-duration: 500ms;
    box-shadow: 1px 2px 8px 0 rgba(0, 0, 0, 0.2);
    background: #1C1C1C;
    width: 46px;
    height: 46px;
    padding: 3px;
    bottom: 10px;
    right: 10px;
}
a.generate-back-to-top  .gp-icon svg {
    height: 1.5em;
    width: 1.5em;
    top: .2em;
    position: relative;
    fill: #68c3dc;
}



/* Responsive styles */
@media (max-width: 1200px) {
    section.contact .wp-block-columns {
        flex-direction: column;
    }
    section.contact .wp-block-columns .wp-block-column.contact-right {
        padding-left: 6rem;
    }
    .wp-block-column.contact-right .frm_forms form {
        max-width: 600px;
    }
}

@media (max-width: 1023px) {
    .main-navigation .main-nav>ul {
        gap: 1rem;
    }
	#primary-menu ul li:not(.lang-item) a {
        font-size: 0;
        width: 40px;
    }
    #primary-menu ul li.lang-item a {
        padding: 0;
    }
    .inside-footer-widgets {
        flex-direction: column;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 figure {
        margin: 1rem auto 0;
        float: none;
    }
}

@media (max-width: 767px) {

    .hygeia-homepage {
        background-size: 110vw auto;
        background-position: center;
    }
    
    .hygeia-homepage .hygeia-hero {
        height: 50vh;
    }

    .hygeia-homepage .hygeia-hero .hygeia-hero-container .hygeia-illustration-link img {
        height: 250px;
    }

    .hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-language-nav .hygeia-language-list {
        gap: 1rem;
    }
    
    .hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-logo img {
        height: 50px;
        width: auto;
        max-width: unset;
    }
    
    .site-header .header-image {
        width: 280px;
        height: auto;
    }
    .site-logo {
        flex-grow: 2;
        text-align: center;
    }
    #primary-menu ul li:not(.lang-item) a {
        font-size: 1rem;
        line-height: 3rem;
        padding: 0 0 0 50px;
        width: 100%;
    }
    #primary-menu ul li a:before {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    #primary-menu ul li.lang-item a {
        line-height: 2rem;
        padding-left: .5rem;
    }
    #primary-menu ul li.lang-item.lang-item-first {
        position:relative;
        padding-top: 11px;
    }
    #primary-menu ul li.lang-item.lang-item-first:before {
        position: absolute;
        content: '';
        display: block;
        width: 100%;
        height: 11px;
        top: 6px;
        border-top: 1px solid #649ebf;
    }
    article .entry-content h1 {
        font-size: 2rem !important;
        padding-left: 4rem !important;
    }
    article .entry-content h1:before {
        height: 3rem !important;
        width: 3rem !important;
        background-size: 1.5rem !important;
    }
    .wp-block-column.contact-left > *,
    section.contact .wp-block-columns .wp-block-column.contact-right {
        padding-left: 0;
    }
    .wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_primary_label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container {
        margin-left: 0;
    }
    .wp-block-column.contact-right .frm_forms form .frm_fields_container .vertical_radio .frm_opt_container > div label {
        font-size: 1rem;
    }
    .wp-block-column.contact-right .frm_forms form .frm_fields_container .frm_submit button {
        margin: 0;
    }
    .footer-widgets .footer-widgets-container {
        padding: 1.5rem 1rem;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 {
        gap: 1rem;
        flex-wrap: nowrap;
        width: 100%;
        flex-direction: column;
        margin-bottom: 0;
    }

    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:first-of-type {
        top: 0;
        left: 0;
    }

    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul {
        gap: 1rem;
        margin: 0;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li {
        padding: 0 !important;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li:before {
        display: none;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li.telefono {
        padding-left: 1.75rem !important;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul li.telefono:before {
        content: 'Tel: ';
        display: block;
        position: absolute;
        left: 0;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:last-of-type {
        flex-basis: auto;
        width: auto;
        margin: 0;
    }

}

@media (max-width: 500px) {

    .hygeia-homepage {
        background-size: 150vw auto;
    }
    .site-header .header-image {
        width: 180px;
        height: auto;
    }
    article .entry-content h1 {
        font-size: 1.5rem !important;
        padding-left: 3rem !important;
    }
    article .entry-content h1:before {
        height: 2rem !important;
        width: 2rem !important;
        background-size: 1.25rem !important;
    }
    section.fixed-bg.who:after,
    section.fixed-bg.what:after,
    section.fixed-bg.contact:after {
        background-size: 100vw;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside ul {
        flex-direction: column;
    }
    .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-1 aside:last-of-type ul li {
        text-align: center;
    }
}

@media only screen and (max-width: 440px) {
    a.generate-back-to-top {
        width: 36px;
        height: 36px;
    }
    a.generate-back-to-top  .gp-icon svg {
        height: 1em;
        width: 1em;
        top: -0.2em;
    }
}


@media (orientation: landscape) and (max-height: 600px) {
    .hygeia-homepage .hygeia-hero {
        height: 50vh;
    }
    
    .hygeia-homepage .hygeia-hero .hygeia-hero-container .hygeia-illustration-link img {
        height: 180px;
    }
    
    .hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand {
        padding: 0 0 2rem;
    }
    
    .hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-logo img {
        height: 50px;
    }

}

@media (orientation: landscape) and (max-height: 400px) and (max-width: 767px) {
    .hygeia-homepage {
        background-size: 70vw auto;
    }

    .hygeia-homepage .hygeia-hero .hygeia-hero-container .hygeia-illustration-link img {
        height: 150px;
    }

    .hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-language-nav .hygeia-language-list .hygeia-lang-link {
        font-size: .6rem;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .hygeia-homepage .hygeia-footer-section .hygeia-footer-content .hygeia-brand .hygeia-logo img {
        height: 40px;
    }

}