/* #### COLORI ROOT #### */
:root {
  --colore-principale: #e20487;
  --colore-secondario: #6a1445;
  --colore-terziario: #6a1445;
  --colore-quarto: #4b1a36;
  --colore-quinto: #8c1254;
  --colore-sesto: #381c2c;
  --colore-settimo: #341c24;
  --common-font: "Prata", serif;
  --button-font: "Lato", sans-serif;
  --color-add: #bba8a8;
}

/* #### NAVBAR ####*/
.a-username{
    color: rgb(255, 255, 255) !important; 
    cursor: pointer !important;
}

.custom_btn{
    border: 1px solid var(--colore-principale);
    background-color: rgb(33,37,41) 33,37,41;
    color: white;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: .4s;
}

.custom_btn_2{
  border: 1px solid var(--colore-principale);
  background-color: var(--colore-principale);
    color: white;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: .4s;
}

.custom_btn_2:hover{
  background-color: var(--colore-quarto);
  color:white;
}

.custom_btn:hover{
    color: white;
    background-color: var(--colore-principale);
}


/* #### MAIN #### */
.custom_h1{
    color: white;
    /* text-shadow: var(--colore-principale) 1px 0 10px; */
}

.btn_prenota{
    border: 2px solid var(--colore-principale);
    background-color: rgb(255, 255, 255) 33,37,41;
    color: black;
    font-weight: bold;
    padding: 7px 20px;
    font-size: 12px;
    cursor: pointer;
    transition: .4s;
}


.btn_prenota:hover{
    color: white;
    background-color: var(--colore-principale);
}

/* #### COLORI ROOT #### */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  body,
  html {
    height: 100%;
    width: 100%;
    font-size: 10px;
    scroll-behavior: smooth;
  }
  body p {
    font-family: var(--button-font);
    font-size: 1.6rem;
  }
  body h1,
  h2,
  h3,
  button {
    font-family: var(--common-font);
  }
  body h1 {
    font-size: 3.6rem;
  }
  /* Styling for the Scroll Top button */
  #about-section {
    position: fixed;
    right: 5%;
    bottom: 5%;
    z-index: 999;
    opacity: 0;
    visibility: hidden; /* Added to hide initially */
    height: 60px;
    width: 60px;
    border-radius: 30px;
    /* background-color: var(--color-add); */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #about-section.active {
    opacity: 1;
    visibility: visible; /* Added to make it visible when active */
  }
  
  #about-section button {
    background: none;
    border: none;
    color: var(--colore-principale);
    transition: .4s;
  }
  
  #about-section button:hover {
    color: var(--colore-quarto);
  }
  
  /* #### NAVBAR ####*/
  .a-username {
    color: rgb(255, 255, 255) !important;
    cursor: pointer !important;
  }
  
  .custom_btn {
    border: 1px solid var(--colore-principale);
    background-color: rgb(33, 37, 41) 33, 37, 41;
    color: white;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.4s;
  }
  
  .custom_btn:hover {
    color: white;
    background-color: var(--colore-principale);
  }
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    height: 7rem;
  }
  .navbar li a,
  .footer li a {
    font-size: 1.4rem;
    font-weight: 600;
  }
  /* HERO SECTION */
  
  .mySwiper3 {
    height: 70vh;
    position: relative;
  }
  .swiper .swiper-button-prev {
    color: var(--colore-principale);
    width: 30px;
    border-radius: 50%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    left: 0;
  }
  .swiper .swiper-button-next {
    color: var(--colore-principale);
    width: 30px;
    border-radius: 50%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    right: 0;
  }
  
  .hero-img1-content {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-20%, -40%);
    text-align: start;
    font-family: "Prata", serif;
  }
  .hero-img1-content p {
    color: var(--colore-settimo);
  }
  .hero-img1-content h1 {
    font-size: 5rem;
    line-height: 5.5rem;
    color: var(--colore-settimo);
  }
  .hero-img1-content h3 {
    font-size: 1.6rem;
    color: var(--colore-settimo);
  }
  .swiper-slide img {
    opacity: 0.5;
  }
  
  .hero-img1-content button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    margin: 1.5rem 0;
    font-family: Lato, sans-serif;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--colore-principale);
    z-index: 1;
  }
  
  .hero-img1-content button::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--colore-quarto);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
  }
  
  .hero-img1-content button:hover::after {
    transform: translateX(0);
  }
  @media (max-width: 992px) {
    #about-section {
      position: fixed;
      right: 5%;
      bottom: 5%;
      z-index: 999;
      display: none;
    }
    .mySwiper3 {
      width: 100%;
      height: 51rem;
    }
    .mySwiper3 img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .hero-img1-content {
      width: 80%;
      height: 100%;
      display: flex;
      justify-content: center;
      flex-direction: column;
    }
    .hero-img1-content button {
      width: fit-content;
    }
  }
  @media (max-width: 767px) {
    body p {
      font-size: 1.3rem;
    }
  
    .mySwiper3 {
      width: 100%;
      height: 50rem;
    }
    .mySwiper3 img {
      height: 100%;
      object-fit: cover;
    }
    .hero-img1-content {
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 2rem;
    }
    .hero-img1-content h1 {
      font-size: 2.6rem;
      line-height: normal;
      font-weight: 400;
    }
    .hero-img1-content button {
      width: fit-content;
      padding: 1rem 2rem;
      font-size: 1.2rem;
      border: none;
      margin: 1.5rem 0;
      font-family: Lato, sans-serif;
      font-weight: 600;
      color: white;
      position: relative;
      overflow: hidden;
      background-color: var(--colore-principale);
      z-index: 1;
    }
  }
  
  /* ABOUT SECTION  */
  
  .about {
    font-family: "Prata", serif;
    text-align: center;
  }
  
  .about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-left:first-child {
    font-size: 1.7rem;
  }
  .about-left h1 {
    font-size: 3.6rem;
    padding: 0 0 3rem;
    color: var(--colore-principale);
  }
  .about-left h3 {
    font-size: 1.6rem;
  }
  .about-left img {
    margin-bottom: 2.5rem;
  }
  .about-left p {
    width: 80%;
    margin-bottom: 2rem;
    color: var(--colore-quinto);
  }
  .about-left button {
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    font-family: Lato, sans-serif;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--colore-principale);
    z-index: 1;
  }
  .about-left button::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--colore-sesto);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
  }
  
  .about-left button:hover::after {
    transform: translateX(0);
  }
  .about-right {
    position: relative;
    text-align: start;
    padding-left: 2rem;
  }
  
  .about-right img {
    border-radius: 1rem;
  }
  #img2 {
    position: absolute;
    top: 10%;
    right: 5%;
  }
  #img3 {
    position: absolute;
    left: 7%;
    top: 70%;
  }
  
  @media (max-width: 992px) {
    .about-right {
      position: relative;
      text-align: start;
      padding-left: 0;
    }
    .about-right img {
      width: 21rem;
    }
    #img2 {
      position: absolute;
      top: 40%;
      right: 0%;
    }
    #img3 {
      position: absolute;
      left: 8%;
      top: 70%;
    }
  }
  @media (max-width: 576px) {
    .about-right {
      display: none;
    }
    .about-left {
      width: 100%;
    }
  }
  /* <!--SERVICES--> */
  
  .services {
    text-align: center;
    background-color: #f2ebe7;
    border-top: 1px solid var(--color-add);
    padding-bottom: 10rem;
  }
  .barber {
    margin-bottom: 3rem;
  }
  
  .card {
    height: 27rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 3rem 1rem;
    border: none;
  }
  
  .card-text h2 {
    font-size: 2.2rem;
  }
  .card-text p {
    width: 80%;
    margin: auto;
    margin-top: 1.5rem;
  }
  
  /* <!--CONTACT--> */
  
  .contact-section {
    background-color: #222227;
    position: relative;
  }
  .contact-left {
    background-image: url(https://wilsonkinyua.github.io/barber-shop-web-ui/img/book-bg.jpg);
    background-repeat: no-repeat;
    background-position: center left;
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0;
    top: 0;
  }
  
  .padding {
    padding: 80px 0;
  }
  .map-bg {
    background-image: url(https://wilsonkinyua.github.io/barber-shop-web-ui/img/satellite-map.png);
    background-size: contain;
    background-position: right center;
    opacity: 0.05;
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 1;
  }
  .contact-left-bg {
    z-index: 2;
  }
  .book-form {
    padding: 4rem;
  }
  .book-form .book_content {
    margin-bottom: 30px;
  }
  .book-form .book_content h2 {
    color: #fff;
    font-size: 3.6rem;
    margin: 0 0 8px;
    font-weight: 400;
    line-height: 48px;
    letter-spacing: -0.04em;
  }
  .book-form .book_content p {
    margin-bottom: 15px;
  }
  .padding-10 {
    padding: 10px;
  }
  .padding input {
    width: 100%;
    height: 5rem;
    background: no-repeat;
    font-size: 16px;
    border: 3px solid var(--colore-principale);
    padding: 1rem;
    color: #6b6b6e;
  }
  .padding input:focus {
    outline: none;
  }
  .book-form .form-control {
    background-color: transparent;
    height: 55px;
    border: 3px solid var(--colore-principale);
    line-height: 52px;
    color: #fff;
    border-radius: 0;
  }
  .book-form .form-control:hover {
    border: 3px solid var(--colore-principale);
  }
  .dropdown {
    height: fit-content;
    box-sizing: border-box;
    position: relative;
  }
  .input-box {
    width: 100%;
    height: 5rem;
    box-sizing: border-box;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    border: 3px solid var(--colore-principale);
  }
  .input-box::before {
    content: "⬇";
    font-family: "Material Icons";
    position: absolute;
    font-size: 18px;
    top: 50%;
    right: 15px;
    transform: translate(0, -50%);
    width: fit-content;
    height: fit-content;
    color: white;
  }
  .name {
    color: white;
  }
  .input-box:empty::after {
    content: "Services";
    color: #6b6b6e;
  }
  .list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: fit-content;
    color: white;
    background-color: var(--colore-settimo);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    max-height: 0;
    transition: 0.25s ease-out;
    z-index: 99;
  }
  .list input {
    display: none;
    color: white;
  }
  .list label {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.6rem;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    font-family: var(--button-font);
    border-bottom: 1px solid var(--colore-principale);
    color: white;
  }
  
  .list label:hover {
    background: rgba(0, 0, 0, 0.08);
  }
  
  .title {
    font-family: poppins;
    font-size: small;
    font-weight: 500;
    margin-bottom: 10px;
  }
  .search-box {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 8px;
  }
  #search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 1mm;
    border: none;
    outline: 0.3mm solid rgba(0, 0, 0, 0.15);
    font-family: poppins;
  }
  #search:focus {
    outline: 0.5mm solid rgba(0, 0, 0, 0.35);
  }
  .contact-section button {
    width: fit-content;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    font-family: Lato, sans-serif;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--colore-principale);
    z-index: 1;
  }
  .contact-section button::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--colore-sesto);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
  }
  
  .contact-section button:hover::after {
    transform: translateX(0);
  }
  @media (max-width: 992px) {
    .contact-left {
      display: none;
    }
  }
  @media (max-width: 576px) {
    .contact-left {
      display: none;
    }
    .book-form .book_content h2 {
      color: #fff;
      font-size: 2.2rem;
      margin: 0 0 8px;
      font-weight: 400;
      line-height: 48px;
      letter-spacing: -0.04em;
    }
  }
  /* <!--Barber--> */
  .barber-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  .barber-img-hover {
    background-color: rgba(158, 138, 120, 0.8);
    display: block;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: absolute;
    left: 7px;
    bottom: -100px;
    width: 95%;
    transition: bottom 0.3s ease;
    opacity: 1;
  }
  .img-overlay:hover img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
  }
  
  .barber-img:hover .barber-img-hover {
    bottom: 0;
    opacity: 1;
  }
  
  .barber-img-hover::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
  }
  
  .barber-img-hover p {
    margin: 0 0 5px;
    font-family: "Work Sans", sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
  }
  /* <!--Feedback--> */
  .feedback_section {
    background-image: url("/assets/img/steetbarber/IMG_7078.avif");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 0 0;
    background-size: cover;
    padding: 200px 0;
    width: 100%;
    filter: blur(0.7);
  }
  
  .swiper-slide > p {
    font-size: 2.4rem;
    font-family: var(--common-font);
    text-align: center;
    margin-bottom: 3rem;
  }
  .swiper-pagination-clickable .swiper-pagination-bullet {
    color: white;
    background-color: #ddd;
  }
  .swiper-pagination-clickable .swiper-pagination-bullet-active {
    padding: 0.5rem;
  }
  @media (max-width: 992px) {
    .feedback_section {
      background-image: url("/assets/img/steetbarber/IMG_7078.avif");
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: 0 0;
      background-size: cover;
      padding: 100px 0;
      width: 100%;
    }
  }
  @media (max-width: 576px) {
    .swiper-slide > p {
      font-size: 2.1rem;
      font-family: var(--common-font);
      text-align: center;
      margin-bottom: 3rem;
    }
    .feedback_section {
      background-image: url("/assets/img/steetbarber/IMG_7078.avif");
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: 0 0;
      background-size: cover;
      padding: 50px 0;
      width: 100%;
    }
  }
  /* Pricing */
  .price-value {
    font-family: var(--common-font);
  }
  .price-value h3 {
    background-color: var(--colore-principale);
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    margin: 0 0 20px;
    border-radius: 7px;
  }
  .price_value-list li {
    margin-bottom: 4rem;
    position: relative;
    list-style: none;
  }
  .price_value-list li h4 {
    position: relative;
    color: var(--colore-quinto);
    font-size: 18px;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
    overflow: hidden;
    width: 90%;
  }
  .price_value-list li p {
    font-size: 1.6rem;
    font-family: var(--button-font);
  }
  .price_value-list li h4::after {
    color: var(--colore-quinto);
    content: "--------------------" "--------------------" "--------------------"
      "--------------------";
    font-weight: 400;
    margin-left: 10px;
    position: absolute;
    top: -2px;
    white-space: nowrap;
    width: 0;
  }
  .price_value-list li span.price {
    font-family: prata, sans-serif;
    font-size: 24px;
    color: var(--colore-principale);
    font-weight: 700;
    position: absolute;
    top: -0.7rem;
    right: 0;
  }
  .barber {
    text-align: center;
    margin-top: 5rem;
    font-family: var(--common-font);
  }
  
  /* <!--Text--> */
  .text_section {
    background-image: url("/assets/img/steetbarber/IMG_7077.avif");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 0 0;
    background-size: cover;
    padding: 200px 0;
    width: 100%;
    opacity: 0.9;
  }
  .text_section .cta_content h1 {
    color: whitesmoke;
    font-size: 4.2rem;
  }
  
  .text_section a {
    text-decoration: none;
  }
  .text_section .cta_content button {
    width: fit-content;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    font-family: Lato, sans-serif;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--colore-principale);
    z-index: 1;
    border-radius: 7px;
  }
  .text_section .cta_content button::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--colore-sesto);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
  }
  
  .text_section .cta_content button:hover::after {
    transform: translateX(0);
  }
  
  @media (max-width: 576px) {
    .text_section .cta_content h1 {
      color: #fff;
      font-size: 3.6rem;
    }
    .text_section .cta_content p {
      letter-spacing: -0.1rem;
    }
  }
  
  /* <!--BLOG--> */
  .blog {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
    font-family: var(--common-font);
  }
  
  .blog-container {
    position: relative;
  }
  .blog-item .blog-container img {
    width: 100%;
    margin: 0;
  }
  .blog .blog-container .category {
    background-color: var(--colore-principale);
    padding: 0.5rem 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 600;
    font-family: work sans, sans-serif;
    position: absolute;
    width: auto;
    height: auto;
    left: 0;
    bottom: 0;
  }
  .blog-content {
    background-color: #fff;
    padding: 3rem;
  }
  .blog-content h3 {
    text-decoration: none;
    margin: 0 0 10px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--colore-quarto);
    letter-spacing: -0.01em;
    line-height: 24px;
  }
  .blog-content p {
    margin-bottom: 1.5rem;
  }
  .blog-content a {
    color: var(--colore-sesto);
    text-decoration: none;
  }
  .blog-content .read-more {
    font-family: work sans, sans-serif;
    color: #303133;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding-left: 40px;
  }
  .blog-content .read-more::before {
    background-color: #9e8a78;
    position: absolute;
    content: "";
    width: 30px;
    height: 4px;
    left: 0;
    top: calc(50% - 2px);
  }
  .blog-container a {
    text-decoration: none;
    color: #fff;
    font-family: var(--button-font);
  }
  .blog .blog-container img {
    width: 100%;
    margin: 0;
  }
  
  /*@media (max-width: 576px) {
    .blog-heading {
      font-size: 2.2rem;
    }

    /* navbar mobile 
    .navbar-collapse{
      background-color: black;
    }
    
    /* foto mobile 
    .text_section {
        background-attachment: scroll; /* Modifica della modalità di attaccamento dell'immagine di sfondo 
        padding: 100px 0; /* Modifica del padding per adattarsi ai dispositivi mobili 
    } 
    
    /* foto mobile 
    .feedback_section {
      background-attachment: scroll; /* Modifica della modalità di attaccamento dell'immagine di sfondo 
      padding: 100px 0; /* Modifica del padding per adattarsi ai dispositivi mobili 
    } 
  }*/

  @media (max-width: 576px), (max-width: 768px) {
    .blog-heading {
      font-size: 2.2rem;
    }
  
    /* navbar mobile e tablet */
    .navbar-collapse {
      background-color: black;
    }
  
    /* sezione testo mobile e tablet */
    .text_section,
    .feedback_section {
      background-attachment: scroll;
      padding: 50px 20px; /* Riduzione del padding per adattarsi meglio alle dimensioni dello schermo dei telefoni */
    }
  }
  
  @media (min-width: 577px) and (max-width: 992px) {
    .blog-heading {
      font-size: 2.2rem;
    }
  
    /* navbar tablet */
    .navbar-collapse {
      background-color: black;
    }
  
    /* sezione testo tablet */
    .text_section {
      background-attachment: scroll;
      padding: 100px 0; /* Manteniamo il padding originale per i tablet */
    }
  
    /* sezione feedback tablet */
    .feedback_section {
      background-attachment: scroll;
      padding: 100px 0; /* Manteniamo il padding originale per i tablet */
    }
  }
  
  
  .p_dev {
    color: var(--colore-principale);
  }
  
  .dev {
    font-style: italic;
    transition: 0.4s;
  }
  
  .dev:hover {
    color: var(--colore-secondario);
  }
  

  .dsa{
    color:  rgba(160, 36, 106, 0.7);
  }
