@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
:root {
    --font-a: "EB Garamond", serif;
    --font-h1: "EB Garamond", serif;
    --font-p: "EB Garamond", serif;
}
html {
    scroll-behavior: smooth;
}
body {
    --bg1: url(../images/bg1.jpg);
    --bg2: url(../images/neptune.jpg);
    margin: 0;
    background-color: black;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
body.fade-out {
    opacity: 0;
}

a {
    font-family: var(--font-a);
    font-size: 16px;
    font-style: normal;
}

.sub_text {
    font-family: var(--font-p);
    font-size: 25px;
    font-style: italic;
    text-align: center;
}

.header {
    width: 100%;
    /* height: 100vh; */
    background-repeat: no-repeat;
    background-position: center;
    overflow-x: hidden;
    background-image: url(../images/bg3_mobile.jpg);
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    margin: 0;
    padding: 0;
}
#header_index {
    background-image: url(../images/neptune_mobile.jpg)
}
@media (min-width: 768px) {
    .header {
        background-image: url(../images/bg3.jpg);
        background-attachment: fixed;
    }
    #header_index {
        background-image: url(../images/neptune.jpg);
    }
}

.header_div {
    height: 20vh;
}

.menu_but {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
    padding: 10px;
}
/*  */
.burger {
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    margin-right: 20px;
    margin-top: 20px;
    height: 30px;
    width: 35px;
    float: right;
}

.burger .line {
    background-color: rgba(255, 255, 255, 0.7);
    padding-bottom: 2px;
    height: 3px;
    width: 100%;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav_buttons {
      position: fixed;
      left: 0;
      height: 100vh;
      top: 0;
      background-color: rgba(51, 51, 51, 0.95);
      width: 50%;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: transform 0.5s ease;
      transform: translateX(-100%);
    }
  
    .nav_buttons.active {
      transform: translateX(0);
    }
  
    .nav_buttons li {
      margin: 20px 0;
    }
  
    .burger {
      display: flex;
    }
  
    .burger.toggle .line:nth-child(1) {
      transform: rotate(45deg) translateY(13.5px);
    }
  
    .burger.toggle .line:nth-child(2) {
      opacity: 0;
    }
  
    .burger.toggle .line:nth-child(3) {
      transform: rotate(-45deg) translateY(-13.5px);
    }
    .menu_but {
        display: flex;
        flex-direction: column;
        justify-content: center;
        list-style-type: none;
        padding: 10px;
    }
}
/*  */
.navbar {
    background-color: rgba(0, 0, 0, 0.5);
    height: 73px;
}

.nav_buttons {
    display: flex;
    flex-direction: row;
    flex-grow: 4;
    justify-content: center;
}

.nav_button {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    color: white;
    text-decoration: none;
    padding: 10px;
}

.header_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    color: white;
}

.main_text {
    font-family: var(--font-h1);
    font-size: 50px;
    font-style: normal;
    text-align: center;
    margin-bottom: 0;
}
@media (min-width: 380px) {
    .main_text {
        font-size: 60px;
    }
    .sub_text {
        font-size: 30px;
    }
    .header_div {
        height: 25vh;
    }
}
@media (min-width: 490px) {
    .main_text {
        font-size: 80px;
    }
    .sub_text {
        font-size: 40px;
    }
    .header_div {
        height: 35vh;
    }
}

.header_text1 {
    display: grid;
    grid-area: 2 / 1 / 2 / 4;
}

.info_sections {
    display: grid;
    grid-template: 1fr 1fr;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
}


.photo {
    height: 300px;
    padding: 10px;
}

.footer_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.credits_text {
    font-family: var(--font-p);
    font-size: 15px;
    font-style: normal;
    margin: 0;
    text-align: center;
}

.copyrights_text {
    font-family: var(--font-p);
    font-size: 15px;
    font-style: normal;
    margin: 0;
    text-align: center;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 810px) {
    .column {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

.column_ser {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn_col {
    border-radius: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../images/bg_icon1.jpg);
    background-position: 0%;
    background-size: cover;
    padding-top: 110px;
    width: 280px;
    height: max-content;
    margin: 20px;
    padding-bottom: 20px;
}
@media (min-width: 450px) {
    .btn_col {
        width: 360px;
    }
}
@media (min-width: 900px) {
    .btn_col {
        width: 400px;
    }
}

.divider {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.divider_line {
    height: 1px;
    width: 90%;
    background-color: white;
    margin-bottom: 10px;
}
@media(min-width:1300px){
    .divider_line {
        width: 75%;
    }
}
@media(min-width:1800px) {
    .divider_line {
        width: 65%;
    }
}

#ServiziText {
    max-width: 1200px;
    text-align: justify;
    color: white;
}

.servizi_main {
    text-align: center;
}

#TariffarioText {
    max-width: 1200px;
    text-align: center;
    color: white;
}

.hidden {
    max-height: 0; /* Приховує контейнер по висоті */
    overflow: hidden;
    opacity: 0; /* Робить контейнер невидимим */
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; /* Плавний перехід */
}

.visible {
    max-height: 1200px; /* Максимальна висота контейнера (налаштуйте відповідно до контенту) */
    opacity: 1; /* Робить контейнер видимим */
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .contacts {
        flex-direction: row;
    }
}

.contacts_col {
    font-family: var(--font-p);
    font-size: 14px;
    margin: 20px;
    margin-bottom: 30px;
    width: 280px;
    text-align: center;
}
@media (min-width: 380px) {
    .contacts_col {
        font-size: 16px;
    }
}
@media(min-width:500px){
    .contacts_col {
        padding-left: 30px;
        padding-right: 30px;
    }
}
@media(min-width:850px){
    .contacts_col {
        font-size: 18px;
        padding-left: 30px;
        padding-right: 30px;
        width: 320px;
    }
}

.footer_icon-link {
    display: block;
    align-items: center;
    width: 40px;
    height: 40px;
}

.footer_icon {
    width: 32px;
    margin: 8px;
}

.social_links {
    background-color: white;
    display: block;
    width: 75%;
    height: 1px;
    margin-bottom: 10px;
}
@media(min-width:1300px){
    .social_links {
        width: 55%;
    }
}
@media(min-width:1800px) {
    .social_links {
        width: 35%;
    }
}

.btn_img {
    width: 75px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10%;
    margin-bottom: 20px;
}

@media (max-width:3000px){
    .info1 {
        margin-left: 400px;
        margin-right: 400px;
    }
}
@media (max-width:1800px){
    .info1 {
        margin-left: 200px;
        margin-right: 200px;
    }
}
@media (max-width:1300px){
    .info1 {
        margin-left: 100px;
        margin-right: 100px;
    }
}
@media (max-width:1000px){
    .info1 {
        margin-left: 50px;
        margin-right: 50px;
    }
}
@media (max-width:500px){
    .info1 {
        margin-left: 20px;
        margin-right: 20px;
    }
}
.info1 {
    font-family: var(--font-p);
    color: white;
    margin-top: 100px;
    margin-bottom: 50px;
    font-size: 20px;
}

.info1_lst {
    padding-left: 50px;
}

.center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn_cen {
    border-radius: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: var(--bg1);
    background-position: 0%;
    background-size: cover;
    padding-top: 100px;
    padding-bottom: 10px;
    width: 350px;
    height: max-content;
    margin: 10px;
    margin-bottom: 0;
}

.info_contatti {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contatti_row {
    display: grid;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
}
@media (min-width: 750px) {
    .contatti_row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 0fr 0fr;
    }
}

.contatti_block {
    display: grid;
    justify-items: center;
    padding: 30px 0px;
}

.contatti_text {
    text-align: center;
    font-size: 15px;
}
@media (min-width: 420px) {
    .contatti_text {
        font-size: 20px;
    }
}

.contatti_img {
    width: 100px;
}