/*
Theme Name: FD Massoterapia
Theme URI: https://fdmassoterapia.it
Author: Fabio Desogus
Author URI: https://fdmassoterapia.it
Description: Tema personalizzato per FD Massoterapia - Massoterapia a Torino
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fdmassoterapia
*/

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary-color: #2EAFAD;
    --primary-dark: #238F8D;
    --primary-light: #E8F7F7;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-section: #E8F7F7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(46, 175, 173, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    flex-direction: column;
    padding: 10px 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
}

.sub-menu a:hover {
    background-color: var(--bg-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(46, 175, 173, 0.9) 0%, rgba(46, 175, 173, 0.7) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-section .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-section .btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* ============================================
   ABOUT SECTION (Chi Sono)
   ============================================ */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

/* ============================================
   SERVICES SECTION (Trattamenti)
   ============================================ */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-icon img,
.service-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card .btn {
    padding: 10px 25px;
    font-size: 0.875rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(46, 175, 173, 0.95) 0%, rgba(35, 143, 141, 0.95) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/cta-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-rating img {
    height: 40px;
}

.rating-stars {
    color: #fbbc04;
    font-size: 1.2rem;
}

.rating-text {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-stars {
    color: #fbbc04;
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
    color: var(--text-gray);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Hours Table */
.hours-section {
    margin-top: 40px;
}

.hours-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hours-location h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.hours-list {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.hours-list li {
    padding: 8px 0;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
}

/* Locations */
.locations-section {
    margin-top: 40px;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.location-card {
    text-align: center;
    padding: 20px;
}

.location-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.location-card p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.map-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   TREATMENT PAGE TEMPLATE
   ============================================ */
.treatment-hero {
    position: relative;
    padding: 150px 0 100px;
    background: linear-gradient(135deg, rgba(46, 175, 173, 0.9) 0%, rgba(46, 175, 173, 0.7) 100%);
    text-align: center;
    color: var(--white);
}

.treatment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/treatment-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.treatment-hero .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.treatment-hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.treatment-hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.treatment-content {
    padding: 80px 0;
}

.treatment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.treatment-main h2 {
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.treatment-main h2:first-child {
    margin-top: 0;
}

.treatment-main p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.treatment-main ul {
    margin: 20px 0;
    padding-left: 20px;
}

.treatment-main li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.treatment-main li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.treatment-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.sidebar-card img {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* Cases Section */
.cases-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.cases-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.case-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.case-header {
    margin-bottom: 15px;
}

.case-header h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.case-header span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.case-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-answer {
    padding: 0 30px 20px;
    color: var(--text-gray);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ============================================
   BLOG
   ============================================ */
.blog-section {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo {
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    height: 50px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .treatment-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--bg-light);
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .menu-item-has-children.active .sub-menu {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image::before {
        display: none;
    }

    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hours-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .btn {
        padding: 12px 30px;
        font-size: 0.875rem;
    }

    .service-card,
    .testimonial-card,
    .contact-info-card {
        padding: 25px 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.bg-primary-light { background-color: var(--primary-light); }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }
