/* CSS Variables */
:root {
    --primary-color: #9DD3D7;
    --text-dark: #1a1a1a;
    --text-medium: #333;
    --text-light: #666;
    --text-gray: #cccccc;
    --text-white: #ffffff;
    --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;
    --success-color: #4CAF50;
    --error-color: #f44336;
}

/* 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%;
}

/* Contact Information Section */
.contact-info {
    padding: 80px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 40px;
    margin-top: 20px;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.contact-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.contact-icon {
    margin-bottom: 25px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), rgba(157, 211, 215, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(157, 211, 215, 0.3);
}

.contact-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-detail {
    color: var(--primary-color);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-detail a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-detail a:hover {
    color: var(--text-medium);
}

.contact-description {
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
    margin-top: 15px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 8px 16px;
    border: 1px solid rgba(157, 211, 215, 0.3);
    border-radius: 25px;
    display: inline-block;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Opening Hours Section */
.opening-hours {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), rgba(157, 211, 215, 0.8));
}

.hours-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hours-content h2 {
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 40px;
    color: var(--text-white);
    line-height: 0.9;
    font-weight: 500;
}

.hours-grid {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.day-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-lighter);
    transition: var(--transition-smooth);
}

.day-hours:last-child {
    border-bottom: none;
}

.day-hours.today {
    background: rgba(157, 211, 215, 0.1);
    border-radius: 6px;
    padding: 12px 15px;
    font-weight: 500;
}

.day {
    color: var(--text-dark);
    font-weight: 500;
}

.hours {
    color: var(--primary-color);
    font-weight: 500;
}

.hours.closed {
    color: var(--text-light);
    font-style: italic;
}

/* Map Section */
.map-section {
    padding: 40px 0;
    background: var(--bg-white);
}

.map-header {
    text-align: center;
    margin-bottom: 20px;
}

.map-header h2 {
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    color: #939393;
    line-height: 0.9;
    font-weight: 500;
}

.map-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #C6C6C6;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 50px;
}

.footer-section h3 {
    margin-bottom: 25px;
    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: 12px;
    display: block;
    font-size: 14px;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Hamburger base (desktop hidden) */
.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);
}

/* Stato attivo animazione */
.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);
}

/* FIX: Assicura che il contenuto resti sopra l'overlay ::before */
.contact-card h3,
.contact-card .contact-detail,
.contact-card .contact-description,
.contact-card .social-links,
.contact-card .contact-icon {
    position: relative;
    z-index: 2;
}

/* 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;
    }
}

@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;
    }

    .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-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .service-content {
        padding: 30px 25px;
    }

    .services, 
    .about, 
    .certifications {
        padding: 60px 0;
    }

    .carousel-container {
        margin-top: 40px;
    }

    .carousel-nav {
        display: none;
    }
    
    .cert-card {
        padding: 30px 25px;
        width: min(280px, 85vw);
    }
    
    .footer-content {
        gap: 30px;
    }

  .hamburger {
    display: flex;
  }

  .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;
  }
}

@media (max-width: 480px) {
    .hero {
        min-height: 300px;
        padding: 20px 10px;
    }
    
    .hero-text {
        padding: 15px;
    }
    
    .hero-decoration {
        width: min(300px, 30vw);
        z-index: 0;
    }
    
    .hero-decoration-top-right {
        top: -30px;
        right: -30px;
    }
    
    .hero-decoration-bottom-left {
        bottom: -30px;
        left: -30px;
    }
    
    .service-content {
        padding: 25px 20px;
    }
    
    .cert-card {
        padding: 25px 20px;
        width: min(250px, 80vw);
    }
    
    .carousel-track {
        gap: 30px;
    }
}

/* 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;
    }

}
