/*
Theme Name: Gym Dark Pro
Theme URI: https://example.com
Author: Gianni Caruana
Author URI: https://example.com
Description: Tema moderno per palestra con design dark e forme irregolari
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gym-dark-pro
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
button, input, textarea, select{
    border: 0;
}


:root {
    --color-primary: #ff0015;
    --color-secondary: #ff1a2e;
    --color-accent: #ff3347;
    --color-dark: #0a0a0a;
    --color-dark-2: #1a1a1a;
    --color-dark-3: #2a2a2a;
    --color-text: #f0f0f0;
    --color-text-muted: #999999;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius: 4px;
    --radius-lg: 8px;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nascondi WordPress Admin Bar */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
    overflow-x: hidden;
    width: 100%;
}

body.admin-bar {
    margin-top: 0 !important;
}

/* Previeni scroll orizzontale su tutti i dispositivi */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

#page {
    overflow-x: hidden;
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.875rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .site-header {
        top: auto;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.8);
        padding: 0.5rem 0;
    }
    
    .site-header.scrolled {
        padding: 0.5rem 0;
    }
    
    .header-container {
        justify-content: center;
        gap: 2rem;
    }
    
    .hamburger-menu,
    .login-icon {
        margin: 0;
    }
}

/* Header con sfondo nero quando si scrolla */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
}


.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    display: none;
}

/* ===== LOGIN ICON ===== */
.login-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    cursor: pointer;
    display: none; /* Nascosto dall'header principale */
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10001;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    text-decoration: none;
    margin-left: auto;
    margin-right: 10px;
}

.login-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 69, 0, 0.4);
}

.login-icon:hover::before {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.6), rgba(255, 140, 0, 0.6));
    box-shadow: 0 8px 35px rgba(255, 69, 0, 0.6);
}

.login-icon:hover {
    transform: translateX(-5px) scale(1.05);
}

.login-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
    transition: all 0.3s ease;
}

.login-icon:hover svg {
    stroke: var(--color-accent);
    transform: scale(1.1);
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    cursor: pointer;
    display: flex; /* Visibile su desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10001;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border: 0;
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 69, 0, 0.4);
}

.hamburger-menu:hover::before {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.6), rgba(255, 140, 0, 0.6));
    box-shadow: 0 8px 35px rgba(255, 69, 0, 0.6);
}

.hamburger-menu:hover {
    transform: translateX(-5px) scale(1.05);
}

.hamburger-menu span {
    width: 40px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.hamburger-menu.active {
    transform: translateX(-5px);
}

.hamburger-menu.active::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3));
    box-shadow: 0 5px 35px rgba(255, 255, 255, 0.3);
}

/* Su mobile: hamburger resta visibile e diventa X quando il menu è aperto */
@media (max-width: 768px) {
    .hamburger-menu.active {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}



/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Scorre da destra su desktop */
    bottom: 0;
    width: 350px;
    max-width: 90%;
    background: var(--color-dark);
    z-index: 9999!important;
    transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
}

.mobile-menu-overlay.active {
    right: 0; /* Appare da destra su desktop */
    box-shadow: -10px 0 50px rgba(255, 69, 0, 0.3);
}

.mobile-menu-content {
    position: relative;
    padding: 5rem 2rem 3rem;
    min-height: auto;
}

/* Header actions nel menu */
.menu-header-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10002;
}

/* Icona login/logout nel menu */
.menu-login-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border: 0;
}

.menu-login-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 69, 0, 0.4);
}

.menu-login-icon:hover::before {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.6), rgba(255, 140, 0, 0.6));
    box-shadow: 0 8px 35px rgba(255, 69, 0, 0.6);
}

.menu-login-icon:hover {
    transform: translateX(-5px) scale(1.05);
}

.menu-login-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
    transition: all 0.3s ease;
}

.menu-login-icon:hover svg {
    stroke: var(--color-accent);
    transform: scale(1.1);
}

/* Pulsante chiusura menu */
.close-menu-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-menu-btn span {
    position: absolute;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transition: all 0.3s ease;
}

.close-menu-btn span:nth-child(1) {
    transform: rotate(45deg);
}

.close-menu-btn span:nth-child(2) {
    transform: rotate(-45deg);
}

.close-menu-btn:hover span {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Nascondi hamburger quando menu è aperto */
.hamburger-menu.active {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-content::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 10px;
    pointer-events: none;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-overlay.active .mobile-nav li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav a {
    display: block;
    padding: 0.9rem 1.4rem;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    transition: height 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--color-primary);
    transform: translateX(10px);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.mobile-nav a:hover::before {
    height: 100%;
}

/* Sottomenu */
.mobile-nav .sub-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.mobile-nav .sub-menu li {
    margin-bottom: 0.25rem;
}

.mobile-nav .sub-menu a {
    padding: 0.7rem 1.4rem 0.7rem 3.8rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.mobile-nav .sub-menu a::before {
    width: 3px;
    left: 2.4rem;
}

.mobile-nav .sub-menu a:hover {
    transform: translateX(5px);
    padding-left: 4rem;
}

/* Sottomenu di secondo livello */
.mobile-nav .sub-menu .sub-menu {
    margin-top: 0.25rem;
    margin-left: 1.5rem;
}

.mobile-nav .sub-menu .sub-menu a {
    padding-left: 5.6rem;
    font-size: 0.8rem;
}

.mobile-nav .sub-menu .sub-menu a::before {
    left: 4.2rem;
}

.mobile-nav .sub-menu .sub-menu a:hover {
    padding-left: 5.8rem;
}

/* Indicatore di menu con figli */
.mobile-nav .menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    right: 1.4rem;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.mobile-nav .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* Nascondi vecchia nav */
.main-nav {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 6rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay scuro per hero con immagine di sfondo */
.hero-section.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.85) 100%);
    z-index: 1;
    opacity: 0;
}

.hero-section.has-bg-image .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section.has-bg-image .hero-shape {
    opacity: 0.25;
    z-index: 15;
}

.hero-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
    z-index: 15;
    pointer-events: none;
}

.hero-shape-1 {
    width: 800px;
    height: 800px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 600px;
    height: 600px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.2rem;
    color: #f0f0f0;
    animation: slideInLeft 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    animation: slideInLeft 1s ease 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease 0.4s backwards;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid var(--color-primary);
    border-radius: 0;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    background: var(--color-primary);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.btn-secondary:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text);
}

/* ===== IRREGULAR BLOCKS SECTION ===== */
.blocks-section {
    padding: 8rem 2rem;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.blocks-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Effetto hover: blocco in hover cresce, altri si riducono */
.blocks-container:has(.block-item:hover) .block-item:not(:hover) {
    transform: scale(0.85);
    opacity: 0.6;
    filter: blur(2px);
}

/* Stile per link dei blocchi */
.block-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.block-item {
    position: relative;
    padding: 2.5rem;
    background: var(--color-dark-2);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-item.has-link {
    cursor: pointer;
}

.block-item.has-link:hover {
    box-shadow: 0 20px 60px rgba(255, 69, 0, 0.3);
}

/* Overlay scuro per blocchi con immagine di sfondo */
.block-item.has-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.75) 100%);
    z-index: 0;
    transition: all 0.5s ease;
}

.block-item.has-bg-image:hover::after {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.65) 100%);
}

.block-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.block-item:hover::before {
    opacity: 0.15;
}

.block-item:hover {
    transform: scale(1.4)!important;
    z-index: 10;
  
}

/* Forme irregolari diverse per ogni blocco */
.block-item:nth-child(1) {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.block-item:nth-child(2) {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.block-item:nth-child(3) {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.block-item:nth-child(4) {
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 100%);
}

.block-item:nth-child(5) {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.block-item:nth-child(6) {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

.block-content {
    position: relative;
    z-index: 1;
}

.block-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.block-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.block-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CLASSES/CORSI SECTION ===== */
/* ===== COURSES ARCHIVE - LAYOUT ALTERNATO ===== */
.courses-archive {
    background: var(--color-dark);
    padding-top: 80px;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.course-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-section.animated {
    opacity: 1;
    transform: translateY(0);
}

.course-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    width: 100%;
}

.course-section.reversed .course-content {
    direction: rtl;
}

.course-section.reversed .course-text {
    direction: ltr;
}

.course-text {
    padding: 0 80px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.course-section.animated .course-text {
    opacity: 1;
    transform: translateX(0);
}

.course-section.reversed.animated .course-text {
    transform: translateX(0);
}

.course-section.reversed .course-text {
    transform: translateX(30px);
}

.course-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.course-description {
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.course-info-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.meta-item {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.btn-course-details {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid var(--color-primary);
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: var(--transition);
    background: var(--color-primary);
}

.btn-course-details:hover {
    background: transparent;
    color: var(--color-primary);
}

.course-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.course-section.animated .course-image {
    opacity: 1;
    transform: scale(1);
    padding: 2%;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-section:hover .course-image img {
    transform: scale(1.05);
}

.course-image .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.no-courses {
    text-align: center;
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-courses h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.no-courses p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* ===== COURSES HOME SECTION ===== */
.courses-home-section {
    background: var(--color-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 968px) {
    .course-content {
        grid-template-columns: 1fr;
        
    }
    
    .course-section.reversed .course-content {
        direction: ltr;
    }
    
    .course-section {
        min-height: auto;
        
    }
    
    .course-title {
        font-size: 2rem;
    }
    
    .course-description {
        font-size: 1rem;
    }
}

/* Old classes styles (deprecated but kept for backward compatibility) */
.classes-section {
    padding: 8rem 2rem;
    background: var(--color-dark-2);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.classes-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.class-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.class-card {
    background: var(--color-dark-3);
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.class-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
    clip-path: polygon(0% 0%, 98% 0%, 100% 100%, 0% 98%);
}

.class-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.class-info {
    padding: 2rem;
}

.class-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.class-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.class-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* ===== TRAINER PAGE ===== */
.trainer-page {
    background: var(--color-dark);
    min-height: 100vh;
}

.trainer-hero {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.trainer-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.trainer-content-left {
    z-index: 2;
    position: relative;
}

.trainer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trainer-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trainer-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.8rem;
}

.trainer-image-wrapper {
    position: relative;
    z-index: 1;
    float: right;
    width: 45%;
    max-width: 600px;
    margin: 0 0 2rem 3rem;
    shape-outside: margin-box;
}

.trainer-featured-image {
    width: 100%;
    height: auto;
    opacity: 0.85;
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.trainer-featured-image:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

/* Galleria */
.trainer-gallery {
    padding: 4rem 2rem;
    background: var(--color-dark-2);
}

.trainer-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.trainer-gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

.trainer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.trainer-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.trainer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trainer-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.trainer-gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* Responsive Trainer */
@media (max-width: 968px) {
    .trainer-hero-container {
        padding: 0;
    }
    
    .trainer-image-wrapper {
        width: 50%;
        margin: 0 0 1.5rem 2rem;
    }
    
    .trainer-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 768px) {
    .trainer-image-wrapper {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 2rem 0;
    }
    
    .trainer-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .trainer-gallery-item {
        grid-column: span 1 !important;
        grid-row: span 2 !important;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .trainer-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .trainer-gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ==========================================================================
   Calendario Settimanale
   ========================================================================== */

.calendario-page {
    padding: 6rem 0 4rem;
    background: var(--color-dark);
    min-height: 100vh;
}

.calendario-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calendario-header h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.week-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0;
    background: transparent;
}

.week-navigation .btn {
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid var(--color-primary);
}

.week-navigation .btn:hover {
    background: transparent;
    color: var(--color-primary);
}

.current-week {
    text-align: center;
    width: 100%;
}

.week-nav-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.current-week strong {
    display: inline;
    font-size: 1.3rem;
    color: var(--color-text);
    font-weight: 600;
}

.week-dates {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    display: inline;
}

.calendario-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.calendario-header-row {
    display: grid;
    grid-template-columns: 80px repeat(6, minmax(150px, 1fr));
    background: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 2px;
    width: 100%;
}

.calendario-grid-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 70vh;
    margin-bottom: 3rem;
}

.calendario-grid-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.calendario-grid-wrapper::-webkit-scrollbar-track {
    background: var(--color-dark-2);
}

.calendario-grid-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

.calendario-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

.calendario-grid {
    display: grid;
    grid-template-columns: 80px repeat(6, minmax(150px, 1fr));
    gap: 2px;
    background: var(--color-dark);
    overflow: hidden;
    width: 100%;
}

.calendar-cell {
    background: var(--color-dark-2);
    padding: 0.8rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.header-cell {
    background: var(--color-dark-2);
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    min-height: 80px;
    padding: 0.8rem;
    box-sizing: border-box;
}

.time-header {
    background: var(--color-dark-2);
    color: var(--color-text-muted);
    font-weight: 500;
}

.day-name {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.day-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: normal;
}

.time-cell {
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.slot-cell {
    position: relative;
    transition: all 0.2s;
    align-items: stretch;
    max-width: 100%;
    overflow: hidden;
    height: 120px;
}

.slot-cell:hover .slot-content:not(.slot-full):not(.admin-view) {
    transform: translateY(-2px);
}

.slot-content {
    width: 100%;
    text-align: center;
    transition: transform 0.2s;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slot-available {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4ade80;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.check-icon {
    width: 18px;
    height: 18px;
    stroke: #4ade80;
    stroke-width: 2.5;
}

.slot-course {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    display: none!important;
}

.slot-availability {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.spots-available {
    background: transparent;
    color: var(--color-text-muted);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.slot-empty {
    color: var(--color-dark-3);
    font-size: 1.5rem;
    font-weight: 300;
}

.slot-full {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 0, 21, 0.2), rgba(204, 0, 21, 0.3)) !important;
    position: relative;
}

.slot-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 0, 21, 0.1));
    pointer-events: none;
}

.slot-full .slot-available {
    color: var(--color-primary);
}

.slot-full .check-icon {
    display: none;
}

.slot-full-badge {
    color: red;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn-book {
    background: linear-gradient(135deg, var(--color-primary), #cc0015);
    color: white;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 120px;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    box-shadow: 0 4px 12px rgba(255, 0, 21, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--color-primary);
}

.btn-book:hover {
    transform: translateY(-2px) scale(1.05);
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(255, 0, 21, 0.3);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.calendario-legend {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--color-dark-2);
}

.calendario-legend h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.calendario-legend p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.calendario-legend strong {
    color: var(--color-text);
}

/* Modale Prenotazione */
.booking-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: none;
}

.booking-modal[style*="display: block"],
.booking-modal[style*="display: flex"] {
    display: block !important;
}

.booking-modal-content {
    background: var(--color-dark-2);
    margin: 5% auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.booking-modal-close {
    color: rgba(255, 255, 255, 0.5);
    float: right;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    clip-path: circle(50%);
    position: relative;
    overflow: hidden;
}

.booking-modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    clip-path: circle(50%);
}

.booking-modal-close:hover::before {
    width: 100px;
    height: 100px;
}

.booking-modal-close:hover {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.booking-modal-close:active {
    transform: rotate(180deg) scale(0.9);
}

.booking-modal h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#booking-slot-info {
    background: var(--color-dark);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

#booking-slot-info p {
    margin: 0.5rem 0;
    color: var(--color-text);
    font-size: 0.95rem;
}

#booking-slot-info strong {
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--color-dark);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group select {
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(255, 0, 21, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.form-group select option {
    background: var(--color-dark);
    color: var(--color-text);
    padding: 0.5rem;
}

.booking-message {
    margin: 1rem 0;
    padding: 1rem;
    font-size: 0.9rem;
}

.booking-message .success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.booking-message .error {
    color: var(--color-primary);
    background: rgba(255, 0, 21, 0.1);
}

.booking-message .loading {
    color: var(--color-text-muted);
    background: rgba(136, 136, 136, 0.1);
}

#booking-form button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-dark);
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#booking-form button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 5% 100%);
}

#booking-form button[type="submit"]:active {
    transform: translateY(0);
}

.slot-empty {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    opacity: 0.3;
}

.calendario-legend {
    background: var(--color-dark-800);
    padding: 2rem;
    text-align: center;
}

.calendario-legend h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.calendario-legend p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* Responsive */
@media (max-width: 956px) {
    /* ===== MOBILE MENU OVERLAY ===== */
    body {
        isolation: isolate !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }

    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .site-header {
        z-index: 100001 !important;
        isolation: isolate !important;
        max-width: 100vw;
    }

    #page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .site-main {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Login/logout visibile nell'header su mobile, a sinistra */
    .header-actions .login-icon {
        display: flex !important;
        width: 40px;
        height: 40px;
        position: fixed !important;
        left: 1rem !important;
        bottom: 8px !important;
        z-index: 100002 !important;
    }
    
    .header-actions .pending-notification-badge {
        margin-left: 0 !important;
    }

    /* Nascondi navbar e login quando un popup è aperto */
    body.popup-open .site-header {
        transform: translateY(100%) !important;
        transition: transform 0.3s ease !important;
    }
    body.popup-open .header-actions .login-icon {
        display: none !important;
    }

    /* ===== MOBILE MENU OVERLAY - sopra la navbar ===== */
    .mobile-menu-overlay {
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.4s ease !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .mobile-menu-overlay.active {
        transform: translateY(0) !important;
        right: 0 !important;
    }
    
    /* Nascondi il pulsante X dentro al menu su mobile */
    .close-menu-btn {
        display: none !important;
    }
    
    /* Nascondi login/logout e header-actions dal menu su mobile (già nella navbar) */
    .menu-header-actions {
        display: none !important;
    }
    
    .mobile-menu-content {
        padding: 1.5rem 1.5rem 2rem;
    }
    
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    /* Header sempre in modalità scrolled su mobile - in basso */
    .site-header {
        top: auto !important;
        bottom: 0 !important;
        background: linear-gradient(180deg, rgba(20, 10, 12, 0.98), rgba(10, 5, 6, 0.99)) !important;
        backdrop-filter: blur(12px);
        box-shadow: 0 -2px 20px rgba(255, 0, 21, 0.15), 0 -1px 0 rgba(255, 0, 21, 0.3) !important;
        padding: 0.5rem 0 !important;
        border-top: 1px solid rgba(255, 0, 21, 0.2);
    }
    
    /* No padding-top necessario, header è in basso */
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Padding bottom per compensare la navbar fissa in basso */
    body {
        padding-bottom: 60px !important;
    }

    
    .trainer-featured-image {
        margin-top: 1rem;
        max-height: 70vh;
    }
    .single-class-hero {
        margin-top: 1rem;
    }
    
    /* Nascondi le forme animate in mobile */
    .hero-shape,
    .hero-shape-1,
    .hero-shape-2 {
        display: none !important;
    }
    
    /* Layout verticale per mobile - un giorno alla volta */
    .calendario-wrapper {
        padding: 0;
    }
    
    .calendario-header-row {
        display: flex !important;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 1rem;
        background: var(--color-dark-2);
        margin-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .calendario-header-row .time-header {
        display: none !important;
    }
    
    .calendario-header-row .header-cell {
        min-width: 100px !important;
        flex-shrink: 0;
        text-align: center;
        padding: 0.75rem 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        scroll-snap-align: center;
        border-radius: 8px;
        background: var(--color-dark);
        border: 2px solid transparent;
    }
    
    .calendario-header-row .header-cell:hover {
        border-color: var(--color-primary);
    }
    
    .calendario-header-row .header-cell.active {
        background: var(--color-primary) !important;
        color: var(--color-dark) !important;
        border-color: var(--color-primary);
    }
    
    .calendario-header-row .header-cell.active .day-name {
        color: var(--color-dark) !important;
    }
    
    .calendario-header-row .header-cell.active .day-date {
        color: var(--color-dark) !important;
    }
    
    .calendario-grid-wrapper {
        max-height: none !important;
        overflow-y: visible;
        overflow-x: hidden;
        padding: 0;
    }
    
    .calendario-grid {
        display: block !important;
        min-width: auto !important;
        gap: 0;
        grid-template-columns: none !important;
    }
    
    .time-cell {
        display: none !important;
    }
    
    .calendar-cell {
        padding: 1rem;
        min-height: auto;
        width: 100%;
    }
    
    .slot-cell {
        display: none;
        background: var(--color-dark-2);
        margin-bottom: 1rem;
        border-left: 4px solid var(--color-primary);
        border-radius: 8px;
        padding: 1.25rem !important;
        width: 100% !important;
        min-height: auto !important;
    }
    
    .slot-cell.show-slot {
        display: block !important;
    }
    
    .slot-cell:empty {
        display: none !important;
    }
    
    .slot-cell .empty-slot {
        display: none !important;
    }
    
    .slot-content {
        display: block;
        width: 100%;
        padding: 0 !important;
    }
    
    .slot-course {
        font-size: 1.1rem !important;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--color-primary);
    }
    
    .slot-time {
        display: block !important;
        font-size: 1rem;
        color: var(--color-text-muted);
        margin-bottom: 0.75rem;
        font-weight: 600;
    }
    
    .slot-time::before {
        content: '🕐 ';
    }
    
    .spots-available {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    .btn-book {
        max-width: 100%;
        margin-top: 1rem;
        font-size: 1rem;
    }
    
    /* Admin view in mobile */
    .admin-slot-compact {
        width: 100%;
        padding: 0 !important;
    }
    
    .admin-slot-header-mini {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .course-label {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .spots-count {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
        background: var(--color-dark);
        border-radius: 4px;
    }
    
    .admin-bookings-compact {
        margin-top: 1rem;
    }
    
    .admin-booking-mini {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        background: var(--color-dark);
        border-radius: 4px;
    }
    
    /* Admin slot box su mobile */
    .admin-slot-box {
        width: 100%;
        
    }
    
    .slot-time-mobile,
    .slot-time {
        display: block !important;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--color-primary);
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--color-primary);
    }
    
    .slot-time-mobile::before,
    .slot-time::before {
        content: '🕐 ';
    }
    
    .day-badge {
        display: inline-block;
        background: var(--color-primary);
        color: var(--color-dark);
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }
    
    .slot-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .total-count {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        font-weight: 500;
    }
    
    .slot-count {
        font-size: 1rem;
    }
    
    .course-badge {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: var(--color-text) !important;
    }
    
    .capacity-badge {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
        background: var(--color-dark) !important;
        border-radius: 6px !important;
        color: var(--color-text) !important;
    }
    
    .slot-add-booking {
        margin-bottom: 1rem;
    }
    
    .btn-add-booking-inline {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
        color: var(--color-dark) !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        cursor: pointer;
    }
    
    .bookings-list {
        max-height: none !important;
        margin-top: 1rem;
    }
    
    .booking-item {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        background: var(--color-dark) !important;
        border-radius: 6px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .booking-item.status-pending {
        border-left: 4px solid #fbbf24 !important;
    }
    
    .booking-item.status-approved {
        border-left: 4px solid #4ade80 !important;
    }
    
    .booking-item.status-rejected {
        border-left: 4px solid #f87171 !important;
    }
    
    .booking-name {
        font-size: 1rem !important;
        flex: 1;
        min-width: 150px;
    }
    
    .booking-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .booking-actions button {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
        min-width: 44px;
    }
    
    .btn-view-user,
    .btn-quick-approve,
    .btn-quick-reject,
    .btn-quick-delete {
        font-size: 1rem !important;
    }
    
    /* Week Navigation Mobile */
    .week-navigation {
        gap: 1rem;
    }
    
    .week-nav-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .week-navigation .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Modals Mobile */
    .modal-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
    }
    
    .booking-modal-content {
        width: 100%;
        margin: 0;
        padding: 1.5rem;
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0;
    }
    
    .admin-modal-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-booking-details {
        padding: 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .login-form-wrapper,
    .register-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    /* Buttons Mobile */
    .btn-primary,
    .btn-secondary {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    /* User Card Actions */
    .user-card-actions {
        flex-direction: column;
    }
    
    .user-card-actions button {
        width: 100%;
    }
    
    /* Bookings Table */
    .bookings-table {
        font-size: 0.85rem;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 4px;
    }
    
    /* Admin Booking Tags */
    .booking-tag {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .trainer-hero {
        padding: 2rem 1rem;
    }
    
    .trainer-gallery {
        padding: 3rem 1rem;
    }
    
    .trainer-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Trainer Content Section */
.trainer-content-section {
    padding: 4rem 2rem;
    background: var(--color-dark);
}

.trainer-content-inner {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.trainer-content-inner h2,
.trainer-content-inner h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.trainer-content-inner p {
    margin-bottom: 1.5rem;
}

.trainer-content-inner ul,
.trainer-content-inner ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.trainer-content-inner li {
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-dark-2);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--color-text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 20px) rotate(5deg); }
    50% { transform: translate(10px, -10px) rotate(-5deg); }
    75% { transform: translate(-20px, 10px) rotate(3deg); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blocks-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* Admin Calendar View - Vista Amministratore Calendario Compatta */
.slot-content.admin-view {
    padding: 0.5rem;
    text-align: left;
    min-height: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-slot-compact {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    flex: 1;
}

.admin-slot-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.3rem;
    margin-bottom: 0.3rem;
}

.course-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.spots-count {
    background: var(--color-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-bookings-compact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Booking Card Mini - Nuova vista compatta */
.booking-card-mini {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.booking-card-mini:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.booking-card-mini.status-pending {
    border-left-color: #fbbf24;
}

.booking-card-mini.status-approved {
    border-left-color: #4ade80;
}

.booking-card-mini.status-rejected {
    border-left-color: #f87171;
    opacity: 0.5;
}

.booking-user-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.booking-user-info .user-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-quick-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.btn-quick-approve,
.btn-quick-reject,
.btn-quick-delete,
.btn-view-user {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.btn-quick-approve {
    background: #4ade80;
    color: #000;
}

.btn-quick-approve:hover {
    background: #22c55e;
    transform: scale(1.05);
}

.btn-quick-reject {
    background: #f87171;
    color: #fff;
}

.btn-quick-reject:hover {
    background: #ef4444;
    transform: scale(1.05);
}

.btn-quick-delete {
    background: #ef4444;
    color: #fff;
}

.btn-quick-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-view-user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.btn-view-user:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-add-booking {
    margin-top: 0.3rem;
    background: linear-gradient(135deg, var(--color-primary), #cc0015);
    color: white;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-add-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 21, 0.4);
}

.btn-add-booking .plus-icon {
    font-size: 1rem;
    font-weight: 700;
}

.booking-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.booking-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.booking-tag.status-pending {
    border-left-color: #fbbf24;
}

.booking-tag.status-pending:hover {
    background: rgba(251, 191, 36, 0.08);
}

.booking-tag.status-approved {
    border-left-color: #4ade80;
}

.booking-tag.status-approved:hover {
    background: rgba(74, 222, 128, 0.08);
}

.booking-tag.status-rejected {
    border-left-color: #f87171;
    opacity: 0.4;
}

.booking-tag.status-rejected:hover {
    opacity: 0.6;
    background: rgba(248, 113, 113, 0.08);
}

.tag-icon {
    font-size: 0.7rem;
    line-height: 1;
    flex-shrink: 0;
}

.tag-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.admin-empty-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
    text-align: center;
    min-height: 60px;
}

.admin-empty-slot .course-label {
    margin-bottom: 0.2rem;
}

.empty-text {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Admin Modal Gestione Prenotazione */
.admin-modal-content {
    max-width: 600px;
}

.admin-booking-details {
    background: var(--color-dark);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.status-badge.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.status-approved {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-badge.status-rejected {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.admin-modal-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-action {
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-action-approve {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.btn-action-approve:hover:not(:disabled) {
    background: #4ade80;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.btn-action-reject {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.btn-action-reject:hover:not(:disabled) {
    background: #f87171;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

.btn-action-delete {
    background: rgba(255, 0, 21, 0.15);
    color: var(--color-primary);
}

.btn-action-delete:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 21, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.login-container {
    max-width: 500px;
    width: 100%;
}

.login-form-wrapper,
.register-form-wrapper {
    background: var(--color-dark-2);
    padding: 3rem;
}

/* ===== AUTH MODAL ===== */
.auth-modal-content {
    max-width: 450px;
}

.auth-form-wrapper {
    width: 100%;
}

#auth-modal h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

/* Logout section styles */
.logout-wrapper {
    text-align: center;
    padding: 20px 0;
}

.user-info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.user-info-box p {
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
}

.user-info-box strong {
    color: #d4af37;
    margin-right: 8px;
}

.logout-wrapper .btn-block {
    margin-top: 20px;
    background: linear-gradient(135deg, #cc0015, #ff0015);
}

.logout-wrapper .btn-block:hover {
    background: linear-gradient(135deg, #ff0015, #cc0015);
    transform: translateY(-2px);
}

/* User Management Page Styles */
.user-management-page {
    padding: 40px 20px;
    min-height: 80vh;
}

.user-management-page h1 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    text-align: center;
}

.stat-box-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.stat-box-clickable:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.stat-box-clickable .stat-number {
    transition: all 0.3s ease;
}

.stat-box-clickable:hover .stat-number {
    transform: scale(1.1);
}

.stat-hint {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 215, 0, 0.7);
    margin-top: 8px;
    font-style: italic;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-actions {
    text-align: center;
    margin-bottom: 30px;
}

#btn-add-user {
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

#btn-add-user:hover {
    transform: scale(1.05);
}

.user-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.no-users {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.user-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.user-card:hover {
    transform: translateY(-5px);
}

.pending-bookings-notification {
    animation: pulse-notification 2s ease-in-out infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6), 0 0 0 3px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.9), 0 0 0 6px rgba(255, 215, 0, 0.4);
    }
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.user-card-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.3rem;
    flex: 1 1 auto;
    min-width: 0;
}

.status-badge {
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.status-badge.approved {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.status-badge.rejected {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.user-card-body {
    margin-bottom: 20px;
}

.user-card-body p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.user-card-body strong {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 5px;
}

.user-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.user-card-actions button {
    flex: 1;
    min-width: 100px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.btn-approve {
    background: linear-gradient(135deg, #00cc00, #00ff00);
    color: #000;
    font-weight: bold;
}

.btn-approve:hover {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    transform: translateY(-2px) scale(1.02);
}

.btn-reject {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: #fff;
    font-weight: bold;
}

.btn-reject:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-2px) scale(1.02);
}

.btn-view-details {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-view-details:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
}

/* Stili per barra di ricerca globale */
.search-and-actions {
    animation: slideInDown 0.5s ease;
}

.global-search-bar input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(255, 0, 21, 0.3);
}

.btn-manage-package {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: bold;
}

.btn-manage-package:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.btn-payment-reminder {
    background: linear-gradient(135deg, #FF6B35, #FF8C42) !important;
    color: #fff !important;
    font-weight: bold;
}

.btn-payment-reminder:hover {
    background: linear-gradient(135deg, #FF8C42, #FF6B35) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* Animazioni */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-details {
    padding: 20px 0;
}

.user-info-section,
.user-bookings-section {
    margin-bottom: 30px;
}

.user-info-section h3,
.user-bookings-section h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.user-info-section p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bookings-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.bookings-table th,
.bookings-table td {
    padding: 12px;
    text-align: left;
}

.bookings-table th {
    color: var(--color-primary);
    font-weight: bold;
}

.bookings-table td {
    color: rgba(255, 255, 255, 0.8);
}

.login-page h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.gym-form .form-group {
    margin-bottom: 1.5rem;
}

.gym-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.gym-form input[type="text"],
.gym-form input[type="email"],
.gym-form input[type="password"] {
    width: 100%;
    padding: 0.85rem;
    background: var(--color-dark);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s;
}

.gym-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 21, 0.1);
}

.gym-form small {
    display: block;
    margin-top: 0.3rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
}

.form-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(255, 0, 21, 0.1);
    color: var(--color-primary);
}

.alert-success {
    color: #4ade80;
    border: 1px solid #4ade80;
}

.alert-info {
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

/* ===== USER BOOKED SLOT ===== */
.user-booked-slot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
}

.booking-status-badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.booking-status-badge.approved {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.booking-status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.booking-status-badge.rejected {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.btn-manage-booking {
    background: linear-gradient(135deg, #58d74c, #54d93c);
    color: white;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-manage-booking:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.booking-info-box,
.booking-status-box {
    padding: 1rem;
    background: var(--color-dark);
    margin-bottom: 1rem;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ===== RESPONSIVE MOBILE ===== */

/* Mobile Day Selector - nascosto sempre (ora usiamo header cliccabili) */
.mobile-day-selector {
    display: none !important;
}

@media (max-width: 1024px) {
    /* Generale */
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Header */
    .site-header .container {
        padding: 0 1rem;
    }
    
    /* User Management - 3 colonne su tablet */
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .user-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
}

/* Media query per mobile */
@media (max-width: 768px) {
    .user-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-box {
        padding: 25px;
    }
    
    /* Touch targets migliorati */
    button,
    .btn,
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 48px;
        min-width: 48px;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Links con area touch adeguata */
    a {
        padding: 0.5rem 0;
        display: inline-block;
    }
    
    /* Bottoni di navigazione più grandi */
    .btn-calendar-nav,
    .btn-pagination,
    .week-nav-buttons .btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Questo blocco @media è stato rimosso e unito con quello precedente */

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .calendario-header h1 {
        margin-bottom: 1rem;
    }
    
    .slot-content {
        padding: 1rem !important;
    }
    
    .booking-modal-content {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Bottoni ancora più grandi su schermi piccoli */
    .btn-book,
    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Input più grandi per evitare zoom su iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 0.875rem;
        min-height: 48px;
    }
    
 
    /* Card più compatte */
    .booking-card,
    .user-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* ===== LOGIN REQUIRED MESSAGE ===== */
.login-required-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 3rem 2rem;
}

.login-required-message h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.login-required-message p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
/* ===== SCHEDE PERSONALIZZATE - USER PLANS ===== */
.user-plans-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
}

.user-plans-section h3 {
    color: #ff6b35;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    margin-bottom: 25px;
}

.plan-card h4 {
    color: #ff6b35;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.plan-card h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.plan-card .form-group {
    margin-bottom: 20px;
}

.plan-card .form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
}

.plan-card .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.plan-card .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.plan-card select.form-control {
    cursor: pointer;
}

.plan-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.workout-input-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
}

.message-area {
    margin: 15px 0;
    min-height: 30px;
}

.message-area .loading {
    color: #ffa500;
    padding: 10px;
    background: rgba(255, 165, 0, 0.1);
    text-align: center;
}

.message-area .success {
    color: #00ff00;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    text-align: center;
}

.message-area .error {
    color: #ff0000;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    text-align: center;
}

.plan-card .btn-primary {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
}

/* Modal adjustments for plans */
#user-details-modal .booking-modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .user-plans-section {
        padding: 20px 15px;
    }
    
    .plan-card {
        padding: 15px;
    }
    
    .workout-input-group {
        padding: 15px;
    }
    
    /* Modal fullscreen su mobile */
    .modal-overlay {
        padding: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-header {
        position: sticky;
        top: 0;
        background: var(--color-dark-2);
        z-index: 10;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: var(--color-dark-2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}

/* ===== USER DETAIL PAGE ===== */
.user-detail-page {
    padding: 40px 20px;
    min-height: 80vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.user-detail-page .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Back Button */
.page-header-actions {
    margin-bottom: 30px;
    position: relative;
    /*z-index: 1001;*/
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: var(--color-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}

.btn-back:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.3));
    transform: translateX(-8px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.3);
}

.back-icon {
    font-size: 1.5em;
}

/* User Header */
.user-detail-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    clip-path: polygon(0 0, 99% 0, 100% 2%, 100% 98%, 99% 100%, 0 100%, 0 2%);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.user-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.5), transparent);
}

.user-avatar img {
    width: 120px;
    height: 120px;
    clip-path: circle(50%);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.4);
}

.user-header-info h1 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 2.2em;
    background: linear-gradient(135deg, #ff4500, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9em;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

/* Detail Grid */
.user-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    clip-path: polygon(0 0, 98% 0, 100% 3%, 100% 97%, 98% 100%, 0 100%, 0 3%);
    position: relative;
    overflow: hidden;
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.5), transparent);
}

.detail-section h2 {
    color: var(--color-primary);
    font-size: 1.4em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
}

.detail-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* Info Section */
.info-grid {
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    color: #888;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    color: #fff;
    font-size: 1.1em;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 25px;
}

.btn-action {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Bookings Section */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 240px;
}

.bookings-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 10px;
}

.btn-booking-nav {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(255, 107, 53, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-booking-nav:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.btn-booking-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bookings-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    min-width: 50px;
    text-align: center;
}

.bookings-counter .current-page {
    color: var(--color-accent);
    font-weight: bold;
}

.booking-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, 99% 0, 100% 50%, 99% 100%, 0 100%);
    position: relative;
}

.booking-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.booking-date {
    display: flex;
    flex-direction: column;
}

.booking-date strong {
    color: #fff;
    font-size: 1.1em;
}

.booking-date span {
    color: #888;
    font-size: 0.9em;
}

.booking-time {
    color: #ccc;
    font-size: 1em;
}

.booking-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 8px;
}

.booking-status-badge.pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.booking-status-badge .status-icon {
    font-size: 1.1em;
}

/* Plans Section - Full Width */
.plans-section {
    grid-column: 1 / -1;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Enhanced Plan Cards */
.workout-plan-card .plan-card-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f54b00 100%);
}

.meal-plan-card .plan-card-header {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.plan-card-header {
    padding: 20px 30px;
}

.plan-card-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.4em;
}

.plan-card-body {
    padding: 30px;
}

/* Enhanced Form Controls */
.form-control.enhanced {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 14px 18px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-control.enhanced:focus {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

/* Enhanced Labels */
.plan-card .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 1.3em;
}

.label-hint {
    font-size: 0.8em;
    color: #888;
    font-weight: 400;
    margin-left: auto;
}

/* Enhanced Textarea */
.textarea-wrapper {
    position: relative;
}

.textarea-enhanced {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.95rem;
    line-height: 1.8;
    resize: vertical;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.6);
    padding: 18px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.textarea-enhanced:focus {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    outline: none;
}

.textarea-enhanced::placeholder {
    color: #555;
    line-height: 1.8;
}

.textarea-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: -8px;
}

.char-count {
    color: #666;
    font-size: 0.85em;
    font-family: monospace;
}

/* Enhanced Workout Groups */
.user-detail-page .workout-input-group {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin-bottom: 25px;
}

.workout-group-header h4 {
    color: #ff6b35;
    font-size: 1.2em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
}

/* Enhanced Buttons */
.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-large:active {
    transform: translateY(-1px);
}

.btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer Actions */
.page-footer-actions {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
}

.btn-back-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back-large:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    transform: scale(1.05);
}

/* Responsive User Detail Page */
@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day-header {
        font-size: 0.75em;
        padding: 4px;
    }
    
    .calendar-day {
        padding: 4px;
    }
    
    .calendar-day .day-number {
        font-size: 0.8em;
    }
}

@media (max-width: 992px) {
    .user-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-detail-page {
        padding: 20px 10px;
    }
    
    .user-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .user-header-info h1 {
        font-size: 1.8em;
    }
    
    .user-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card-body {
        padding: 20px;
    }
    
    .detail-section {
        padding: 20px;
    }
}

/* Booking Management Styles */
.section-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header-actions h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-calendar-nav {
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.btn-calendar-nav:hover {
    background: rgba(255, 69, 0, 0.2);
    transform: scale(1.1);
}

.current-month {
    font-size: 1.1em;
    font-weight: 600;
    color: #ff4500;
    min-width: 180px;
    text-align: center;
}

/* Calendario */
.calendar-container {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    margin-top: 20px;
}

.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.bookings-section {
    clip-path: none !important;
    overflow: visible !important;
    min-width: 0 !important;
}

.calendar-day-header {
    text-align: center;
    padding: 8px;
    font-weight: 600;
    color: #ff4500;
    font-size: 0.85em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.calendar-day:not(.empty)::after {
    content: '+';
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.7em;
    color: rgba(255, 69, 0, 0.3);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.calendar-day:not(.empty):hover::after {
    opacity: 1;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day:not(.empty):hover {
    background: rgba(255, 69, 0, 0.15);
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.3);
}

.calendar-day.today {
    background: rgba(255, 69, 0, 0.15);
}

.calendar-day.today:hover {
    background: rgba(255, 69, 0, 0.25);
}

.calendar-day.past {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(128, 128, 128, 0.1);
}

.calendar-day.past:hover {
    background: rgba(128, 128, 128, 0.1);
    transform: none;
    box-shadow: none;
}

.calendar-day.past.has-booking {
    opacity: 0.6;
    cursor: pointer;
}

.calendar-day.past.has-booking:hover {
    background: rgba(255, 69, 0, 0.15);
    transform: scale(1.05);
}

.calendar-day.no-availability {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(30, 30, 30, 0.2);
}

.calendar-day.no-availability .day-number {
    color: rgba(255, 255, 255, 0.25);
}

.calendar-day.no-availability:hover {
    background: rgba(50, 50, 50, 0.3);
    transform: none;
    box-shadow: none;
}

.calendar-day.no-availability::after {
    display: none;
}

.calendar-day.has-booking {
    background: rgba(255, 69, 0, 0.1);
}

.calendar-day.has-booking:hover {
    background: rgba(255, 69, 0, 0.25);
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

/* Pending bookings have higher priority - green color */
.calendar-day.has-pending,
.calendar-day.has-booking.has-pending {
    background: rgba(76, 175, 80, 0.2) !important;
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.calendar-day.has-pending:hover,
.calendar-day.has-booking.has-pending:hover {
    background: rgba(76, 175, 80, 0.35) !important;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.calendar-day.has-pending .day-number,
.calendar-day.has-booking.has-pending .day-number {
    color: #4CAF50 !important;
    font-weight: 700;
}

.calendar-day .day-number {
    font-size: 1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-day.has-booking .day-number {
    color: #ff4500;
    font-weight: 600;
}

.booking-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff4500;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.legend-item .dot {
    width: 12px;
    height: 12px;
}

.legend-item .dot.has-booking {
    background: rgba(255, 69, 0, 0.3);
}

.legend-item .dot.today {
    background: rgba(255, 69, 0, 0.15);
}

/* Modal Dettagli Prenotazioni Giorno */
.booking-details-modal h4 {
    color: #ff4500;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.booking-detail-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.booking-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.booking-detail-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.booking-detail-info strong {
    color: #ff4500;
    font-size: 1.1em;
}

.booking-detail-info span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

.booking-detail-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
}

.btn-edit-booking {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-edit-booking:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.05);
}

.btn-delete-booking-modal {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-delete-booking-modal:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.05);
}

.booking-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.15);
}

.booking-card-header {
    background: rgba(255, 69, 0, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-card-header .booking-date {
    display: flex;
    flex-direction: column;
}

.booking-card-header .booking-date strong {
    font-size: 1.1em;
    color: #ff4500;
}

.booking-card-header .booking-date span {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.booking-card-body {
    padding: 15px;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.booking-card-actions {
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
}

.btn-delete-booking {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-delete-booking:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.05);
}

.btn-approve-booking {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.btn-approve-booking:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-reject-booking {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-reject-booking:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: var(--color-dark-2);
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
    .modal-content {
        width: 50%;
    }
}

.modal-header {
    background: rgba(255, 0, 21, 0.05);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: var(--radius);
}

.modal-close:hover {
    background: rgba(255, 0, 21, 0.1);
    color: var(--color-primary);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-actions button {
    padding: 10px 20px;
    font-size: 0.875rem;
    min-width: 100px;
}



@media (max-width: 768px) {
    section.hero-section.has-bg-image {
        background-position-x: 48.5%;
    }
    .section-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .section-header-actions h2 {
        width: 100%;
        text-align: center;
    }
    
    .calendar-controls {
        justify-content: center;
        width: 100%;
    }
    
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 3px;
    }
    
    .calendar-day {
        padding: 3px;
        font-size: 0.8em;
    }
    
    .calendar-day-header {
        padding: 6px 2px;
        font-size: 0.75em;
    }
    
    .booking-indicator {
        font-size: 0.6em;
        padding: 1px 4px;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-detail-actions {
        flex-direction: column;
    }
    
    .btn-edit-booking,
    .btn-delete-booking-modal {
        width: 100%;
        justify-content: center;
    }
    
    .bookings-calendar {
        grid-template-columns: 1fr;
    }

    
    .modal-actions button {
        width: 100%;
    }
}

/* Calendario Mensile Page */
.calendario-mensile-page {
    padding: 40px 0;
    min-height: 100vh;
}

.calendario-mensile-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.calendario-mensile-page .page-header {
    text-align: center;
    margin-bottom: 24px;
}

.calendario-mensile-page .page-header h1 {
    color: var(--color-primary);
    font-size: 1.875rem;
    margin-bottom: 6px;
}

.calendario-mensile-page .page-subtitle {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.calendario-section {
    background: var(--color-dark-2);
    padding: 16px;
    margin-bottom: 24px;
}

.prossime-prenotazioni {
    margin-top: 32px;
}

.prossime-prenotazioni-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 0, 21, 0.15);
    flex-wrap: wrap;
    gap: 12px;
}

.prossime-prenotazioni-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 0;
}

.prossime-prenotazioni h2 {
    color: var(--color-primary);
    font-size: 1.375rem;
    margin-bottom: 16px;
}

.pagination-info {
    background: var(--color-dark-2);
    color: var(--color-primary);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.prossime-prenotazioni .bookings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.prossime-prenotazioni .booking-card {
    background: var(--color-dark-2);
    overflow: hidden;
    transition: var(--transition);
}

.prossime-prenotazioni .booking-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.prossime-prenotazioni .booking-card.status-pending {
    border-left: 3px solid #ffa500;
}

.prossime-prenotazioni .booking-card.status-approved {
    border-left: 3px solid #00ff88;
}

.prossime-prenotazioni .booking-card.status-rejected {
    opacity: 0.6;
}

.prossime-prenotazioni .booking-card-header {
    background: rgba(255, 69, 0, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prossime-prenotazioni .booking-date {
    display: flex;
    flex-direction: column;
}

.prossime-prenotazioni .booking-date strong {
    font-size: 1.1em;
    color: #ff4500;
}

.prossime-prenotazioni .booking-date span {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.prossime-prenotazioni .booking-card-body {
    padding: 15px;
}

.prossime-prenotazioni .booking-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prossime-prenotazioni .booking-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.prossime-prenotazioni .booking-card-actions {
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
}

.btn-view-booking {
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-view-booking:hover {
    background: rgba(255, 69, 0, 0.2);
    transform: scale(1.05);
}

.bookings-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 0, 21, 0.2);
}

.btn-pagination {
    background: #1a1a1a;
    color: #ff0015;
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.btn-pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 21, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-pagination:hover:not(:disabled) {
    background: #ff0015;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 21, 0.5);
}

.btn-pagination:hover:not(:disabled)::before {
    left: 100%;
}

.btn-pagination:active:not(:disabled) {
    transform: translateY(0);
}

.btn-pagination:disabled {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.btn-cancel-booking {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 2px solid #dc3545;
}

.btn-cancel-booking:hover {
    background: transparent;
    color: #dc3545;
    transform: scale(1.05);
}

/* Modal Slots Disponibili */
.modal-slots {
    max-width: 700px;
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
}

.slots-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.slot-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slot-item:hover:not(.slot-booked) {
    background: rgba(255, 69, 0, 0.1);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.3);
}

.slot-item.slot-booked {
    cursor: not-allowed;
}

.slot-item.slot-booked {
    opacity: 0.5;
    background: rgba(100, 100, 100, 0.1);
}

.slot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-time {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff4500;
}

.slot-class {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.slot-trainer {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.6);
}

.slot-spots {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    display: inline-block;
    width: fit-content;
}

.slot-spots-available {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.slot-spots-full {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.slot-user-badge {
    font-size: 0.85em;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    display: inline-block;
    font-weight: bold;
    margin-top: 5px;
}

.slot-item.slot-user-booked {
    background: rgba(40, 167, 69, 0.05);
}

.slot-item.slot-blocked {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    opacity: 0.7;
    cursor: not-allowed;
}

.slot-item.slot-blocked:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: none;
}

.slot-blocked-badge {
    color: #ef4444;
    font-size: 0.85em;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.slot-blocked-text {
    color: #ef4444;
    font-size: 0.9em;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

.slot-booked-badge {
    color: #28a745;
    font-size: 0.95em;
    font-weight: bold;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.1);
}

.slot-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-book-slot {
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%);
    color: white;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-book-slot:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.slot-full {
    color: #dc3545;
    font-size: 0.95em;
    font-weight: bold;
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.1);
}

.no-slots-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
}

.no-slots-message p,
.error-message p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Conferma Prenotazione */
.booking-confirm-info {
    background: rgba(255, 69, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.booking-confirm-info p {
    margin: 8px 0;
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.9);
}

.booking-confirm-info strong {
    color: #ff4500;
}

.message-area {
    margin: 15px 0;
    padding: 12px;
}

.message-area .success-message {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 12px;
}

.message-area .error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 12px;
}

/* Responsive per gli slot */
/* Slots Modal Styles */
.slots-modal-content {
    max-width: 800px;
    width: 90%;
}

.slots-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.slot-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}

.slot-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.slot-item.slot-full {
    opacity: 0.6;
}

.slot-item.slot-booked {
    background: rgba(255, 69, 0, 0.1);
}

.slot-time {
    font-size: 1.4em;
    font-weight: 700;
    color: #ff4500;
    min-width: 80px;
}

.slot-info {
    flex: 1;
}

.slot-course {
    font-size: 1.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.slot-availability {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.slot-availability .spots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.slot-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-book-slot {
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-slot:hover {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
}

.btn-book-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cancel-booking {
    padding: 8px 20px;
    background: #dc3545;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dc3545;
}

.btn-cancel-booking:hover {
    background: transparent;
    color: #dc3545;
    transform: scale(1.05);
}

.btn-cancel-booking:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-badge {
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    font-weight: 600;
    font-size: 0.9em;
}

.slot-full-badge {
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9em;
}

.booking-status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
    display: inline-block;
}

.booking-status-badge.approved {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.booking-status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.booking-status-badge.rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.slot-item.slot-booked {
    border-left: 3px solid #28a745;
}

.slot-item.slot-booked.pending {
    border-left-color: #ffc107;
}

.slot-item.slot-booked.rejected {
    border-left-color: #dc3545;
    opacity: 0.7;
}

.no-slots {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .slot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .slot-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn-book-slot,
    .btn-cancel-booking {
        flex: 1;
    }
    
    .slots-modal-content {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .calendario-mensile-page {
        padding: 20px 0;
    }
    
    .calendario-mensile-page .page-header h1 {
        font-size: 1.8em;
    }
    
    .calendario-section {
        padding: 20px 15px;
    }
    
    .calendar-container {
        padding: 8px;
        overflow: visible;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 3px;
        width: 100%;
    }
    
    .calendar-day-header {
        padding: 6px 2px;
        font-size: 0.7em;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .calendar-day {
        aspect-ratio: 1;
        padding: 2px;
        font-size: 0.8em;
        min-width: 0;
    }
    
    .calendar-day .day-number {
        font-size: 0.85em;
    }
    
    .booking-indicator {
        font-size: 0.55em;
        padding: 1px 3px;
        top: 1px;
        right: 1px;
    }
    
    .calendar-day:not(.empty):hover {
        transform: scale(1.05);
    }
    
    .section-header-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .calendar-controls {
        justify-content: center;
        width: 100%;
    }
    
    #current-month-label {
        font-size: 1em;
    }
    
    .prossime-prenotazioni .bookings-list {
        grid-template-columns: 1fr;
    }
}

/* Modal Aggiungi Prenotazione */
/* Rimosso duplicato - vedi righe 3841+ per definizione corretta */

.modal-body {
    padding: 20px;
}

.booking-info-box {
    background: rgba(255, 215, 0, 0.05);

    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.booking-info-box p {
    margin: 5px 0;
    color: #ccc;
}

.booking-info-box strong {
    color: #FFD700;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #FFD700;
    font-size: 0.9em;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 0, 21, 0.02);
    box-shadow: 0 0 0 3px rgba(255, 0, 21, 0.1);
}

.form-control option {
    background: #1a1a1a;
    color: #fff;
}

.message-area {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.message-area .success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 10px;
    border-radius: 4px;
}

.message-area .error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 10px;
    border-radius: 4px;
}

.message-area .loading {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 10px;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 0, 21, 0.3);
    color: rgba(255, 0, 21, 0.3);
}

.btn-primary:disabled:hover {
    background: transparent;
    color: rgba(255, 0, 21, 0.3);
}

.btn-add-booking-inline {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: inline-block;
}

.btn-add-booking-inline:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Evidenzia colonne con prenotazioni pending */
.header-cell.has-pending-bookings {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.25), rgba(255, 140, 0, 0.15)) !important;
    border: 2px solid rgba(255, 165, 0, 0.7) !important;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255, 165, 0, 0.2);
}

.header-cell.has-pending-bookings .day-name {
    color: #FF8C00;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.header-cell.has-pending-bookings .day-date {
    color: #FFA500;
}

/* Evidenzia celle con prenotazioni pending */
.admin-slot-box.has-pending-booking {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 140, 0, 0.25)) !important;
    border: 3px solid #FFA500 !important;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.6), inset 0 0 20px rgba(255, 165, 0, 0.2) !important;
    animation: glow-pending 2s infinite;
}

.admin-slot-box.has-pending-booking .slot-header {
    background: rgba(255, 165, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.admin-slot-box.has-pending-booking .course-badge {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid #FF8C00;
}

.admin-slot-box.has-pending-booking .capacity-badge {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid #FF8C00;
    color: #FFF;
}

@keyframes glow-pending {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(255, 165, 0, 0.6), inset 0 0 20px rgba(255, 165, 0, 0.2);
        border-color: #FFA500;
        background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 140, 0, 0.25));
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 165, 0, 0.8), inset 0 0 25px rgba(255, 165, 0, 0.3);
        border-color: #FF8C00;
        background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 140, 0, 0.35));
    }
}

/* Statistiche prenotazioni nella pagina dettagli utente */
/* Lesson Package Box */
.lesson-package-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.lesson-package-box h3 {
    color: #FFD700;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.package-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-current, .package-remaining {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.package-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.package-value {
    color: #FFD700;
    font-size: 1.1em;
    font-weight: 600;
}

.package-value.low-lessons {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.package-progress {
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* Package Info in User Card */
.package-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.package-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.package-info .current-package {
    color: #FFD700;
    font-weight: 600;
}

.package-info .lessons-remaining {
    font-weight: 600;
}



/* Manage Package Button */
.btn-manage-package {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-manage-package:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.booking-stats-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.booking-stats-box h3 {
    color: #FFD700;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.stat-item.stat-pending {

    background: rgba(255, 165, 0, 0.1);
}

.stat-item.stat-approved {
    background: rgba(76, 175, 80, 0.1);
}

.stat-item.stat-rejected {
    border: 1px solid rgba(220, 53, 69, 0.5);
    background: rgba(220, 53, 69, 0.1);
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item.stat-pending .stat-number {
    color: #FFA500;
}

.stat-item.stat-approved .stat-number {
    color: #4CAF50;
}

.stat-item.stat-rejected .stat-number {
    color: #dc3545;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Modal System */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-modal-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 20px 25px;
}

.custom-modal-header h3 {
    margin: 0;
    color: #FFD700;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.custom-modal-body {
    padding: 30px 25px;
    min-height: 80px;
}

.custom-modal-body p {
    margin: 0;
    color: #fff;
    font-size: 1.05em;
    line-height: 1.6;
    text-align: center;
}

.custom-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.3);
}

.btn-custom-modal {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.btn-custom-modal.btn-primary:hover {

    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.btn-custom-modal.btn-primary:active {
    transform: translateY(0);
}

.btn-custom-modal.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-custom-modal.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .custom-modal-content {
        max-width: 95%;
    }
    
    .custom-modal-header,
    .custom-modal-body,
    .custom-modal-footer {
        padding: 15px 20px;
    }
    
    .custom-modal-footer {
        flex-direction: column;
    }
    
    .btn-custom-modal {
        width: 100%;
    }
}

/* Disabilita scroll quando modal aperto */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100vh !important;
}

/* Badge Notifica Prenotazioni Pending */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pending-notification-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 165, 0, 0.15);
    border: 2px solid rgba(255, 165, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-notification 2s infinite;
}

.pending-notification-badge svg {
    width: 24px;
    height: 24px;
    color: #FFA500;
    transition: all 0.3s ease;
}

.pending-notification-badge:hover {
    background: rgba(255, 165, 0, 0.25);
    border-color: #FFA500;
    transform: scale(1.1);
}

.pending-notification-badge:hover svg {
    color: #FF8C00;
    animation: shake 0.5s;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;

    color: #fff;
    font-size: 0.7em;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.6);
    border: 2px solid #1a1a1a;
}

@keyframes pulse-notification {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 165, 0, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@media (max-width: 768px) {
    .pending-notification-badge {
        display: none !important;
    }
}

/* Club Slider Section - Virgin Active Style */
.club-slider-section {
    padding: 100px 0;
    background: var(--color-dark);
    overflow: hidden;
}

.club-slider-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.club-slider-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: left;
    margin-bottom: 50px;
    padding-left: 80px;
    color: var(--color-text);
    letter-spacing: 2px;
}

.club-slider-wrapper {
    position: relative;
    width: 100%;
}

.club-slider-track {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.club-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.club-slide-card {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.club-slide-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.club-slide-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.club-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.club-slide-card:hover .club-slide-image img {
    transform: scale(1.1);
}

.club-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.club-slide-category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.club-slide-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.club-slide-address {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.club-slider-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.club-slider-prev {
    left: 20px;
}

.club-slider-next {
    right: 20px;
}

.club-slider-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.club-slider-nav svg {
    transition: transform 0.3s ease;
}

.club-slider-nav:hover svg {
    transform: translateX(3px);
}

.club-slider-prev:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 1200px) {
    .club-slide-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .club-slider-section {
        padding: 60px 0;
    }
    
    .club-slider-title {
        font-size: 2rem;
        margin-left: 20px;
        margin-bottom: 30px;
    }
    
    .club-slider-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .club-slider-track {
        width: 100%;
        order: 2;
    }
    
    .club-slide-card {
        min-width: 100%;
    }
    
    .club-slider-nav {
        width: 45px;
        height: 45px;
        order: 1;
        margin: 0 10px 20px;
    }
    
    .club-slider-prev {
        order: 1;
    }
    
    .club-slider-next {
        order: 3;
    }
    
    .club-slide-overlay {
        padding: 20px 20px;
    }
    
    .club-slide-title {
        font-size: 1.25rem;
    }
    
    .club-slide-category {
        font-size: 0.7rem;
    }
    
    .club-slide-address {
        font-size: 0.85rem;
    }
}

/* User Card Avatar Styles */
.user-card-header {
    display: flex !important;
    align-items: center;
    gap: 15px;
}

.user-card-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.user-card-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-card-header-text h3 {
    margin: 0;
}

@media (max-width: 768px) {
    .user-card-avatar {
        width: 50px;
        height: 50px;
    }
    
    .user-avatar-placeholder {
        font-size: 1rem;
    }
}

/* User Detail Page Avatar */
.user-detail-header .user-avatar {
    width: 120px;
    height: 120px;
}

.user-detail-header .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.user-avatar-placeholder-detail {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .user-detail-header .user-avatar {
        width: 80px;
        height: 80px;
    }
    
    .user-avatar-placeholder-detail {
        font-size: 1.75rem;
    }
    
    /* Compensa l'altezza dell'header fisso su mobile prova*/
    .my-plans-page {
        padding-top: 70px !important;
    }
    
    .my-plans-page .container {
        padding-top: 0 !important;
    }
    
    /* Migliora visualizzazione titolo e navigazione */
    .page-header {
        padding: 1rem !important;
        text-align: center;
        margin-top: 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 0.85rem !important;
        display: none; /* Nascondi su mobile per risparmiare spazio */
    }
    
    /* Migliora week navigation */
    .week-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .current-week {
        text-align: center;
        order: 1;
    }
    
    .current-week h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }
    
    .week-dates {
        font-size: 0.85rem !important;
    }
    
    .week-nav-buttons {
        order: 2;
        display: flex;
        gap: 0.75rem;
        width: 100%;
    }
    
    .week-nav-buttons .btn {
        flex: 1;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Ottimizza scroll orizzontale header giorni */
    .calendario-header-row {
        padding: 0.75rem 0.5rem !important;
        gap: 0.35rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .calendario-header-row .header-cell {
        min-width: 85px !important;
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem;
    }
    
    .day-name {
        font-size: 0.85rem !important;
        font-weight: 600;
    }
    
    .day-date {
        font-size: 0.75rem !important;
        margin-top: 0.25rem;
    }
    
    /* Migliora visualizzazione slot */
    .slot-cell {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .slot-time-mobile,
    .slot-time {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .slot-course {
        font-size: 1rem !important;
    }
    
    .course-badge {
        font-size: 0.95rem !important;
    }
    
    .capacity-badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.75rem !important;
    }
    
    /* Bottoni azione */
    .btn-add-booking-inline {
        padding: 0.85rem !important;
        font-size: 0.95rem !important;
    }
    
    .booking-item {
        padding: 0.85rem !important;
        gap: 0.5rem !important;
    }
    
    .booking-name {
        font-size: 0.95rem !important;
    }
    
    .booking-actions button {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Migliora container principale */
    .container {
        padding: 0.75rem !important;
    }
    
    .calendario-wrapper {
        margin-top: 0 !important;
    }
}

/* Media query per schermi molto piccoli */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.3rem !important;
    }
    
    .current-week h2 {
        font-size: 1.1rem !important;
    }
    
    .calendario-header-row .header-cell {
        min-width: 75px !important;
        padding: 0.5rem 0.6rem !important;
    }
    
    .day-name {
        font-size: 0.75rem !important;
    }
    
    .day-date {
        font-size: 0.7rem !important;
    }
    
    .week-nav-buttons .btn {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

.modal-content {
    border: 0!important;
    margin: 0;
}

.form-row {
    grid-template-columns: 1fr;
}

/* Club Lightbox Styles */
#club-lightbox {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#club-lightbox-close:hover {
    transform: scale(1.2);
    color: #fff;
}

#club-lightbox-content img {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

#club-lightbox-prev,
#club-lightbox-next {
    transition: all 0.3s ease !important;
}

#club-lightbox-prev:hover,
#club-lightbox-next:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

#club-lightbox-prev:hover svg,
#club-lightbox-next:hover svg {
    color: var(--color-dark);
}

@media (max-width: 768px) {
    #club-lightbox-close {
        font-size: 40px !important;
        top: 10px !important;
        right: 20px !important;
    }
    
    #club-lightbox-prev,
    #club-lightbox-next {
        width: 50px !important;
        height: 50px !important;
    }
    
    #club-lightbox-prev {
        left: 10px !important;
    }
    
    #club-lightbox-next {
        right: 10px !important;
    }
    
    #club-lightbox-prev svg,
    #club-lightbox-next svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ===== MODIFICA SCHEDA ALIMENTAZIONE ===== */

/* Container dei giorni */
.meal-days-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.meal-day-item {
    background: var(--color-dark-2);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.meal-day-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.meal-day-card {
    background: var(--color-dark);
    border-radius: var(--radius);
    padding: 15px;
}

.btn-edit-day {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit-day:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.meal-day-edit {
    padding: 20px;
}

.meal-day-edit .form-group {
    margin-bottom: 20px;
}

.meal-day-edit label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 15px;
}

.meal-day-edit .meal-icon {
    font-size: 18px;
}

.meal-edit-textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-dark-2);
    color: var(--color-text);
    border: 1px solid var(--color-dark-3);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
}

.meal-edit-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(255, 0, 21, 0.1);
}

.meal-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-dark-3);
}

.btn-save-day,
.btn-cancel-edit {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-save-day {
    background: var(--color-primary);
    color: white;
    flex: 1;
}

.btn-save-day:hover:not(:disabled) {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-save-day:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel-edit {
    background: var(--color-dark-3);
    color: var(--color-text);
}

.btn-cancel-edit:hover {
    background: var(--color-dark-2);
}

.meal-edit-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
}

.meal-edit-message .loading {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 10px;
    border-radius: var(--radius);
    text-align: center;
}

.meal-edit-message .success {
    background: rgba(0, 200, 83, 0.15);
    color: #00ff88;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.meal-edit-message .error {
    background: rgba(255, 0, 21, 0.15);
    color: #ff4d5e;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 0, 21, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .meal-days-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-top: 20px !important;
    }
    
    .meal-day-card {
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    
    .meal-section-item {
        padding: 20px 0 0 0 !important;
        margin-bottom: 0 !important;
        background: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 0 !important;
    }
    
    .meal-day-item {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
    }
    
    .meal-day-title {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        font-size: 1.3em !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
        background: transparent !important;
        text-align: center !important;
    }
    
    .btn-edit-day {
        width: 100%;
        justify-content: center;
    }
    
    .meal-edit-actions {
        flex-direction: column;
    }
    
    .btn-save-day,
    .btn-cancel-edit {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MODAL RICHIESTA INFORMAZIONI ===== */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.info-modal-content {
    position: relative;
    background: var(--color-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-modal-close:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(90deg);
}

.info-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.info-modal-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.info-request-form .form-group {
    margin-bottom: 1.5rem;
}

.info-request-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.info-request-form input,
.info-request-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 1rem;
    transition: var(--transition);
}

.info-request-form input:focus,
.info-request-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 21, 0.1);
}

.info-request-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-actions {
    margin-top: 2rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.form-message.error {
    background: rgba(255, 0, 21, 0.1);
    border: 1px solid rgba(255, 0, 21, 0.3);
    color: var(--color-primary);
}

/* ===== PAGINA GESTIONE RICHIESTE ===== */
.gestione-richieste-page {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.requests-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--color-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-number.pending {
    color: #ffa500;
}

.stat-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-item {
    background: var(--color-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.request-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.request-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.request-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.request-info {
    flex: 1;
}

.request-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.request-name strong {
    font-size: 1.1rem;
    color: var(--color-text);
}

.request-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.status-replied {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.request-details {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.request-thread {
    margin-bottom: 2rem;
}

.thread-message {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.thread-message:last-child {
    margin-bottom: 0;
}

.user-message {
    background: var(--color-dark);
    border-left: 3px solid var(--color-primary);
}

.admin-message {
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid #00ff88;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-header strong {
    color: var(--color-text);
    font-size: 0.95rem;
}

.message-date {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.message-content {
    color: var(--color-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

.reply-form {
    margin-top: 1.5rem;
}

.reply-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 21, 0.1);
}

.reply-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-reply,
.btn-delete {
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-reply {
    background: var(--color-primary);
    color: white;
}

.btn-reply:hover:not(:disabled) {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-reply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-delete {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-delete:hover {
    background: rgba(255, 0, 21, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.reply-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.reply-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.reply-message.error {
    background: rgba(255, 0, 21, 0.1);
    border: 1px solid rgba(255, 0, 21, 0.3);
    color: var(--color-primary);
}

.no-requests {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.no-requests p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .meal-info-box::before {
		display:none!important;
	}
    .info-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .info-modal-title {
        font-size: 1.5rem;
    }
    
    .gestione-richieste-page {
        padding: 2rem 1rem;
    }
    
    .request-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reply-actions {
        flex-direction: column;
    }
    
    .btn-reply,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }
    
    .request-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ====================
   THREAD RICHIESTA PAGE
   ==================== */

.thread-richiesta-page {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.error-container {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-dark);
    border-radius: 12px;
    border: 2px solid #444;
}

.error-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.error-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.thread-container {
    background: var(--color-dark);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.thread-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.thread-header h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.thread-subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin: 0;
}

.thread-messages {
    margin-bottom: 3rem;
}

.message-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-message .message-avatar {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4757 100%);
}

.message-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.message-content {
    flex: 1;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #333;
}

.admin-message .message-content {
    background: linear-gradient(135deg, rgba(255, 0, 21, 0.1) 0%, rgba(26, 26, 26, 1) 100%);
    border-color: rgba(255, 0, 21, 0.2);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-header strong {
    color: var(--color-primary);
    font-size: 1rem;
}

.message-date {
    font-size: 0.85rem;
    opacity: 0.6;
}

.message-text {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.thread-reply-form {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #333;
}

.thread-reply-form h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.thread-reply-form .form-group {
    margin-bottom: 1.5rem;
}

.thread-reply-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.thread-reply-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-darker);
    border: 2px solid #333;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.thread-reply-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.form-feedback.success {
    background: rgba(46, 213, 115, 0.1);
    border: 2px solid #2ed573;
    color: #2ed573;
}

.form-feedback.error {
    background: rgba(255, 0, 21, 0.1);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .thread-richiesta-page {
        padding: 2rem 1rem;
    }
    
    .thread-container {
        padding: 1.5rem;
    }
    
    .thread-header h1 {
        font-size: 1.5rem;
    }
    
    .message-item {
        gap: 0.75rem;
    }
    
    .message-avatar {
        width: 40px;
        height: 40px;
    }
    
    .message-avatar svg {
        width: 20px;
        height: 20px;
    }
    
    .message-content {
        padding: 1rem;
    }
    
    .thread-reply-form {
        padding: 1.5rem;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ====================
   PAGINA SERVIZI
   ==================== */

.servizi-page {
    padding: 4rem 0;
    background: var(--color-darker);
}

.servizi-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.servizi-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 0, 21, 0.3);
}

.servizi-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 0, 21, 0.5);
}

.servizi-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 300;
}

/* Layout Due Colonne */
.servizi-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop: layout affiancato quando il video è grande */
@media (min-width: 1025px) {
    .servizi-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .servizi-layout .servizi-text {
        flex: 1;
        min-width: 0;
        order: -1; /* Testo a sinistra */
    }
    
    .servizi-layout .servizi-media {
        flex: 0 0 50%;
        max-width: 50%;
        position: sticky;
        top: 100px;
        order: 1; /* Video a destra */
    }
    
    /* Liste e titoli in linea su desktop con layout affiancato */
    .servizi-description h2,
    .servizi-description h3,
    .servizi-description h4,
    .servizi-description ul {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .servizi-description h2:nth-of-type(odd),
    .servizi-description h2:nth-of-type(even),
    .servizi-description h3:nth-of-type(odd),
    .servizi-description h3:nth-of-type(even),
    .servizi-description h4:nth-of-type(odd),
    .servizi-description h4:nth-of-type(even),
    .servizi-description ul:nth-of-type(odd),
    .servizi-description ul:nth-of-type(even) {
        float: none;
        clear: both;
    }
}

/* Colonna Testo */
.servizi-text {
    background: var(--color-dark);
    width: 100%;
}

.servizi-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.servizi-description::after {
    content: "";
    display: table;
    clear: both;
}

.servizi-description h2,
.servizi-description h3,
.servizi-description h4 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
    width: 48%;
    box-sizing: border-box;
}

/* Titoli dispari a sinistra */
.servizi-description h2:nth-of-type(odd),
.servizi-description h3:nth-of-type(odd),
.servizi-description h4:nth-of-type(odd) {
    float: left;
    clear: left;
    margin-right: 4%;
}

/* Titoli pari a destra */
.servizi-description h2:nth-of-type(even),
.servizi-description h3:nth-of-type(even),
.servizi-description h4:nth-of-type(even) {
    float: right;
    clear: right;
}

.servizi-description h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
}

.servizi-description h3 {
    font-size: 1.5rem;
}

.servizi-description h4 {
    font-size: 1.25rem;
}

.servizi-description p {
    margin-bottom: 1.5rem;
    clear: both;
    text-align: left;
}

.servizi-description ul,
.servizi-description ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.servizi-description ul {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    width: 48%;
    box-sizing: border-box;
}

/* Liste dispari a sinistra */
.servizi-description ul:nth-of-type(odd) {
    float: left;
    clear: left;
    margin-right: 4%;
}

/* Liste pari a destra */
.servizi-description ul:nth-of-type(even) {
    float: right;
    clear: right;
}

.servizi-description ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    text-align: left;
}

.servizi-description ul li:hover {
    padding-left: 3rem;
    color: #fff;
}

.servizi-description ul li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    top: 0.1rem;
}

.servizi-description ul li:hover:before {
    left: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 0, 21, 0.6);
}

.servizi-description ol {
    list-style: decimal;
    list-style-position: inside;
}

.servizi-description ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.servizi-description a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.servizi-description a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 0, 21, 0.5);
}

.servizi-description strong,
.servizi-description b {
    color: var(--color-primary);
    font-weight: 700;
}

.servizi-description blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 0, 21, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Colonna Media */
.servizi-media {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.media-wrapper {
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    background: var(--color-dark);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.video-wrapper {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: none;
}

.video-wrapper video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Responsive */
@media (max-width: 1024px) {
    .servizi-layout {
        padding: 0 1rem;
        gap: 3rem;
    }
    
    .servizi-media {
        position: relative;
        top: 0;
    }
    
    .servizi-text {
        padding: 2rem;
    }
    
    /* Su tablet e mobile torna a singola colonna */
    .servizi-description h2,
    .servizi-description h3,
    .servizi-description h4,
    .servizi-description ul {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .servizi-description h2:nth-of-type(odd),
    .servizi-description h2:nth-of-type(even),
    .servizi-description h3:nth-of-type(odd),
    .servizi-description h3:nth-of-type(even),
    .servizi-description h4:nth-of-type(odd),
    .servizi-description h4:nth-of-type(even),
    .servizi-description ul:nth-of-type(odd),
    .servizi-description ul:nth-of-type(even) {
        float: none;
        clear: both;
    }
}

@media (max-width: 768px) {
    .servizi-page {
        padding: 2rem 0;
    }
    
    .servizi-container {
        padding: 5rem 1rem;
    }
    
    .servizi-header {
        margin-bottom: 2rem;
    }
    
    .servizi-title {
        font-size: 2rem;
    }
    
    .servizi-subtitle {
        font-size: 1rem;
    }
    
    .servizi-text {
        padding: 1.5rem;
    }
    
    .servizi-description {
        font-size: 1rem;
    }
    
    .servizi-description h2 {
        font-size: 1.5rem;
    }
    
    .servizi-description h3 {
        font-size: 1.25rem;
    }
    
    .servizi-layout {
        gap: 2rem;
    }
}

/* Descrizione Trainer con stili */
.trainer-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
}

.trainer-description h2,
.trainer-description h3,
.trainer-description h4 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.trainer-description h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(255, 0, 21, 0.3);
    padding-bottom: 0.5rem;
}

.trainer-description h3 {
    font-size: 1.5rem;
}

.trainer-description h4 {
    font-size: 1.25rem;
}

.trainer-description p {
    margin-bottom: 1.5rem;
}

.trainer-description ul,
.trainer-description ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.trainer-description ul {
    list-style: none;
    padding-left: 0;
}

.trainer-description ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.trainer-description ul li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.trainer-description ol {
    list-style: decimal;
    list-style-position: inside;
}

.trainer-description ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.trainer-description a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.trainer-description a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 0, 21, 0.5);
}

.trainer-description strong,
.trainer-description b {
    color: var(--color-primary);
    font-weight: 700;
}

.trainer-description blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 0, 21, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Galleria Servizi */
.servizi-gallery {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 0, 21, 0.3);
}

.servizi-gallery-container {
    width: 100%;
}

.servizi-gallery-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 0, 21, 0.5);
}

.servizi-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.servizi-gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.servizi-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 0, 21, 0.4);
}

.servizi-gallery-item.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.servizi-gallery-item.image-item:hover img {
    transform: scale(1.05);
}

.servizi-gallery-item.video-item video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .servizi-gallery {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .servizi-gallery-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .servizi-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Lightbox Galleria Servizi */
.servizi-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image,
.lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    box-shadow: 0 0 50px rgba(255, 0, 21, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    background: rgba(255, 0, 21, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

/* Cursor pointer sugli elementi della galleria */
.servizi-gallery-item {
    cursor: pointer;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-image,
    .lightbox-video {
        max-height: 85vh;
    }
}

/* Pulsante Richiedi Info Servizi */
.servizi-info-button-wrapper {
    margin-top: 2rem;
}

.btn-richiedi-info {
    width: 100%;
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-richiedi-info:hover {
    background: transparent;
    color: var(--color-primary);
}

.btn-richiedi-info .btn-icon {
    font-size: 1.3rem;
}

/* Modal Richiesta Info Servizi */
.servizi-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.servizi-info-modal[style*="display: flex"],
.servizi-info-modal[style*="display:flex"],
.servizi-info-modal[style*="display: block"],
.servizi-info-modal[style*="display:block"] {
    display: flex !important;
}

.servizi-info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

body.modal-open {
    overflow: hidden !important;
}

.servizi-info-modal-content {
    position: relative;
    background: var(--color-dark);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(255, 0, 21, 0.3);
}

.servizi-info-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servizi-info-modal-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.servizi-info-modal-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 900;
}

.servizi-info-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

.servizi-info-form .form-group {
    margin-bottom: 1.5rem;
}

.servizi-info-form .form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.servizi-info-form .form-group input,
.servizi-info-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.servizi-info-form .form-group input:focus,
.servizi-info-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.servizi-info-form .form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.servizi-info-form .btn-back {
    padding: 1rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.servizi-info-form .btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.servizi-info-form .btn-primary {
    flex: 1;
    padding: 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.servizi-info-form .btn-primary:hover:not(:disabled) {
    background: #cc0011;
    transform: translateY(-2px);
}

.servizi-info-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.servizi-info-form .form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.servizi-info-form .form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.servizi-info-form .form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.servizi-info-form .form-message p {
    margin: 0;
}

/* Scelta Metodo Contatto */
.servizi-contact-choice {
    text-align: center;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-contact-method {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-contact-method:hover {
    background: rgba(255, 0, 21, 0.1);
    transform: translateY(-5px);
}

.btn-contact-method .btn-icon {
    font-size: 3rem;
}

.btn-contact-method .btn-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-email .btn-icon {
    filter: grayscale(100%);
}

.btn-email:hover .btn-icon {
    filter: grayscale(0%);
}

.btn-icon-whatsapp {
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 175.216 175.552'%3E%3Cpath fill='%2325D366' d='M87.5 0C39.2 0 0 39.2 0 87.5c0 15.4 4 29.8 11 42.4L0 175.6l47-11.6c12 6.4 25.8 10 40.5 10 48.3 0 87.5-39.2 87.5-87.5S135.8 0 87.5 0z'/%3E%3Cpath fill='white' d='M69.8 53.8c-1.6-3.6-3.3-3.7-4.8-3.7-1.2 0-2.7 0-4.1 0s-3.8.5-5.8 2.5c-2 2-7.6 7.4-7.6 18.1s7.8 21 8.9 22.4c1.1 1.4 15.2 24.2 37.6 33.2 18.7 7.5 22.4 6 26.4 5.6 4-.4 12.9-5.3 14.7-10.4 1.8-5.1 1.8-9.5 1.3-10.4-.6-.9-2-1.4-4.2-2.5-2.2-1.1-12.9-6.4-14.9-7.1-2-.7-3.4-1.1-4.8.9-1.4 2-5.4 7.1-6.6 8.5-1.2 1.4-2.4 1.6-4.5.5-2.1-1.1-9-3.3-17.1-10.5-6.3-5.6-10.6-12.5-11.8-14.5s-.1-3.1 1-4.1c1-1 2.2-2.6 3.3-3.9 1.1-1.3 1.5-2.2 2.2-3.7.7-1.5.4-2.8-.2-3.9-.5-1.1-4.8-11.6-6.6-15.9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.btn-whatsapp:hover .btn-icon-whatsapp {
    transform: scale(1.15);
    transition: transform 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .servizi-info-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .servizi-info-modal-title {
        font-size: 1.5rem;
    }
    
    .btn-richiedi-info {
        font-size: 1rem;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-contact-method {
        padding: 1.5rem 1rem;
    }
    
    .servizi-info-form .form-actions {
        flex-direction: column;
    }
    
    .servizi-info-form .btn-back {
        order: 2;
    }
    
    .servizi-info-form .btn-primary {
        order: 1;
    }
}
