/* Reset e variabili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #586b1b;
    --primary-dark: #3e4d13;
    --primary-light: #e3f2e0;
    --secondary-light: #f3ede2;
    --accent: #94a858;
    --whatsapp: #25d366;
    --text: #2f2f2f;
    --text-light: #5f6b55;
    --bg: #f7f7f2;
    --bg-white: #ffffff;
    --border: #dfe6d6;
    --shadow: 0 6px 20px rgba(88, 107, 27, 0.12);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--secondary-light);
    line-height: 1.6;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--bg-white);
    padding: 8px;
    box-shadow: 0 10px 25px rgba(88, 107, 27, 0.16);
    object-fit: contain;
}

.logo-text h1,
.logo-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

.logo-text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0 0 0;
}

.nav-desktop {
    display: none;
    gap: 8px;
}

.nav-desktop a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-desktop a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--whatsapp);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp .whatsapp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 13px;
}

.btn-whatsapp .whatsapp-text strong {
    font-size: 13px;
    letter-spacing: 0.02em;
}

.btn-whatsapp .whatsapp-text span:last-child {
    font-weight: 500;
    opacity: 0.85;
}

.icon-whatsapp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.icon-whatsapp::after {
    content: 'WA';
    color: #ffffff;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.nav-mobile a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.nav-mobile .btn-whatsapp {
    justify-content: center;
    width: calc(100% - 32px);
    margin: 12px 16px 0 16px;
}

.nav-mobile .btn-whatsapp .icon-whatsapp {
    display: none;
}

.nav-mobile a:hover {
    background: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 242, 224, 0.95) 0%, rgba(243, 237, 226, 0.95) 60%, #ffffff 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    padding: 60px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(88, 107, 27, 0.12);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-dark);
}

.hero p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 30px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-affiliations {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.affiliation-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: 0 16px 35px rgba(88, 107, 27, 0.18);
}

.affiliation-card img {
    width: 72px;
    height: 48px;
    object-fit: contain;
}

.affiliation-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
}

.section-header.center p {
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-content .lead {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.credential-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(88, 107, 27, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.credential-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(88, 107, 27, 0.12);
}

.credential-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.credential-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credential-card ul li {
    position: relative;
    padding-left: 18px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

.credential-card ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 7px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.curriculum-grid {
    gap: 48px;
}

.curriculum-media {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(88, 107, 27, 0.12);
    padding: 32px 28px;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto;
}

.profile-card p {
    font-weight: 600;
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(88, 107, 27, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(88, 107, 27, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.emergency-banner {
    background: var(--primary-light);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--primary);
}

.emergency-banner h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.emergency-banner p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.emergency-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Activities Section */
.activities {
    background: linear-gradient(135deg, rgba(227, 242, 224, 0.6), rgba(243, 237, 226, 0.9));
}

.activities .section-header h2 {
    color: var(--primary-dark);
}

.media-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: rgba(88, 107, 27, 0.35);
    border-radius: 999px;
}

.gallery-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(88, 107, 27, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
}

.gallery-placeholder {
    flex: 1;
    border-radius: var(--radius);
    background: repeating-linear-gradient(
        135deg,
        rgba(88, 107, 27, 0.1),
        rgba(88, 107, 27, 0.1) 10px,
        rgba(88, 107, 27, 0.05) 10px,
        rgba(88, 107, 27, 0.05) 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gallery-media {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0f1810;
}

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Appointment Section */
.appointment {
    background: var(--bg-white);
}

.appointment-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.privacy-notice {
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #2a9d8f;
}

.privacy-notice small {
    color: #718096;
    line-height: 1.6;
}

.privacy-notice a {
    color: #2a9d8f;
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.checkbox-label a {
    color: #2a9d8f;
    text-decoration: underline;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    padding: 20px 20px 8px;
    font-size: 18px;
}

.team-card .role {
    padding: 0 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.team-card .specialization {
    padding: 4px 20px 16px;
    color: var(--text-light);
    font-size: 14px;
}

.team-contact {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-contact a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.team-contact a:hover {
    color: var(--primary);
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.contact-form {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(88, 107, 27, 0.08);
    min-height: 160px;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.info-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--primary-dark);
}

.info-card:last-child {
    background: var(--primary-light);
    border: none;
    box-shadow: none;
}

.info-card:last-child .info-icon {
    background: var(--bg-white);
}

.icon-map::after { content: 'MAP'; }
.icon-phone::after { content: 'TEL'; }
.icon-mail::after { content: 'MAIL'; }
.icon-clock::after { content: 'HRS'; }
.icon-share::after { content: 'SOC'; }

/* Footer */
.site-footer {
    background: var(--text);
    color: #cbd5e0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a,
.footer-col ul li {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(227, 242, 224, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    color: #ffffff;
}

.social-links a:hover {
    background: rgba(227, 242, 224, 0.3);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-note {
    font-size: 12px;
    color: #a0aec0;
}

.site-footer .logo-image {
    background: rgba(227, 242, 224, 0.18);
    box-shadow: none;
}

.site-footer .logo-text p {
    color: #e4ebde;
}

.icon-youtube,
.icon-instagram {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.icon-youtube::after {
    content: 'YT';
}

.icon-instagram::after {
    content: 'IG';
}

.footer-partners {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
    font-size: 14px;
    color: #e3eadc;
}

.partners-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partner-logo {
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 14px;
}

.footer-bottom button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e0;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
}

.footer-bottom button:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 56px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-affiliations {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .affiliation-card {
        width: 100%;
        justify-content: flex-start;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-track {
        grid-auto-columns: 85%;
    }
    
    .info-card {
        flex-direction: column;
    }
}
