/* ========================================
   STUDIO FISIOTERAPIA FADINI - CSS
   Tema Medico Professionale
   ======================================== */

/* === VARIABILI === */
:root {
    --primary: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #3385D6;
    --secondary: #2C3E50;
    --accent: #27AE60;
    --success: #27AE60;
    --warning: #F39C12;
    
    --text-dark: #2C3E50;
    --text-body: #4A5568;
    --text-light: #718096;
    
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gray: #EDF2F7;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-call {
    background: var(--accent);
    color: white !important;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-call i {
    font-size: 1rem;
}

.btn-call:hover {
    background: #229954;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5);
    transform: translateY(-2px);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.logo-text strong {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 12px;
}

.nav-menu li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu li a:not(.btn):hover::after {
    width: 100%;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    contain: layout style paint;
}

.hero-slide.active {
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Nascondi frecce slider su mobile */
@media (max-width: 768px) {
    .slider-controls { display: none; }
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: white;
    width: 14px;
    height: 14px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.92) 0%, rgba(44, 62, 80, 0.88) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    padding-top: 80px;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.7;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 1px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* === CHI SIAMO === */
.about {
    background: var(--bg-light);
}

.about-image {
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-body);
    line-height: 1.6;
}

/* === SERVIZI === */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-content h3 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.service-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-body);
}

.service-list i {
    color: var(--accent);
    font-size: 1rem;
}

/* === RECENSIONI === */
.reviews {
    background: var(--bg-light);
}

.reviews-rating {
    margin-top: 20px;
}

.stars {
    font-size: 1.5rem;
    color: #FFB800;
    margin-bottom: 10px;
}

.reviews-rating p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    color: var(--text-dark);
}

.review-stars {
    color: #FFB800;
}

.review-text {
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
}

.reviews-cta {
    text-align: center;
}

/* === CONTATTI === */
.contact {
    background: white;
}

.contact-map {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
}

.contact-card {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
}

.contact-info-card {
    text-align: left;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-icon.social {
    background: linear-gradient(135deg, #667EEA, #764BA2);
}

.contact-card h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-item i {
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 3px;
}

.info-item a,
.info-item span {
    color: var(--text-body);
    flex: 1;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

/* === FOOTER === */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand .logo-text strong {
    color: white;
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    font-style: italic;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
    color: white;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col ul li {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-credits a {
    color: var(--primary-light);
    font-weight: 600;
}

.footer-credits a:hover {
    color: white;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* === COOKIE BANNER - Barra Semplice === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.96);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    z-index: 9999;
    display: none;
    border-top: 2px solid var(--primary);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    color: white;
}

.cookie-text h4 { display: none; }

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #3399ff;
}

.cookie-banner .btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner { padding: 8px 12px; }
    .cookie-icon { display: none; }
    .cookie-text p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .cookie-content { gap: 8px; }
    .cookie-text p { font-size: 0.8rem; }
}

/* === POLICY MODAL === */
.policy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.policy-modal.active {
    display: flex;
}

.policy-modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.policy-modal-body {
    padding: 60px 40px 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.policy-modal-body h2 {
    margin-bottom: 30px;
    color: var(--primary);
}

.policy-modal-body h3 {
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.policy-modal-body p,
.policy-modal-body ul {
    margin-bottom: 20px;
    line-height: 1.8;
}

.policy-modal-body ul {
    padding-left: 20px;
    list-style: disc;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .services-grid,
    .features,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    .nav-menu .btn-call { display: none !important; }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }
    
    .btn-call {
        width: 90%;
        max-width: 300px;
        justify-content: center;
        margin: 10px auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 80px;
        right: 20px;
    }
    
    .policy-modal-body {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

