/*
Theme Name: ESS
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

@view-transition {
  navigation: auto;
}

/* Header */
div#header_main .container.av-logo-container {
margin: 10px auto;
}

.html_header_top.html_header_sticky.html_large #main {
    padding-top: 137px;
}

/* Sticky header on mobile */
@media only screen and (max-width: 767px) {
  .responsive #top #main {
    /* Margin top value should be equal to header height*/
    margin-top: 82px;
  }
  .responsive #top #wrap_all #header {
    position: fixed;
  }
	.responsive .logo img, .responsive .logo svg {
		padding: 5px 0px;
	}
	 .responsive #top #header_main > .container .main_menu .av-main-nav > li > a {
        margin: -7px 0 0 0;
    }
	.responsive #top #wrap_all .av-burger-overlay #av-burger-menu-ul li a {
		font-size: 22px;
	}
}

/* 1) Target the last menu-item’s <a> */
#avia-menu > li.menu-item:nth-last-child(2) > a span.avia-menu-text {
  /* hexlink base styles */
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
  background-color: #2045fb; /* override if needed */
  padding: 0 12px;
  height: 40px;
  overflow: visible;    /* allow pseudo elements to show */
}

/* 2) Create the two half‑hexagon caps */
#avia-menu > li.menu-item:nth-last-child(2) > a span.avia-menu-text::before,
#avia-menu > li.menu-item:nth-last-child(2) > a span.avia-menu-text::after {
  content: "";
  display: block;
  width: 18px;
  height: 40px;
  background-color: inherit;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* left half */
#avia-menu > li.menu-item:nth-last-child(2) > a span.avia-menu-text::before {
  left: -9px; /* sit just outside the left edge */
  clip-path: polygon(
    0% 25%, 
    50% 0%, 
    50% 100%, 
    0% 75%
  );
}

/* right half */
#avia-menu > li.menu-item:nth-last-child(2) > a span.avia-menu-text::after {
  right: -9px; /* sit just outside the right edge */
  clip-path: polygon(
    50% 0%, 
    100% 25%, 
    100% 75%, 
    50% 100%
  );
}

/* 3) Hover state (optional) */
#avia-menu > li.menu-item:nth-last-child(2) > a span.avia-menu-text:hover {
  background-color: #5470fc;
}


/* Homepage slider */
body.home .container.caption_container {
    max-width: 100% !important;
}

body.home .slideshow_caption {
    width: 25%;
    background:
    url('/wp-content/uploads/2025/07/polygon.svg') center/cover no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    color: #fff;
    padding: 1em;
    overflow: visible;       /* allow the ::before to stick out */
}

body.home .slideshow_caption::before {
  content: "";
  position: absolute;
  top: 0;
  left: -99.7px;             /* half‑hexagon width */
  width: 100px;             /* adjust to taste */
  height: 100%;
  /* same semi‑transparent black as your gradient */
  background: rgba(0, 0, 0, 0.5);
  /* clip to a trapezoid that _is_ half a hexagon */
  clip-path: polygon(
    100% 0,    /* top‑right corner */
    100% 100%, /* bottom‑right corner */
    0 75%,     /* bottom‑left inset */
    0 25%      /* top‑left inset */
  );
}

@media only screen and (min-width: 768px) and (max-width: 1000px) {
	body.home .slideshow_caption {
    	width: 40% !important;
		padding: 1em 2em !important;
	}
	
	body.home .slideshow_caption::before {
		display: none !important;
	}
}

@media only screen and (max-width: 767px) {
	body.home .caption_container {
    	width: 100% !important;
	}
	
	body.home .slideshow_caption {
    	width: 100% !important;
		padding: 1em 2em !important;
	}
	
	body.home .slideshow_caption h1 {
		font-size: 16px !important;
	}
	
	body.home .slideshow_caption::before {
		display: none !important;
	}
}