p{
    font-family: 'Belanosima', sans-serif;
}

*{
    margin:0;
    padding:0;
    font-family: 'Lato', sans-serif; 
}

html{
    scroll-behavior: smooth;
}

/* trackbar */

/* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #050817;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #f44336;
    border-radius:15px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #9a221a;
  }

/*--header and nav sections--*/

.header{
    min-height:100vh;
    width: 100%;
    background-position:center;
    background-size:cover;
    position:relative;
    background-image:linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/backgroundlp.jpg);
}

nav{
    display:flex;
    padding:0 6%;
    justify-content: space-between;
    align-items: center;
}

nav img{
    width:180px;
    box-sizing: border-box;
    transition: ease .7s;
}

.nav-links{
    flex:1;
    text-align:right;
}

.nav-links ul li{
    list-style:none;
    display:inline-block;
    padding: 8px 12px;
    position:relative;
}

.nav-links ul li a{
    text-decoration:none;
    color:#fff;
    font-size:15px;
    font-family: 'Belanosima', 'sans-serif';
}

.fa-brands{
    color:#fff;
    font-size:30px;
}

.fa-brands li{
    padding:0 10px;
}

.nav-icons{
    color:#fff;
    margin-right:20px;
    padding:0 10px;
}

.hover-links::after{
    content:'';
    width:0%;
    height:2px;
    background:#f44336;
    display:block;
    margin:auto;
    transition: 0.5s;
}
.hover-links:hover::after{
    width:100%;
}

.text-box{
    width:90%;
    color:white;
    position: absolute;
    top:61%;
    left:50%;
    transform:translate(-50%, -50%);
    text-align:center;
}

.text-box h1{
    font-size:62px;
}

.text-box h1 span{
    color:#f44336;
}

.text-box p{
    margin:30px 0px;
    font-size:26px;
    color:#fff;
}

.text-box .oneliner{
    font-size: 34px;
}

.text-box .oneliner .oneliner-span-corpo{
    font-weight: 750;
    color:#e4a511;
}

.text-box .oneliner .oneliner-span-vita{
    color:#66a5c4;
    font-weight: 750;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border:2px solid white;
    padding:12px 34px;
    font-size:23px;
    background:transparent;
    position:relative;
    cursor:pointer;
    border-radius:25px;
    transition: .7s ease;
    font-family: 'Belanosima', 'sans-serif';
}

.hero-btn:hover{
    background: #f44336;
    border:2px solid #f44336;
}

.nav-links .hero-btn{
    padding:12px 25px;
}

.nav-links .hero-btn:hover{
    font-size:18.5px;
    font-weight: 500;
}

.text-box .hero-btn:hover, .cta-btn:hover{
    font-weight:520;
    font-size: 28px;
}

nav .fa-solid{
    display:none;
}

.nav-icons-mob{
    display:none;
}

/* media query for smaller screens */

@media(max-width: 700px){
    .text-box h1{
        font-size:28px;
    }
    .text-box .oneliner{
        font-size:24px;
    }
    .text-box p{
        font-size:19px;
    }
    .nav-links ul li{
        display:block;
    }
    .nav-links{
        position:fixed;
        background-color: #f44336;
        height: 100vh;
        width:200px;
        top:0;
        right:-200px;
        text-align:left;
        z-index:2;
        transition:1s;
    }
    nav .fa-solid{
        display:block;
        color: #fff;
        margin:10px;
        font-size:22px;
        cursor:pointer;
    }
    .nav-links ul{
        padding:20px;
    }
    .nav-links .menu-btn{
        padding:10px 0;
        padding-left:25px;
    }
    .nav-icons{
        display:none;
    }
    .nav-icons-mob{
        display:flex;
        margin-top:290px;
        flex-direction: row;
        justify-content: center;
    }
}

/*--facilities--*/

.fac-courses-background{
    background: url(images/background-white-lines.jpeg);
    background-size:cover;
}

.facilities{
    width:90%;
    margin:auto;
    text-align:center;
    padding-top:50px;
}

.facilities h1{
    font-weight:600;
    font-size:36px;
}

.fac-courses-background p{
    padding:10px;
    color:#777;
    line-height:20px;
    font-size:20px;
}

.facilities-col{
    flex-basis:32%;
    border-radius: 10px;
    margin-bottom:30px;
    position:relative;
    overflow: hidden;
    cursor:pointer;
}

.facilities-col img{
    width:100%;
    display:block;
}

.facilities-col p{
    padding:0;
}

.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;
    
}

.layer{
    background:transparent;
    height:100%;
    width:100%;
    position:absolute;
    top:0;
    left:0;
    transition:0.5s;
}

.layer:hover{
    background: rgba(226,0,0,0.77);
}

.layer h3{
    color:#fff;
    font-weight:600;
    width:100%;
    font-size:30px;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    position:absolute;
    opacity:0;
    transition:0.5s;
}

.layer p{
    color:#fff;
    font-weight:350;
    width:100%;
    font-size:18px;
    bottom:0;
    left:50%;
    top:55%;
    transform:translateX(-50%);
    position:absolute;
    opacity:0;
    transition:0.5s;
}

.layer br{
    display:none;
}

.layer:hover h3{
    opacity:1;
    bottom:49%;
}

.layer:hover p{
    opacity:1;
    bottom:49%;
}

@media(max-width:700px){
    .facilities{
        padding-top:35px;
    }

    .facilities h1{
        margin-bottom:15px;
    }

    .facilities p, .courses p{
        margin-bottom:15px;
        font-size:14px;
    }

    .layer p{
        font-size:16px;
    }

    .layer br{
        display:inline;
    }
    
    .row{
        flex-direction:column;
    }
}


/*--courses--*/

.courses{
    width:90%;
    margin:auto;
    text-align:center;
    padding:50px 0 20px;
}

.courses h1{
    font-weight:600;
    font-size:36px;
}

.courses p{
    padding:10px;
    color:#777;
    line-height:20px;
}

.row{
    display:flex;
    justify-content: space-between;
    margin: 3% 5% 0;
}

.courses-col{
    flex-basis:32%;
    border-radius: 10px;
    margin-bottom:30px;
    position:relative;
    overflow: hidden;
    cursor:pointer;
}

.courses-col img{
    width:100%;
    display:block;
}

.courses-col p{
    padding:0;
}

.courses-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.layer table{
    color:#fff;
    font-weight:350;
    font-size:18px;
    bottom:0;
    left:50%;
    top:52%;
    transform:translateX(-50%);
    position:absolute;
    opacity:0;
    transition:0.5s;
    width: 82%;
}

.tgiorno{
    font-weight:700;
}

.layer:hover table{
    opacity: 1;
    bottom:49%;
}

@media(max-width:700px){
    .layer h3{
        font-size: 28px;
    }
    .layer th,.layer .tgiorno{
        font-size:16px;
    }
    .layer td{
        font-size:14px;
    }
}


/* testimonials */

.testim-cta-background{
    background-image: linear-gradient(rgba(4,9,30,-0.5),rgba(4,9,30,-0.5)), url(images/background-white-soft.jpeg);
    background-size: cover;
}

.testimonials{
    width:80%;
    margin:auto;
    text-align:center;
    padding:50px 0;
}

.tm-text-box h1{
    margin-bottom:35px;
    font-size:45px;
    font-weight:600;
}

.tm-text-box span{
    color:#f44336;
}

.testimonial {
    display: inline-block;
    width: 30%;
    margin: 20px;
    background-color: #fff3f369;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor:pointer;
    transition: .7s;
}
 
.testimonial:hover{
    box-shadow : 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    text-align: center;
}

.testimonial-content a{
    text-decoration: none;
    color:#000;
}
  
.testimonial-text {
    font-size: 18px;
    margin-bottom: 10px;
}
  
  
.testimonial-rating .fas, .fa-star-half-stroke {
    color: #f44336;
}
  
.testimonial-author {
    font-size: 14px;
    color: #777;
}

@media(max-width:700px){
    .testimonials h1{
        font-size:35px;
    }
    .testimonial{
        margin:20px 0;
        width:80%;
    }
}

/* video embed */

.gym-video-section {
    padding: 40px;
    text-align: center;
    justify-content: center;
}

.video-container {
    max-width: 900px; /* Max width for better scaling */
    margin: 0 auto; /* Center it on the page */
    padding: 20px;
    background-color: #fff; /* White background for the video */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 8px;
}

.gym-video {
    width: 100%; /* Full width of container */
    height: 500px; /* Fixed height for video */
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gym-video-section {
        padding: 20px; /* Reduce padding but keep space for text */
    }

    .gym-video-section p{
        max-width:100%;
    }
    
    .video-container {
        width: 90%;
        max-width: 800px;
        margin: 10px auto;
        border-radius: 8px;
        overflow: hidden;
    }

    .gym-video {
        width: 100%;
        height: auto;
        max-height: 350px; /* Ensures visibility */
        object-fit: contain;
    }

    
}

h2 {
    font-size: 2.5rem;
    color: #333; /* Dark color for the header */
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    color: #666; /* Lighter gray for description */
    margin-bottom: 20px;
    text-align: center;
}



/* Interactive collage */

.collage-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
  }

.collage-section p{
    max-width:85%;
}

  /* Desktop Container for the photos */
  #photo-container {
    width: 70vw;
    height: 70vh;
    border: 2px solid #f44336b6;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: #fff3f369;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
    transition:0.5s;
  }
  #photo-container:hover{
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.5);
  }


  /* Desktop Photo Styles */
  /* Default size increased from 150px to 170px; Active size increased from 190px to 204px (1.2×) */
  .photo {
    position: absolute;
    width: 170px;
    border: 5px solid white;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: width 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease;
    border-radius: 5px;
    user-select: none;                   
    -webkit-tap-highlight-color: transparent;
    outline: none;
    
    /* Additional properties to help with touch feedback */
    touch-action: none;
    -ms-touch-action: none;
  }
  
  /* Change cursor when active */
  .photo:active {
    cursor: grabbing;
  }
  
  /* When grabbed, enlarge to 204px smoothly */
  .photo.active {
    width: 204px;
  }
  
  /* Styled Restore Button */
  #restore-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  #restore-btn:hover {
    background-color: #9a221a;
    transform: scale(1.05);
  }
  
  /* Mobile & Smaller Device Optimizations */
   @media (max-width: 600px) {
  /* Make the container a bit larger on mobile for more background space */
  #photo-container {
    width: 95vw;
    height: 75vh;
  }

  /* Increase photo sizes for mobile */
  .photo {
    width: 150px; /* Adjusted to a larger size */
  }

  .photo.active {
    width: 180px; /* Adjusted to a larger size */
  }

  #restore-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  h2 {
    font-size: 20px;
    margin: 15px 0;
  }

  .collage-section p {
    font-size: 14px;
    max-width: 90%;
  }
}

  
  

/* cta */

.cta{
    margin:50px auto 40px;
    width:80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/cta-background.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding:100px 0;
}
.cta h1{
    color:#fff;
    margin-bottom: 50px;
    padding:0;
    font-size:40px;
}

@media(max-width:700px){
    .cta{
        padding:75px 0;
        margin-top:50px;
    }
    .cta h1{
        font-size:24px;
        margin:0 20px 40px;
    }
    .cta br{
        display:none;
    }
    .cta .hero-btn{
        padding:12px 12px;
    }
}

/* footer */

.footer{
    width:100%;
    text-align: center;
    padding:30px 0;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.footer p{
    color:#777;
    font-weight:300;
    line-height: 20px;
}
.footerp{
    padding:14px 0 0;
    text-align: center;
}
.footer .fa-brands{
    color:#f44336;
    margin:0 13px;
    cursor:pointer;
    padding: 14px 0;
    font-size:20px;
}
.icons .fa-brands{
    font-size:16px;
}

.footer .fa-solid{
    color:#f44336;
    cursor:pointer;
    font-size:20px;
    margin-left:5px;
}

.pCarlo{
    font-size:20px;
}

@media(max-width:700px){
    .footerp{
        font-size:14px;
        padding:14px 10px 0;
    }
    .pCarlo{
        font-size:18px;
        padding:0 10px;
    }
    .footer .fa-solid{
        font-size:19px;
    }
}

/* sub header */

.subHeader{
    height:50vh;
    width:100%;
    background-image:linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/backgroundlp.jpg);
    background-position: center;
    background-size: cover;
    text-align:center;
    color:#fff;   
}

.subHeader h1{
    margin-top:80px;
    font-size: 38px;
    font-size:45px;
}

.ourteam-bg{
    background:url(images/ot-background.jpg);
    background-size:cover;
    background-position:center;
}

.ourTeam{
    width:80%;
    padding-bottom: 40px;
    margin:auto;
}
.ourteam-tb{
    text-align:center;
}
.ourteam-tb h1{
    font-size:45px;
    padding-top:35px;
}
.ourteam-tb p{
    color:#777;
    margin:25px 0 50px;
    font-size:19px;
}

.ourTeam .row{
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: .7s;
    border-radius:10px;
    padding:0 20px;
}

.ourTeam .row:hover{
    box-shadow : 0 0 20px 0 rgba(0, 0, 0, 0.2); 
}

.ourteam-col{
    flex-basis: 48%;
    padding:30px 2px;
    transition: 1s;
}
.ourteam-col img{
    width:45%;
    border-radius: 8px;
}
.ourteam-col h1{
    padding-top:0;
    font-size: 36px;
}
.ourteam-col p{
    padding:15px 0 25px;
    color:#777;
    font-size:19px;
}

.antonio-img{
    margin-left:250px;
    margin-top:25px;
}

.adriana-img{
    margin-right:250px;
    margin-top:10px;
}

.pilates-img{
    margin:30px 0 0 200px;
}

.karate-img{
    margin-top:35px;
    margin-left:25px;
}

.bjj-img{
    margin:30px 0 0 180px;
    width:60% !important;
}

.red-btn{
    border:2px solid #000;
    color:#000;
}
.red-btn:hover{
    color:#fff;
}

@media(max-width:700px){
    .subHeader h1{
        margin-top:60px;
    }
    .ourteam-tb h1{
        font-size:41px;
    }
    .red-btn{
        font-size:20px;
    }
    .ourteam-col{
        padding:20px 2px;
        text-align:center !important;
    }
    .ourteam-col img{
        margin:0;
        width:100% !important;
    }
}

/* courses */
.courses-bg .footer{
    color:#fff;
}
.cssection{
    color:#fff;
}
.cssection h1{
    font-size:45px;
}

/* fix courses bg? maybe lighter */

.courses-bg{
    background: url(images/courses-bg.jpeg);
    background-size:cover;
}
.cs-col{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 1.4);
    padding: 20px;
    text-align:center;
    margin:0 20px;
    transition: .7s;
}
.cs-col img{
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
}
.cs-col h1{
    margin-bottom:10px;
    font-size:34px;
}
.black-btn{
    margin-top:15px;
    font-size:20px;
}
.cs-col table{
    width:100%;
    font-size:15px;
}
.cs-col:hover{
    box-shadow : 0 0 20px 0 rgba(0, 0, 0, 2.2);     
}


@media(max-width:700px){
    .courses-bg{
        background-size:auto;
    }
    .cssection{
        padding-top:30px;
    }
    .cs-col{
        margin:0;
        padding:20px 0;
    }
}

/* cta courses button */

.cta-courses{
    text-align:center;
    margin:22px 0 35px;
}

@media(max-width:700px){
    .cta-courses{
        margin:0 16px;
    }
}

/* about us content */

.about{
    width:100%;
}




/* reach us content */

.reach-us-bg{
    background:linear-gradient(rgba(4,9,30,0.3),rgba(4,9,30,0.3)), url(images/reachus-bg.jpg);
    color:#fff;
}

.reach-us{
    text-align:center;
    width:80%;
    margin:auto;
    padding:30px 0 10px;
}

.reach-us i{
    color:#f44336;
    font-size:30px;
}

.reach-us iframe{
    width:80%;
}

.reach-us .contact-row{
    padding:20px;
}


.contact-col .contact-row{
    display:flex;
}

.reach-us h1{
    font-size:45px;
    margin-bottom:20px;
}

.reach-us p{
    color:#777;
    margin:20px 0;
    font-size:20px;
}

@media(max-width:700px){
    .reach-us{
        width:100%;
    }
}