:root {
    --dark: #0a0a0a;
    --dark2: #121212;
    --orange: #bd1e1e;
    --light: #f8f8f8;
    --gray: #aaaaaa;
    --orange-light: #ff5555;
    --ombrahover: #0077ff4f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--orange);
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--orange);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px #0077ff4f;
}

.btn-secondary {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-secondary:hover {
    background: var(--orange);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgb(255 255 255 / 11%);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    color: var(--orange);
}

.logo-icon {
    height: 70px;
    object-fit: contain;
    vertical-align: middle;
}

/* MENU DESKTOP - SEMPRE VISIBILE SU PC E TABLET */
#nav-desktop {
    display: block;
}

#nav-desktop ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav-desktop ul li {
    margin-left: 30px;
}

#nav-desktop ul li a {
    color: var(--light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

#nav-desktop ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

#nav-desktop ul li a:hover::after {
    width: 100%;
}

/* HAMBURGER - SOLO SU MOBILE */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.8rem;
    z-index: 1001;
    position: relative;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* MENU MOBILE CENTRATO - SI APRE DAL BASSO DELL'HEADER */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu {
    background: var(--dark2);
    border-radius: 20px 20px 0 0;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 30px 20px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay.show .mobile-menu {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin: 18px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-overlay.show .mobile-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    color: var(--light);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.4s ease;
}

.mobile-menu a:hover {
    color: var(--orange);
}

.mobile-menu a:hover::after {
    width: 60%;
}

/* MOBILE: NASCONDI MENU DESKTOP, MOSTRA HAMBURGER */
@media (max-width: 768px) {
    #nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
        padding: 10px;
    }

    body {
        padding-top: 80px;
    }

    .logo {
        margin-left: 15px;
    }
}

/* ========================
   HERO & CONTENUTI
======================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95)), 
    url('https://i.postimg.cc/R0Z0Hqdj/fotosfondo.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1.4s ease-out;
    justify-content: center;
    align-items: center;
}



.about {
    background: var(--dark2);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--orange), transparent);
    opacity: 0.1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--dark2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px #0077ff4f;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.testimonials {
    background: var(--dark2);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--dark);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    border-left: 4px solid var(--orange);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--orange);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card p {
    margin-bottom: 20px;
    font-style: italic;
}

.client {
    display: flex;
    align-items: center;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goals-section {
    background: var(--dark);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.goal-card {
    background: var(--dark2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px #0077ff4f;
}

.goal-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.goal-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.target-audience {
    background: var(--dark2);
}

.target-list {
    max-width: 800px;
    margin: 0 auto;
}

.target-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.target-icon {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.contact {
    background: var(--dark);
}

.contact-content {
    display: flex;
    gap: 50px;
    padding-top: 100px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: var(--dark2);
    border: 1px solid #333;
    color: var(--light);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

footer {
    background: var(--dark);
    padding: 10px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--orange);
}

.social-icon i {
    color: var(--light);
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--orange);
}

#hero-btns {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1.4s ease-out;
    flex-direction: column;
    align-items: center;
}

#contact {
    padding: 0px;
}

.btn2 {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--orange);
    cursor: pointer;
    animation: pulseAnimation 1.5s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--orange);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

.btn2:hover {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    transform: scale(1.30) !important;
    animation: none;
}

/* SEZIONE DOVE CI TROVIAMO */
#gym {
    padding: 80px 20px;
    background: #000;
    color: #fff;
}

.gym-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

#gym #hours-card {
    flex: 1;
    min-width: 300px;
    background-color: #111;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

#gym #hours-card #hours-title {
    color: #e74c3c;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

#gym #hours-card #hours-content {
    font-size: 16px;
    line-height: 1.9;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gym-flex-container .hour-row {
    display: flex;
    margin-bottom: 8px;
    gap: 10px;
}

.gym-flex-container .day-label {
    flex: 1;
    text-align: left;
}

.gym-flex-container .time-morning {
    flex: 1;
    text-align: center;
}

.gym-flex-container .time-afternoon {
    flex: 1;
    text-align: right;
}

.gym-flex-container .divider {
    border: 1px solid #e74d3c4d;
}

.gym-flex-container .hour-row.weekend .day-label,
.gym-flex-container .hour-row.weekend .time-morning,
.gym-flex-container .hour-row.weekend .time-afternoon {
    color: #e74c3c;
    font-weight: bold;
}

#gym #hours-card .hours-note {
    margin-top: 35px;
    color: #888;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.5px;
    text-align: center;
}

#gym #map-card {
    flex: 1;
    min-width: 300px;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

#gym #map-card #map-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 0px 12px;
    border-radius: 6px;
    font-weight: bold;
    z-index: 10;
    font-size: 1rem;
}

#gym #map-card .map-iframe {
    border: 0;
    width: 100%;
    height: 460px;
}

/* SLIDER PALESTRA */
.palestra-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
}

.palestra-slider .slide {
    display: none;
    width: 100%;
    height: auto;
}

.palestra-slider .slide.active {
    display: block;
}

.palestra-slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .gym-flex-container .hour-row {
        font-size: smaller;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .contact-content {
        flex-direction: column;
    }

    .target-icon {
        height: 20px;
    }

    .footer-links {
        gap: 10px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        margin-top: 60px;
    }

    #titoloall {
        margin-top: 100px;
    }

    #hero-btns {
        display: flex;
        gap: 15px;
        animation: fadeInUp 1.4s ease-out;
        flex-direction: column;
        align-items: center;
        padding-bottom: 100px;
        padding: 20px;
        text-align: center;
        font-size: small;
    }
}

#hr1 {
    border: none;
    height: 1px;
    background-color: var(--orange);
    margin: 40px auto;
    border-radius: 10px;
}

#solo10 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: var(--orange);
    font-size: 20px;
    font-family: sans-serif;
    font-weight: bold;
    margin-top: 30px;
}



   /* Sezione Recensioni */
    #recensioni {
      padding: 60px 16px;
      text-align: center;
      background: #121212;
    }

    #recensioni h2 {
      font-size: 1.9rem;
      color: #bd1e1e;
      margin-bottom: 8px;
      line-height: 1.2;
    }

    #recensioni p.subtitle {
      font-size: 1rem;
      color: #666;
      margin-bottom: 32px;
      font-weight: 500;
      padding: 0 16px;
    }

    /* Icona Google */
    .google-icon {
      width: 18px;
      height: 18px;
      vertical-align: middle;
      margin-left: 6px;
    }

    /* Carousel container */
    .carousel-container {
      position: relative;
      overflow: hidden;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 12px;
    }

    .carousel {
      display: flex;
      animation: scroll 45s linear infinite; /* Più veloce su mobile */
      min-width: 100%;
    }

    .carousel:hover {
      animation-play-state: paused;
    }

    /* Card — Ottimizzate per mobile */
    .card {
      flex: 0 0 auto;
      width: 260px; /* Base */
      margin: 0 12px;
      padding: 20px 16px;
      background: white;
      border-radius: 14px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      text-align: left;
      border-left: 4px solid #bd1e1e;
      transition: transform 0.3s ease;
      min-height: 180px;
    }

    .card:hover {
      transform: translateY(-3px);
    }

    .card .nome {
      font-weight: 700;
      color: #0052db;
      font-size: 1.1rem;
      margin-bottom: 6px;
      line-height: 1.3;
    }

    .card .data {
      color: #888;
      font-size: 0.8rem;
      margin-bottom: 10px;
      line-height: 1.4;
    }

    .card .stelle {
      color: #ffc107;
      font-size: 1.2rem;
      margin-bottom: 10px;
      line-height: 1;
    }

    .card p {
      font-size: 0.9rem;
      color: #555;
      line-height: 1.6;
      margin-bottom: 0;
    }

    /* Bottone "Aggiungi una recensione" */
    .btn-recensione {
      display: block;
      width: 100%;
      max-width: 320px;
      margin: 40px auto 10px;
      padding: 16px 24px;
      background: #121212;
      color: white;
      font-weight: 600;
      font-size: 1.1rem;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
      transition: all 0.3s ease;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .btn-recensione:hover {
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(66, 133, 244, 0.4);
      color: #000;
    }

    .btn-recensione svg {
      width: 20px;
      height: 20px;
    }

    /* Animazione carousel — calcolata per 14 card */
    @keyframes scroll {
      from { transform: translateX(0); }
      to { transform: translateX(calc(-260px * 7 - 12px * 6)); } /* 7 card originali + 6 margini */
    }

    /* Media Queries — MOBILE FIRST */
    @media (max-width: 480px) {
      .card {
        width: 220px; /* Più strette su mobile */
        margin: 0 10px;
        padding: 18px 14px;
        min-height: 170px;
      }
      .card .nome {
        font-size: 1.05rem;
      }
      .card p,
      .card .data {
        font-size: 0.85rem;
      }
      .carousel {
        animation-duration: 20s; /* Più veloce su schermi piccoli */
      }
      @keyframes scroll {
        from { transform: translateX(0); }
        to { transform: translateX(calc(-220px * 7 - 10px * 6)); } /* 7 card * 220px + 6 margini */
      }
    }

    @media (max-width: 360px) {
      .card {
        width: 200px;
        margin: 0 8px;
        padding: 16px 12px;
      }
      .carousel {
        animation-duration: 18s;
      }
      @keyframes scroll {
        from { transform: translateX(0); }
        to { transform: translateX(calc(-200px * 7 - 8px * 6)); }
      }
    }

    /* Tablet & Desktop */
    @media (min-width: 769px) {
      #recensioni h2 {
        font-size: 2.2rem;
      }
      .card {
        width: 280px;
        margin: 0 15px;
        padding: 20px;
      }
      .carousel {
        animation-duration: 30s;
      }
      @keyframes scroll {
        from { transform: translateX(0); }
        to { transform: translateX(calc(-280px * 7 - 15px * 6)); }
      }
      
    }