/*
 Theme Name:   Villa Brusa Ricevimenti 
 Theme URI:    https://generatepress.com
 Description:  Villa Brusa Ricevimenti's GeneratePress Child
 Author:       BALLARAW Hub
 Author URI:   https://ballaraw.com
 Template:     generatepress
 Version:      0.1
*/

/* For browsers that support clamp  */
@supports (font-size: clamp(1rem, 1vi, 1rem)) {
  :root {
		--font-size-sm: clamp(0.9rem, 0.07vi + 0.88rem, 0.94rem);
		--font-size-base: clamp(1.13rem, 0.23vi + 1.07rem, 1.25rem);
		--font-size-md: clamp(1.41rem, 0.47vi + 1.29rem, 1.67rem);
		--font-size-lg: clamp(1.76rem, 0.84vi + 1.55rem, 2.22rem);
		--font-size-xl: clamp(2.2rem, 1.39vi + 1.85rem, 2.96rem);
		--font-size-xxl: clamp(2.75rem, 2.18vi + 2.2rem, 3.95rem);
		--font-size-xxxl: clamp(3.43rem, 3.32vi + 2.6rem, 5.26rem);
  }
}
/* For browsers that don't support clamp */
@supports not (font-size: clamp(1rem, 1vi, 1rem)) {
  :root {
		--font-size-sm: 0.9rem;
		--font-size-base: 1.13rem;
		--font-size-md: 1.41rem;
		--font-size-lg: 1.76rem;
		--font-size-xl: 2.2rem;
		--font-size-xxl: 2.75rem;
		--font-size-xxxl: 3.43rem;
  }
  @media screen and (min-width: 1280px) {
    :root {
			--font-size-sm: 0.94rem;
			--font-size-base: 1.25rem;
			--font-size-md: 1.67rem;
			--font-size-lg: 2.22rem;
			--font-size-xl: 2.96rem;
			--font-size-xxl: 3.95rem;
			--font-size-xxxl: 5.26rem;
    }
  }
}

/* Fluid Typography Scale */

p {
  font-size: var(--font-size-base);
}
h1 {
  font-size: var(--font-size-xl);
}
h2 {
  font-size: var(--font-size-lg);
}
h3 {
  font-size: var(--font-size-md);
}
h4 {
  font-size: var(--font-size-base);
}
h5 {
  font-size: var(--font-size-base);
}
h6 {
  font-size: var(--font-size-base);
}

/*Overrides (Maybe put it in a separate file?) */

/*.site-header,
.is_stuck .inside-navigation .main-nav {
  padding-inline: var(--padding-d);
}*/

:is(h1, h2, h3, h4, h5, h6),
.balance {
  /*text-wrap: balance;*/
}

p,
blockquote,
li {
  text-wrap: pretty;
}

p:last-child:last-of-type {
  /*margin-bottom: 0px;*/
}

/*Navigation Tweaks*/

/* Mobile merged header */

.site-logo.mobile-header-logo img {
  width: 180px !important;
}

/*
@media (max-width: 1024px) {
  .page-hero.special-merge-hero {
    padding-top: 70px;
  }
}
*/

/* Sticky Color + Size */
/*
.is_stuck .inside-navigation {
  background: var(--base-3);
}
*/

/*
@media (min-width: 1024px) {
  .is_stuck .inside-navigation {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
*/

/*
.main-navigation.sticky-navigation-transition .navigation-branding img {
  width: 150px;
  height: auto;
}
*/

/* Transitions */

.transition {
  transition: all 0.25s ease-in-out;
}

/* Borrowed from Bootstrap */
/* Tutorial: https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l */
/* Make sure you only have ONE link inside your card 😅 or this will not work!  */

.stretch-link:hover {
  opacity: 0.8;
}

.stretch-link {
  position: relative;
}

.stretch-link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
  outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
  outline: none;
}

/* Hover Tweak for Main Menu Accessibility Stuff*/

#site-navigation ul.submenu {
  display: block;
}

#site-navigation li:hover .gp-icon svg {
  transform: rotate(180deg);
}

#site-navigation li:hover .submenu {
  visibility: visible;
}

/* nav links effect */
/*
.main-navigation .menu > .menu-item > a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 50%;
  bottom: 1px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: block;
  width: 0;
  height: 1px;
  background-color: var(--contrast-3);
  transition: 0.3s width ease;
}
.main-navigation .menu > .menu-item.current-menu-item > a::after,
.main-navigation .menu > .menu-item > a:hover::after {
  width: calc(100% - 40px);
}
*/

/* Center Menu in Navigation */

/* @media (min-width: 1024px) {
  .inside-header > .site-branding,
  .inside-header > .navigation-branding,
  .inside-header > .site-logo,
  .site-branding-container,
  #site-navigation .navigation-branding .site-logo,
  #sticky-navigation .navigation-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  }

  #site-navigation {
    margin-left: unset !important;
    display: flex;
  }

  .site-header .main-navigation:not(#sticky-navigation) .inside-navigation {
    margin: unset;
  }

  #site-navigation,
  #primary-menu,
  .main-navigation .inside-navigation {
    flex: 1;
    min-width: 100%;
  }

  .main-navigation ul li:nth-child(4) {
    margin-left: auto;
  }
  .mmain-navigation ul li:first-child a {
    padding-left: 0 !important;
  }
  .mmain-navigation ul li:last-child a {
    padding-right: 0 !important;
  }
} */

/*Header Video BG*/

.background-video #metaslider-id-161 {
  /* Replace with metaslider ID */
  /*position: fixed;*/
  left: 0;
  top: 0;
  z-index: 0;
  width: 100vw !important;
  height: 100vh !important;
  background: #fff;
}
.background-video #metaslider_container_161 img {
  /* Replace with metaslider ID */
  object-fit: cover;
  height: 100vh;
}

.background-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.4;
  overflow: hidden;
}

.background-video-content {
  position: relative;
  z-index: 1;
}

/*video[poster] {
    object-fit: cover;
    width: 100%;
    height: 100%;
}*/

/*Metaslider Ken Burns Knock Off*/

.zoom-in-slideshow ul.slides li {
  overflow: hidden;
}

.zoom-in-slideshow ul.slides li img {
  transition: all 3s ease-in-out;
  transform: scale(1);
}
.zoom-in-slideshow ul.slides li.flex-active-slide img {
  transform: scale(1.03);
}

/* Scroll Icon Animation */

.scrolldown-icon {
  position: absolute;
  top: calc(100vh - 110px);
  left: calc(50% - 0px);
  width: 0;
  height: 40px;
  border: 1px solid var(--base-2);
  border-radius: 1px;
  animation: jumpInfinite 1.5s infinite;
}

.scrolldown-icon:after {
  content: " ";
  position: absolute;
  top: 20px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--base-2);
  border-right: 2px solid var(--base-2);
  border-radius: 2px;
  transform: rotateZ(45deg);
}

@keyframes jumpInfinite {
  0% {
    margin-top: 0;
  }
  50% {
    margin-top: 20px;
  }
  100% {
    margin-top: 0;
  }
}

/*Pop Ups*/

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 640px;
    background: var(--base-2);
    padding: 1em;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    z-index: 1000;
}

.popup h2{
    font-size:var(--font-size-large);
    text-transform: uppercase;
}

.popup-content {
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--contrast-2);
    z-index: 999;
    opacity: .8;
}

/*Image Map Container*/

.grid-container-map {
    display: grid;
    grid-template-columns: 1fr;
}

.image-map-container {
    width: 100%;
	grid-column: 1 / -1;
    overflow-x: auto; /* Allows horizontal scrolling */
}

@media (max-width: 768px) { /* Adjust this breakpoint as needed for mobile */
    .image-map-container {
        /* This min-height will control the vertical size on mobile */
        min-height: 400px;
        /* The container's width will remain 100% of the viewport */
    }

    .image-map-container svg {
        /* Set a height that matches the container's min-height */
        height: 400px;
        /* Let the width be auto to maintain aspect ratio and overflow */
        width: auto;
    }
}
