/*
 Theme Name:     GSH
 Description:    Divi Child Theme
 Template:       Divi
 Version:        1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary: #E31E24;
    --secondary: #F7A92D;
    --text-color: #1e1e1e;
}

body {
    font-weight:400;
}

.et_pb_row, .container {
    width:96%;
}

.title h1 {
    font-size:70px;
    font-weight:700;
}

.title h2 {
    font-size:50px;
    font-weight:600;
}

.title h3 {
    font-size:30px;
    font-weight:600;
    line-height:1.3;
}

.title h1 span, .title h2 span {
    font-family: 'Playfair Display', serif;
    font-weight:400;
    font-style: italic;
    letter-spacing: -1px;
    opacity:.8;
}

.btn {
    font-size:16px;
    padding:12px 40px;
    display: inline-block;
    border-radius:40px;
    border:0;
    color:#ffffff;
    font-weight:500;
    background-color: var(--text-color);
    position: relative;
    padding-right:50px;
}

.btn::after {
    content: "→"; 
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateY(-50%) translateX(5px);
}

.btn-left {
    font-size: 16px;
    padding: 10px 40px;
    display: inline-block;
    border-radius: 40px;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    font-weight: 500;
    background-color: #ffffff;
    position: relative;
    padding-left: 50px; /* miejsce na strzałkę */
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-left::before {
    content: "←";
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: transform 0.3s ease;
    color: var(--text-color);
}

.btn-left:hover::before {
    transform: translateY(-50%) translateX(-5px);
}

.dflex {
    display:flex;
    flex-wrap:wrap;
}

.full-image, .full-image .et_pb_image_wrap {
    width:100%;
    height:100%;
}

.full-image .et_pb_image_wrap img {
    width:100%;
    height:100%;
    object-fit: cover;
}

@media only screen and (max-width:767px) {
    .title h1 {
        font-size:36px;
        
    }

    .title h2 {
        font-size:34px;
        
    }

    .et_pb_row, .container {
        width:90%;
    }

    .title h3 {
        font-size:20px;
    }
}


/* header */

#main-header {
    box-shadow: none;
}

#top-menu a {
    font-weight:500;
    font-size:16px;
}

.mobile_menu_bar:before, .mobile_menu_bar:after, #top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a {
    color: var(--primary);
}

@media only screen and (max-width:1170px) {
    #top-menu a {
    
    font-size:12px;
}
}

/* end header */

/* home */


#oferta .et_pb_blurb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width:100%;
    border-radius:12px;
    height:400px;
  }
  
#oferta .et_pb_main_blurb_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  #oferta  .et_pb_image_wrap {
    height:100%;
    width:100%;
  }
  
  #oferta  .et_pb_main_blurb_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease;
  }
  
  
  #oferta .et_pb_blurb::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
    pointer-events: none;
  }
  
  
  #oferta .et_pb_module_header {
    position: absolute;
    bottom: 40px;
    left: 20px;
    z-index: 3;
    color: white;
    font-size: 30px;
    margin: 0;
    transition: transform 0.5s ease, bottom 0.5s ease;
    transform: translateY(0);
    width:100%;
    font-weight:600;
  }
  
  
  #oferta .et_pb_module_header::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: white;
    margin-top: 14px;
    transition: width 0.5s ease;
  }
  
  
  #oferta .et_pb_blurb_description {
    position: absolute;
    left: 20px;
    bottom: 40px;
    color: white;
    line-height:1.3;
    z-index: 3;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

 
  #oferta .et_pb_blurb:hover .et_pb_main_blurb_image img {
    transform: scale(1.1);
  }
  
  #oferta .et_pb_blurb:hover .et_pb_module_header {
    transform: translateY(-44px);
  }
  

  
  #oferta .et_pb_blurb:hover .et_pb_module_header::after {
    width: calc(100% - 40px);
  }
  
  #oferta .et_pb_blurb:hover .et_pb_blurb_description {
    opacity: 1;
    transform: translateY(0);
  }

  #oferta .et_pb_blurb_content {
    max-width:100%;
    height:400px;
    border-radius:12px;
  }

#onas .et_pb_number_counter.et_pb_with_title .percent {
    margin-bottom:10px;
}

#onas .et_pb_number_counter .percent {
    height:50px;
}

#onas .et_pb_number_counter .percent p {
    font-size:50px;
    line-height:1;
    color:var(--text-color)!important;
}

#onas .dflex {
    justify-content: space-between;
}

@media only screen and (max-width:767px) {
    #oferta .et_pb_blurb {
        height:300px;
        
      }

      #oferta .et_pb_blurb_content {
        
        height:300px;
       
      }

      #oferta .et_pb_blurb_description { 
        font-size:14px;
        line-height:1.4;
      }

      #onas .et_pb_number_counter .percent {
        height:30px;
    }
    
    #onas .et_pb_number_counter .percent p {
        font-size:30px;
        line-height:1;
        color:var(--text-color)!important;
    }

    #onas .et_pb_number_counter h3 {
        font-size:14px;
        line-height:1.2;
    }
}


/* end home */

/* wycieczki */

.et_pb_portfolio_grid .project {
    position: relative;
}

.et_pb_portfolio_grid .project .et_pb_module_header {
    position:absolute;
    bottom:20px;
    left:10px;
    color:#ffffff;
    font-weight:700;
    z-index: 9;
}

.et_pb_portfolio_grid .project .et_portfolio_image::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
    pointer-events: none;
  

}

.et_pb_portfolio_grid .project:hover .et_portfolio_image img {
    transform: scale(1.1);
}

.et_pb_portfolio_grid .project .et_portfolio_image img {
    transition: transform 2s ease;
}

.et_pb_post_content h2 {
    font-size:40px;
    font-weight:700;
    padding-bottom:20px;
}

.et_pb_post_content h3 {
    font-size:30px;
    font-weight:700;
    padding-bottom:20px;
}

.atrakcja h3 {
    font-weight:600;
    line-height:1.2;
}

.atrakcja h3 span {
    font-weight:400;
    padding-right:10px;
}

@media only screen and (max-width:767px) {
    .et_pb_post_content h2 {
        font-size:30px;
    
    }
    
    .et_pb_post_content h3 {
        font-size:20px;
        
    }

    .et_pb_post_content p {
        font-size:14px;
        line-height:1.5;
        
    }
}



/* end wycieczki */

/* footer */

#kontakty .et_pb_blurb .et_pb_main_blurb_image img {
    width:180px;
    height:180px;
    object-fit: cover;
}

#kontakty .et_pb_blurb .et_pb_module_header {
    text-transform: uppercase;
    font-weight:600;
    font-size:18px;
    color:var(--secondary)!important;
}

/* end footer */