/* Studio Medico SMEA Biomed - CSS Styles - Versione Definitiva */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Arial', 'Helvetica', sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex-grow: 1; }

/* Header e Navigation */
header { background: linear-gradient(135deg, #2c5e3f 0%, #4a7c59 100%); color: white; padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 50px; }
.logo h1 { font-size: 1.5rem; }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; }
.nav-menu li a { color: white; text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 5px; transition: all 0.3s ease; }
.nav-menu li a:hover, .nav-menu li a.active { background-color: rgba(255,255,255,0.2); color: #d4b830; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero { color: white; text-align: center; padding: 4rem 1rem; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; min-height: 85vh; }
/* PERCORSI IMMAGINE CORRETTI */
.home-page .hero { background-image: linear-gradient(rgba(44, 94, 63, 0.4), rgba(74, 124, 89, 0.7)), url('images/hero-bg.jpg'); }
.studio-page .hero { background-image: linear-gradient(rgba(44, 94, 63, 0.4), rgba(74, 124, 89, 0.7)), url('images/Studio_home.jpg'); }
.hero-content h1, .hero-content h2 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.4); }
.hero-content p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 2rem auto; }

/* Bottoni */
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 30px; border: none; border-radius: 25px; font-size: 1rem; font-weight: bold; text-decoration: none; transition: all 0.3s ease; cursor: pointer; display: inline-block; }
.btn-primary { background-color: #d4b830; color: #fff !important; }
.btn-secondary { background-color: transparent; color: white; border: 2px solid white; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-primary:hover { background-color: #b8a029; }
.btn-secondary:hover { background-color: white; color: #2c5e3f; }

/* Sezioni */
section { padding: 4rem 1rem; }
.section-white { background-color: white; }
.section-gray { background-color: #f8f9fa; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; color: #2c5e3f; margin-bottom: 1rem; }
.section-title p { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; }

/* Card Servizi Homepage */
.service-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.service-card { display: flex; flex-direction: column; background: #f8f9fa; padding: 2rem; border-radius: 10px; text-decoration: none; color: #333; border: 1px solid #e9ecef; transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #d4b830; }
.service-card h3 { color: #2c5e3f; font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-card p { color: #666; flex-grow: 1; margin-bottom: 1.5rem; }
.service-card .scopri-di-piu { color: #b8a029; font-weight: bold; align-self: flex-start; }

/* Struttura a card unificata per Team e Trattamenti */
.team-collaborators-grid, .scroll-treatments-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.treatment-scroll-card { background: white; border-radius: 10px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.treatment-scroll-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.treatment-scroll-card .image-link img, .treatment-scroll-card > img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s ease; }
.treatment-scroll-card .image-link:hover img { transform: scale(1.05); }
.treatment-scroll-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.treatment-scroll-content h3 { font-size: 1.6rem; color: #2c5e3f; margin-bottom: 1rem; }
.treatment-scroll-text { max-height: 220px; overflow-y: auto; padding-right: 1rem; text-align: left; border-top: 1px solid #e0e0e0; padding-top: 1rem; }
.treatment-scroll-text h4 { font-size: 1.1rem; color: #333; margin-bottom: 0.5rem; }
.treatment-scroll-text p { font-size: 1rem; line-height: 1.7; color: #555; margin-bottom: 1rem; }
.leggi-tutto-container { text-align: center; padding-top: 1rem; margin-top: auto; border-top: 1px solid #f0f0f0; }
.btn-leggi-tutto { display: inline-block; background-color: #2c5e3f; color: white; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-leggi-tutto:hover { background-color: #d4b830; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Sezione Contatti Rapidi */
.quick-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.quick-contact-item { background: #f8f9fa; padding: 2.5rem 2rem; border-radius: 10px; text-align: center; border: 1px solid #e9ecef; display: flex; flex-direction: column; align-items: center; }
.quick-contact-item .icon { font-size: 2.5rem; margin-bottom: 1rem; color: #2c5e3f; line-height: 1; }
.quick-contact-item h3 { font-size: 1.5rem; color: #2c5e3f; margin-bottom: 1rem; }
.quick-contact-item p { color: #555; flex-grow: 1; margin-bottom: 2rem; }

/* Footer */
footer { background-color: #2c5e3f; color: rgba(255, 255, 255, 0.8); padding: 3rem 1rem 1rem 1rem; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; padding-bottom: 2rem; }
.footer-col h4 { color: #ffffff; font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 2px; background-color: #d4b830; }
.footer-col p { font-size: 0.95rem; line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: all 0.3s ease; }
.footer-col a:hover { color: #d4b830; padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; margin-top: 2rem; font-size: 0.9rem; }
.footer-bottom p { margin: 0.5rem 0; }
.footer-bottom .credit a { color: rgba(255, 255, 255, 0.7); font-weight: bold; text-decoration: none; }
.footer-bottom .credit a:hover { color: #ffffff; }

/* Animazioni */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Media Queries per Mobile */
@media (max-width: 768px) {
    /* Menu mobile */
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: #2c5e3f; padding: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }

    /* Hero Section Mobile */
    .hero {
        min-height: 60vh; /* Altezza flessibile per mobile */
        height: auto;
    }
    .hero-content h1, .hero-content h2 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
}
