/* CSS Variables */
:root {
    --primary-color: #9DD3D7;
    --text-dark: #1a1a1a;
    --text-medium: #333;
    --text-light: #666;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --border-light: #f0f0f0;
    --border-lighter: #f5f5f5;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(74, 144, 226, 0.12);
    --transition-smooth: all 0.3s ease;
    --transition-medium: all 0.4s ease;
    --border-radius: 8px;
    --border-radius-large: 30px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    letter-spacing: 0.3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-center { text-align: center; }

/* Card Hover Effect */
.card-hover {
    transition: var(--transition-medium);
    border: 1px solid var(--border-lighter);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(157, 211, 215, 0.3);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.activity-name {
    font-family: "Instrument Serif", serif;
    margin: 0;
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #939393;
}

.person-name {
    font-family: "Instrument Serif", serif;
    margin: 0;
    font-weight: 1;
    font-size: clamp(0.7rem, 2.5vw, 1.5rem);
    color: #CACACA;
    padding-left: 1rem;
}

.logo img {
    width: 140px;
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    text-decoration: none;
    color: #939393;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Services Main Section */
.services-main {
    padding: 60px 0;
    background: var(--bg-white);
}

/* Service Category */
.service-category {
    margin-bottom: 80px;
    scroll-margin-top: 180px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background-color: var(--primary-color);
    opacity: 0.8;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.category-header h2 {
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 15px;
    color: var(--text-white);
    line-height: 0.9;
    font-weight: 500;
}

.category-header p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-white);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Service Item */
.service-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.service-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.service-header h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-dark);
    letter-spacing: 0.3px;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

/* Fix per rendere i link cliccabili sopra l'overlay di ::before */
.service-description a {
    /* Stabilisce un nuovo contesto di stacking */
    position: relative; 
    /* Forza il link ad essere visualizzato e cliccabile sopra l'elemento ::before */
    z-index: 2; 
    
    /* Miglioramenti opzionali per la chiarezza del link */
    color: var(--primary-color); /* Per evidenziare che è un link */
    text-decoration: underline;
}

/* Aggiungere anche questo al contenitore del link può essere una buona pratica */
.service-description {
    position: relative;
    z-index: 1; 
}

.service-duration {
    background: rgba(157, 211, 215, 0.15);
    color: var(--text-medium);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 20px;
    min-height: 60px;
}

.service-price {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    padding: 8px 0;
    border-top: 1px solid var(--border-lighter);
    margin-top: auto;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.footer-section p, 
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-decoration {
        width: min(300px, 25vw);
    }
    
    .hero-decoration-top-right {
        top: -80px;
        right: -80px;
    }
    
    .hero-decoration-bottom-left {
        bottom: -80px;
        left: -80px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        justify-content: center;
        text-align: center;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo img {
        width: 100px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        background: var(--bg-white);
        padding: 20px;
        border-top: 1px solid var(--border-light);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 400px;
        padding: 30px 15px;
    }

    .hero-text {
        padding: 20px;
    }

    .hero-decoration {
        width: min(200px, 20vw);
    }
    
    .hero-decoration-top-right {
        top: -50px;
        right: -50px;
    }
    
    .hero-decoration-bottom-left {
        bottom: -50px;
        left: -50px;
    }

    .services-main {
        padding: 40px 0;
    }

    .service-category {
        margin-bottom: 60px;
    }

    .category-header {
        margin-bottom: 30px;
        padding: 30px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        padding: 25px 20px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .service-header h3 {
        min-width: auto;
    }

    .service-duration {
        align-self: flex-end;
    }

    .service-description {
        min-height: auto;
        margin-bottom: 15px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 300px;
        padding: 20px 10px;
    }
    
    .hero-text {
        padding: 15px;
    }
    
    .hero-decoration {
        width: min(300px, 30vw);
    }
    
    .hero-decoration-top-right {
        top: -30px;
        right: -30px;
    }
    
    .hero-decoration-bottom-left {
        bottom: -30px;
        left: -30px;
    }

    .category-header {
        padding: 25px 15px;
    }

    .service-item {
        padding: 20px 15px;
    }

    .service-header {
        margin-bottom: 12px;
    }

    .services-grid {
        gap: 15px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .hero-decoration img,
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .hero-decoration {
        display: none;
    }
    
    .hero {
        background: none;
        min-height: auto;
        padding: 20px 0;
    }
    
    .service-item {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .category-header {
        background: none;
        box-shadow: none;
        border-bottom: 2px solid #333;
    }

}




