:root {
    --accent: #1abc9c;
    --primary: #356549; /* Verde Biocontrol */
    --primary-dark: #264a35;
    --dark: #2c3e50;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --glass-green: #356549;
    --bg-gray: #f4f7f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* color: var(--dark); */
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SEZIONE INFO & ORARI --- */
.info {
    padding: clamp(60px, 8vw, 120px) 0;
    background: #9ca19f54;
    color: var(--glass-green);
}

.info-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Switch Sedi */
.location-switch {
    position: relative;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 100%;
}

.switch-btn {
    padding: 12px 35px;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 2;
    font-weight: 600;
    transition: 0.3s;
}

.switch-btn.active {
    color: var(--primary);
}

.switch-slider {
    position: absolute;
    height: 84%;
    width: 48%;
    background: white;
    left: 6px;
    top: 8%;
    border-radius: 40px;
    transition: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.info-grid {
    display: none;
    margin-top: 50px;
    opacity: 0;
}

.info-grid.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeInUp 0.6s forwards;
}

.hours {
    list-style: none;
    margin: 15px 0 30px;
}

.hours li {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours i {
    color: var(--accent);
}

.info-grid h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 1px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.location-map iframe {
    width: 100%;
    height: 280px;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- SEZIONE SCARICA APP --- */
.app-section {
    padding: clamp(50px, 6vw, 100px) 5%;
    width: 100%;
    background-color: var(--bg-gray);
}

.app-container,
.app-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: clamp(30px, 5vw, 80px);
}

.app-content, 
.app-text {
    flex: 1;
}

.app-text h2,
.app-section h2 {
    font-size: clamp(2rem, 3.5vw, 38px);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.app-section p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.app-features {
    margin: 20px 0;
}

.feature-item {
    margin-bottom: 15px;
}

.app-badges,
.download-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.app-badges img {
    height: 48px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.app-badges img:hover {
    transform: translateY(-5px);
}

.app-image,
.app-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img,
.app-mockup img {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.store-btn {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* --- FORM CONTATTI GDPR READY --- */
.contact-form-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--light-bg);
}

.form-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.form-sidebar {
    background: var(--primary);
    color: white;
    padding: clamp(30px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-body {
    padding: clamp(30px, 5vw, 60px);
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 15px;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
}

.gdpr-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    font-size: 13px;
    color: #666;
}

.gdpr-box input {
    width: auto;
    margin-top: 4px;
}

.gdpr-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* --- GRIGLIE BASE (REPARTI E MEDICI) --- */
.grid-container,
.doctors-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dept-card,
.doctor-card {
    width: 100%;
}

.info-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

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

/* ==========================================
   BREAKPOINTS RESPONSIVE (MEDIA QUERIES)
   ========================================== */

/* 1. Large Laptops / Desktop Intermedi (sotto i 1100px) */
@media (max-width: 1100px) {
    .grid-container,
    .doctors-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 20px 0;
    }
    
    .info-grid.active {
        gap: 20px;
    }
}

/* 2. Tablet Landscape e schermate medie (sotto i 992px) */
@media (max-width: 992px) {
    .info-grid.active {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .app-container,
    .app-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .app-content,
    .app-text {
        width: 100%;
        padding-right: 0;
        order: 1;
    }

    .app-image,
    .app-mockup {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        order: 2;
    }

    .app-features {
        text-align: left;
        display: inline-block;
        margin: 20px auto;
    }

    .app-badges,
    .download-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .form-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-sidebar {
        padding: 40px 20px;
    }

    .info-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 3. Tablet Portrait e Smartphone Grandi (sotto i 768px) */
@media (max-width: 768px) {
    .grid-container,
    .doctors-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
    }

    .dept-card,
    .doctor-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .location-switch {
        width: 100%;
        display: flex;
    }

    .switch-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 14px;
    }

    .form-body {
        padding: 30px 20px;
    }

    .gdpr-box {
        text-align: left;
    }
}

/* 4. Smartphone Piccoli (sotto i 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .switch-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .app-badges img {
        height: 40px;
    }

    .store-btn {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .btn-submit {
        padding: 15px 20px;
        font-size: 14px;
    }
}