/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-background: hsl(220, 15%, 97%);
    --color-foreground: hsl(220, 40%, 15%);
    --color-card: hsl(0, 0%, 100%);
    --color-primary: hsl(220, 40%, 15%);
    --color-primary-foreground: hsl(0, 0%, 98%);
    --color-secondary: hsl(220, 15%, 92%);
    --color-muted: hsl(30, 20%, 88%);
    --color-muted-foreground: hsl(220, 20%, 45%);
    --color-accent: hsl(40, 70%, 65%);
    --color-accent-foreground: hsl(220, 40%, 15%);
    --color-border: hsl(220, 15%, 85%);
    
    --gradient-primary: linear-gradient(135deg, hsl(220, 40%, 15%), hsl(220, 50%, 25%));
    --gradient-accent: linear-gradient(135deg, hsl(40, 70%, 65%), hsl(40, 80%, 75%));
    --gradient-subtle: linear-gradient(180deg, hsl(220, 15%, 97%), hsl(220, 15%, 92%));
    
    --shadow-elegant: 0 10px 40px -10px hsla(220, 40%, 15%, 0.15);
    --shadow-soft: 0 4px 20px -4px hsla(220, 20%, 20%, 0.08);
    
    --font-playfair: 'Playfair Display', serif;
    --font-inter: 'Inter', sans-serif;
}

body {
    font-family: var(--font-inter);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-playfair);
    font-weight: 600;
    line-height: 1.2;
}

strong {
    color: var(--color-primary);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
    opacity: 0;
}

/* Navigation */
#navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navigation button{
    color: white;
}

#navigation.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

#navigation.scrolled button{
    color: #19253d ;
}
#navigation .mobile-menu-link{
    text-align: center;
    color: var(--color-primary);
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.nav-logo {
    font-family: var(--font-playfair);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--color-primary);
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    background: white;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-elegant);
    animation: fade-in 0.3s ease-out;
}

.mobile-menu .container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    color: rgba(0, 0, 0, 0.7);
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.mobile-menu-link:hover {
    color: var(--color-primary);
    background-color: rgba(220, 220, 220, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
}

.btn-accent:hover {
    background-color: hsl(40, 70%, 60%);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 40rem;
}

@media (min-width: 768px) {
    .hero-text {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image-wrapper {
    position: relative;
    animation-delay: 0.2s;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-elegant);
}



.hero-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 1rem;
}

.hero-image-decoration-1,
.hero-image-decoration-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-image-decoration-1 {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(218, 165, 32, 0.2);
}

.hero-image-decoration-2 {
    top: -1.5rem;
    left: -1.5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(218, 165, 32, 0.1);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-card {
    background-color: var(--color-card);
}

.section-gradient {
    background: var(--gradient-subtle);
}

.section-content {
    max-width: 80rem;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--color-accent);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* Chi Sono */
.chi-sono-content {
    animation-delay: 0.1s;
}

.text-lg {
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: rgba(220, 220, 220, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    box-shadow: var(--shadow-elegant);
}

.feature-icon {
    background-color: rgba(218, 165, 32, 0.1);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-accent);
    stroke-width: 2;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: rgba(0, 0, 0, 0.7);
}

/* Servizi */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

@media (min-width: 768px) {

    .hero-image{
        margin-left: 10% ;
        width: 400px;
    }



    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: var(--shadow-elegant);
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }

.service-icon {
    background-color: rgba(218, 165, 32, 0.1);
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-accent);
    stroke-width: 2;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.service-text {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* Patologie */
.patologie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .patologie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .patologie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.patologia-card {
    background-color: rgba(220, 220, 220, 0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.patologia-card:hover {
    box-shadow: var(--shadow-elegant);
}

.patologia-card:nth-child(1) { animation-delay: 0s; }
.patologia-card:nth-child(2) { animation-delay: 0.1s; }
.patologia-card:nth-child(3) { animation-delay: 0.2s; }
.patologia-card:nth-child(4) { animation-delay: 0.3s; }

.patologia-icon {
    background-color: rgba(218, 165, 32, 0.1);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.patologia-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-accent);
    stroke-width: 2;
}

.patologia-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.patologia-text {
    color: rgba(0, 0, 0, 0.65);
}

/* Contatti */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contatti-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contatti-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.contact-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon-wrapper {
    background-color: rgba(218, 165, 32, 0.1);
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-accent);
    stroke-width: 2;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-text {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.125rem;
    line-height: 1.6;
}

.contact-link {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.contact-link:hover {
    color: var(--color-accent);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-top: 0.25rem;
}

.orari-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    animation-delay: 0.1s;
}

.orari-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.orari-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.orario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(220, 220, 220, 0.5);
}

.orario-item:last-child {
    border-bottom: none;
}

.orario-day {
    font-weight: 500;
    color: var(--color-foreground);
}

.orario-time {
    color: rgba(0, 0, 0, 0.65);
}

.orari-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--color-accent);
    font-weight: 500;
}

.map-container {
    margin-top: 3rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    animation-delay: 0.2s;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-text p {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-heart {
    width: 1rem;
    height: 1rem;
    color: var(--color-accent);
}

.footer-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
/* Glow soft */
.service-card.highlight {
    border: 1px solid rgba(100, 150, 255, 0.25);
    box-shadow: 0 0 10px rgba(100, 150, 255, 0.15);
    background: linear-gradient(145deg, #fff 0%, #f8faff 100%);
    transition: all 0.3s ease;
}

.service-card.highlight:hover {
    box-shadow: 0 0 16px rgba(90, 140, 255, 0.25);
}

/* CTA button più compatto */
.small-btn {
    display: block;
    font-size: 1rem;
    margin-top: 30px;
    padding: 12px 28px;
    border-radius: 8px;
}

/* Contenuto nascosto inizialmente */
.service-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e6f5;
    animation: fadeIn 0.4s ease forwards;
}

.service-details img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

/* Effetto comparsa */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: fadeIn 0.4s ease;
  }
  
  .cookie-banner.hidden {
    display: none;
  }
  
  .cookie-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
  }
  
  .cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  
  .btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }
  
  .btn.primary { background: #4a7bf7; color: #fff; }
  .btn.secondary { background: #ececec; }
  .btn.danger { background: #ddd; }
  
  /* Modal */
  .cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  
  .cookie-modal.hidden {
    display: none;
  }
  
  .modal-box {
    background: #fff;
    padding: 25px;
    max-width: 450px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
  }
  
  .cookie-option {
    margin-bottom: 15px;
  }
  
  .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  /* Fade Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity:1; transform: translateY(0); }
  }
  
