/* ===================================
   VARIABILI CSS E RESET
   =================================== */

:root {
    /* Palette colori */
    --light: #ea9e7c;
    --dark: #df6e47;
    --cream: #fff6ed;
    --white: #fefdfe;
    --text: #1b1b1a;
    --gray: #f5f5f5;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 50px;
    
    /* Shadows */
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 15px 30px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility class per debug - rimuovere in produzione */
.debug {
    border: 1px solid blue;
}


/* ===================================
   TYPOGRAPHY E BASE STYLES
   =================================== */

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--cream);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark);
}

a {
    color: var(--light);
    transition: color var(--transition-fast);
}

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

/* ===================================
   LAYOUT COMPONENTS
   =================================== */

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

/* ===================================
   HEADER E NAVIGATION
   =================================== */

header {
    padding: 10px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

header.scrolled {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--light);
}

.logo img {
    margin-right: 10px;
    max-width: 50px;
    max-height: 50px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: var(--spacing-lg);
}

nav ul li a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--dark);
    left: 0;
    bottom: 0;
    transition: width var(--transition-fast);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, rgba(233, 158, 124, 0.2) 0%, rgba(222, 110, 71, 0.3) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    top: 50px;
}

.hero-content {
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-container {
    padding: var(--spacing-xxl);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xxl);
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: auto;
    max-height: 70%;
    margin-top: 100px;
    position: relative;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.about-image:hover {
    transform: scale(1.05);
}

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

.figure-caption {
    text-transform: capitalize;
    font-size: 0.7em;
    font-weight: 400;
    font-style: italic;
    padding: var(--spacing-xs);
    color: var(--dark);
}

.about-content {
    flex: 1;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--light);
    left: 0;
    bottom: -10px;
}

.about p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

/* ===================================
   ACTIVITIES SECTION
   =================================== */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.activities {
    display: flex;
    align-items: flex-start;
    justify-self: center;
    gap: 1rem;
    background-color: var(--white);
    border-radius: 10px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.activities:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.activities-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
/* 
    border: 2px solid blue; */
}

.activities i {
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.activities-content h3 {
    margin: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.activities-content p {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: #555;
}

.activities-content-img {
    background-image: url("logo/rz-gayayoga-logo.jpg");
    background-color: var(--white);
    width: 350px;
    height: 130px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ===================================
   GALLERY SECTION
   =================================== */

.gallery {
    margin-top: 100px;
    background-color: var(--cream);
}

/* ===================================
   PHILOSOPHY SECTION
   =================================== */

.philosophy {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(233, 158, 124, 0.2) 0%, rgba(222, 110, 71, 0.3) 100%);
    text-align: center;
}

.philosophy-quote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-style: italic;
    position: relative;
    padding: var(--spacing-xl);
}

.philosophy-quote::before,
.philosophy-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--light);
    position: absolute;
    opacity: 0.5;
}

.philosophy-quote::before {
    top: 0;
    left: 0;
}

.philosophy-quote::after {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* ===================================
   CONTATTI SECTION
   =================================== */

.contatti {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--white);
}

.contatti h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contatti-intro {
    text-align: center;
    font-size: 1.1em;
    color: #555;
}

.contatti-intro a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

.contatto-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
}

.icon {
    font-size: 2em;
    margin-right: var(--spacing-sm);
    color: #c1440e;
}

.contatto-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    align-content: center;
}

.contatto-row .contatto-item {
    flex: 1;
    min-width: 280px;
    margin-bottom: 0;
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: var(--dark);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-container {
    padding: 10%;
    display: grid;
    grid: 250px / 40% auto auto;
    justify-items: center;
    gap: var(--spacing-xl);

}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    display: block;
}

.footer-logo span {
    color: var(--light);
}

.footer-about {
    margin: 0 auto;
}

.footer-about p {
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: right;
    justify-content: center;
}

.social-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 2px solid var(--dark);
    list-style: none;
}

.social-link:hover {
    background-color: var(--light);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.copyright {
    text-align: center;
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   UTILITY COMPONENTS
   =================================== */

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background-color: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-container,
    .contact-container {
        flex-direction: column;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: var(--spacing-md);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform var(--transition-fast);
        z-index: 999;
    }

    nav.show-menu {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: var(--spacing-sm) 0;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 12px 25px;
        margin-bottom: 10px;
    }
    
    .about-container {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
    }
    
    .about-image img {
        max-width: 100%;
        max-height: 300px;
        object-fit: cover;
        margin: 0 auto;
        opacity: 1;
    }
    
    .footer-links-container {
        display: none;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .icon-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: top;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    .activities {
        width: 80%;
        margin: 0 auto;
/* 
        border: 2px solid green; */
    }
    .activities-icon{
        display: none;
    /* border: 2px solid red; */
    }
    
    .activities-content {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        justify-content: center;
    }
        
    .gallery {
        margin-top: 200px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile - Fix generale */
@media (max-width: 767px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .about {
        padding: var(--spacing-xxl) 0;
    }
    
    .about-container {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        flex-direction: column;
    }
    
    .about-image {
        margin-top: var(--spacing-md);
        max-height: none;
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .icon-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .activities {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .contatto-row {
        flex-direction: column;
        gap: 10px;
    }
    
    /* .contatto-item {
        min-width: 100%;
        padding: var(--spacing-sm);
        justify-content: flex-start;
    } */
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .social-links {
        align-items: center;
        border: none;
    }
    
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .gallery {
        margin-top: var(--spacing-xxl);
        padding: var(--spacing-md) 0;
    }
}